Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

java.lang.NullPointerException

Status
Not open for further replies.

S3066

Technical User
Aug 1, 2001
66
US
Hello,

I'm running Crystal reports on the web. I'm getting the infamous java.lang.NullPointerException error when running the Crystal report on the web. The Crystal report runs fine on my PC. The text of the error is as follows -- anyone have any ideas?

Caused by: java.lang.NullPointerException
at com.crystaldecisions.sdk.occa.report.application.ParameterFieldController.do(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.bs.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.bs.byte(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.a3.if(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.a(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.long(Unknown Source)
at com.crystaldecisions.proxy.remoteagent.r.int(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.cf.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.ReportSource.a(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
at com.crystaldecisions.sdk.occa.report.application.PrintOutputController.export(Unknown Source)
 
It turns out what fixed the issue was taking the union query, making a select out of it, and selecting from the selected union. E.g., SELECT FROM (SELECT FROM ...), where the ( ) is the union.
 
The NullPointerException is an error thrown by calling a method without an agument: ParameterFieldController.do(Unknown Source)

If a method expects an object and is passed a null, invoking any methods on this "null argument" will generate an exception.

The source is obviously "unknown" because no actual object was passed when the method was invoked. Really, the Java authors should have called it a NullArgumentError (ie can't be caught).
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top