Jump to content
Changes to the Jaspersoft community edition download ×

stream classdesc serialVersionUID = 406


Recommended Posts

By: Luiz Antonio Ramos Filho - luizrms

stream classdesc serialVersionUID = 406

2003-07-31 08:30

When I try to generate my PDF using JSP I get this message:

 

java.io.InvalidClassException: dori.jasper.engine.base.JRBaseReport; local class incompatible: stream classdesc serialVersionUID = 406, local class serialVersionUID = 500

 

 

The code I used is:

 

<%@ page errorPage="error.jsp" %>

<%@ page import="datasource.*" %>

<%@ page import="dori.jasper.engine.*" %>

<%@ page import="java.util.*" %>

<%@ page import="java.io.*" %>

 

<%

File reportFile = new File(application.getRealPath("/reports/etiquetas.jasper"));

 

Map parameters = new HashMap();

 

byte[] bytes =

JasperRunManager.runReportToPdf(

reportFile.getPath(),

parameters,

new WebappDataSource()

);

 

response.setContentType("application/pdf");

response.setContentLength(bytes.length);

ServletOutputStream ouputStream = response.getOutputStream();

ouputStream.write(bytes, 0, bytes.length);

ouputStream.flush();

ouputStream.close();

%>

 

 

 

 

By: Liheng Qiao - qlheng

RE: stream classdesc serialVersionUID = 406

2003-07-31 11:56

I met the same problem when I tried to fill the report created by 0.4.6 with 0.5.0. I'm not sure if this is the reason for your problem.

 

 

 

 

By: G᢯r M󣺡r - moczar

RE: stream classdesc serialVersionUID = 406

2003-07-31 12:07

I think your report was compiled with 0.4.6, but you are trying to run it with 0.5.0.

Check your subreports too!

 

I hope it helps!

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...