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

NullPointerException -- closing as a duplicate of an existing question


grl

Recommended Posts

  • Replies 4
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.

Link to comment
Share on other sites

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

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