tomcat启动项目报错nested exception is org.hibernate.MappingException [问题点数:20分]

Bbs1
本版专家分:0
结帖率 66.67%
求助:nested exception is org.hibernate.MappingException
大家帮我看看这个是什么问题呢,被这个问题搞迷糊了,呵呵rnrnHTTP Status 500 - rnrn--------------------------------------------------------------------------------rnrntype Exception reportrnrnmessage rnrndescription The server encountered an internal error () that prevented it from fulfilling this request.rnrn<em>exception</em> rnrnjavax.servlet.ServletException: Unknown entity: com.hanke.service.entity.muju; <em>nested</em> <em>exception</em> is org.hibernate.MappingException: Unknown entity: com.hanke.service.entity.mujurn org.apache.struts.action.RequestProcessor.processException(RequestProcessor.java:535)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:433)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.springframework.orm.hibernate3.HibernateSystemException: Unknown entity: com.hanke.service.entity.muju; <em>nested</em> <em>exception</em> is org.hibernate.MappingException: Unknown entity: com.hanke.service.entity.mujurn org.springframework.orm.hibernate3.SessionFactoryUtils.convertHibernateAccessException(SessionFactoryUtils.java:658)rn org.springframework.orm.hibernate3.HibernateAccessor.convertHibernateAccessException(HibernateAccessor.java:412)rn org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:377)rn org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:632)rn com.hanke.service.dao.mujuDAO.save(mujuDAO.java:11)rn com.hanke.service.biz.mujuBiz.save(mujuBiz.java:27)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn $Proxy1.save(Unknown Source)rn com.hanke.struts.action.LoginAction.execute(LoginAction.java:56)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnroot cause rnrnorg.hibernate.MappingException: Unknown entity: com.hanke.service.entity.mujurn org.hibernate.impl.SessionFactoryImpl.getEntityPersister(SessionFactoryImpl.java:514)rn org.hibernate.impl.SessionImpl.getEntityPersister(SessionImpl.java:1302)rn org.hibernate.event.def.AbstractSaveEventListener.saveWithGeneratedId(AbstractSaveEventListener.java:89)rn org.hibernate.event.def.DefaultSaveOrUpdateEventListener.saveWithGeneratedOrRequestedId(DefaultSaveOrUpdateEventListener.java:186)rn org.hibernate.event.def.DefaultSaveEventListener.saveWithGeneratedOrRequestedId(DefaultSaveEventListener.java:33)rn org.hibernate.event.def.DefaultSaveOrUpdateEventListener.entityIsTransient(DefaultSaveOrUpdateEventListener.java:175)rn org.hibernate.event.def.DefaultSaveEventListener.performSaveOrUpdate(DefaultSaveEventListener.java:27)rn org.hibernate.event.def.DefaultSaveOrUpdateEventListener.onSaveOrUpdate(DefaultSaveOrUpdateEventListener.java:70)rn org.hibernate.impl.SessionImpl.fireSave(SessionImpl.java:530)rn org.hibernate.impl.SessionImpl.save(SessionImpl.java:518)rn org.hibernate.impl.SessionImpl.save(SessionImpl.java:514)rn org.springframework.orm.hibernate3.HibernateTemplate$12.doInHibernate(HibernateTemplate.java:635)rn org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:372)rn org.springframework.orm.hibernate3.HibernateTemplate.save(HibernateTemplate.java:632)rn com.hanke.service.dao.mujuDAO.save(mujuDAO.java:11)rn com.hanke.service.biz.mujuBiz.save(mujuBiz.java:27)rn sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn java.lang.reflect.Method.invoke(Method.java:585)rn org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:304)rn org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)rn org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)rn org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)rn org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)rn $Proxy1.save(Unknown Source)rn com.hanke.struts.action.LoginAction.execute(LoginAction.java:56)rn org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)rn org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)rn org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)rn org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:432)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:709)rn javax.servlet.http.HttpServlet.service(HttpServlet.java:802)rnrnrnnote The full stack trace of the root cause is available in the Apache Tomcat/5.5.20 logs.rnrnrn--------------------------------------------------------------------------------rnrnApache Tomcat/5.5.20rnrn
启动web项目的时候出现java.lang.NoSuchFieldError: TRACE的缘由
首先下你看一下这个异常:NoSuchFieldError 提示的是与项目的log版本发生冲突rn我的项目用的是log1.2.8 rn解决方案是换掉这个版本就可以了我换过之后的是1.2.15rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.co
使用Hibernate过程中出现entity class not found 问题的解决思路
<em>启动</em><em>tomcat</em> 后出现如下错误:rn严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListener rnorg.springframework.beans.factory.BeanCreationE
spring boot 两个war包同时在tomcat中部署后启动报错
Caused by: org.springframework.jmx.export.UnableToRegisterMBeanException: Unable to register MBean [HikariDataSource (null)] with key 'dataSource'; <em>nested</em> <em>exception</em> is javax.management.InstanceAlready...
加上事务aop后项目启动报错解决方法参考
BeanPostProcessor before instantiation of bean failed; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.springframework.aop.support.DefaultBeanFactoryPointcutAdvisor#0': Initialization of bean
第一次启动springboot
第一次集成springboot的心酸历程
Linux下Tomcat项目启动报错
                            Linux下Tomcat项目<em>启动</em>报错org.springframework.beans.factory.CannotLoadBeanClassException: Error loading class [com.bw.yun.service.impl.UserServiceImpl] for bean with name 'userServ...
