SpringBoot+MyBaits+MySQL连接数据库出错,求大神指点配置

报错如下:
2017-11-19 15:13:40.009 ERROR 15152 --- [nio-8090-exec-2] e.n.y.o.service.LoginModuleService : checkUserInfo: Error message is org.mybatis.spring.MyBatisSystemException: nested exception is org.apache.ibatis.exceptions.PersistenceException:

Error querying database. Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

The error may exist in file [D:\Spring\JavaWeb\OnlineBookstore\target\classes\mybatis\mapper\UserInfoMapper.xml]

The error may involve edu.javaee.onlinebookstore.mapper.UserInfoMapper.isNameExist

The error occurred while executing a query

Cause: org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)

application.properties配置如下:
server.port = 8090
spring.mvc.view.prefix = /WEB-INF/jsp/
spring.mvc.view.suffix = .jsp
spring.datasource.driverClassName = com.mysql.jdbc.Driver
spring.datasource.url = jdbc:mysql://localhost:3306/onlinebookstore?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username = root
spring.datasource.password = root
mybatis.typeAliasesPackage = edu.javaee.onlinebookstore.domain
mybatis.config-location = classpath:mybatis/mybatis-config.xml
mybatis.mapper-locations = classpath:mybatis/mapper/*Mapper.xml
logging.file = log/service.log
检查过数据库密码正确,可以通过Navicat访问。

2个回答

update user set password=PASSWORD("123456") where user='root';
用navicat连接数据库重设一下数据库的登录密码。然后重启mysql服务。再试试。

  Access denied for user 'root'@'localhost' (using password: YES)

这是密码不符啊, 你瞅瞅你本地mysql有密码不,密码是什么?

Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
其他相关推荐
DruidDataSource 配置mysql,启动报错,求大神指点
地址信息:rnjdbc.driver=com.mysql.jdbc.Driverrnjdbc.url=jdbc:mysql://localhost:3306/order?characterEncoding=UTF-8rnjdbc.username=rootrnjdbc.password=123456rnjdbc.initSize=5rnjdbc.maxActive=10rnjdbc.maxIdle=5rnjdbc.minIdle=2rnjdbc.maxWait=1000rnrnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn 启动报错:org.springframework.jdbc.CannotGetJdbcConnectionException: Could not get JDBC Connection; nested exception is java.sql.SQLException: Access denied for user 'root'@'122.225.88.154' (using password: YES)rn 122.225.88.154都不知道是哪里的地址,我已经蒙了,求大神指点
springboot整合mybaits多数据源的配置
springboot整合mybaits多数据源的配置,主要关系到是四个方面, 1、在配置文件中写明各个数据库的配置2、添加各个数据库的config配置文件3、指明各个数据库对应的Dao层接口的扫描4、指明各个数据库对应Mapping文件的位置好废话不多说,直接开始怼代码,1、配置文件中声明各个数据库的配置,如下spring: datasource: db2: d...
CString出错,求大神指点
[code=c]rnrnrn CString csCurPath;rn CString csAddPath;rn CString csFullPath;rn GetCurrentDirectory(50,csCurPath.GetBufferSetLength(MAX_PATH+1));rnrn AfxMessageBox(csCurPath);rn csAddPath = "information.ini";rn csFullPath = csCurPath + csAddPath;rn AfxMessageBox(csFullPath);rnrn[/code]rnrn结果发现csCurPath和csFullPath的结果是一样的,搞不明白~~
mysql 存储过程 求大神指点
在SqlServer中编写的 这个语句 rnDECLARE @t TABLE(id INT ,class VARCHAR(100) ,pid INT)rnINSERT INTO trn executern ( 'SELECT ' + idName + ' AS id,' + classNamern + ' AS class,' + pidName + ' AS pid FROM ' + tableNamern + ''rn )rnrn如何转换成可以在 mysql中也能执行,现在转换成下面格式,但execute处出错,要怎么修改才能执行呢??rnCREATE TEMPORARY TABLE t (id INT ,class VARCHAR(100) ,pid INT);rnINSERT INTO trn executern ( 'SELECT ' + idName + ' AS id,' + classNamern + ' AS class,' + pidName + ' AS pid FROM ' + tableNamern + ''rn )rnrn
求大神指点 求大神指点
a表按照b表的规则转换到c表上去rnrnrna表按照b表的规则转换到c表上去rnrnrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[TB_DataPlat] 脚本日期: 08/26/2013 11:23:26 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[TB_DataPlat](rn [DataID] [int] NOT NULL,rn [PFKID] [int] NULL,rn [UseType] [int] NULL,rn [DataSign] [varchar](100) COLLATE Chinese_PRC_CI_AS NULL,rn [Data] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data1] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data2] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data3] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data4] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data5] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data6] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data7] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data8] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data9] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data10] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data11] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data12] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data13] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data14] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data15] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data16] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data17] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data18] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data19] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data20] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data21] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data22] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data23] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data24] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data25] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data26] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data27] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data28] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data29] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data30] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data31] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data32] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data33] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data34] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data35] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data36] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data37] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data38] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data39] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data40] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data41] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data42] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data43] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data44] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data45] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data46] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data47] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data48] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data49] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data50] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data51] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data52] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data53] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data54] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data55] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data56] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data57] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data58] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data59] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data60] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data61] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data62] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data63] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data64] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data65] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data66] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data67] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data68] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data69] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data70] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data71] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data72] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data73] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data74] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data75] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data76] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data77] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data78] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data79] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data80] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data81] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data82] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data83] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data84] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data85] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data86] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data87] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data88] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data89] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data90] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data91] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data92] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data93] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data94] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data95] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data96] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data97] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data98] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data99] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn [Data100] [varchar](max) COLLATE Chinese_PRC_CI_AS NULL,rn CONSTRAINT [PK_TB_DataPlat] PRIMARY KEY CLUSTERED rn(rn [DataID] ASCrn)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]rn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[PP_CraftData] 脚本日期: 08/26/2013 11:24:04 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[PP_CraftData](rn [CraftDataID] [int] IDENTITY(1,1) NOT NULL,rn [DataPlatID] [int] NULL,rn [CraftID] [int] NULL,rn [ProcessID] [int] NULL,rn [GoodsID] [int] NULL,rn [ProductID] [int] NULL,rn [ProductCode] [varchar](60) COLLATE Chinese_PRC_CI_AS NULL,rn [Machine] [int] NULL,rn [StandardValue] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [Remark] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [OrderNO] [int] NULL,rn [Flag] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [RelateID] [int] NULL,rn [ParentID] [int] NULL,rn [OpID] [int] NULL,rn [OpDate] [datetime] NULL,rn [CraftType] [int] NULL,rn CONSTRAINT [PK_PP_CraftData] PRIMARY KEY CLUSTERED rn(rn [CraftDataID] ASCrn)WITH (IGNORE_DUP_KEY = OFF) ON [PRIMARY]rn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnUSE [erp_zfym]rnGOrn/****** 对象: Table [dbo].[PP_CraftDataProperty] 脚本日期: 08/28/2013 09:49:06 ******/rnSET ANSI_NULLS ONrnGOrnSET QUOTED_IDENTIFIER ONrnGOrnSET ANSI_PADDING ONrnGOrnCREATE TABLE [dbo].[PP_CraftDataProperty](rn [CraftDataProID] [char](10) COLLATE Chinese_PRC_CI_AS NULL,rn [CraftDataID] [int] NULL,rn [DataPlatID] [int] NULL,rn [DataPFKID] [int] NULL,rn [CraftID] [int] NULL,rn [RowSign] [nvarchar](50) COLLATE Chinese_PRC_CI_AS NULL,rn [ProID] [int] NULL,rn [Data] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [Type] [int] NULL,rn [UseType] [int] NULL,rn [ProType] [int] NULL,rn [RateType] [int] NULL,rn [Rate] [decimal](10, 4) NULL,rn [Formula] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [remark] [nvarchar](255) COLLATE Chinese_PRC_CI_AS NULL,rn [OrderNO] [int] NULL,rn [Flag] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [DeletedFlg] [char](1) COLLATE Chinese_PRC_CI_AS NULL,rn [OpID] [int] NULL,rn [OpDate] [datetime] NULLrn) ON [PRIMARY]rnrnGOrnSET ANSI_PADDING OFFrnrnrnrnrnrn哪位大神能给个建议 或思路呀 没有多少分了 见谅
mybaits连接数据库(mysql)的怎删改查
包含mybaits的运行环境 即jar包, log4j 配置文件,全局配置文件SqlMapConfig.xml的配置及映射文件的配置,也就是对数据库的增删改查。
求大神指点指点!
我现在用asp.net 写一个采集。 rnrn有300多个城市 每个城市基本都有2400多条数据。rnrn我想采集起来快一点。 请问有什么好的办法吗!rnrn因为中间还要分析页面上的数据。采集图片等等。 所以速度相对比较慢rnrn那位大神能给点这样的思路或者代码。rn
求大神指点指点
我的是Ubuntu18.04系统;rn里面有docker,我想要把容器挂载到宿主机,报错“mount.nfs: access denied by server while mounting 192.168.0.1:/nfsdisk/”rn请大神们指点一下,这个问题怎么解决;
springboot demo 整合mybaits、已配置好
springboot 学习。整合mybaits、已配置好初学者部署可参考
用spring的配置连接mysql数据库出错,求大神指点
rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn
visual studio 2013配置gmp出错,求大神指点
我在工程里面加了gmp.h,gmp.lib还有LIBC.lib,在运行程序的时候提示:error LNK1104: 无法打开文件“libcp.lib”。加入libcp.lib之后又提示:rnerror LNK2019: 无法解析的外部符号 __imp__rand,该符号在函数 _main 中被引用rnerror LNK2019: 无法解析的外部符号 __imp__system,该符号在函数 _main 中被引用rnerror LNK2019: 无法解析的外部符号 __imp___hypot,该符号在函数 _hypot 中被引用rnerror LNK2019: 无法解析的外部符号 ___CxxFrameHandler3,该符号在函数 __unwindfunclet$??$construct@PADAAPAD@?$allocator@D@std@@QAEXPAPADAAPAD@Z$0 中被引用rnrn这个问题要如何解决呢?rnrn
MySQL连接数据库出错
安装完MySQL和ODBC for X64驱动后,在ODBC管理器中的中建立"mysql",并测试连接成功.rn都弄好好,用asp的连接dsn出错,说找不到的DSN.rn我又用VC写的后台连接数据库也是提示找不到DSN,出错图片如下:[img=http://hi.csdn.net/attachment/201008/8/287220_1281235098MbO1.jpg][/img]系统: win2003 sp2 x64rnrn此网站和后台程序在本机(XP)正常. 在另一服务器上也正常(此服务器系统为win2003 sp 32位)rn很怪异的问题.看有经验的朋友能不能帮我解决这问题?rn不要叫我安装32位系统,那不现实.rn"dsn=mysql",我也肯定在管理器中建立了的.名字也没错.对了半天.迷茫中....
MyEclipse连接数据库MySQL出错!
Error while performing database loging with the MySql driver communi cations link failure rn last packet sent to the server was 0 ms ago rnOpen connection 时错! 什么问题?rn请高手帮忙!
引用文件出错...求大神指点
[size=18px]linearList.h[/size][color=#FF0000][/color]rn[code=c]rntemplate rnclass LinearListrnrn LinearList();rn ~LinearList();rn virtual int Size() const= 0;rn virtual int length() const = 0;rn virtual int Search(T& x) const = 0;rn virtual int Locate(int i) const = 0;rn virtual bool getData(int i,T& x)const = 0;rn virtual void setData(int i,T& x) const = 0;rn virtual bool Insert(int i,T& x)const = 0;rn virtual bool Remove(int i,T& x) const = 0;rn virtual bool IsEmpuy() const = 0;rn virtual bool IsFull() const = 0;rn virtual void Sort() const = 0;rn virtual void input() const = 0;rn virtual void output() const = 0;rn virtual LinearList operator=(LinearList &L)=0;rnrnrn[img=https://forum.csdn.net/PointForum/ui/scripts/csdn/Plugin/003/monkey/27.gif][/img]rnrnrnrnrn[/code]rnrn[color=#FF0000]seqList.h[/color][size=18px][/size]rn[code=c]rn#includern#includern#include "../linearList.h"rnconst int defaultSize = 100;rntemplate rnclass SeqList:public LinearListrnrnprotected:rn T *data;rn int maxSize;rn int last;rn void reSize(int size);rnpublic:rn SeqList(int sz = defaultSize);rn SeqList(SeqList &L);rn ~SeqList()delete[] data;rn int Size()constreturn maxSize;rn int Leagth() constreturn last+1;rn bool getData(int i,T &x )constrn rn if(i>0 && i<=last+1)rn rn x = data[i-1];rn return true;rn rn elsern rn return false;rn rn rn void setData(int i,T &x)rn rn if(i>0 && i<=last+1)rn rn data[i-1] = x;rn rnrn rn bool Insert(int i,T& x);rn bool Remove(int i,T& x);rn bool IsEmpty()return (last == -1)?true;false;rn bool IsFull()return (last == maxSize - 1)?true;false;rn void input();rn void output();rn SeqList operator= (SeqList &L);rn rnrnrn[/code]rn[size=18px]seqList.cpp[/size][color=#FF0000][/color]rn[code=c]rn#include "../seqList.h"rntemplate rnSeqList::SeqList(int sz)rn if(sz > 0)rn rn maxSize = sz;rn last = -1;rn data = new T[maxSize];rn if(data = NULL)rn rn cerr<<"存储分配错误!"<rn#include "../seqList.h"rnrnrnint main()rnrn SeqList seq(8);rn rnrn[/code]rn[size=18px]项目结构[/size][color=#FF0000][/color]rn[img=https://img-bbs.csdn.net/upload/201410/31/1414740097_538631.png][/img]rn[size=18px]rn报错[/size][color=#FF0000][code=text]rn1>SeqList.cpprn1>f:\c++coding\study\study\seqlist.h(4) : error C2143: syntax error : missing ';' before 'const'rn1>f:\c++coding\study\study\seqlist.cpp(2) : error C2143: syntax error : missing ';' before 'template'rn1>test.cpprn1>f:\c++coding\study\study\seqlist.h(4) : error C2143: syntax error : missing ';' before 'const'rn1>f:\c++coding\study\study\test.cpp(5) : error C2143: syntax error : missing ';' before 'int'rn1>f:\c++coding\study\study\test.cpp(7) : error C2259: 'SeqList' : cannot instantiate abstract classrn1> withrn1> [rn1> T=intrn1> ]rn1> due to following members:rn1> 'int LinearList::length(void) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(7) : see declaration of 'LinearList::length'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'int LinearList::Search(T &) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(8) : see declaration of 'LinearList::Search'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'int LinearList::Locate(int) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(9) : see declaration of 'LinearList::Locate'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'void LinearList::setData(int,T &) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(11) : see declaration of 'LinearList::setData'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'bool LinearList::Insert(int,T &) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(12) : see declaration of 'LinearList::Insert'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'bool LinearList::Remove(int,T &) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(13) : see declaration of 'LinearList::Remove'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'bool LinearList::IsEmpuy(void) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(14) : see declaration of 'LinearList::IsEmpuy'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'bool LinearList::IsFull(void) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(15) : see declaration of 'LinearList::IsFull'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'void LinearList::Sort(void) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(16) : see declaration of 'LinearList::Sort'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'void LinearList::input(void) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(17) : see declaration of 'LinearList::input'rn1> withrn1> [rn1> T=intrn1> ]rn1> 'void LinearList::output(void) const' : is abstractrn1> withrn1> [rn1> T=intrn1> ]rn1> f:\c++coding\study\study\linearlist.h(18) : see declaration of 'LinearList::output'rn1> withrn1> [rn1> T=intrn1> ]rn1>Generating Code...rn[/code][/color]
求大神指点:为啥插入出错
1、用数据库版本为:mysql-5.7.13-winx64,通过mybatis插入数据。rn2、数据库中创建的表为:rnDROP TABLE IF EXISTS `hrm_user`;rnCREATE TABLE `hrm_user` (rn `ID` int(11) NOT NULL,rn `UserID` varchar(11) DEFAULT NULL,rn `UserName` varchar(255) DEFAULT NULL,rn `UserPassword` varchar(255) DEFAULT NULL,rn `UserPhone` varchar(32) DEFAULT NULL,rn `UserEmail` varchar(255) DEFAULT NULL,rn `UserAddress` varchar(255) DEFAULT NULL,rn `UserNativePlace` varchar(255) DEFAULT NULL,rn PRIMARY KEY (`ID`)rn) ENGINE=InnoDB DEFAULT CHARSET=utf8;rn3、映射文件中写的插入语句为,rn >rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (#id, jdbcType=INTEGER, #userID, jdbcType=VARCHAR, #userName, jdbcType=VARCHAR, #userPassword, jdbcType=VARCHAR)rn rn4、插入时的代码为:rn //使用"spring.xml"和"spring-mybatis.xml"这两个配置文件创建Spring上下文rn appContext = new ClassPathXmlApplicationContext(new String[]"spring.xml","spring-mybatis.xml");rn //从Spring容器中根据bean的id取出我们要使用的userService对象rn userService = (IUserService) appContext.getBean("userService");rn rn //创建实体 rn user = new UserEntity();rn user.setId(14);rn user.setUserID("00000012");rn user.setUserName("cxx");rn user.setUserPassword("cxx");rn user.setUserPhone("13700000007");rn user.setUserEmail("cxx163.com");rn user.setUserAddress("11");rn user.setUserNativePlace("11");rn //执行插入。 rn userService.addUser(user);rnrn5、服务对象UserService,注入了DAO层的接口IUserDaorn@Service("userService")rnpublic class UserServiceImpl implements IUserService rnrn /**rn * 使用@Autowired注解标注userDao变量。rn * 当需要使用userDao时,Spring就会自动注入,是按类型注入的。rn */rn @Autowiredrn IUserDao userDao;rn rn /* (non-Javadoc)rn * @see com.tocky.demo.data.service.IUserService#getUserByID(java.lang.String)rn */rn public UserEntity getUserByID(int userID) throws Exception rn rn UserEntity userEntity;rn rn userEntity = userDao.selectUserByID(userID);rn rn return userEntity;rn rn rnrn /* (non-Javadoc)rn * @see com.tocky.demo.data.service.IUserService#updateUser(java.lang.String)rn */rn public void addUser(UserEntity userEntity) throws Exception rn userDao.insertUser(userEntity);rn rnrnrn6、DAO层接口IUserDaornpublic interface IUserDao rn rn UserEntity selectUserByID(int id) throws Exception;rn rn int insertUser(UserEntity userEntity) throws Exception;rnrnrn7、执行时,报如下错误,rnorg.springframework.jdbc.BadSqlGrammarException: rn### Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (1' at line 1rn### The error may involve com.tocky.demo.data.dao.userdao.IUserDao.insertUser-Inlinern### The error occurred while setting parametersrn### SQL: > insert into hrm_user (ID, UserID, UserName, UserPassword) values (?, ?, ?, ?)rn### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (1' at line 1rn; bad SQL grammar []; nested exception is java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (1' at line 1rnjava.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (1' at line 1rnrn### Error updating database. Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (1' at line 1rn### The error may involve com.tocky.demo.data.dao.userdao.IUserDao.insertUser-Inlinern### The error occurred while setting parametersrn### SQL: > insert into hrm_user (ID, UserID, UserName, UserPassword) values (?, ?, ?, ?)rn### Cause: java.sql.SQLSyntaxErrorException: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near '>rn insert into hrm_user (ID, UserID, UserName, UserPassword) rn values (1' at line 1rn; bad SQL grammar []rnrn[]rnrn8、在报错中的SQL语句放到Navicat for MySQL中执行又不会报错。rninsert into hrm_user (ID, UserID, UserName, UserPassword) values (14, '00000012', 'cxx', 'cxx')rnrn求大神们帮忙看看错在那里哇?实在太奇怪了。rnrn
mysql 和mybaits
我在mysql中写这个代码 能够实现,但在mybatis中总是报错 求大神rnSET @counter=0;rnselect @counter:=@counter+1 AS ranking ,score ,userName,pictureUrl,birthday,sex fromrn(SELECT User_id as userId,MAX(GameIntegral_score) as score,u.user_nickname as userName,u.User_pictureUrl as pictureUrl,u.User_birthday as birthday,u.User_sex as sexrn FROM tab_gameintegral i LEFT JOIN tab_userinfo u ON i.User_id=u.ID rn where GameInfo_mark=1500275229388 AND User_id in (rn select userFriend_friendId from tab_userfriend where userFriend_user_id='b3c39c40f5524871b4854c052ec08409'and userFriend_status=1) rn group by User_id order by score DESC LIMIT 0,10)z
找不到出错原因,求大神指点
import java.util.Scanner;rnpublic class Args rn public static void main(String[] args)rn Scanner in=new Scanner(System.in);rn int size=10;rn int[] a=new int[size];rn for(int i=0;i
引用出错,求大神指点。ASP.NET
[img=https://img-bbs.csdn.net/upload/201405/10/1399714939_271168.png][/img][img=https://img-bbs.csdn.net/upload/201405/10/1399714961_14763.png][/img]rn这本来是个书店项目,我想改成鞋店,就是把book全部换成shose。代码中的我全部替换了,数据库也改了。但是好像引用中还有,我不知道怎么改啊
MyEclipse配置连接数据库出错!
我配置连接数据库时出现了图上的错误rn各位高手帮帮忙啊 !~rn我的毕业设计用的!~rn着急!~~~~~~~~~~~~~~~~~~~~~~~
连接数据库出现异常。。求指点
一段很简单的源代码rn[img=https://img-bbs.csdn.net/upload/201707/09/1499600987_401437.png][/img]rnrn不知道哪里错了,刚学,看不太懂是什么原因rn[img=https://img-bbs.csdn.net/upload/201707/09/1499600751_303620.png][/img]
MyEclipse连接MySQL连不上,求大神指点!!!!!!!
RT,,,,[img=https://img-bbs.csdn.net/upload/201507/22/1437571162_709124.png][/img]rn然后这是出错为地方。。。rn[img=https://img-bbs.csdn.net/upload/201507/22/1437571209_674102.png][/img]rn完全想不通啊,,URL有问题???
mysql启动不了,求大神指点,感激不尽!
2017-10-09T01:42:06.484929Z mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid endedrn2017-10-09T01:42:42.000990Z mysqld_safe Starting mysqld daemon with databases from /opt/mysql/datarn2017-10-09T01:42:42.157912Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).rn2017-10-09T01:42:42.157977Z 0 [Note] --secure-file-priv is set to NULL. Operations related to importing and exporting data are disabledrn2017-10-09T01:42:42.157996Z 0 [Note] /usr/local/mysql/bin/mysqld (mysqld 5.7.16-log) starting as process 21895 ...rn2017-10-09T01:42:42.161194Z 0 [Note] InnoDB: PUNCH HOLE support not availablern2017-10-09T01:42:42.161213Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtinsrn2017-10-09T01:42:42.161216Z 0 [Note] InnoDB: Uses event mutexesrn2017-10-09T01:42:42.161220Z 0 [Note] InnoDB: GCC builtin __sync_synchronize() is used for memory barrierrn2017-10-09T01:42:42.161228Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.3rn2017-10-09T01:42:42.161230Z 0 [Note] InnoDB: Using Linux native AIOrn2017-10-09T01:42:42.161378Z 0 [Note] InnoDB: Number of pools: 1rn2017-10-09T01:42:42.161442Z 0 [Note] InnoDB: Using CPU crc32 instructionsrn2017-10-09T01:42:42.181498Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128Mrn2017-10-09T01:42:42.186230Z 0 [Note] InnoDB: Completed initialization of buffer poolrn2017-10-09T01:42:42.187139Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().rn2017-10-09T01:42:55.945202Z 0 [Warning] InnoDB: 1048576 bytes should have been read. Only 917504 bytes read. Retrying for the remaining bytes.rn2017-10-09T01:43:09.891588Z 0 [Warning] InnoDB: Retry attempts for reading partial data failed.rn2017-10-09T01:43:10.079210Z 0 [ERROR] InnoDB: [b]Tried to read 1048576 bytes at offset 2097152, but was only able to read 917504[/b]rn2017-10-09T01:43:10.079224Z 0 [ERROR] InnoDB: Operating system error number 5 in a file operation.rn2017-10-09T01:43:10.079236Z 0 [ERROR] InnoDB: Error number 5 means 'Input/output error'rn2017-10-09T01:43:10.079241Z 0 [Note] InnoDB: Some operating system error numbers are described at http://dev.mysql.com/doc/refman/5.7/en/operating-system-error-codes.htmlrn2017-10-09T01:43:10.079246Z 0 [ERROR] InnoDB: File (unknown): 'read' returned OS error 105. Cannot continue operationrn2017-10-09T01:43:10.079250Z 0 [ERROR] InnoDB: Cannot continue operation.rn2017-10-09T01:43:10.384121Z mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
jsp连接mysql异常,求大神指点
<%@ page language="java" contentType="text/html; charset=utf-8"rn pageEncoding="utf-8"%>rn<%@ page import="java.util.*,java.text.*" %>rn<%@ page import="javax.sql.*,javax.naming.*,webbook.util.*" %>rn<%@ page import="java.sql.*,com.mysql.jdbc.Driver" %>rn<% String context=request.getContextPath(); %>rnrnrn guestbookrnrnrnString driverName="com.mysql.jdbc.Driver";rnString url = "jdbc:mysql://127.0.0.1:8080/test?useUnicode=true&characterEncoding=UTF-8";rnString username = "root";rnString password = "xiaopu123";rnString sql="insert into guestbook(id,name,email,phone,title,content,time) values (gb_seq.nextval,?,?,?,?,?,?)";rnint result=0;rnConnection conn=null;rnrequest.setCharacterEncoding("utf-8");rnString name = request.getParameter("name");rnString title = request.getParameter("title");rntryrnrn Class.forName(driverName);rn conn=DriverManager.getConnection(url,username,password);rn PreparedStatement pstmt = conn.prepareStatement(sql);rn pstmt.setString(1, StringUtil.filterHtml(name));rn pstmt.setString(2, request.getParameter(request.getParameter("email")));rn pstmt.setString(3, request.getParameter(request.getParameter("phone")));rn pstmt.setString(4, StringUtil.filterHtml(title));rn pstmt.setString(5, request.getParameter("content"));rn SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-ddhh:mm:ss");rn pstmt.setString(6, sdf.format(new java.util.Date()));rn result = pstmt.executeUpdate();rn pstmt.close();rn catch (ClassNotFoundException e)rn e.printStackTrace();rn out.println("!");rn catch(SQLException e)rn e.printStackTrace();rn out.println("无法连接数据库,请检查数据库连接是否正确!");rn rnif(result==0)rn out.println("对不起,添加留言不成功,请您重新输入! ");rn out.println("添加新的留言内容 ");rn elsern out.println("祝贺您,成功添加留言。 ");rn out.println("查看所有留言内容 ");rn rn rn%>rn rn rnCopyright © 2016 baidu.comrnrnrnrnrnrn错误信息:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failurernrnPS:mysql-connector-java.jar包已经放在lib目录下,classpath也配置好了,求大神指点啊啊啊啊啊啊啊rnrn
myEclipse连接数据库mysql的配置
正在学习java的WEB应用,于是做了个在环境myeclipse中连接下mysql的过程的图解
Qt连接数据库Mysql(配置)
windows .pro文件 #在windows下使用第三方库的方法 #D:\mysql\sql\lib LIBS += -LD:\mysql\sql\lib -llibmysql 头文件,包含mysql.h,注意是使用斜杠,不是反斜杠, c语言风格 //路径中使用/符号 //#include <windows.h> //没有这个会报错找不到SOCKET //#include <D:/mysql/sql/include/mysql.h> Linux .pro文件 #在linux下使用第三方库的方法 L
SSM连接数据库Mysql的配置
class="org.springframework.jdbc.datasource.DriverManagerDataSource">
配置双数据源出错,求大神
[code=java]rnrnrnrn rn rn rnrn rn rnrn rn rnrnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn rn rn rn rnrn rn rn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrn rn rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rnrnrn[/code]rnrn
spring aop配置出错,求大神帮忙
我在使用spring mvc 的时候,想学习下aop的用法,但是在配置的时候出错了。由于在applicationContext.xml中,通过对所有Service进行事务增强,因此Spring容器会对所有所有XxxService的Bean进行动态代理,在配置aop的时候就会报错,请帮忙解决下.....rnapplicationContext.xm 代码:rnrn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn rn com.system.service.UserLoginServicern rn rn rn rn rn rn userInterceptorrn rn rn
求大神帮忙指点指点。
rn 现在碰到如下问题 、 需要查询几个平台下的全部店铺 (一个平台下有若干个店铺) 、使用如下语句 。rnrn[code=sql]rnSELECTrn `paipai_shop`.`sellerUin` AS `shopId`,rn `paipai_shop`.`shopName` AS `shopName`rnFROMrn `paipai_shop`rnUNION ALLrn SELECTrn `dangdang_shop`.`id` AS `shopId`,rn `dangdang_shop`.`shopName` AS `shopName`rn FROMrn `dangdang_shop`rn UNION ALLrn SELECTrn `vjia_shop`.`id` AS `shopId`,rn `vjia_shop`.`shopName` AS `shopName`rn FROMrn `vjia_shop`rn UNION ALLrn SELECTrn `amazon_shop`.`id` AS `shopId`,rn `amazon_shop`.`shopName` AS `shopName`rn FROMrn `amazon_shop`rn UNION ALLrn SELECTrn `taobao_shop`.`shopId` AS `shopId`,rn `taobao_shop`.`nick` AS `shopName`rn FROMrn `taobao_shop`rn UNION ALLrn SELECTrn `jingd_shop`.`shopId` AS `shopId`,rn `jingd_shop`.`shopName` AS `shopName`rn FROMrn `jingd_shop`rn UNION ALLrn SELECTrn `yhd_shop`.`shopId` AS `shopId`,rn `yhd_shop`.`shopName` AS `shopName`rn FROMrn `yhd_shop`[/code]rn 查询出来后 、 因为不同平台下的店铺可能有相同的 shopId 、 导致页面上相同shopid的店铺只显示一个条数据 。 求有无解决方法 。 rn rn rn 我曾经尝试给不同平台下的店铺shopid 后面 拼接 数字 譬如 :[color=#FF0000]`yhd_shop`.`shopId`+0[/color] AS `shopId` 结果 没有用 。哪位大神给个解决方法?
windows 连接 Linux mysql 出错 求指点
我在Linux mysql 服务器上设置了一个 myuser 角色 赋予了 远程登录的权限 在windows mysql命令行下 输入 mysql -h -u -prn出现了 连接错误 error 2003 :can not connect to mysql server on '192.168.*.*'<10065> 求各位大侠 指教一下 这是怎么回事呢
求大神指点哈
这个错误一直循环,怎么回事哦,能运行的项目都运行不起了,空项目都不能运行rn03-15 16:16:52.884 23816-23816/? A/Looper: Thread identity changed from 0x276000004fcf to 0x276000005d08 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn03-15 16:16:52.886 23816-23816/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!rn03-15 16:16:52.889 23816-23816/? E/ServiceManager: error in getServicern android.os.TransactionTooLargeExceptionrn at android.os.BinderProxy.transactNative(Native Method)rn at android.os.BinderProxy.transact(Binder.java:509)rn at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)rn at android.os.ServiceManager.getService(ServiceManager.java:55)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2503)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2501)rn at android.util.Singleton.get(Singleton.java:34)rn at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:91)rn at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:52.894 23816-23816/? E/AndroidRuntime: Error reporting WTFrn java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.IActivityManager.handleApplicationWtf(android.os.IBinder, java.lang.String, boolean, android.app.ApplicationErrorReport$CrashInfo)' on a null object referencern at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:52.895 23816-23816/? E/AndroidRuntime: Original WTF:rn android.util.Log$TerribleFailure: Thread identity changed from 0x276000004fcf to 0x276000005d08 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn at android.util.Log.wtf(Log.java:291)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.188 23814-23814/? A/Looper: Thread identity changed from 0x276000004fcf to 0x276000005d06 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn03-15 16:16:53.189 23814-23814/? E/JavaBinder: !!! FAILED BINDER TRANSACTION !!!rn03-15 16:16:53.191 23814-23814/? E/ServiceManager: error in getServicern android.os.TransactionTooLargeExceptionrn at android.os.BinderProxy.transactNative(Native Method)rn at android.os.BinderProxy.transact(Binder.java:509)rn at android.os.ServiceManagerProxy.getService(ServiceManagerNative.java:123)rn at android.os.ServiceManager.getService(ServiceManager.java:55)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2503)rn at android.app.ActivityManagerNative$1.create(ActivityManagerNative.java:2501)rn at android.util.Singleton.get(Singleton.java:34)rn at android.app.ActivityManagerNative.getDefault(ActivityManagerNative.java:91)rn at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.195 23814-23814/? E/AndroidRuntime: Error reporting WTFrn java.lang.NullPointerException: Attempt to invoke interface method 'boolean android.app.IActivityManager.handleApplicationWtf(android.os.IBinder, java.lang.String, boolean, android.app.ApplicationErrorReport$CrashInfo)' on a null object referencern at com.android.internal.os.RuntimeInit.wtf(RuntimeInit.java:399)rn at android.util.Log$1.onTerribleFailure(Log.java:104)rn at android.util.Log.wtf(Log.java:294)rn at android.util.Log.wtf(Log.java:256)rn at android.os.Looper.loop(Looper.java:220)rn at android.os.HandlerThread.run(HandlerThread.java:61)rn03-15 16:16:53.196 23814-23814/? E/AndroidRuntime: Original WTF:rn android.util.Log$TerribleFailure: Thread identity changed from 0x276000004fcf to 0x276000005d06 while dispatching to android.os.Handler com.qihoo.appstore.e@2ef8850e what=0rn at android.util.Log.wtf(Log.java:291)rn at android.util.Log.wtf(Log.java:256)rn rn
求大神指点!谢谢
[img=https://img-bbs.csdn.net/upload/201312/10/1386654407_153499.jpg][/img]我想实现如图中间游戏房间那一块界面。但是还差点什么呢?求大神指点,label button上的图片还没加上去rn程序如下:rnimport javax.swing.JButton;rnimport javax.swing.JFrame;rnimport javax.swing.JLabel;rnrnpublic class ScendGui extends JFrame rn private static int num = 1;rn private int jb_size=40;rn private int jl_size=45;rn private int fgap = 20;//行间隔rn private int fgap2 = 20;//列间隔rn private int rgap = 35;//两房间间隔rn private int mgap =2*jb_size+jl_size+rgap; //两桌子间隔rn private int fjb2gap = fgap+jl_size+jb_size;//jb2的首距离rn private int fjlgap = fgap+jl_size; //jl的首距离rn public ScendGui(String s)rn super(s);rn rn this.setLocation(100, 100);rn this.setSize(600, 600);rn for(int i = 1;i<=5;i++)rn for(int j= 0;j<=2;j++)rn rn JButton jb1= new JButton("椅子");rn jb1.setBounds(fgap+j*mgap, fgap2, jb_size, jb_size);rn JButton jb2= new JButton("椅子"); rn jb2.setBounds(fjb2gap+j*mgap, fgap2, jb_size, jb_size);rn JLabel jl= new JLabel("桌子");rn jl.setBounds(fjlgap+j*mgap, fgap2,jl_size, jl_size);rn String str = Integer.toString(num); rn JLabel label = new JLabel("-"+str+"-");rn num = Integer.parseInt(str);rn label.setBounds(mgap/2+j*mgap, 2*jb_size, 20, 20);rn this.add(jb1);rn this.add(jb2);rn this.add(jl);rn this.add(label);rn rn num++;rn fgap2 = (fgap2+2*jb_size)*i+20;rn rn this.setVisible(true);rn rn rn rn public static void main(String[] args) rn new ScendGui("游戏大厅");rnrn rnrnrn
SOS,求大神指点
我想在网站首页上放一个JS,动态捕获国际油价,铜价,请问怎么实现?
求大神指点
下面是迷宫寻找路径的方法,用的堆栈存储结构,要把堆栈的变化显示在下面的图形界面上,该怎么办啊[img=http://img.my.csdn.net/uploads/201303/01/1362135323_7628.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135480_8689.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135492_9720.jpg][/img][img=http://img.my.csdn.net/uploads/201303/01/1362135508_5756.jpg][/img]
求大神指点,谢谢!!
#include rnusing namespace std;rnclass Testrnrn int a;rn static int b;rn public:rn Test(int n)rn rn a=n;rn b++;rn rn void Print()rn rn cout<<"a="<
求大神指点????
一个抽奖的需求:rn一等奖1000个,二等奖30万个,三等奖30万个。如何快速的随机抛出一个奖品?我用了数组,把奖品放到数组里面,然后随机抛出一个,这种方式感觉有点慢,需要1到2秒的时间才能得到一个奖品。有没有别的方法,求大神指点?
求大神指点一二
数据库连接rn[code=php]$rs = mysql_query("select id,degree,min,max,prize,v from magic_config");rnwhile($r = mysql_fetch_assoc($rs)) rn $prize_arr[] = $r;rnrnprint_r($prize_arr);[/code]rn看了下 出来的是rnArray ( rn[0] => Array ( [id] => 1 [degree] => 1 [min] => 1 [max] => 5 [prize] => 一等奖 [v] => 1 ) rn[1] => Array ( [id] => 2 [degree] => 122 [min] => 97 [max] => 125 [prize] => 二等奖 [v] => 1 ))rnrn但想要的是 rn$prize_arr = array( rnarray('id'=>1,'degree'=>1,'min'=>1,'max'=>5,'prize'=>'一等奖','v'=>89), rnarray('id'=>2,'degree'=>32,'min'=>7,'max'=>35,'prize'=>'不要灰心','v'=>1)); rn该怎么办?
求android大神指点
这是我实现的仿网易客户端的源码,里面用了fragment,tabhost等,功能已经实现了一大半,rn但是还有个问题一直解决不了,困了我两天了,rn1.就是点击左边隐藏部分不同的位置,然后右边显示到不同的fragment,我一直搞不定rn2.怎么把每一个fragment弄成一个activity,这样自己感觉方便继承自己的BaseActivity,方便管理。rnrn这是下载连接 [url=http://download.csdn.net/detail/agareminder/5219316][/url]rnrn谢谢啦,我这两天特别着急需要,哪个大神搞定了我必有重谢,求发到邮箱,求大神破rn我邮箱visonnum@gmail.comrnqq:894754617 在线等答案
求delphi 的大神指点
用户访问我Web服务器上的ISAPI DLL,可是报告:“Invalid filename"(无效的文件名),然而文件的确存在的。对了,我的数据库在一台Novell 服务器上。这是为什么呢?求指点
新人求大神指点下。。。
请问exec和execute有什么区别吗?rn为什么要加上exec?rn请问有储存过程这方面基础的东西吗?看书看到这里全部都看不懂了rn最后print@sqlStr什么意思呢?
相关热词 c# login 居中 c# 考试软件 c# 自然语言分析 c# 分段读取文件 c# 泛型反射 c#打断点 c# 时间转多少秒 c# 线程函数加参数 c# modbus 读取 c#查询集合表