This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

jasperAssistant 2.4.2 Error loading object from InputStream  RSS feed

 
Versha Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have upgraded to myeclipse 10.7 ,java "com.sun.java.jdk.win32.x86_64_1.6.0.013" and Struts 2.1 (Right now using Struts 1.1 support) from
myeclipse 10.7 ,java 1.4 and Struts 1.1.

I installed jasperassistant 2.4.2 plug-in using jasperReports 2.0.2 (My old report files were using same version).
All files compile successfully in new environment but when I export I get following error
Export to PDF
a. Reports having no crosstab
"Java.lang.NullPointerException"
b. Reports reports having crosstab
"Error loading object from InputStream"
java.io.InvalidClassException: net.sf.jasperreports.crosstabs.base.JRBaseCrosstabGroup;
Export to EXCEL
a. Reports having no crosstab
java.lang.NullPointerException
b. Reports reports having crosstab
java.lang.NullPointerException
All files are at correct location
 
Versha Agarwal
Greenhorn
Posts: 27
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I resolved it my self.
Downloaded jasperreports-5.6.1.jar, itext-2.1.7.jar,
poi-3.9.jar and added to /WebRoot/WEB-INF/lib folder.

But now i am getting

org.apache.jasper.JasperException: Unable to compile class for JSP:

An error occurred at line: [14] in the generated java file: [C:\Program Files\Apache Software Foundation\Tomcat 7.0\work\Catalina\192.168.0.179\mmmEms\org\apache\jsp\jsp\index_jsp.java]
Only a type can be imported. com.ems.common.EmsConstants resolves to a package

An error occurred at line: 9 in the jsp file: /jsp/index.jsp
EmsConstants.ATTR_LOGOUT_MESSAGE cannot be resolved to a type
6: <td width="100%" bgcolor="#f5f5f5">
7: <table width="100%" border="0">
8: <%
9: String msg = (String)request.getAttribute(EmsConstants.ATTR_LOGOUT_MESSAGE);;
10: if (msg!= null){ %>
11:
12: <TR>


Stacktrace:
org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:103)
org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:366)
org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:485)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:379)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:354)
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!