INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Jobs

java.lang.NullPointerException

java.lang.NullPointerException

(OP)
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)

RE: java.lang.NullPointerException

(OP)
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.

RE: java.lang.NullPointerException

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Resources

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close