NutzCN Logo
问答 nutz-integration-quartz 引入后启动报错,版本已升级!
发布于 2381天前 作者 wishlong 1788 次浏览 复制 上一个帖子 下一个帖子
标签:
严重: Unable to process Jar entry [org/nutz/integration/quartz/NutQuartzCronJobFactory.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:188)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:159)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:30 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/nutz/integration/quartz/NutQuartzJobFactory.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:187)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:159)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:30 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/nutz/integration/quartz/QuartzIocLoader.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:188)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:159)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:30 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/nutz/integration/quartz/QuartzJob.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:188)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:159)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:30 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/nutz/integration/quartz/QuartzManager.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:187)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:159)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:30 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/nutz/integration/quartz/QuartzManagerImpl.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
org.apache.tomcat.util.bcel.classfile.ClassFormatException: Constant pool at index 0 is null.
	at org.apache.tomcat.util.bcel.classfile.ConstantPool.getConstant(ConstantPool.java:204)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:83)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:30 上午 org.apache.catalina.startup.ContextConfig processAnnotationsJar
严重: Unable to process Jar entry [org/nutz/integration/quartz/Quartzs.class] from Jar [jar:file:/F:/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp2/wtpwebapps/nutzbook/WEB-INF/lib/nutz-integration-quartz-1.r.60.r2.jar!/] for annotations
java.io.EOFException
	at java.io.DataInputStream.readUnsignedShort(Unknown Source)
	at org.apache.tomcat.util.bcel.classfile.Utility.swallowMethodParameters(Utility.java:187)
	at org.apache.tomcat.util.bcel.classfile.Attribute.readAttribute(Attribute.java:159)
	at org.apache.tomcat.util.bcel.classfile.FieldOrMethod.<init>(FieldOrMethod.java:76)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.readMethods(ClassParser.java:226)
	at org.apache.tomcat.util.bcel.classfile.ClassParser.parse(ClassParser.java:101)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsStream(ContextConfig.java:1987)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsJar(ContextConfig.java:1940)
	at org.apache.catalina.startup.ContextConfig.processAnnotationsUrl(ContextConfig.java:1915)
	at org.apache.catalina.startup.ContextConfig.processAnnotations(ContextConfig.java:1876)
	at org.apache.catalina.startup.ContextConfig.webConfig(ContextConfig.java:1145)
	at org.apache.catalina.startup.ContextConfig.configureStart(ContextConfig.java:767)
	at org.apache.catalina.startup.ContextConfig.lifecycleEvent(ContextConfig.java:302)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:117)
	at org.apache.catalina.util.LifecycleBase.fireLifecycleEvent(LifecycleBase.java:90)
	at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5083)
	at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1396)
	at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1386)
	at java.util.concurrent.FutureTask.run(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

五月 10, 2018 7:49:31 上午 org.apache.catalina.core.ApplicationContext log

按教程加入quartz的包后,启动报这个错。

tomcat 8.09 。
nutz版本1.65。
quartz包 2.2.1 配 nutz-integration-quartz-1.r.60.r2。
也试过quartz2.2.3 配 nutz-integration-quartz-1.r.65。都是报这个错。

另外加入 shiro 后启动不报错, 加入 nutz-integration-shiro-1.r.65 后也会报错。

11 回复

60是很老的版本了

报的错误是jar文件损坏呢,重新下载咯

我是在 https://jfrog.nutz.cn/artifactory/jcenter/org/nutz/nutz-integration-quartz/ 这里下载的,应该不会有损坏的吧。

http://nutzbook.wendal.net/dev_prepare/add_quartz.html 这个说明的加入,还需要额外再写其它的配置吗?

||_|| 我重新下载了好多次了。 能给我一个其它的链接吗?

启动会报这个错,但是可以正常运行。不纠结了。先这样用吧。 谢谢!!

是不是老的jar没删除?

今天把tomcat升级到8.5.31,好了。 谢谢,哈。

额,tomcat老版本的bug

添加回复
请先登陆
回到顶部