stream classdesc serialVersionUID = 406

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!
2002 JI Open Discussion's picture
Joined: Aug 10 2006 - 3:28am
Last seen: 16 years 9 months ago

0 Answers:

No answers yet
Feedback
randomness