Javaweb项目运行报错,报错如下!求解决!!!
org.springframework.web.util.NestedServletException: Request processing failed; <em>nested</em> <em>exception</em> is org.springframework.transaction.CannotCreateTransactionException: Could not open JDBC Connection for...
启动项目时出现java.io.EOFException异常
这是由于Tomcat导致的,因此删除<em>tomcat</em>将项目移除,然后重新添加toamcat,添加项目重启就好了。
javax.naming.NameNotFoundException 错误无法找到数据源的解决方案
在最近的项目中使用的是websphere容器进行部署web项目,但是每次<em>启动</em>项目的时候都会报以下错误 njavax.naming.NameNotFoundException:Context: 03-703-1354Node01Cell/nodes/03-703-1354Node01/servers/server1, name: jdbc/SCANSYS: First component in nam
tomcat启动项目异常: 2 字节的 UTF-8 序列的字节 2 无效。
严重: Servlet.service() for servlet [jsp] in context with path [/test] threw <em>exception</em> [org.apache.jasper.JasperException: XML parsing error on file org.apache.<em>tomcat</em>.util.scan.MergedWebXml] with root c
巨坑,spring boot 打成war包部署到Tomcat
巨坑,spring boot 打成war包部署到Tomcatn1)主要流程n环境:nspring boot 2.1.1.RELEASEnapache-<em>tomcat</em>-8.5.35njdk 1.8.0_77n参考网上修改n1&amp;amp;amp;amp;amp;gt; pom.xmln将jar改成warn【插图】n去除自带<em>tomcat</em>n【插图】nnorg.springframework.bootnspring-boot-starter-...
关于启动redis+jetty,启动项目时报错如下(已经成功解决)
2018-07-30 14:46:16,631 [main] ERROR org.springframework.web.context.ContextLoader - Context initialization failednorg.springframework.beans.factory.BeanCreationException: Error creating bean with nam...
tomcat启动web项目报错
<em>启动</em>项目是报这个错rn rnrnERROR [localhost-startStop-1] - Context initialization failedrnjava.lang.IllegalArgumentExceptionrn    at org.springframework.asm.ClassReader.(Unknown Source)rn    at org.springframewo
eclipse创建maven项目启动报错
eclipse 创建maven 项目 动态web工程完整示例 n(参考https://www.cnblogs.com/noteless/p/5213075.html)nneclipse的版本为:Eclipse Java Oxygen n默认只有J2SE,没有J2EE n升级J2EE(参考https://blog.csdn.net/YIII_TIAN/article/details/78991782...
Injection of resource dependencies failed—方法增强时的报错原因与解决
在学习Spring——aop的时候,遇到了下面的报错nInjection of resource dependencies failed; <em>nested</em> <em>exception</em> nis org.springframework.beans.factory.BeanNotOfRequiredTypeException:n Bean named 'studentService' is expected to...
使用maven tomcat7插件启动项目时出现错误java.lang.LinkageError
HTTP Status 500 - java.lang.LinkageError: loader constraint violation: when resolving interface method "javax.servlet.jsp.JspApplicationContext.getExpressionFactory()Ljavax/el/ExpressionFactory;" the
Eclipse导入项目启动报错(超时或者Exception in thread main)
1、超时解决办法。n   找到<em>tomcat</em>修改Timeouts下面Start<em>启动</em>时间。n2、Exception thread in the main解决办法。n   找到window---preferences--java--installed jres--找到对应jdk编辑default VM arguments。添加内存设置  -Xms512m -Xmx1024m -XX:MaxPerm
mybatis启动不了,nested exception is org.xml.sax.SAXParseExceptionpublicId,文档类型声明包含或指向的标记声明必须格式正确。
今天遇到一个问题很是郁闷。一个项目在这边的虚拟机中运行得好好的,放到另一个地方就运行不起来了,日志打印如下。又是换jar包又是换<em>tomcat</em>都一个样。潘总出山了。这时为什么会出现这么一个ip : 192.168.255.66。rn?正常<em>启动</em>时日志里也没有出现ip的啊,但那些正常<em>启动</em>的<em>tomcat</em>所在的机器都是可以访问外网的,这一台却不行,是网络的问题吗?spring-mybatis.xml有这么一
IDEA启动Tomcat时控制台报错原因之一,导致Tomcat启动不了:ERROR - Context initialization failed
Error creating bean with name 'orderItemServiceImpl': Injection of autowired dependencies failed; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.BeanCreationException: Could not autowire field:
使用jenkins启动SpringBoot报错
jenkins<em>启动</em>SringBoot偶然报错!!!jenkins<em>启动</em>SpringBoot偶尔会报错!1、环境2、代码3、错误日志njenkins<em>启动</em>SpringBoot偶尔会报错!n<em>启动</em>SpringBoot的项目的时候。n1、环境nnspringboot ;njdk 1.8 ;njenkins部署 。nn2、代码n1.使用了AsyncTask;nimport org.springframework...
springcloud启动报错
jFailed to start bean 'eurekaAutoServiceRegistration'; <em>nested</em> <em>exception</em> is jnn nn是spring  jar包顺序问题,试试放到最前面。
hibernate常见错误及解决方法总结
1、org.hibernate.PropertyNotFoundException: field [cid] not found on org.sihai.shop.categorySecond.CategorySecond解决:一般是在hbm.xml文件中的属性和实体中的属性不对应。2、org.hibernate.MappingException: An association from the
jdk版本及编译版本导致服务器部署UnsupportedClassVersionError错误
 nn类似于:nnHTTP Status 500 - Handler processing failed; <em>nested</em> <em>exception</em> is java.lang.UnsupportedClassVersionError: com/hikvision/cms/api/common/util/Digestsnn nn nn原因是:nn是编译器版本问题。编译代码的编译器级别是 1.7 ,而服务器运...
MyEclipse 10 部署项目时报错,抛出java.lang.NullPointerException异常的解决方法
在部署项目时,点击deploy,无反应。查看错误,抛出的是空指针指针异常,如下:rnjava.lang.NullPointerException     rnrnat com.genuitec.eclipse.ast.deploy.core.Deployment.(Unknown So...)rn...rn经查询,终于解决问题,把方法呈上。rn1、进入到工作空间,找到/.metadata/.plu
ssm项目出错
Could not resolve type alias ''. Cause: java.lang.ClassNotFoundException: nn请看图片中的 resultType 属性,我没有设置值。真是想死的心都有了!希望大家不要像我一样粗心!!一定要设置。这个单词的意思就是返回类型!!
【jmeter】分布式模式运行的设置方法及报错解决过程
待更新
nested exception is org.hibernate.MappingException: Named query not known:
Exception in thread "main" org.springframework.orm.hibernate3.HibernateSystemException: Named query not known: select count(*) from (select m.cpuId cpuId, m.meterId meterId, cm.reading reading,cm.datetime datetime, o.Name operatorName,b.name buildingName,d.name departmentName, h.hNum hubId,h.Name hubName from Meter m, relationUserMeter rum, operators o, department d, relationBuildingMeter rbm, buildings b, Hubs h,(select r.cpuId,r.reading,r.dt datetime from readings r, (select cpuId, max(dt) datetime from readings group by cpuId) as temptable where r.cpuId=temptable.cpuId and r.dt=temptable.datetime) as cm where cm.cpuId=m.cpuId and m.cpuId=rum.cpuId and rum.operatorId=o.operatorId and o.departmentId=d.id and m.cpuId=rbm.cpuId and rbm.buildingId=b.id and cm.cpuId=rum.cpuId and cm.cpuId=rbm.cpuId and m.hub=h.hNum and h.hNum=?) a; <em>nested</em> <em>exception</em> is org.hibernate.MappingException: Named query not known: select count(*) from (select m.cpuId cpuId, m.meterId meterId, cm.reading reading,cm.datetime datetime, o.Name operatorName,b.name buildingName,d.name departmentName, h.hNum hubId,h.Name hubName from Meter m, relationUserMeter rum, operators o, department d, relationBuildingMeter rbm, buildings b, Hubs h,(select r.cpuId,r.reading,r.dt datetime from readings r, (select cpuId, max(dt) datetime from readings group by cpuId) as temptable where r.cpuId=temptable.cpuId and r.dt=temptable.datetime) as cm where cm.cpuId=m.cpuId and m.cpuId=rum.cpuId and rum.operatorId=o.operatorId and o.departmentId=d.id and m.cpuId=rbm.cpuId and rbm.buildingId=b.id and cm.cpuId=rum.cpuId and cm.cpuId=rbm.cpuId and m.hub=h.hNum and h.hNum=?) arnCaused by: org.hibernate.MappingException: Named query not known: select count(*) from (select m.cpuId cpuId, m.meterId meterId, cm.reading reading,cm.datetime datetime, o.Name operatorName,b.name buildingName,d.name departmentName, h.hNum hubId,h.Name hubName from Meter m, relationUserMeter rum, operators o, department d, relationBuildingMeter rbm, buildings b, Hubs h,(select r.cpuId,r.reading,r.dt datetime from readings r, (select cpuId, max(dt) datetime from readings group by cpuId) as temptable where r.cpuId=temptable.cpuId and r.dt=temptable.datetime) as cm where cm.cpuId=m.cpuId and m.cpuId=rum.cpuId and rum.operatorId=o.operatorId and o.departmentId=d.id and m.cpuId=rbm.cpuId and rbm.buildingId=b.id and cm.cpuId=rum.cpuId and cm.cpuId=rbm.cpuId and m.hub=h.hNum and h.hNum=?) arn at org.hibernate.impl.AbstractSessionImpl.getNamedQuery(AbstractSessionImpl.java:70)rn at org.hibernate.impl.SessionImpl.getNamedQuery(SessionImpl.java:1260)rn at org.springframework.orm.hibernate3.HibernateTemplate$32.doInHibernate(HibernateTemplate.java:899)rn at org.springframework.orm.hibernate3.HibernateTemplate.execute(HibernateTemplate.java:362)rn at org.springframework.orm.hibernate3.HibernateTemplate.findByNamedQuery(HibernateTemplate.java:897)rn at com.ehongyue.commons.dao.impl.QuerySupportImpl.findPageByNamedQuery(QuerySupportImpl.java:36)rn at com.ehongyue.commons.dao.impl.QuerySupportImpl.findPageByNamedQuery(QuerySupportImpl.java:28)rn at com.qj.example.service.impl.HubManageServiceimpl.getList(HubManageServiceimpl.java:90)rn at com.qj.example.service.impl.HubManageServiceimpl$$FastClassByCGLIB$$99f7e2a4.invoke()rn at net.sf.cglib.proxy.MethodProxy.invoke(MethodProxy.java:149)rn at org.springframework.aop.framework.Cglib2AopProxy$CglibMethodInvocation.invokeJoinpoint(Cglib2AopProxy.java:674)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:154)rn at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:107)rn at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:176)rn at org.springframework.aop.framework.Cglib2AopProxy$DynamicAdvisedInterceptor.intercept(Cglib2AopProxy.java:615)rn at com.qj.example.service.impl.HubManageServiceimpl$$EnhancerByCGLIB$$8bd65cb3.getList()rn at com.qj.test.test.main(test.java:22)rn
解决spring-cloud应用无法部署在同一个容器中的问题
I have two services which are eureka clients (using @EnableDiscoveryClient). Both services are packaged in separate war files. Atn the time of deployment (single <em>tomcat</em> container), one service gets d
tomcat 启动 nested exception is java.lang.OutOfMemoryError: PermGen space
我的<em>tomcat</em> 是5.5 (6.0.33)都试过了 ,<em>启动</em>两个web应用,报错rn <em>nested</em> <em>exception</em> is java.lang.OutOfMemoryError: PermGen spacern在catalina.bat 中加入曾大内存的配置后 还是不起作用,请高手指教rn如下:rnset JAVA_OPTS = "-server -Xms512m -Xmx1024m -XX:PermSize=64M -XX:MaxPermSize=128m"rnrn在网上也搜了相关的东西 加入了配置还是不行啊
关于Hessian一些报错的解决方案总结
Hessian是一个轻量级的remoting onhttp工具,使用简单的方法提供了RMI的功能。 相比WebService,Hessian更简单、快捷。采用的是二进制RPC协议,因为采用的是二进制协议,所以它很适合于发送二进制数据。这也正是工作时引入Hessian的一个重要原因,简单易配置。但是同样也有缺点,高版本对于低版本的向下兼容处理的并不好、一直流传一句话,“对于hessian,能不用高版
SpringBoot项目部署在同一个tomcat容器报错的解决方案
SpringBoot项目部署在同一个<em>tomcat</em>容器报错nn在一个Tomcat容器中部署了两个springboot的应用,在<em>启动</em>时发现一直都是第一个<em>启动</em>的项目能<em>启动</em>成功,第二个项目<em>启动</em>报错,错误信息如下:nnnnn2018-01-30 15:49:27.810 ERROR 7534 --- [ost-startStop-1] o.s.boot.SpringApplication
spring boot分布式配置中心启动遇到的报错问题
[INFO ] 2018-12-18 11:08:29,929 org.apache.coyote.http11.Http11NioProtocol - Initializing ProtocolHandler [&amp;amp;quot;http-nio-8080&amp;amp;quot;] [INFO ] 2018-12-18 11:08:29,951 org.apache.catalina.core.StandardService - S...
ssh tomcat启动出错 nested exception is org.hibernate.Hibernat
各位高手大家好,新手没有积分,向大家请教个问题。rn做个项目时使用了SSH框架,Tomcat<em>启动</em>出错:rnrn[color=#3366FF]信息: RDBMS: Microsoft SQL Server, version: 9.00.4035rn2011-4-21 14:13:51 org.hibernate.cfg.SettingsFactory buildSettingsrn信息: JDBC driver: Microsoft SQL Server 2005 JDBC Driver, version: 1.0.809.102rn2011-4-21 14:13:51 org.springframework.beans.factory.support.DefaultSingletonBeanRegistry destroySingletonsrn信息: Destroying singletons in org.springframework.beans.factory.support.DefaultListableBeanFactory@86f716: defining beans [org.springframework.beans.factory.config.PropertyPlaceholderConfigurer#0,dataSource,sessionFactory,transactionManager,hibernateTemplate,dao]; root of factory hierarchyrn2011-4-21 14:13:51 org.springframework.web.context.ContextLoader initWebApplicationContextrn严重: Context initialization failedrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in ServletContext resource [/WEB-INF/classes/applicationContext.xml]: Invocation of init method failed; <em>nested</em> <em>exception</em> is org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.SQLServerDialect rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1338)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:473)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory$1.run(AbstractAutowireCapableBeanFactory.java:409)rn at java.security.AccessController.doPrivileged(Native Method)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:380)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:264)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:261)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:185)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:164)rn at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:423)rn at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:728)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:380)rn at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:255)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:199)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:45)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3827)rn at org.apache.catalina.core.StandardContext.start(StandardContext.java:4336)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:761)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:741)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:525)rn at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:920)rn at org.apache.catalina.startup.HostConfig.deployDirectories(HostConfig.java:883)rn at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:492)rn at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1138)rn at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)rn at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1023)rn at org.apache.catalina.core.StandardHost.start(StandardHost.java:719)rn at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1015)rn at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)rn at org.apache.catalina.core.StandardService.start(StandardService.java:448)rn at org.apache.catalina.core.StandardServer.start(StandardServer.java:710)rn at org.apache.catalina.startup.Catalina.start(Catalina.java:552)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)rn at java.lang.reflect.Method.invoke(Method.java:597)rn at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:288)rn at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:413)rnCaused by: org.hibernate.HibernateException: Dialect class not found: org.hibernate.dialect.SQLServerDialect[/color]rnrn配置文件:rnrn[color=#00CCFF]c3p0.maxPoolSize=50rnc3p0.initialPoolSize=10rnc3p0.maxIdleTime=120rnc3p0.acquireIncrement=5rnc3p0.maxStatements=0rnc3p0.maxStatementsPerConnection=0rnc3p0.idleConnectionTestPeriod=0rnc3p0.acquireRetryAttempts=30rnc3p0.breakAfterAcquireFailure=truernc3p0.testConnectionOnCheckOut=falsernhibernate.dialect=org.hibernate.dialect.SQLServerDialect rnhibernate.show_sql=truernhibernate.generate_statistics=truernhibernate.connection.release_mode=autornhibernate.autoReconnect=true[/color]rnrnrn这是导的包:rnrnactivation.jarrnantlr-2.7.6.jarrnasm.jarrnc3p0-0.9.0.jarrncglib-2.1.3.jarrncommons-collections-2.1.1.jarrncommons-email-1.1.jarrncommons-fileupload-1.2.1.jarrncommons-io-1.3.2.jarrncommons-logging-1.0.4.jarrncommons-net-2.0.jarrncommons-net-ftp-2.0.jarrnconcurrent-1.3.2.jarrnconnector.jarrndom4j-1.6.1.jarrnehcache-1.2.jarrnfreemarker-2.3.8.jarrnhibernate3.jarrnjaas.jarrnjacc-1_0-fr.jarrnjava-core-2.4.1.jarrnjavassist.jarrnjaxen-1.1-beta-7.jarrnjboss-cache.jarrnjboss-common.jarrnjboss-jmx.jarrnjboss-system.jarrnjdbc2_0-stdext.jarrnjgroups-2.2.8.jarrnjson-lib-2.1.jarrnjson-lib-2.2.3-jdk15.jarrnjsonplugin-0.34.jarrnjta.jarrnognl-2.6.11.jarrnoscache-2.1.jarrnoscache-2.4.1.jarrnproxool-0.8.3.jarrnspring.jarrnstruts2-core-2.1.6.jarrnstruts2-spring-plugin-2.1.6.jarrnswarmcache-1.0rc2.jarrnsyndiag2.jarrnversioncheck.jarrnxerces-2.6.2.jarrnxml-apis.jarrnxwork-2.1.2.jarrnsqljdbc.jarrnrn请高手指点
出现 java.rmi.server.ExportException 异常的原因及解决方法
1 异常描述在前一次<em>启动</em>服务器报错后,修改完错误,直接再次<em>启动</em>,报出如下异常:2 异常原因通过观察上图标记出来的异常描述,咱们可以知道:n java.rmi.server.ExportException: Port already in use: 1099n此异常,为:端口号被占用异常。3 解决方法这个异常发生的原因比较明显,通过阅读第 1 部分的“异常描述”,咱们也能发现问题,那就是:修改完错误
启动tomcat,部署项目后,出现java.lang.ClassNotFoundException: 异常,但程序正常运行
具体错误提示: (web项目能正常访问)nn十二月 20, 2018 3:47:44 下午 org.apache.catalina.core.StandardContext loadOnStartupn严重: Servlet [JAX-RS Servlet] in web application [/SpringMVC] threw load() <em>exception</em>njava.lang.Class...
springboot上传文件超限BUG
n[org.springframework.web.multipart.MaxUploadSizeExceededException: Maximum upload size exceeded; <em>nested</em> <em>exception</em> is java.lang.IllegalStateException: org.apache.<em>tomcat</em>.util.http.fileupload.FileUpload...
关于springboot +dataJpa 启动报错的 问题记录
关键错误:<em>nested</em> <em>exception</em> is java.lang.IllegalArgumentException: Not a managed type: class java.lang.Object详细错误:org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with n...
tomcat启动报错原因分析及解决
1.报错日志rn拿到catalina.log的<em>启动</em>日志rnrn2015-8-13 15:24:02 org.apache.catalina.core.StandardContext startn严重: Error listenerStartn2015-8-13 15:24:02 org.apache.catalina.core.StandardContext startn严重: Context [
Tomcat 7启动自身项目报错,部署项目可正常运行(未解决)
错误信息(摘取其中描述部分,后附详文):nn严重: Error starting static Resources njava.lang.IllegalArgumentException: Document base /home/<em>tomcat</em>_aaaa/<em>tomcat</em>_7.0_8087_aaaa/temp/webapps/docs does not exist or is not a readabl...
Jedis常见的三个异常及解决方式
用Linux虚拟机Centos6.5搭建个redis,在用Jedis连接时遇到了各种问题nn1.redis.clients.jedis.<em>exception</em>s.JedisConnectionException: java.net.ConnectException: Connection refused: connectnn报错信息如下: n n出现这个异常 是在防火墙关闭或者指定端口开启正常 而re...
Jsoup导致的一次线上服务中断
一、起因nn昨天在线上服务器部署了一个的爬虫程序,部署时一段时间服务都是正常的,第二天早上到公司发现服务中断了,报的错误如下:nnHandler dispatch failed; <em>nested</em> <em>exception</em> is org.jsoup.UncheckedIOException: java.net.SocketTimeoutException: Read timeout] with root c...
项目是没问题的,导入后启动tomcat就各种报错,求大神指导是什么问题
严重: Exception sending context initialized event to listener instance of class org.springframework.web.context.ContextLoaderListenerorg.springframework.beans.factory.UnsatisfiedDependencyException: Err...
除了升级tomcat版本外,还能怎么解决?
信息: Starting ProtocolHandler ["ajp-bio-8013"]n五月 26, 2016 6:07:49 下午 org.apache.catalina.startup.Catalina startn信息: Server startup in 20001 msn2016-05-26 18:07:49 [org.springframework.web.socket.so
tomcat启动项目时抛出的严重错误
<em>启动</em><em>tomcat</em>容器时,抛出严重异常rnrnrnjava.lang.NoSuchMethodError: org.apache.logging.log4j.ThreadContext.getThreadContextMap()rnrnrnrnrnThe method ThreadContext.getThreadContextMap() was added in 2.8. The only way
spring Boot上传文件报错。
spring Boot版本 1.4.5 rn报错原因:org.springframework.web.multipart.MultipartException: Could not parse multipart servlet request; <em>nested</em> <em>exception</em> is java.io.IOException: The temporary upload location [C:\U
ssh整合项目启动报错
这个错误整了我好久,我也是刚刚入门,复制了以前的代码,运行不出来了,然后找了一些资料,发现这个问题,,,
tomcat 启动报错的各种解决
1.Server Tomcat v7.0 Server at localhost failed to start. n严重: A child container failed during start njava.util.concurrent.ExecutionException: org.apache.catalina.LifecycleException: Failed to start co
Eclipse运行TOMCAT 出现在a java exception has occurred的解决办法。
Eclipse运行TOMCAT 出现在a java <em>exception</em> has occurred的解决办法。
was部署项目报错
<em>tomcat</em>上运行的项目放到was上报错,具体错误信息如下: java.lang.UnsupportedClassVersionError: JVMCFRE003 bad major version;n经排查发现,在本地用Eclipse编译生成的war包所使用的jdk是1.7版本。n而在was服务器上所使用的jdk是1.6版本。n高版本jdk编译生成的部署包放到低版本的jdk上运行会导致<em>启动</em>报错。...
Error on line 1 of document : 前言中不允许有内容。 Nested exception: 前言中不允许有内容。
今天修改项目(xml)配置文件时,遇到了一个问题,修改后,项目<em>启动</em>时,读取xml报:nn       Error on line 1 of document  : 前言中不允许有内容。 Nested <em>exception</em>: 前言中不允许有内容。nn有点懵逼。。。。。nn直觉是xml文件有问题,因为之前是可以正常读取的!nn后来发现果然是xml文件有问题,xml文件的编码格式是:utf-8 + BOM...
springboot错误总结一
org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name ‘documentationPluginsBootstrapper’ defined in URL [jar:file:/C:/Users/Administrator/.m2/repository/io/sp...
kafka_0.10.0.2.5 shell 工具执行时端口冲突的解决方法
./bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 2 --partitions 2 --topic testTopicnError: Exception thrown by the agent : java.rmi.server.ExportException: Port already i
【错误解决】Spring JPA的错误及其解决方案
又遇到一个错误,,具体描述在最下面,,还是“三板斧” n【1】 n控制台报错情况,一般情况下红色第一句很重要,细看(英文很水没关系,打开有道瞬间转换成中文,虽然有点变扭,能看) nFailed to load ApplicationContext n加载ApplictationContext失败,,概念有点大,,往下看Caused by: org.springframework.beans.fact
Nested exception: 对实体 "characterEncoding" 的引用必须以 ';' 分隔符结尾解决办法
如题所示,在xml配置文件中使用数据库连接url的时候,解析报错:nnnnhibernate.cfg.xml配置主体部分:nnnn出现这个错误的罪魁祸首就是connection.url的配置useUnicode=true&amp;amp;characterEncoding=UTF-8中间的&quot;&amp;amp;&quot;号导致的,在xml的文件中,我们需要将&quot;&amp;amp;&quot;做转义&quot;&amp;amp;amp&quot;;这样就不会报错了。nn...
关于linux服务器部署项目 启动tomcat报错A child container failed during start问题解决
在开发工具里运行的项目没有问题,部署到服务器<em>tomcat</em>里运行却<em>启动</em>报错rnrnrn不说我在这当中排查问题浪费的时间,直接说重点。rn1.排查是否<em>tomcat</em>问题rn如果<em>tomcat</em>没有其他项目,就把<em>tomcat</em>的server.xml,这样注释,在把webapps下的项目或者war包删除。不部署任何项目<em>启动</em><em>tomcat</em>,看是否能<em>启动</em>成功rn2.如果上一部<em>tomcat</em>能<em>启动</em>成功,不是<em>tomcat</em>问题
关于spring发email总结
之前做了一个kafka发送短信邮件的项目,用spring来发送邮件遇到好多奇葩的问题。纪录一下,方便以后学习。n必须知道的配置:host地址是smtp地址,邮箱用户名,邮箱密码,这里配置的邮箱用户名必须和后面的发送者一直,不然要报错。报错如图:nException in thread "pool-10-thread-6" org.springframework.mail.MailSendExc
项目启动的时候报Exception in thread main 错误解决方法
 nn项目在运行过程中报错:nnException  in thread mainnn找到window---preferences--java--installed jres--找到对应jdk编辑default VM arguments。添加内存设置  -Xms512m -Xmx1024m -XX:MaxPermSize=256mnn如果填写不对也可能会造成这个错误。nn...
tomcat同时部署两个项目错误
错误描述:rnWeb app root system property already set to different value: 'webapp.root'rnrnrn   <em>tomcat</em>发布多个项目时抛的webAppRootKey错误,部署到WAS控制台单独一个项目可以运行,两个项目同时运行先<em>启动</em>的可以运行,后<em>启动</em>的项目不会读本项目的web.xml信息。rnrn   异常信息:rnWeb a
使用redis时遇到的一些异常
最近刚开始使用redis,把遇到的一些问题记录下来,如下:异常:Cannot serialize; <em>nested</em> <em>exception</em> is norg.springframework.core.serializer.support.SerializationFailedException:Failed nto serialize object using DefaultSerializer; nest
阿里aliTomcat启动报错,导致hsf无法正常调用
最新的项目用到springboot多模块,模块间通信用的是阿里hsf接口,在使用Junit测试时hsf调用时报下面的异常nn异常 :com.taobao.pandora.common.<em>exception</em>.PandoraLoaderException: [Module-Loader] hsf: can not load class {com.taobao.hsf.address.AddressSer...
Tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException)
Tomcat内存溢出的解决方法(java.util.concurrent.ExecutionException:java.lang.OutOfMemoryError),内附解决方案!
hibernate 报 Unknown entity错误,问题解决方法
程序报错:org.hibernate.MappingException: Unknown entity常见问题(新手需注意)rnrn原因1:import Entity类造成的(使用Eclipse自动提示导入的该包)rnrnimport javax.persistence.Id;nimport javax.persistence.Table;nimport javax.persistence.Tra
tomcat启动报错以及解决办法
java.lang.ClassCastException:org.apache.catalina.util.DefaultAnnotationProcessor cannot be castto org.apache.AnnotationProcessornn原因是<em>tomcat</em>-lib中的jar包和项目中jar包冲突n解决办法,n1.可以删除项目中对应的jar包(网上说是catalina.
一般java.lang.NoClassDefFoundError异常错误的问题和解决
一、java.lang.NoClassDefFoundError错误rn意思:具体是哪个类不见了,找不到。rn解决:NoClassDefFoundError错误的发生,是因为Java虚拟机在编译时能找到合适的类,而在运行时不能找到合适的类导致的错误。例如在运行时我们想调用某个类的方法或者访问这个类的静态成员的时候,发现这个类不可用,此时Java虚拟机就会抛出NoClassDefFoundError
求助 升级了项目所有架包,然后报错
求助 升级了项目所有架包,然后报错 新手有点看不懂源头好像是datasource?rnrnrnrn2017-11-23 09:32:37,156 WARN  [springframework.web.context.support.XmlWebApplicationContext] - Exception encountered during context initialization - ca
使用redis中遇到的问题记录
1.redis批量删除key       redis-cli keys '*' | xargs redis-cli delrnrnrn2.从连接池获取jedis链接,不需要进行关闭操作,如果关闭会报redis.clients.jedis.<em>exception</em>s.JedisException: Could not return the resource to the pool异常,原因是多个线程会用同
Jmeter分布式测试中常见问题及注意事项
Jmeter进行分布式测试时需要特别注意的:nn1)如果使用csv进行参数化,需要把参数文件在每台slave上拷贝一份,最好都放置在bin目录下,因为Jmeter会直接从bin目录下查找;nn2)slave机器执行脚本时,若断言执行成功则在master机器上是看不到请求响应数据的,只有在断言出错时才可键slave的返回;nn3)若要使用Jmeter分布式进行测试,TCP取样器中“TCPClient...
spring boot 因mybatis版本引发的问题
使用spring boot整合项目的时候,遇到了一个异常,如下:nnnn2018-06-03 20:44:17.660 WARN 301924 --- n[ main] o.s.b.f.s.DefaultListableBeanFactory :nBean creation <em>exception</em> on non-lazy FactoryBean type check: o...
Spring发送邮件时遇到的错误
Spring发送邮件时发生如下异常:nException in thread "main" org.springframework.mail.MailAuthenticationException: Authentication failed; <em>nested</em> <em>exception</em> is javax.mail.AuthenticationFailedExceptionnCaused by: jav
一个连接出错问题的背后
先说下基本背景:短信被封装为服务,由于是外部调用,所以采用消息队列的方式来做异步的短信发送处理,短信发送记录会被保存到mongodb中。rn发生的异常:rn短信服务无法发送短信,具体异常如下rn异常1rnrnrnrnrnorg.apache.axis.AxisFault: ; <em>nested</em> <em>exception</em> is: java.net.SocketException: Connection res
SpringBoot迁移遇到的一些坑
Caused by: org.springframework.beans.factory.NoUniqueBeanDefinitionException: No qualifying bean of type 'org.springframework.data.redis.core.RedisTemplate&lt;?, ?&gt;' available: expected single matching bean but found 2: redisTemplate,stringRedisTemplate
本地Java项目连接Linux系统上的Redis出现的问题
1,连接不上的问题nnnn修改redis.conf文件nn1.将bind 127.0.0.1加上注释,(#bind 127.0.0.1),允许出本机外的IP访问redisnn2.将protected-mode yes,修改为protected-mode no;不保护redisnn3.将daemonize no,修改为daemonize yes;允许redis服务后台运行nn4、重新<em>启动</em>redis,...
tomcat启动项目报错
Bean context must contain at least one bean of type org.acegisecurity.util.FilterChainProxyrn删除了jar要重新build path
关于BeanCreationException的异常处理
在运行Tomcat服务器之后,项目的控制台就打印了这些异常和错误,刚接触SSM,故对未来遇见的异常做个记录,并将解决过程贴上,为同道中人做个标记吧rn严重: StandardWrapper.Throwablernrnorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'card
SpringMVC 无法获取连接报错
在进行单元测试的时候,发现报错 Could not get JDBC Connection; <em>nested</em> <em>exception</em> is java.sql.SQLException: rnjdbc.properties配置文件信息rndriver=com.mysql.jdbc.Drivernurl=jdbc:mysql://127.0.0.1:3306/seckill?useUnicode=true&
框架报错
这些错误很多时候都不细心引起的,如果大家也有出现些问题,希望能给大家一下提示,同时也提醒自己不要再犯相同的错误了.nn com/mysql/jdbc/JDBC42ResultSet : Unsupported major.minor version 52.0—-最
ssm项目tomcat启动报错
今天在做完项目一个模块进行打包测试,<em>启动</em>tomca的时候出现如下错误:org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'suHandlerServiceImpl': Injection of resource dependencies failed; <em>nested</em> exce...
由Java反序列化对象异常想到的
由Java反序列化对象异常想到的serialVersionUID问题。
spring cloud开发中的常见报错
spring cloud开发中的常见报错nn我这里说的报错都是一些极其常见的,甚至低级的报错,一般一看到下面的报错,我们就要条件反射的去看相应的地方是不是有问题,基本都不用去看报错的具体内容了。nn1、<em>nested</em> <em>exception</em> is java.lang.IllegalStateException: Ambiguous mapping. Cannot map 'xxxController' ...
tomcat启动异常
Tomcat<em>启动</em>时出现 严重: Exceptionprocessing Global JNDI Resources”的异常rn rn                   替换数据库 Resource中的factory为rn                   factory="org.apache.<em>tomcat</em>.dbcp.dbcp.BasicDataSourceFactory"
Tomcat部署多个项目运行 及JVM_Bind 报错解决方法(8080,8009,8005)
因有需求需要在自己电脑部署多个项目运行,遇到如下如下一些问题,现记录下解决方法供参考 n      环境:  电脑系统Win7,免安装版 <em>tomcat</em>7 , Jdk1.7 (因为需部署多个项目,用的是免安装版<em>tomcat</em>,一个<em>tomcat</em>解压包中放一个项目)n     1. <em>启动</em><em>tomcat</em> 脚本startup.bat 闪退问题:n      这个是jdk安装环境不匹配导致, 解决方法 :修
ssm项目启动报错--文件提前结束
java.lang.IllegalStateException: Failed to load ApplicationContext我这边的原因是扫描时有空的xml文件,删掉就好
ibatis处理器异常(executor.ExecutorException)解决方法
org.apache.ibatis.<em>exception</em>s.PersistenceException: n### Error querying database.  Cause: org.apache.ibatis.executor.ExecutorException: Executor was closed.n### Cause: org.apache.ibatis.executor.Exec
tomcat启动失败常见问题
问题[1]:n 2017-05-10 12:02:13,095 [localhost-startStop-1][IP:|USER:][WARN n org.springframework.web.context.support.XmlWebApplicationContext] Exception thrown from LifecycleProcessor on context clos
(三)碎碎念接口优化--GC异常
促销系统在运行很长的一段时间里,突然报错了,影响了线上的一些功能。n上异常,报出的GC异常如下。njava.lang.RuntimeException: org.springframework.data.redis.serializer.SerializationException: Cannot deserialize; <em>nested</em> <em>exception</em> is org.springframe
解决方案: Nested exception: 不允许有匹配 "[xX][mM][lL]" 的处理指令目标。
问题nn在解析xml文件时,提示 Nested <em>exception</em>: 不允许有匹配 &quot;[xX][mM][lL]&quot; 的处理指令目标。nn解决方案nn&amp;lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&amp;gt;  必须是XML文件的第一个元素且前面不能空格。nn建议nnxml文件必须符合标准。...
spring配置Quartz定时器时出现的异常
spring配置Quartz定时器时出现的异常如下:rnrn[code=&quot;java&quot;]org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'secondTimerTrigger' defined in ServletContext resource [/WEB-INF/spri...
SpringBoot 1.4升级中遇到的奇葩问题
截止写这片内容时,springboot的最新版本是1.4 ,现在项目中使用的springboot版本是1.3.5,jdk环境是1.7。在升级springboot从1.3.5升级到1.4的时候出现了一些小问题,这里记录下来。n n log4j变成log4j2n在我使用的1.3.5版本的boot的使用的是log4j,在boot1.4的版本中,就需要使用log4j2,否则会出现如下错误, n解决方法如
idea 闪退,项目重启时stream closed问题的解决方案
曾多次遇到这个问题,自己摸索出两个比较快捷的方法,记录一下,分享给大家。nn方案一: n 很简单,重启电脑就是了。nn方案二: n 打开【任务管理器】==》【详细信息】,找到java.exe进程,关闭此进程,重启idea即可。nn想了想:接着把闪退的原因及解决方案一起记录下来吧nn认真思索后,发现是IDEA的运行内存大小的问题,就做了如下修改:nnIntellij IDEA 2017目...
解决grails上传文件过大,发生异常的问题
参考文章:nhttp://my.oschina.net/scjelly/blog/523705nhttp://docs.grails.org/latest/guide/spring.htmlnhttp://docs.grails.org/latest/guide/theWebLayer.html#uploadingFilesnnn我的环境:n| Grails Version: 3.1
Springboot空项目启动时报错
nException encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'inMemoryDatabaseShut...
spring boot集成mybatis,启动报无法创建dataSource问题
错误信息如下:rn[ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: E
jmeter在linux上启动报错:连接拒绝
最近在linux上使用jmeter进行压测时,遇到了下面问题:使用jmeter-server<em>启动</em>jmeter server报错,提示中的endpoint并不是该server的ip:server的ip是内网的192.168.60.223,但endpoint却是202.106.199.37,貌似是联通的一个外网ip。[root@host_60_223 bin]# ./jmeter-serverCrea
通过svn项目导入,启动Tomcat错误问题
在svn中将项目工程下载到本机的myeclipse中,讲项目导入Tomcat服务器后。运行项目<em>启动</em>包错。1、检查项目的里面配置的文件。如jdk、jre。是否能够正常使用。发现我的项目中用的的jdk:1.4报错。将1.4版本的给Remove本机配置的jdk1.7导入到项目中。...
Nested exception: 2 字节的 UTF-8 序列的字节 2 无效。
解决办法n修改如图位置,改成xml字符串中对应的字符编码即可。nnn
tomcat启动maven项目报错
将eclise上的项目重写了一份一模一样的在IDEA上,eclise<em>启动</em>成功,IDEA就报错了,纠结 rn[code=java]rn09-Jan-2017 16:54:06.200 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log No Spring WebApplicationInitializer types detected on classpathrn09-Jan-2017 16:54:06.405 信息 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.ApplicationContext.log Initializing Spring root WebApplicationContextrn09-Jan-2017 16:54:13.284 严重 [RMI TCP Connection(5)-127.0.0.1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class com.evanosc.common.listener.WebContextListenerrn org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'shiroFilter' defined in file [D:\Java\IdeaProjects\evanosc\target\evanosc\WEB-INF\classes\spring\spring-context-shiro.xml]: Cannot resolve reference to bean 'securityManager' while setting bean property 'securityManager'; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\Java\IdeaProjects\evanosc\target\evanosc\WEB-INF\classes\spring\spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroDbRealm' while setting bean property 'realm'; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'shiroDbRealm': Unsatisfied dependency expressed through field 'systemUserService'; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'systemUserServiceImpl': Unsatisfied dependency expressed through field 'baseMapper'; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'systemUserMapper' defined in file [D:\Java\IdeaProjects\evanosc\target\evanosc\WEB-INF\classes\com\evanosc\dao\SystemUserMapper.class]: Unsatisfied dependency expressed through bean property 'sqlSessionFactory'; <em>nested</em> <em>exception</em> is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlSessionFactory' defined in file [D:\Java\IdeaProjects\evanosc\target\evanosc\WEB-INF\classes\spring\spring-context-mybatis.xml]: Invocation of init method failed; <em>nested</em> <em>exception</em> is org.springframework.core.NestedIOException: Failed to parse config resource: class path resource [mybatis-config.xml]; <em>nested</em> <em>exception</em> is org.apache.ibatis.builder.BuilderException: Error parsing SQL Mapper Configuration. Cause: org.apache.ibatis.logging.LogException: Error setting Log implementation. Cause: java.lang.reflect.InvocationTargetExceptionrn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:359)rn at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1486)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1231)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:543)rn at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)rn at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)rn at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)rn at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)rn at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)rn at org.springframework.context.support.PostProcessorRegistrationDelegate.registerBeanPostProcessors(PostProcessorRegistrationDelegate.java:240)rn at org.springframework.context.support.AbstractApplicationContext.registerBeanPostProcessors(AbstractApplicationContext.java:697)rn at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:526)rn at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:444)rn at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:326)rn at com.evanosc.common.listener.WebContextListener.initWebApplicationContext(WebContextListener.java:23)rn at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)rn at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4727)rn at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5189)rn at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)rn at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:724)rn at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:700)rn at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)rn at org.apache.catalina.startup.HostConfig.manageApp(HostConfig.java:1702)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.apache.<em>tomcat</em>.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)rn at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:482)rn at org.apache.catalina.mbeans.MBeanFactory.createStandardContext(MBeanFactory.java:431)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at org.apache.<em>tomcat</em>.util.modeler.BaseModelMBean.invoke(BaseModelMBean.java:300)rn at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:819)rn at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:801)rn at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1468)rn at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)rn at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)rn at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)rn at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:829)rn at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)rn at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)rn at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)rn at java.lang.reflect.Method.invoke(Method.java:498)rn at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:324)rn at sun.rmi.transport.Transport$1.run(Transport.java:200)rn at sun.rmi.transport.Transport$1.run(Transport.java:197)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.rmi.transport.Transport.serviceCall(Transport.java:196)rn at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)rn at java.security.AccessController.doPrivileged(Native Method)rn at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)rn at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)rn at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)rn at java.lang.Thread.run(Thread.java:745)rnCaused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'securityManager' defined in file [D:\Java\IdeaProjects\evanosc\target\evanosc\WEB-INF\classes\spring\spring-context-shiro.xml]: Cannot resolve reference to bean 'shiroDbRealm' while setting bean property 'realm'; <em>nested</em> <em>exception</em> is org.springframework.beans.factorrn[/code]rnrn
启动tomcat就抛这个异常,之前还好好的
HTTP Status 500 - Filter execution threw an <em>exception</em>type Exception reportmessage Filter execution threw an <em>exception</em>description The server encountered an internal error that prevented it from fulfill...
数据库安装创建及配置下载
数据库oracle服务器端安装及常见问题,创建数据库及配置,手工创建数据库相关目录 相关下载链接:[url=//download.csdn.net/download/xia_lfen/2032391?utm_source=bbsseo]//download.csdn.net/download/xia_lfen/2032391?utm_source=bbsseo[/url]
FSK信号差分检波系统仿真下载
这是FSK信号差分检波系统仿真,有建模,参数设置,仿真结果,分析,很详细 相关下载链接:[url=//download.csdn.net/download/lyy4231/2368477?utm_source=bbsseo]//download.csdn.net/download/lyy4231/2368477?utm_source=bbsseo[/url]
《Oracle数据库实用教程(第二版)》课件.rar下载
绝对超值 想学Oracle数据库的看看 可以当手册查~~~~~~~~~~ 相关下载链接:[url=//download.csdn.net/download/lxhlovemy/2687673?utm_source=bbsseo]//download.csdn.net/download/lxhlovemy/2687673?utm_source=bbsseo[/url]
文章热词 机器学习教程 Objective-C培训 交互设计视频教程 颜色模型 设计制作学习
相关热词 mysql关联查询两次本表 native底部 react extjs glyph 图标 python启动教程 中国物联网启动视频教程
我们是很有底线的