我的pymysql 一直报错

想请教一下大神,为什么我安装了pymysql 之后,按照网上的教程输入代码,却一直报错,原因是什么啊图片说明

0

3个回答

查询的话应该再加一个fetchall吧

0
sunny_sxr
sunny_sxr 回复T_world: 大神能不能说的详细一点,小白听不太明白
一年多之前 回复

你本地的mysql服务有没有正常启动。有没有侦听对应的端口

0
sunny_sxr
sunny_sxr 回复oyljerry: 现在成了这样![图片说明](http://img.ask.csdn.net/upload/201712/06/1512556814_113245.png)
一年多之前 回复
sunny_sxr
sunny_sxr 回复oyljerry: 怎么判断有没有侦听对应的端口
一年多之前 回复

图片说明
你看,这是我写的代码,由于我的数据库中只有一条数据,因此我用fetchone来获取,你的会获取多条数据,所以应该用fetchall来获取全部数据

0
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
pymysql连接MySQL报错
环境:windows10+Python3.6安装Python下载路径:https://www.python.org/downloads/windows/选择自己的版本直接安装,然后配置环境变量3.安装pymysql这里我是直接用pip安装的,命令: pip install pymysql4.连接数据库import pymysql# 打开数据库连接db = pymys...
pymysql导入数据报错
pymysql导入数据报错: pymysql.err.DataError: (1406, "Data too long for column 'view_number' at row 1") 或者报错: <class 'pymysql.err.InternalError'> (1261, "Row 1 doesn't contain data for all columns"...
一直报错
使用SWT MessageDialog.openinformation方法时一直保存说没有这个方法,请问需要导入什么包?
Python--AMS资产管理系统--pymysql报错
说明 : 因为mysqldb模块使用有问题,所以使用pymysql模块。没想到还是有问题,然后报错及解决.顺便了解python 报错的一些解决方式; 环境: PyCharm + django2 +pymysql 使用: 1.安装pymysql模块 :pip install pymysql 2.更改项目的 setting.py、_init_.py文件; 3、修改完成,以为可以...
No Module pymysql,启动容器报错提示缺少pymysql模块
docker容器启动报错,提示缺少pymysql模块,使用docker    run  容器   sh进入容器内安装以下组件后重新安装pymysql, apk add --no-cache gcc g++  python-dev  mysql-dev linux-headers libffi-dev openssl-dev 提示缺少模块首先要在Dockerfile中安装(pip  instal...
为什么我的while(left > 1) 一直报错??
rn public static void main(String[] args) rn boolean[] a = new boolean[10];rn for(int i = 0;i < a.length;i++) rn a[i] = true;rn rn rn rn int left = a.length;rn int counts = 0;rn int index = 0;rn rn while(left > 1) rn if(a[index] == true) rn counts++;rn if(counts == 3) rn counts = 0;rn a[index] = false;rn left--;rn rn rn rn index++;rn rn if(index == a.length) rn index = 0;rn rn rn……
我用pycharm,在import pymysql模块后报错
[img=https://img-bbs.csdn.net/upload/201712/06/1512554201_423771.png][/img]rnrn已经用pip安装了pymysql了,但是总是这样报错是为什么啊??求教大神
laravel安装一直报错
laravel安装一直报错 原因: 1.找到php版本是否对应 2.缺少第三方扩展库vendor 需要composer update 解决链接:https://learnku.com/docs/laravel/5.1/installation/1039 转载于:https://www.cnblogs.com/nzc520/p/10548811.html...
这个布局文件一直报错。
一直报android.view.InflateException: Binary XML file line #2: Binary XML file line #2: Error inflating class rn。求大神教育。。。我想实现底部按钮加侧边菜单!谢谢!rnrn[code=html]rnrnrnrn rnrn rn rnrn rnrn rnrn rn rnrnrnrnrn[/code]rnrn[code=java]package com.ishihara.satomi;rnrnimport android.app.ActionBar;rnimport android.app.Activity;rnimport android.content.res.Configuration;rnimport android.os.Bundle;rnrnimport android.app.FragmentManager;rnimport android.app.FragmentTransaction;rnimport android.support.v4.widget.DrawerLayout;rnimport android.support.v7.app.AppCompatActivity;rnimport android.view.MenuItem;rnimport android.view.View;rnimport android.widget.AdapterView;rnimport android.widget.ArrayAdapter;rnimport android.widget.ListView;rnrnimport com.ashokvarma.bottomnavigation.BottomNavigationBar;rnimport com.ashokvarma.bottomnavigation.BottomNavigationItem;rnimport com.ikimuhendis.ldrawer.ActionBarDrawerToggle;rnimport com.ikimuhendis.ldrawer.DrawerArrowDrawable;rnrnpublic class StoreActivity extends Activityrnrn int lastSelectedPosition = 0;rn private BottomNavigationBar bottomNavigationBar;rnrn private DrawerLayout mDrawerLayout;rn private ListView mDrawerList;rn private ActionBarDrawerToggle mDrawerToggle;rn private DrawerArrowDrawable drawerArrow;rn private boolean drawerArrowColor;rnrn @Overridern protected void onCreate(Bundle savedInstanceState)rn super.onCreate(savedInstanceState);rn setContentView(R.layout.atylist);rnrn ActionBar ab = getActionBar();rn ab.setDisplayHomeAsUpEnabled(true);rn ab.setHomeButtonEnabled(true);rnrn mDrawerLayout = (DrawerLayout) findViewById(R.id.drawer_layout);rn mDrawerList = (ListView) findViewById(R.id.list_drawer);rnrnrn drawerArrow = new DrawerArrowDrawable(this) rn @Overridern public boolean isLayoutRtl() rn return false;rn rn ;rn mDrawerToggle = new ActionBarDrawerToggle(this, mDrawerLayout,rn drawerArrow, R.string.drawer_open,rn R.string.drawer_close) rnrn public void onDrawerClosed(View view) rn super.onDrawerClosed(view);rn invalidateOptionsMenu();rn rnrn public void onDrawerOpened(View drawerView) rn super.onDrawerOpened(drawerView);rn invalidateOptionsMenu();rn rn ;rn mDrawerLayout.setDrawerListener(mDrawerToggle);rn mDrawerToggle.syncState();rnrnrn String[] values = new String[]rn "Stop Animation (Back icon)",rn "Stop Animation (Home icon)",rn "Start Animation",rn "Change Color",rn "GitHub Page",rn "Share",rn "Rate"rn ;rn ArrayAdapter adapter = new ArrayAdapter(this,rn android.R.layout.simple_list_item_1, android.R.id.text1, values);rn mDrawerList.setAdapter(adapter);rn mDrawerList.setOnItemClickListener(new AdapterView.OnItemClickListener() rn @Overridern public void onItemClick(AdapterView parent, View view,rn int position, long id) rn switch (position) rn case 0:rn System.out.println(position);rn break;rn case 1:rn System.out.println(position);rn break;rn case 2:rn System.out.println(position);rn break;rn case 3:rn System.out.println(position);rn break;rn case 4:rn System.out.println(position);rn break;rn case 5:rn System.out.println(position);rn break;rn case 6:rn System.out.println(position);rn break;rn rn rn );rnrn bottomNavigationBar = (BottomNavigationBar) findViewById(R.id.bottom_navigation_bar);rnrn bottomNavigationBarrn .addItem(new BottomNavigationItem(R.drawable.ic_home_white_24dp, "Home"))rn .addItem(new BottomNavigationItem(R.drawable.ic_book_white_24dp, "Books"))rn .addItem(new BottomNavigationItem(R.drawable.ic_music_note_white_24dp, "Music"))rn .addItem(new BottomNavigationItem(R.drawable.ic_tv_white_24dp, "Movies"))rn .addItem(new BottomNavigationItem(R.drawable.ic_videogame_asset_white_24dp, "Games"))rn .setFirstSelectedPosition(lastSelectedPosition)rn .initialise();rn bottomNavigationBar.setMode(BottomNavigationBar.MODE_CLASSIC);rn bottomNavigationBar.setBackgroundStyle(BottomNavigationBar.BACKGROUND_STYLE_RIPPLE);rn bottomNavigationBar.setTabSelectedListener(new BottomNavigationBar.OnTabSelectedListener() rnrn @Overridern public void onTabSelected(int position) rn FragmentManager fragmentManager = getFragmentManager();rn FragmentTransaction beginTransaction = fragmentManager.beginTransaction();rn switch (position) rn case 0:rn beginTransaction.replace(R.id.show_list_view, new HomeFragment());rn break;rn case 1:rn beginTransaction.replace(R.id.show_list_view, new BooksFragment());rn break;rn case 2:rn beginTransaction.replace(R.id.show_list_view, new MusicFragment());rn break;rn case 3:rn beginTransaction.replace(R.id.show_list_view, new MoviesFragment());rn break;rn case 4:rn beginTransaction.replace(R.id.show_list_view, new GamesFragment());rn break;rn default:rn break;rn rn beginTransaction.commit();rn rnrn @Overridern public void onTabUnselected(int position) rn rnrn @Overridern public void onTabReselected(int position) rn rn );rn setDefaultFragment();rn rnrn private void setDefaultFragment() rn FragmentManager fm = getFragmentManager();rn FragmentTransaction transaction = fm.beginTransaction();rn transaction.replace(R.id.show_list_view, new HomeFragment());rn transaction.commit();rn rnrn @Overridern public boolean onOptionsItemSelected(MenuItem item) rn if (item.getItemId() == android.R.id.home) rn if (mDrawerLayout.isDrawerOpen(mDrawerList)) rn mDrawerLayout.closeDrawer(mDrawerList);rn else rn mDrawerLayout.openDrawer(mDrawerList);rn rn rn return super.onOptionsItemSelected(item);rn rnrn @Overridern protected void onPostCreate(Bundle savedInstanceState) rn super.onPostCreate(savedInstanceState);rn mDrawerToggle.syncState();rn rnrn @Overridern public void onConfigurationChanged(Configuration newConfig) rn super.onConfigurationChanged(newConfig);rn mDrawerToggle.onConfigurationChanged(newConfig);rn rn[/code]
Telegraf启动一直报错
? telegraf.service - The plugin-driven server agent for reporting metrics into InfluxDBrn Loaded: loaded (/usr/lib/systemd/system/telegraf.service; enabled; vendor preset: disabled)rn Active: failed (Result: start-limit) since ? 2018-09-27 11:12:23 CST; 6s agorn Docs: https://github.com/influxdata/telegrafrn Process: 6368 ExecStart=/usr/bin/telegraf -config /etc/telegraf/telegraf.conf -config-directory /etc/telegraf/telegraf.d $TELEGRAF_OPTS (code=exited, status=1/FAILURE)rn Main PID: 6368 (code=exited, status=1/FAILURE)rnrn9? 27 11:12:23 localhost.localdomain systemd[1]: Unit telegraf.service entered failed state.rn9? 27 11:12:23 localhost.localdomain systemd[1]: telegraf.service failed.rn9? 27 11:12:23 localhost.localdomain systemd[1]: telegraf.service holdoff time over, scheduling restart.rn9? 27 11:12:23 localhost.localdomain systemd[1]: start request repeated too quickly for telegraf.servicern9? 27 11:12:23 localhost.localdomain systemd[1]: Failed to start The plugin-driven server agent for reporting metrics into InfluxDB.rn9? 27 11:12:23 localhost.localdomain systemd[1]: Unit telegraf.service entered failed state.rn9? 27 11:12:23 localhost.localdomain systemd[1]: telegraf.service failed.
Struts2一直报错,求解....
这两天用ecplise新建一个struts2的项目,但是访问的时候一直报错,rn警告: [color=#FF0000]Could not find action or resultrnThere is no Action mapped for namespace [/] and action name [login] associated with context path [/migo]. - [unknown location]rn at com.opensymphony.xwork2.DefaultActionProxy.prepare(DefaultActionProxy.java:185)rn at org.apache.struts2.impl.StrutsActionProxy.prepare(StrutsActionProxy.java:63)[/color]rnrn网上查看好多解决方法,但是都没有解决,实在找不出错误的地方,请高人指点。rnrn这个是项目目录rn[img=http://img.my.csdn.net/uploads/201212/24/1356337898_8111.PNG][/img]rnrn这个是web.xmlrnrnrn Migorn rn rn rn struts2 rn rn org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter rn rn rn rn rn struts2 rn /* rn rn rn rn index.htmlrn rnrnrn这个是struts.xmlrnrnrnrn rn rn rn rn rn /success.jsprn /error.jsprn rn rnrnrn这个是项目启动信息rn2012-12-24 16:21:23 org.apache.catalina.core.AprLifecycleListener initrn信息: The APR based Apache Tomcat Native library which allows optimal performance in production environments was not found on the java.library.path: E:\Program Files\Java\jdk1.6.0_32\bin;C:\Windows\Sun\Java\bin;C:\Windows\system32;C:\Windows;E:\Program Files\Java\jdk1.6.0_32\jre\bin;C:/Program Files/Java/jre7/bin/client;C:/Program Files/Java/jre7/bin;C:/Program Files/Java/jre7/lib/i386;e:\oracle\product\10.2.0\db_1\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Program Files\SSH Communications Security\SSH Secure Shell;E:\eclipse;;.rn2012-12-24 16:21:24 org.apache.coyote.http11.Http11Protocol initrn信息: Initializing Coyote HTTP/1.1 on http-8080rn2012-12-24 16:21:24 org.apache.catalina.startup.Catalina loadrn信息: Initialization processed in 709 msrn2012-12-24 16:21:24 org.apache.catalina.core.StandardService startrn信息: Starting service Catalinarn2012-12-24 16:21:24 org.apache.catalina.core.StandardEngine startrn信息: Starting Servlet Engine: Apache Tomcat/6.0.35rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-default.xml]rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts-plugin.xml, skippingrn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts-plugin.xml]rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Unable to locate configuration files of the name struts.xml, skippingrn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Parsing configuration file [struts.xml]rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ObjectFactory)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.FileManagerFactory)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.XWorkConverter)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.TextProvider)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.LocaleProvider)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.ActionProxyFactory)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.ObjectTypeDeterminer)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.mapper.ActionMapper)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (jakarta) for (org.apache.struts2.dispatcher.multipart.MultiPartRequest)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.views.freemarker.FreemarkerManager)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.components.UrlRenderer)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.validator.ActionValidatorManager)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.ValueStackFactory)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionProvider)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.reflection.ReflectionContextFactory)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.util.PatternMatcher)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.dispatcher.StaticContentLoader)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.UnknownHandlerManager)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (org.apache.struts2.views.util.UrlHelper)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.CollectionConverter)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.ArrayConverter)rn2012-12-24 16:21:24 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.DateConverter)rn2012-12-24 16:21:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.NumberConverter)rn2012-12-24 16:21:25 com.opensymphony.xwork2.util.logging.commons.CommonsLogger inforn信息: Choosing bean (struts) for (com.opensymphony.xwork2.conversion.impl.StringConverter)rn2012-12-24 16:21:25 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor host-manager.xmlrn2012-12-24 16:21:25 org.apache.catalina.startup.HostConfig deployDescriptorrn信息: Deploying configuration descriptor manager.xmlrn2012-12-24 16:21:25 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory docsrn2012-12-24 16:21:25 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory examplesrn2012-12-24 16:21:25 org.apache.catalina.core.ApplicationContext logrn信息: ContextListener: contextInitialized()rn2012-12-24 16:21:25 org.apache.catalina.core.ApplicationContext logrn信息: SessionListener: contextInitialized()rn2012-12-24 16:21:25 org.apache.catalina.startup.HostConfig deployDirectoryrn信息: Deploying web application directory ROOTrn2012-12-24 16:21:25 org.apache.coyote.http11.Http11Protocol startrn信息: Starting Coyote HTTP/1.1 on http-8080rn2012-12-24 16:21:25 org.apache.jk.common.ChannelSocket initrn信息: JK: ajp13 listening on /0.0.0.0:8009rn2012-12-24 16:21:25 org.apache.jk.server.JkMain startrn信息: Jk running ID=0 time=0/23 config=nullrn2012-12-24 16:21:25 org.apache.catalina.startup.Catalina startrn信息: Server startup in 1833 ms
JBoss 一直报错
warn [arjLoggerI18N] [com.arjuna.ats.internal.arjuna.recovery.Listener_2]Listener-IOExceptionrnrnrn这一行一直闪烁rn前几天还能用 突然就不行了 把别人的复制过来 一样报错rnrn我下了个没有配置过的 把原来的删掉 放到原来的盘符下 运行报同样的错误 求大神帮忙解决下
百度富文本编辑器一直报错
确保jsp/lib 下的jar包都存在,并且路径放对,把jar包移到web-inf/lib下再build path 才行
为什么一直报错?
Exception in thread "main" java.lang.NoSuchMethodError: MyThread.(Ljava/lang/String;)Vrn at TextSleepYield.main(TextSleepYield.java:6)rn这个就是报错的指令,本人不太清楚是怎么回事。麻烦大家给解答一下,先谢谢了rnrnpublic class TestSleepYield rnrn public static void main(String[] args)rn rn MyThread t1 = new MyThread("t1");rn MyThread t2 = new MyThread("t2");rn //设置优先级rn t2.setPriority(Thread.MAX_PRIORITY);rn t1.start();rn t2.start();rn rnrnrnrnrnclass MyThread extends Threadrnrn MyThread(String s)rn rn super(s);rn rn rn public void run()rn rn for(int i = 1;i <= 30;i ++)rn rn System.out.println(getName()+":"+i);rn if(i%5==0)rn rn //睡眠rn tryrn rn sleep(10);rn rn catch(InterruptedException e)rn rn e.printStackTrace();rn rn rn //让位rn //yield();rn rn rn rn
hibernate一直报错
八月 30, 2014 6:53:38 下午 org.hibernate.annotations.common.reflection.java.JavaReflectionManager rnINFO: HCANN000001: Hibernate Commons Annotations 4.0.5.Finalrn八月 30, 2014 6:53:38 下午 org.hibernate.Version logVersionrnINFO: HHH000412: Hibernate Core 4.3.6.Finalrn八月 30, 2014 6:53:38 下午 org.hibernate.cfg.Environment rnINFO: HHH000206: hibernate.properties not foundrn八月 30, 2014 6:53:38 下午 org.hibernate.cfg.Environment buildBytecodeProviderrnINFO: HHH000021: Bytecode provider name : javassistrn八月 30, 2014 6:53:38 下午 org.hibernate.cfg.Configuration configurernINFO: HHH000043: Configuring from resource: /hibernate.cfg.xmlrn八月 30, 2014 6:53:38 下午 org.hibernate.cfg.Configuration getConfigurationInputStreamrnINFO: HHH000040: Configuration resource: /hibernate.cfg.xmlrnrn版本4.3.6
free一直报错。。。求助
第1,2次循环都不报错,第三次跑到free(p)就:rnrnWindows 已在 test.exe 中触发一个断点。rn其原因可能是堆被损坏,这说明 简易评分系统(服务器端).exe 中或它所加载的任何 DLL 中有 Bug。rnrn[code=c]rn if(flag)rn char *n=(char*)malloc(sizeof(char));rn *n='\0';rn int num=0;rn char *p;rn for(l=0;l='a'&&argv[i][l]<='z')||(argv[i][l]>='A'&&argv[i][l]<='Z'))rn num++;rn p=n;rn n=(char*)malloc(sizeof(char)*(num+1));rn if(num>1)rn strcpy(n,p);rn rn free(p);rn n[num-1]=argv[i][l];rn rn rn free(ar[i-1]);rn ar[i-1]=n;rn rn[/code]
web mail一直报错
我用horde搭建web mail,现在老是Fatal error: Call to undefined function: setoption() in /www/webpage/horde/lib/Prefs/sql.php on line 106,我看了,程序调用到了/usr/share/pear下面的东西,可是老报这样错,那位老大帮 我看看呀?公司 的 webmail不能用了。老板已经骂我很久了 ,我要被避疯了,!!!!!!!
npm install 一直报错
今天创建项目的时候如上图,出现的错误一样,百度了很多,都是先清理一下,在运行npm install但是尝试过多次依旧无效。npm版本是5.几,升级为最新的6,不行,降级为4不行。具体原因不太清楚,希望来往的朋友指点一下啊下面是最终解决的办法:经过多次的  新建,删除项目  多次的npm i后,最终执行了下面命令 成功安装依赖1、先执行 npm config set registry http://...
pom一直报错
org.apache.maven.archiver.MavenArchiver.getManifest(org.apache.maven.project.MavenProject, org.apache.maven.archiver.MavenArchiveConfiguration)
pom.xml第一行一直报错
执行以下操作: 右击项目名称->maven->update project ->选中force update of snapshots/release 等待项目更新完成之后,错误就会消失。 错误的原因:pom.xml在中途增加了一些包,而run as 无法将这些包导入到maven dependency中。通过如上操作强制更新项目来解决问题
kibana一直弹出来报错?
1,这个我们需要授权 2.授予安全 转载于:https://www.cnblogs.com/studybrother/p/10892883.html
一直报错invalid signature
签名signature在验签工具上没错。n页面URL与参与验签的URL一致,不过URL带了端口号 8003。nJS安全域名配置没有带上端口号,因为加上端口号就会域名不合法。n大小写也没有问题。n实在是不知道怎么回事了!!??求大佬指点!!n![图片说明](https://img-ask.csdn.net/upload/201710/24/1508846837_658181.png)
ImageIO.read(inputFile);一直报错
图片是手机相册的,返回的路径,一直报错了, Caused by: java.lang.SecurityException: Unsafe access denied[img=https://img-bbs.csdn.net/upload/201802/05/1517808699_908681.png][/img]
group by 一直报错
[code=SQL]SELECTrn [SEQ]rn ,[CTIME]rn ,[MTIME]rn ,[RTIME]rn ,[IsValid]rn ,[Remark]rn ,[ComCode]rn ,[F001]rn ,[F002]rn ,[StockCode]rn ,[OldCode]rn ,[StockSName]rn ,[F003]rn ,[F004]rn ,[comtime]rn ,[ABBR]rn FROM [DB40].[dbo].[STK001]rnGROUP BY [ComCode]rnORDER BY [ComCode] ASC[/code]rnrn它老是说rn消息 8120,级别 16,状态 1,第 1 行rn选择列表中的列 'DB40.dbo.STK001.SEQ' 无效,因为该列没有包含在聚合函数或 GROUP BY 子句中。rn而且是每个字段都这样(我一个个注释下来).....
logcat一直报错
============问题描述============ 一按StartAty1按钮就显示“抱歉,hello已停止工作”,logcat一直在输出报错信息,差不多1秒中就输出几条,现在连续输出几个小时了。这是代码: packagecom.example.hello; importandroid.support.v7.app.Action...
tomcat 启动一直报错
[code=html]五月 20, 2014 9:17:21 上午 org.apache.catalina.core.StandardContext filterStartrnSEVERE: Exception starting filter StrutsrnUnable to load configuration. - [unknown location]rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:450)rn at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:74)rn at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:51)rn at org.apache.catalina.core.ApplicationFilterConfig.initFilter(ApplicationFilterConfig.java:281)rn at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:262)rn at org.apache.catalina.core.ApplicationFilterConfig.(ApplicationFilterConfig.java:107)rn at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:4775)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5452)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1120)rn at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1678)rn at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)rn at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)rn at java.util.concurrent.FutureTask.run(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)rn at java.lang.Thread.run(Unknown Source)rnCaused by: Unable to load configuration. - [unknown location]rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:69)rn at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:390)rn at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:437)rn ... 19 morernCaused by: Unable to load file:/D:/apache-tomcat-7.0.47/webapps/lookweb/WEB-INF/classes/struts.xml - [unknown location]rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:954)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadDocuments(XmlConfigurationProvider.java:163)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.init(XmlConfigurationProvider.java:130)rn at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:209)rn at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)rn ... 21 morernCaused by: struts.apache.org - [unknown location]rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:115)rn at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadConfigurationFiles(XmlConfigurationProvider.java:949)rn ... 25 morernCaused by: java.net.UnknownHostException: struts.apache.orgrn at java.net.AbstractPlainSocketImpl.connect(Unknown Source)rn at java.net.PlainSocketImpl.connect(Unknown Source)rn at java.net.SocksSocketImpl.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at java.net.Socket.connect(Unknown Source)rn at sun.net.NetworkClient.doConnect(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.openServer(Unknown Source)rn at sun.net.www.http.HttpClient.(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.http.HttpClient.New(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getNewHttpClient(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.plainConnect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.connect(Unknown Source)rn at sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.setupCurrentEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLEntityManager.startDTDEntity(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDTDScannerImpl.setInputSource(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.dispatch(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$DTDDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl$PrologDriver.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLNSDocumentScannerImpl.next(Unknown Source)rn at com.sun.org.apache.xerces.internal.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XML11Configuration.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.XMLParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.parsers.AbstractSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)rn at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.parse(Unknown Source)rn at com.opensymphony.xwork2.util.DomHelper.parse(DomHelper.java:113)rn ... 26 morernrn五月 20, 2014 9:17:21 上午 org.apache.catalina.core.StandardContext startInternalrnSEVERE: Error filterStart[/code]rn有人说是架包版本冲突,但还是解决不了。这个错有时候会报,有时候不会报错。郁闷~~~rn[img=https://img-bbs.csdn.net/upload/201405/20/1400549073_383928.jpg][/img]
getComputedStyle() 在window 一直报错
[code=javascript]function getCss(curEle,attr) rn var val = null;rn var reg = null;rn if ("getComputedStyle" in window) rn val = window.getComputedStyle(curEle, null)[attr];rn rn elsern if(attr==="opacity")rn val=curEle.currentStyle["filter"];rn reg=/^alpha\(opacity=(\d+(?:\.\d+)?\))$/i;rn val=reg.test(val)?reg.exec(val)[1]/100:1;rn elsern val=curEle.currentStyle[attr];rn rn rn reg=/^(-?\d+(\.\d+)?)(px|pt|rem|em)?$/i;rn return reg.test(val)?parseFloat(val):val;rn [/code]rn写的外部js一直在浏览器中报错 为什么呢?rn请指点rnUncaught TypeError: Failed to execute 'getComputedStyle' on 'Window': parameter 1 is not of type 'Element'.
Excel-Dataset 为什么一直报错
string strConn = "provider=Microsoft.Jet.OLEDB.4.0;data source=strPath;Extended Properties=Excel 8.0;";rn rnDataSet ds = new DataSet();rn rnSystem.Data.OleDb.OleDbConnection oleConn = new System.Data.OleDb.OleDbConnection(strConn);rn rnSystem.Data.OleDb.OleDbDataAdapter oleDa = new System.Data.OleDb.OleDbDataAdapter("select * from [0$]", oleConn);rn rnoleDa.Fill(ds);
fiddler一直报错502
相信很多同学们都跟我一样碰到过着种情况,因为我们电脑中安装了太多软件程序,这些软件很可能相互之间产生冲突,端口冲突时最容易发生的事情,在网上有很多的解决方法 比如下载某某证书之类的,但是操作之后并没有解决问题,下面我讲述一下我的解决方法,其实很简单很简单1.fiddler--tool--options:在options页面就可以改端口了,fiddler默认端口是8888,可以改成8889或者其他四...
hbase程序一直报错
ERROR cleanup.org.kiji.schema.util.DebugResourceTracker: Found 1 unclosed resources. Run with system
Eclipse崩了。。。一直报错。
![图片说明](https://img-ask.csdn.net/upload/201711/09/1510191348_274537.png)nnnAn internal error occurred during: "Git Repository Change Scanner". org/eclipse/egit/core/Activatorn不知道为什么。打开eclipse就这样。一直报错。右键项目都是空白的
spring mvc一直报错
[code=java]rn[size=13px][color=#FF0000]严重: java.io.FileNotFoundException: jndi:/localhost/spring%20mvc/WEB-INF/classes/net/spring/controller/HelloWorldController.class[/color][/size]rnjava.io.FileNotFoundException: jndi:/localhost/spring%20mvc/WEB-INF/classes/net/spring/controller/HelloWorldController.classrn at org.apache.naming.resources.DirContextURLConnection.getInputStream(DirContextURLConnection.java:389)rn at java.net.URL.openStream(URL.java:1010)rn at com.sun.faces.config.AnnotationScanner.containsAnnotation(AnnotationScanner.java:515)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:467)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:437)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:459)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:437)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:459)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:437)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:459)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:437)rn at com.sun.faces.config.AnnotationScanner.processWebInfClasses(AnnotationScanner.java:416)rn at com.sun.faces.config.AnnotationScanner.getAnnotatedClasses(AnnotationScanner.java:214)rn at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:765)rn at com.sun.faces.config.ConfigManager$AnnotationScanTask.call(ConfigManager.java:736)rn at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)rn at java.util.concurrent.FutureTask.run(FutureTask.java:138)rn at com.sun.faces.config.ConfigManager.initialize(ConfigManager.java:329)rn at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:223)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4791)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5285)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.StandardContext.reload(StandardContext.java:3920)rn at org.apache.catalina.startup.HostConfig.checkResources(HostConfig.java:1271)rn at org.apache.catalina.startup.HostConfig.check(HostConfig.java:1440)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:301)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:119)rn at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)rn at org.apache.catalina.core.ContainerBase.backgroundProcess(ContainerBase.java:1374)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1530)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.processChildren(ContainerBase.java:1540)rn at org.apache.catalina.core.ContainerBase$ContainerBackgroundProcessor.run(ContainerBase.java:1519)rn at java.lang.Thread.run(Thread.java:662)[/code]rnrn总感觉 严重: java.io.FileNotFoundException: jndi:/localhost/spring%20mvc/WEB-INF/classes/net/spring/controller/HelloWorldController.class 这一句话有问题,请教各位有没有遇到过这种问题。。。。。。
ZOJ 1713 一直报错
[code=c]#includern#includernint main()rnrn int i,j,k,h,num=1,flag=0,one=0,two=0,three=0; /*分别为第一行第二行第三行的计数*/rn char *a;rn char b[300];rn a=b;rnrnrn while(gets(a),strcmp(a,"e/o/i")!=0)rn rn rn one=two=three=0;rn for(i=1;i<=3;++i)rn rn if(i==1)rn rn if(a[0]=='a'||a[0]=='e'||a[0]=='i'||a[0]=='o'||a[0]=='u'||a[0]=='y')rn one++;rn rn for(j=1;a[j]!='/';j++)rn rn num++;rn if((a[j]=='a'||a[j]=='e'||a[j]=='i'||a[j]=='o'||a[j]=='u'||a[j]=='y')&&!(a[j-1]=='a'||a[j-1]=='e'||a[j-1]=='i'||a[j-1]=='o'||a[j-1]=='u'||a[j-1]=='y'))rn one++;rn rn rn rn if(one!=5)rn break;rn rn if(i==2)rn rn rn for(k=num+1;a[k]!='/';k++)rn rn rn num++;rn if((a[k]=='a'||a[k]=='e'||a[k]=='i'||a[k]=='o'||a[k]=='u'||a[k]=='y')&&!(a[k-1]=='a'||a[k-1]=='e'||a[k-1]=='i'||a[k-1]=='o'||a[k-1]=='u'||a[k-1]=='y'))rn rn two++;rn rn rn rn if(two!=7)rn break;rn rn if(i==3)rn rn for(h=num+2;a[h]!='\0';h++)rn rn rnrn if((a[h]=='a'||a[h]=='e'||a[h]=='i'||a[h]=='o'||a[h]=='u'||a[h]=='y')&&!(a[h-1]=='a'||a[h-1]=='e'||a[h-1]=='i'||a[h-1]=='o'||a[h-1]=='u'||a[h-1]=='y'))rn rn three++;rn rn rn rn if(three!=7)rn break;rn else flag=1;rn rn rn if(!flag)rn rn switch(i)rn rn case 1:printf("1\n");break;rn case 2:printf("2\n");break;rn case 3:printf("3\n");break;rn default:printf("error\n");rn rn rn else rn printf("Y\n");rn a=&b[100];rn rnrn return 0;rn[/code]rnrnrn同样的的输入3遍,每天都不一样,编译对的,ZOJ说什么段错误。rnrnrnrnHaiku is an ancient form of Japanese poetry. A haiku is a three-line poem with seventeen syllables, where the first line must contain five syllables, the second line must contain seven syllables, and the third line must contain five syllables. The lines do not have to rhyme. Here is an example, where slashes separate the lines: rnComputer programs/The bugs try to eat my code/I must not let them.rnrnYou must write a program that will review a haiku and check that each line contains the correct number of syllables.rnrnrnInputrnrnThe input contains one or more lines, each of which contains a single haiku. A haiku will contain at least three words, and words will be separated by either a single space or a slash (`/'). Slashes also separate the three lines of a haiku, so each haiku will contain exactly two slashes. (The three lines of the haiku will be contained within one physical line of the file.) A haiku will contain only lowercase letters (`a'-`z'), forward slashes (`/'), and spaces, and will be no more than 200 characters long (not counting the end-of-line characters).rnrnThe haiku `e/o/i' signals the end of the input.rnrnEach haiku is guaranteed to contain three lines, and each line will contain at least one word. Your job is to determine whether each line has the correct number of syllables (5/7/5). For the purposes of this problem, every contiguous sequence of one or more vowels counts as one syllable, where the vowels are a, e, i, o, u, and y. Every word will contain at least one syllable. (Note that this method of counting syllables does not always agree with English conventions. In the second example below, your program must consider the word `code' to have two syllables because the `o' and the `e' are not consecutive. However, in English the `e' is silent and so `code' actually has only one syllable.)rnrnrnOutputrnrnFor each haiku, output a single line that contains `1' if the first line has the wrong number of syllables, `2' if the second line has the wrong number of syllables, `3' if the third line has the wrong number of syllables, or `Y' if all three lines have the correct number of syllables. If the haiku is not correct, you must output the number of the first line that has the wrong number of syllables.rnrnrnSample Inputrnrnhappy purple frog/eating bugs in the marshes/get indigestionrncomputer programs/the bugs try to eat my code/i will not let themrna e i o u/this is seven syllables/a e i o u yrne/o/irnrnrnSample OutputrnrnYrn2rn3rnrnrnhttp://acm.zju.edu.cn/onlinejudge/showProblem.do?problemId=713
安装rabbitmq一直报错
[img=https://img-bbs.csdn.net/upload/201804/02/1522676526_754407.png][/img]rnrnrnyum install rabbitmq-server-3.7.4-1.el6.noarch.rpmrnLoaded plugins: fastestmirror, refresh-packagekit, securityrnLoading mirror speeds from cached hostfilern * base: mirror.bit.edu.cnrn * epel: del-mirrors.extreme-ix.orgrn * extras: centos.ustc.edu.cnrn * updates: centos.ustc.edu.cnrnSetting up Install ProcessrnExamining rabbitmq-server-3.7.4-1.el6.noarch.rpm: rabbitmq-server-3.7.4-1.el6.noarchrnMarking rabbitmq-server-3.7.4-1.el6.noarch.rpm to be installedrnResolving Dependenciesrn--> Running transaction checkrn---> Package rabbitmq-server.noarch 0:3.7.4-1.el6 will be installedrn--> Processing Dependency: erlang >= 19.3 for package: rabbitmq-server-3.7.4-1.el6.noarchrn--> Finished Dependency ResolutionrnError: Package: rabbitmq-server-3.7.4-1.el6.noarch (/rabbitmq-server-3.7.4-1.el6.noarch)rn Requires: erlang >= 19.3rn Available: erlang-R14B-04.3.el6.x86_64 (epel)rn erlang = R14B-04.3.el6rn You could try using --skip-broken to work around the problemrn You could try running: rpm -Va --nofiles --nodigest
pymysql 提交sql语句报错问题
with conn: cursor = conn.cursor() for i in range(testnow.shape[0]): dx, dy, oc, ot, x, y, house_id = testnow.iloc[i:i+1].values[0] print ( house_id, dx, dy, oc, ot, x, y)
spyder3中运行import pymysql 报错,解决办法
1、spyder3中运行import pymysql 报错 2、安装pymysql(当前环境中有anaconda两个版本、Python两个版本,目前是为acaconda3下的spyder3安装pymysql)
pymysql模块操作数据库及连接报错解决方法
import pymysql sql = "select host,user,password from user" #想要执行的MySQL语句 #sql = 'create database sss character set utf8' #打开数据库连接 db = pymysql.connect(host="192.168.254.40", user="root", ...
AxureRP8 一直报错,各种报错求解决方案
打开网页浏览报错, 保存报错,打开其它页面也报错 就连拖拉图片都报错甚是无语! 求解决方案~~~~~~~~~
python 安装 event一直报错?
python 安装 event一直报错?
数据库连接不上,一直报错
各位哥哥姐姐,能帮我一下吗?我java数据库连接不上。n我的是mysql 5.0 java 4.2n数据库是5.1.36n 网上说把jar包放在lib,我不知道放哪里?n 希望各位能指教一下我新手。谢谢·急!!npackage denglu;nnimport gongyong.DaoConn;nimport gongyong.SaveUserInfo;nnimport java.awt.BorderLayout;nimport java.awt.event.ActionEvent;nimport java.awt.event.ActionListener;nimport java.awt.event.MouseAdapter;nimport java.awt.event.MouseEvent;nnimport javax.swing.JButton;nimport javax.swing.JFrame;nimport javax.swing.JLabel;nimport javax.swing.JPanel;nimport javax.swing.JPasswordField;nimport javax.swing.JTextField;nnimport com.mysql.jdbc.Connection;nimport com.mysql.jdbc.ResultSet;nimport com.mysql.jdbc.Statement;nnpublic class loginchuankou extends JFramen public DaoConn daoconn=new DaoConn();nn n private JButton guanbi=new JButton("退出");n private JButton Queding=new JButton("登录");n n private JPasswordField mimakuang=new JPasswordField(20);n private JTextField yonghumingkuang=new JTextField(20);n n private JLabel yonghubiaoqian=new JLabel();n n private JLabel mimabiaoqian=new JLabel();nn n n public loginchuankou()n setTitle("系统登录");n setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);n n n n n setBounds(200,200,300,180);n // setResizable(false);n JPanel dengluchuan=new JPanel();n getContentPane().add(dengluchuan,BorderLayout.CENTER);n setVisible(true);n n n n n yonghubiaoqian.setText("用户名");n dengluchuan.add(yonghubiaoqian);n n dengluchuan.add(yonghumingkuang);n n n dengluchuan.add(Queding);n n mimabiaoqian.setText("密码");n dengluchuan.add(mimabiaoqian);n n dengluchuan.add(yonghumingkuang);n n dengluchuan.add(mimakuang);n n dengluchuan.add(guanbi);n //键盘n guanbi.addMouseListener(new MouseAdapter()nn public void mouseClicked(final MouseEvent e)n System.exit(0);n nn );n n Queding.addActionListener(new ActionListener() n public void actionPerformed(final ActionEvent evt) n Queding(evt); n n );nn /////n nnnnn protected void Queding(ActionEvent evt) n Connection conn = null; //????n Statement st = null; n ResultSet rs = null; n try n conn =(Connection) daoconn.getConn(); n st = (Statement) conn.createStatement(); n n String user=yonghumingkuang.getText().trim();n String pw=new String(mimakuang.getPassword()).trim();n n String sql=" select * from user where username='"+ user + "' and password= '"+ pw + "' ";n n rs=(ResultSet) st.executeQuery(sql);n n if(rs.next() && rs.getString("username")!=null)n SaveUserInfo.setuserName(user);n SaveUserInfo.setpassword(pw);n System.out.print("成功");n elsen System.out.print("失败");n n catch (Exception e) n n e.printStackTrace();n finallyn n n //Quedingnn//gouzaonn报错如下:njava.lang.ClassNotFoundException: com.mysql.jdbc.Driven at java.net.URLClassLoader$1.run(URLClassLoader.java:366)n at java.net.URLClassLoader$1.run(URLClassLoader.java:355)n at java.security.AccessController.doPrivileged(Native Method)n at java.net.URLClassLoader.findClass(URLClassLoader.java:354)n at java.lang.ClassLoader.loadClass(ClassLoader.java:425)n at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)n at java.lang.ClassLoader.loadClass(ClassLoader.java:358)n at java.lang.Class.forName0(Native Method)n at java.lang.Class.forName(Class.java:195)n at gongyong.DaoConn.getConn(DaoConn.java:8)n at denglu.loginchuankou.Queding(loginchuankou.java:105)n at denglu.loginchuankou$2.actionPerformed(loginchuankou.java:89)n at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2018)n at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2341)n at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)n at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)n at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)n at java.awt.Component.processMouseEvent(Component.java:6516)n at javax.swing.JComponent.processMouseEvent(JComponent.java:3321)n at java.awt.Component.processEvent(Component.java:6281)n at java.awt.Container.processEvent(Container.java:2229)n at java.awt.Component.dispatchEventImpl(Component.java:4872)n at java.awt.Container.dispatchEventImpl(Container.java:2287)n at java.awt.Component.dispatchEvent(Component.java:4698)n at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4832)n at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4492)n at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4422)n at java.awt.Container.dispatchEventImpl(Container.java:2273)n at java.awt.Window.dispatchEventImpl(Window.java:2719)n at java.awt.Component.dispatchEvent(Component.java:4698)n at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:747)n at java.awt.EventQueue.access$300(EventQueue.java:103)n at java.awt.EventQueue$3.run(EventQueue.java:706)n at java.awt.EventQueue$3.run(EventQueue.java:704)n at java.security.AccessController.doPrivileged(Native Method)n at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)n at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:87)n at java.awt.EventQueue$4.run(EventQueue.java:720)n at java.awt.EventQueue$4.run(EventQueue.java:718)n at java.security.AccessController.doPrivileged(Native Method)n at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)n at java.awt.EventQueue.dispatchEvent(EventQueue.java:717)n at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)n at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)n at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)n at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)n at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)n
相关热词 c#异步发送kafka c#窗体编号 c# 操作二进制文件 c# 反射 机制 c#线程 窗体失去响应 c#角度转弧度 c# 解析gps数据 c# vs设置 语法版本 c# json含回车 c#多线程demo