Service Desk Practitioners Forum
cancel
Showing results for 
Search instead for 
Did you mean: 

java.lang.NullPointerException without a Stacktrace

Highlighted
Pavel Krumnikl
Acclaimed Contributor

java.lang.NullPointerException without a Stacktrace

Hello,

Our application, based on java is time to tim ethrowing out the

java.lang.NullPointerException

For diagnostics purpose, we’ve captured the RuntimeException and putting debug statements, including

RuntimeException.printStackTrace()

However, this methods is not printing any stack trace

printStackTrace() is only printing:

java.lang.NullPointerException



There is no stack trace for the exception?

This should ideally be with the stack trace. E.g:

java.lang.NullPointerException
[2005-09-28 06:16:02 CEST] java.lang.NullPointerException
at com.webobjects.appserver._private.WOComponentDefinition.(WOCompone ntDefinition.java:84)
at com.webobjects.appserver.WOApplication._componentDefinitionFromClassName d(WOApplication.java:2353)
at com.webobjects.appserver.WOApplication._componentDefinition(WOApplicatio n.java:2448)
at com.webobjects.appserver.WOApplication.pageWithName(WOApplication.java:1 943)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit hPreparedSession(WOComponentRequestHandler.java:273)
at com.webobjects.appserver._private.WOComponentRequestHandler._dispatchWit hPreparedApplication(WOComponentRequestHandler.java:322)
at com.webobjects.appserver._private.WOComponentRequestHandler._handleReque st(WOComponentRequestHandler.java:358)
at com.webobjects.appserver._private.WOComponentRequestHandler.handleReques t(WOComponentRequestHandler.java:435)
at com.webobjects.appserver.WOApplication.dispatchRequest(WOApplication.jav a:1306)
at com.webobjects.appserver._private.WOWorkerThread.runOnce(WOWorkerThread. java:173)
at com.webobjects.appserver._private.WOWorkerThread.run(WOWorkerThread.java :254)
at java.lang.Thread.run(Thread.java:552)



Java version:

$ java -version

java version "1.5.0.04"

Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0.04-_27_jul_2006_10_52)

Java HotSpot(TM) Server VM (build 1.5.0.04 jinteg:07.27.06-09:57 PA2.0 (aCC_AP), mixed mode)

HP-UX version:

$ uname -a

HP-UX omg1 B.11.11 U 9000/800 2785651873 unlimited-user license

Any suggestions, please?

Thansk
Pavel
//Add this to "OnDomLoad" event