Jump to content
Changes to the Jaspersoft community edition download ×

java.io.InvalidClassException


Recommended Posts

By: Adriana Mestrinelli Paranhos - jasperdri

java.io.InvalidClassException

2003-04-04 03:45

Hello everyone...

 

when I tried to run my report in a servlet, I got this error:

 

java.io.InvalidClassException: dori.jasper.engine.base.JRBaseReport; Local class not compatible: stream classdesc serialVersionUID=405 local class serialVersionUID=402

at java.io.ObjectStreamClass.validateLocalClass(Unknown Source)

at java.io.ObjectStreamClass.setClass(Unknown Source)

at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.io.ObjectInputStream.inputClassDescriptor(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.io.ObjectInputStream.inputObject(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at java.io.ObjectInputStream.readObject(Unknown Source)

at dori.jasper.engine.util.JRLoader.loadObject(JRLoader.java:120)

at dori.jasper.engine.JasperRunManager.runReportToHtmlFile(JasperRunManager.java:333)

at servlets.teste.service(teste.java:33)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.servlets.InvokerServlet.serveRequest(InvokerServlet.java:446)

at org.apache.catalina.servlets.InvokerServlet.doGet(InvokerServlet.java:180)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)

at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)

at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:201)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2344)

at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:164)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:462)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:163)

at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)

at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)

at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)

at org.apache.catalina.connector.http.HttpProcessor.process(HttpProcessor.java:1011)

at org.apache.catalina.connector.http.HttpProcessor.run(HttpProcessor.java:1106)

at java.lang.Thread.run(Unknown Source)

 

 

can anyone help me with this error, please??

what does it mean??

 

thanx a lot

 

 

By: Teodor Danciu - teodord

RE: java.io.InvalidClassException

2003-04-04 08:12

 

Hi,

 

When you change the JasperReports version,

make sure you recompile the .jasper files.

This is a version mismatch.

 

Thank you,

Teodor

 

 

 

By: bpdy9fg - bpdy9fg

RE: java.io.InvalidClassException

2005-03-31 03:01

Hi,

 

I have just upgraded to version 0.6.5.

 

Does this mean that all jasperprint files created with version 0.6.4. that I have stored in my db can never be retreived once I upgrade my version?

 

I am getting and InvalidClassException.

 

ciao

Brian

 

 

 

By: Daren O - rckrll106

RE: java.io.InvalidClassException

2005-03-31 06:04

There was some talk in the past about possibly removing the UID (so older versions would be compatible) but I believe the same situation exists (because your getting the exception) that you must recompile when you upgrade to a newer version.

 

Note - iReport has a "massive compiler" that makes recompiling easier.

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...