wood burning stoves 2.0*
The moose likes Other Open Source Projects and the fly likes Jasper Report Error Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Jasper Report Error" Watch "Jasper Report Error" New topic
Author

Jasper Report Error

Deviprasad Shaw
Greenhorn

Joined: Mar 24, 2009
Posts: 4
Hi All,

I am using Jasper Report 2.0.1 in my application deployed in Weblogic 8.1 SP2 in Sun Solaris 10 OS and getting the below error while generating the reports.
But the same is working fine in windows xp os.

I have added all the required Jasper JAR files in the EAR file and added the below in the Weblogic startup script:
java.awt.headless = true

Please help me to resolve the issue.

The thread dump is as below:

java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:141)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvIniti
alizer.java:58)
at net.sf.jasperreports.engine.fill.JRBaseFiller.<init>(JRBaseFiller.java:361)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:77)
at net.sf.jasperreports.engine.fill.JRVerticalFiller.<init>(JRVerticalFiller.java:59)
at net.sf.jasperreports.engine.fill.JRFiller.createFiller(JRFiller.java:147)
at net.sf.jasperreports.engine.fill.JRFiller.fillReport(JRFiller.java:83)
at net.sf.jasperreports.engine.JasperFillManager.fillReport(JasperFillManager.java:601)
at com.crimsonlogic.trade.ipapcs.reports.util.GenerateReport.fillReportWithDataSource(Genera
teReport.java:176)
at com.crimsonlogic.trade.ipapcs.reports.action.GenerateVoyageReportAction.execute(GenerateV
oyageReportAction.java:161)
at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:415)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.jav
a:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at com.crimsonlogic.cps.filter.PortalRedirectFilter.doFilter(PortalRedirectFilter.java:90)
at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletC
ontext.java:6987)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:38
92)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

Are you using the same versions of the JDK/JRE on both OS's?


Cheers, Martijn - Blog,
Twitter, PCGen, Ikasan, My The Well-Grounded Java Developer book!,
My start-up.
Deviprasad Shaw
Greenhorn

Joined: Mar 24, 2009
Posts: 4
Yes... We are using JDK1.4.2 on both the OS.

Please advice if any display related configuration need to be done on the Weblogic or OS.
Martijn Verburg
author
Bartender

Joined: Jun 24, 2003
Posts: 3274
    
    5

I'm afraid I don't know anything further about this. It does appear that some sort of native library (or part of the JDK 1.4.2 install) is missing from your solaris OS. I'd try posting on the Jasper forums...
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Jasper Report Error
 
Similar Threads
java.lang.ExceptionInInitializerError
Error 500--Internal Server Error-Null Pointer Exception
DynaActionForm -null pointer exception
JasperReports - Run time error: java.lang.NoClassDefFoundError
Software caused connection abort: socket write error