NullPointerException -- closing as a duplicate of an existing question

0
grl's picture
grl
17
Joined: Jul 28 2014 - 11:17am
Last seen: 4 years 9 months ago

A null pointer is a pointer that does not refer to a valid object. Its a generic concept in programming.

Is this the entire error stack?

djohnson53 - 5 years 2 months ago

3 Answers:

0

I would say that the JRAbstractExporter's method ensureInput() didn't like something that was handed to it.

functions, say  f(x),  pass the x into the function either by value (a copy of a small object) or by reference (for larger objects) which is a pointer to the original x.

Exporters are routines that format a report's output into different forms and then write it out, or export it. I would think that something you are passing to the method is actually null.  This could be a mis-spelling - like instead of 'x' you did: f(xx), and xx doesn't exist. Inside of f(), it would have a null value.

If you can supply more info, someone might be able to add more.

djohnson53's picture
78835
Joined: May 25 2012 - 11:10am
Last seen: 8 hours 55 min ago
0

You haven't provided any information on which version of JasperReports Server you're using nor what you did to get that error.

 

Anyways, to find the cause of the error, there should be a "Caused by" clause further down the log. That should explain why it's erroring out.

hozawa's picture
54430
Joined: Apr 24 2010 - 4:31pm
Last seen: 6 months 2 days ago
0

I am trying scriptlets for the first time with jasper. 

I have a variable $V{options} in the sql statement like

select state, sum(value) from mytable where locale in ('$V!{options}') group by state;

The $V{options} is a String and its expression is value is set to $P{myscriptlet_SCRIPTLET}.getChoices{$P{param})

I also havve a $P{myscriptlet_SCRIPTLET} whose class is the custom based class I implemented. 

$V{options} is null ... 

grl's picture
grl
17
Joined: Jul 28 2014 - 11:17am
Last seen: 4 years 9 months ago
Feedback
randomness