2 alsdeieoepepwpk alsdeieoepepwpk 于 2016.09.06 16:08 提问

linux服务器,resin启动报错

启动resin时报如下错误,有谁知道解决办法吗?

java.lang.ArrayIndexOutOfBoundsException: 3805021

org.springframework.beans.factory.BeanDefinitionStoreException: Failed
to read candidate component class: URL [jar:file:/usr/local/jdk1.8.0_40/jre/lib/ext/jfxrt.jar!/com/sun/glass/ui/Accessible.class];
nested exception is java.lang.ArrayIndexOutOfBoundsException: 3805021
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:260)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242)
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:84)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1419)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1409)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at com.caucho.server.webapp.WebApp.addListenerObject(WebApp.java:2154)
at com.caucho.server.webapp.WebApp.callInitializers(WebApp.java:3453)
at com.caucho.server.webapp.WebApp.startImpl(WebApp.java:3689)
at com.caucho.server.webapp.WebApp.access$400(WebApp.java:207)
at com.caucho.server.webapp.WebApp$StartupTask.run(WebApp.java:5217)
at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)
Caused by: java.lang.ArrayIndexOutOfBoundsException: 3805021
at org.springframework.asm.ClassReader.readInt(Unknown Source)
at org.springframework.asm.ClassReader.accept(Unknown Source)
at org.springframework.asm.ClassReader.accept(Unknown Source)
at org.springframework.core.type.classreading.SimpleMetadataReader.(SimpleMetadataReader.java:54)
at org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:80)
at org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:101)
at org.springframework.context.annotation.ClassPathScanningCandidateComponentProvider.findCandidateComponents(ClassPathScanningCandidateComponentProvider.java:236)
at org.springframework.context.annotation.ClassPathBeanDefinitionScanner.doScan(ClassPathBeanDefinitionScanner.java:242)
at org.springframework.context.annotation.ComponentScanBeanDefinitionParser.parse(ComponentScanBeanDefinitionParser.java:84)
at org.springframework.beans.factory.xml.NamespaceHandlerSupport.parse(NamespaceHandlerSupport.java:73)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1419)
at org.springframework.beans.factory.xml.BeanDefinitionParserDelegate.parseCustomElement(BeanDefinitionParserDelegate.java:1409)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.parseBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:184)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.doRegisterBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:140)
at org.springframework.beans.factory.xml.DefaultBeanDefinitionDocumentReader.registerBeanDefinitions(DefaultBeanDefinitionDocumentReader.java:111)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.registerBeanDefinitions(XmlBeanDefinitionReader.java:493)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:390)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:334)
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.loadBeanDefinitions(XmlBeanDefinitionReader.java:302)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:174)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:209)
at org.springframework.beans.factory.support.AbstractBeanDefinitionReader.loadBeanDefinitions(AbstractBeanDefinitionReader.java:180)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:125)
at org.springframework.web.context.support.XmlWebApplicationContext.loadBeanDefinitions(XmlWebApplicationContext.java:94)
at org.springframework.context.support.AbstractRefreshableApplicationContext.refreshBeanFactory(AbstractRefreshableApplicationContext.java:131)
at org.springframework.context.support.AbstractApplicationContext.obtainFreshBeanFactory(AbstractApplicationContext.java:522)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:436)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:384)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
at com.caucho.server.webapp.WebApp.addListenerObject(WebApp.java:2154)
at com.caucho.server.webapp.WebApp.callInitializers(WebApp.java:3453)
at com.caucho.server.webapp.WebApp.startImpl(WebApp.java:3689)
at com.caucho.server.webapp.WebApp.access$400(WebApp.java:207)
at com.caucho.server.webapp.WebApp$StartupTask.run(WebApp.java:5217)
at com.caucho.env.thread2.ResinThread2.runTasks(ResinThread2.java:173)
at com.caucho.env.thread2.ResinThread2.run(ResinThread2.java:118)

1个回答

caizhong_946400
caizhong_946400   2016.09.06 17:12

数组下标越界,可能是因为linux和windows编码不同造成的

alsdeieoepepwpk
alsdeieoepepwpk 谢谢回答,已经解决了,是因为maven依赖的spring包版本问题。
接近 2 年之前 回复
Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!
其他相关推荐
resin报错问题归纳
关于Resin的问题: 1.       首先下载resin。 2.       关注一下resin里的配置文件。(/ conf / resin.conf) 要注意配置一下几个地方: 1.       端口问题,对于已有的Internet对口,或则Tomcat端口不要占用,我用的是90. 90"/> 2.       虚拟路径关掉,对于本地程序,会在 D:/java/Myecli
Resin 启动 出错
Table[node:2,e:\resin\resin-data\app-0\distcache\node.db] validating indexes due to unclean shutdown.具体解决方案是:1、先将resin-4.0.40/resin-data/app-0/distcache/mnode.db删除,或者移动到其他目录下; 2、重启resin;这样就解决了。
Resin 启动多个服务
Resin 4 启动多个服务修改resin.xml,主要增加watchdog-port 端口的配置<server-multi id-prefix="app-" address-list="${app_servers}" port="6800"> <watchdog-port>6602</watchdog-port> </server-multi> 修改resin.propapp_server
Server Resin 4.0 at localhost was unable to start within 240 seconds(Port:80)
一、将Resin4 Server 添加至Eclipse后(安装步骤参阅http://www.caucho.com/resin-4.0/admin/resin-eclipse-support.xtp),在启动一段时间(默认240s)将会弹出错误信息,同时服务将停止 二、解决该错误可通过以下两种方式: 方法1:编辑resin.properties文件,讲app.http : 80和web.
eclipse+resin启动配置的两个小问题
      我用的reisn采用目前最新的resin3.1.0版本,在eclipse里添加服务器部署Web应用以后,需要修改resin.conf文件的两处才能正常启动。第一个是133行的 改成        按道理前一个也应该可以正常使用的,因为resin.home在配置里就是安装目录,可提示就是找不到文件,所以只好改成,了。第二个是在211行 的后面添加 ,默认情况下,并没有这个
在Linux服务器上安装JDK,resin实现远程连接Jconsole
前一段时间公司要求能监控Linux服务器上的Java项目,最后将这个任务竟然分配在我的头上,对于我这个Linux啥都不懂的人来说真的是一个巨大的挑战。趁着还记得大体的过程,就想将这个过程给纪录下来。 大体上分为三步:1.安装JDK   2.安装resin   3.连接Jconsole 1.安装JDK   1.1先到http://www.oracle.com/technetwork/j
Eclipse+resin配置远程调试
resin的配置,按照网上配置来及
resin watchdog启动报错
报错信息如下:Resin/4.0.40 can't restart -server 'app-0'.com.caucho.bam.RemoteConnectionFailedException: BamError[type=cancel,group=remote-connection-failed,text=Cannot connect to http://127.0.0.1:6604/hmtp
spring web项目启动报错,java.lang.IllegalArgumentException at org.springframework.asm.ClassReader.<init>
原因:spring版本与jdk版本不一致导致,项目版本spring 3.2 ,jdk 1.8. 解决方法:把jdk换成1.7的就可以了
resin服务器内存溢出(OutOfMemoryError)解决方法
导致OutOfMemoryError异常的常见原因有以下几种: 内存中加载的数据量过于庞大,如一次从数据库取出过多数据;集合类中有对对象的引用,使用完后未清空,使得JVM不能回收;代码中存在死循环或循环产生过多重复的对象实体;使用的第三方软件中的BUG;启动参数内存值设定的过小; 此错误常见的错误提示: tomcat:java.lang.OutOfMemoryError: Per