Jump to content
We've recently updated our Privacy Statement, available here ×

Receiving java.lang.NoClassDefFoundError: null


UniFloripa

Recommended Posts

I am need of some help!!!!!! The JI is running and working fine, but every day when ocurrs that i tried to rum any report, I am receiving the following error:

 

org.springframework.web.util.NestedServletException: Handler processing failed; nested exception is java.lang.NoClassDefFoundError: null

org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:832)

org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:726)

org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:396)

org.springframework.web.servlet.FrameworkS . . .

 

root cause

 

java.lang.NoClassDefFoundError

java.lang.Class.forName0(Native Method)

java.lang.Class.forName(Class.java:164)

java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:68)

net.sf.jasperreports.engine.util.JRGraphEnvInitializer.initializeGraphEnv(JRGraphEnvInitializer.java:58)

net.sf . . .

 

 

This problem occurs with the Jasperserver installed under linux, but not with XP.

I have no idea of what to do?

 

Any help would be greatly appreaciated.

 

Thanks

Patrick

Link to comment
Share on other sites

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

  • 4 weeks later...
  • 5 months later...

Hi,

My Tomcat server is on Solaris and I get the same exception but it appears sometimes and when I restart a tomcat, reports started working fine.

 

I havent set java.awt.headless=true;

 

My tomcat version is 5.5

and my jasper reports version is 3.0

 

Please let me know how can reproduce this problem everytime and how can I fix.

 

Regards,

Ankur

Link to comment
Share on other sites

  • 5 months later...

Hi,

I have the same problem as UniFloripa and I see with interest the swood's response.

I come to you to ask you how run my JVM on Linux with the parameter:

-Djava.awt.headless=true

As you can see, my level with java is fairly small :blush:

Thnaks in advance for your reply and help.

Link to comment
Share on other sites

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