tail file truncatedd class file,该怎么处理

Truncated class file,该怎么处理_百度知道
Truncated class file,该怎么处理
提问者采纳
Con.,不许分大小写,CON 都不可以,con,还有很多设备名都不能拿来用,如下。 下面是其他的一些保留字: The following reserved device names cannot b您好,在Windows下面都不能创建! con是操作系统保留的一个设备名字。注重,很高兴为您解答.
来自团队:
其他类似问题
为您推荐:
class的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Tomcat Servlet Container user discussion
Tomcat Servlet Container user discussion
21 Jul 10:41 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
08:41:20 GMT
Hello Tomcat team,
Thanks for your always support !!
Please do the needful on below problem.
Web Application credential:
-------------------------------------
Servlet used :servelet3.0
MVC framework: Struts2.0
Java: Open JDK 1.7
------------------------------------
We have observe the below error in production environment. What is the cause of the issue.
========================================================================================
09:53:50,860 &ERROR& javax.servlet.ServletException: java.lang.ClassFormatError:
Truncated class file
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
========================================================================================
1- Http request Start.
2- Struts 2.0 filter executed.
3- FilterChain.dofiletr(httpRequest, httpResponse) [doFilter method] : error occurs here
21 Jul 12:19 2015
Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileKonstantin Kolinko &knst.kolinko &at& &
10:19:46 GMT
11:41 GMT+03:00 Rahul Kumar Singh &rahul.singh &at& nectechnologies.in&:
& Hello Tomcat team,
& Thanks for your always support !!
& Please do the needful on below problem.
& Web Application credential:
& -------------------------------------
& Servlet used :servelet3.0
& MVC framework: Struts2.0
& Java: Open JDK 1.7
& ------------------------------------
& We have observe the below error in production environment. What is the cause of the issue.
& ========================================================================================
09:53:50,860 &ERROR& javax.servlet.ServletException: java.lang.ClassFormatError:
Truncated class file
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
& ========================================================================================
& Use case:
& 1- Http request Start.
& 2- Struts 2.0 filter executed.
& 3- FilterChain.dofiletr(httpRequest, httpResponse) [doFilter method] : error occurs here
21 Jul 17:32 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
15:32:30 GMT
&Do you have sufficient free space on your hard drive?
Maybe your disk is full.
No, Disk Space is enough approx. ~ 96 GB
&Did it happen once only, or this is a repeating error?
No it occurs multiple times.
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko &at& ]
Sent: Tuesday, July 21,
To: Tomcat Users List
Subject: Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file
11:41 GMT+03:00 Rahul Kumar Singh &rahul.singh &at& nectechnologies.in&:
& Hello Tomcat team,
& Thanks for your always support !!
& Please do the needful on below problem.
& Web Application credential:
& -------------------------------------
& Servlet used :servelet3.0
& MVC framework: Struts2.0
& Java: Open JDK 1.7
& ------------------------------------
& We have observe the below error in production environment. What is the cause of the issue.
& ======================================================================
& ==================
21 Jul 19:18 2015
Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileChristopher Schultz &chris &at& christopherschultz.net&
17:18:40 GMT
On 7/21/15 10:32 AM, Rahul Kumar Singh wrote:
&& Do you have sufficient free space on your hard drive?
Maybe your
&& disk is full.
& No, Disk Space is enough approx. ~ 96 GB
Any quotas on the filesystem?
&& Did it happen once only, or this is a repeating error?
& No it occurs multiple times.
Any idea which class it's having trouble loading?
22 Jul 06:02 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
04:02:34 GMT
Dear Christopher,
&Any quotas on the filesystem?
&Any idea which class it's having trouble loading?
I have no idea on this but I have got the below exception:
==========================================================================
09:53:50,860 &ERROR& javax.servlet.ServletException:
java.lang.ClassFormatError: Truncated class file
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
====================================================================
For more reference there is some logs from Catalina.out after tomcat startup.
Jul 17, :33 AM org.piler.TldLocationsCache tldScanJar
INFO: At least one JAR was scanned for TLDs yet contained no TLDs. Enable debug logging for this logger for a
complete list of JARs that were scanned but no TLDs were found in them. Skipping unneeded JARs during
scanning can improve startup time and JSP compilation time.
-----Original Message-----
From: Christopher Schultz [mailto:chris &at& christopherschultz.net]
Sent: Tuesday, July 21,
22 Jul 06:09 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
04:09:02 GMT
Some more reference from catalina.out
Jul 17, :36 AM org.apache.catalina.core.ApplicationDispatcher invoke
SEVERE: Servlet.service() for servlet jsp threw exception
java.lang.ClassFormatError: Truncated class file
at java.lang.ClassLoader.defineClass1(Native Method)
-----Original Message-----
From: Rahul Kumar Singh [mailto:rahul.singh &at& nectechnologies.in]
Sent: Wednesday, July 22,
To: Tomcat Users List
Subject: RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file
Dear Christopher,
&Any quotas on the filesystem?
&Any idea which class it's having trouble loading?
I have no idea on this but I have got the below exception:
==========================================================================
09:53:50,860 &ERROR& javax.servlet.ServletException:
java.lang.ClassFormatError: Truncated class file
at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
====================================================================
22 Jul 15:50 2015
Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileChristopher Schultz &chris &at& christopherschultz.net&
13:50:32 GMT
On 7/21/15 11:02 PM, Rahul Kumar Singh wrote:
& Dear Christopher,
&& Any quotas on the filesystem?
&& Any idea which class it's having trouble loading?
& I have no idea on this but I have got the below exception:
& ======================================================================
09:53:50,860 &ERROR& javax.servlet.ServletException:
& java.lang.ClassFormatError: Truncated class file at
& org.apache.jasper.servlet.JspServlet.service(JspServlet.java:343)
& at javax.servlet.http.HttpServlet.service(HttpServlet.java:727) at
& org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appli
cationFilterChain.java:303)
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilt
erChain.java:208)
& ====================================================================
23 Jul 07:49 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
05:49:08 GMT
Dear Christopher,
The solution is fine, but first thing we need to identify the root cause.
If it is the problem of "loading a JSP-based class file." Why it is happened in production environment?
Any solid reason ?
Rahul Kumar Singh
-----Original Message-----
From: Christopher Schultz [mailto:chris &at& christopherschultz.net]
Sent: Wednesday, July 22,
To: Tomcat Users List
Subject: Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 7/21/15 11:02 PM, Rahul Kumar Singh wrote:
& Dear Christopher,
&& Any quotas on the filesystem?
&& Any idea which class it's having trouble loading?
& I have no idea on this but I have got the below exception:
23 Jul 10:39 2015
Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileKonstantin Kolinko &knst.kolinko &at& &
08:39:03 GMT
8:49 GMT+03:00 Rahul Kumar Singh &rahul.singh &at& nectechnologies.in&:
& Dear Christopher,
& The solution is fine, but first thing we need to identify the root cause.
& If it is the problem of "loading a JSP-based class file." Why it is happened in production environment?
& Any solid reason ?
Who knows?
It is your environment and your file.
It is up to you to
perform the diagnostics.
(Or hire some 3rd party and to provide them access to your system).
For starters, we do not know what file is broken.
Also you stacktrace does not show the "root cause". Where this class
loading error was detected?
There shall be stacktrace from
java.lang.ClassFormatError that was wrapped by ServletException.
only provided 3 lines of stacktrace of ServletException.
It may be compiler's fault -- current version is 7.0.63 and it has a
newer version of compiler,
or you are hitting some size limit -- quotas, disk partition size, 2Gb
limit, etc.,
or you have broken file / faulty HDD --
Maybe not the class file for a JSP page is broken, but some other
class file on your system....
23 Jul 10:46 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
08:46:48 GMT
Dear Konstantin,
Sorry for the inconvenience caused due to the below!!
We will take care this in future post.
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko &at& ]
Sent: Thursday, July 23,
To: Tomcat Users List
Subject: Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file
8:49 GMT+03:00 Rahul Kumar Singh &rahul.singh &at& nectechnologies.in&:
& Dear Christopher,
& The solution is fine, but first thing we need to identify the root cause.
& If it is the problem of "loading a JSP-based class file." Why it is happened in production environment?
& Any solid reason ?
Who knows?
It is your environment and your file.
It is up to you to perform the diagnostics.
(Or hire some 3rd party and to provide them access to your system).
For starters, we do not know what file is broken.
Also you stacktrace does not show the "root cause". Where this class loading error was detected?
shall be stacktrace from java.lang.ClassFormatError that was wrapped by ServletException.
provided 3 lines of stacktrace of ServletException.
21 Jul 17:30 2015
RE: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class fileRahul Kumar Singh &rahul.singh &at& nectechnologies.in&
15:30:41 GMT
Dear Konstantin,
Do you have sufficient free space on your hard drive?
Maybe your disk is full.
Did it happen once only, or this is a repeating error?
-----Original Message-----
From: Konstantin Kolinko [mailto:knst.kolinko &at& ]
Sent: Tuesday, July 21,
To: Tomcat Users List
Subject: Re: Tomcat 7 (7.0.54) java.lang.ClassFormatError: Truncated class file
11:41 GMT+03:00 Rahul Kumar Singh &rahul.singh &at& nectechnologies.in&:
& Hello Tomcat team,
& Thanks for your always support !!
& Please do the needful on below problem.
& Web Application credential:
& -------------------------------------
& Servlet used :servelet3.0
& MVC framework: Struts2.0
& Java: Open JDK 1.7
& ------------------------------------
& We have observe the below error in production environment. What is the cause of the issue.
& ======================================================================
& ==================java - Maven is suddenly throwing error, Truncated class file - Stack Overflow
to customize your list.
Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.
J it only takes a minute:
Join the Stack Overflow community to:
Ask programming questions
Answer and help your peers
Get recognized for your expertise
Yesterday Maven is working fine,,today it shows that problem,I tried backup also it does not work ,and for your information tomcat is working fine its a maven problem ,and I uninstall maven and install it again and all things before posting this question
{Stack trace:
-----------------------------------------------------------------------
Exception in thread "main" java.lang.ClassFormatError: Truncated class file
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:30)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)
at java.lang.reflect.Constructor.newInstance(Constructor.java:513)
at java.lang.reflect.Proxy.newProxyInstance(Proxy.java:588)
at sun.reflect.annotation.AnnotationParser.annotationForMap(AnnotationParser.java:239)
at sun.reflect.annotation.AnnotationParser.parseAnnotation(AnnotationParser.java:229)
at sun.reflect.annotation.AnnotationParser.parseAnnotations2(AnnotationParser.java:69)
at sun.reflect.annotation.AnnotationParser.parseAnnotations(AnnotationParser.java:52)
at java.lang.reflect.Field.declaredAnnotations(Field.java:1016)
at java.lang.reflect.Field.getAnnotation(Field.java:1000)
at com.google.inject.spi.InjectionPoint.getAtInject(InjectionPoint.java:468)
at com.google.inject.spi.InjectionPoint.getInjectionPoints(InjectionPoint.java:653)
at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:358)
at com.google.inject.spi.InjectionPoint.forInstanceMethodsAndFields(InjectionPoint.java:377)
at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:106)
at com.google.inject.internal.BindingBuilder.toProvider(BindingBuilder.java:43)
at org.sonatype.guice.plexus.binders.PlexusTypeBinder.hear(PlexusTypeBinder.java:85)
at org.sonatype.guice.plexus.binders.PlexusXmlBeanModule.configure(PlexusXmlBeanModule.java:91)
at org.sonatype.guice.plexus.binders.PlexusBindingModule.configure(PlexusBindingModule.java:62)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.spi.Elements.getElements(Elements.java:80)
at org.sonatype.guice.bean.binders.MergedModule.configure(MergedModule.java:54)
at com.google.inject.spi.Elements$RecordingBinder.install(Elements.java:229)
at com.google.inject.spi.Elements.getElements(Elements.java:103)
at com.google.inject.internal.InjectorShell$Builder.build(InjectorShell.java:136)
at com.google.inject.internal.InternalInjectorCreator.build(InternalInjectorCreator.java:104)
at com.google.inject.Guice.createInjector(Guice.java:94)
at com.google.inject.Guice.createInjector(Guice.java:71)
at com.google.inject.Guice.createInjector(Guice.java:61)
at org.codehaus.plexus.DefaultPlexusContainer.addPlexusInjector(DefaultPlexusContainer.java:470)
at org.codehaus.plexus.DefaultPlexusContainer.&init&(DefaultPlexusContainer.java:196)
at org.codehaus.plexus.DefaultPlexusContainer.&init&(DefaultPlexusContainer.java:160)
at org.apache.maven.cli.MavenCli.container(MavenCli.java:375)
at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:191)
at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)
at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)
at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)
at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)}
9,867153758
Clean your maven repository:
(By default in your user folder)
~/.m2/repository
Then perform a clean install so it download the dependencies again and recompile your entire project:
mvn clean install
13.5k53664
ClassFormatError: Truncated class file
means that one of the class file is corrupted. Try to run clean goal to do the bad classes cleanup before you run the install target. Or simply combine both the targets and do mvn clean install for your project.
42.4k63569
I can see from your stac-trace that you are using reflection. Is the class working when you use it normally? Is it possible that when you use reflection, the class is unreachable or mis-used?
14.1k113984
After all the research and changing things, i found the solution,
I updated Maven dependency,it doesn't work,
I uninstall tomcat and Java and then reinstall it.
And the error is that Java Jdk is corrupted due to some reason i Dont Know it why.....
and thanks all for your suggestions
Your Answer
Sign up or
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Post as a guest
By posting your answer, you agree to the
Not the answer you're looking for?
Browse other questions tagged
Stack Overflow works best with JavaScript enabledTruncated class file,该怎么处理_百度知道
Truncated class file,该怎么处理
不许分大小写.。注重。 下面是其他的一些保留字,还有很多设备名都不能拿来用您好,如下.: The following reserved device names cannot b,con。Con! con是操作系统保留的一个设备名字,很高兴为您解答,CON 都不可以,在Windows下面都不能创建
为您提供更好的产品和服务
主营:七彩虹品牌主板,显卡等电脑及配件产品
其他类似问题
为您推荐:
class的相关知识
等待您来回答
下载知道APP
随时随地咨询
出门在外也不愁Java报错 Class file co-中国学网-中国IT综合门户网站
> 信息中心 >
Java报错 Class file co
来源:互联网 发表时间: 16:47:43 责任编辑:王亮字体:
为了帮助网友解决“Java报错 Class file co”相关的问题,中国学网通过互联网对“Java报错 Class file co”相关的解决方案进行了整理,用户详细问题包括:RT,我想知道:Java报错 Class file collision: A resource exists with a different case: '/Demo/bin/person.class'.,具体解决方案如下:解决方案1:第一行编写完代码就有这个错误 不知道咋回事 求各位帮下忙谢谢解决方案2: 把eclipse里面其他工程关闭了;bin/person.class下面的class文件 你是不是曾经直接命令行编译过。2 清空Demo&#47解决方案3:什么文件名冲突了改哪个解决方案4:person这个文件解决方案5:具体怎么改你可以告诉我你QQ 加一下 帮我吗解决方案6:把工程打包发来看看解决方案7:还有个小写的person类吧。错误信息是说已经存在一个person.class的文件
1个回答1个回答1个回答3个回答5个回答2个回答2个回答1个回答7个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答1个回答
相关文章:
最新添加资讯
24小时热门资讯
Copyright © 2004- All Rights Reserved. 中国学网 版权所有
京ICP备号-1 京公网安备02号

我要回帖

更多关于 java file classpath 的文章

 

随机推荐