Jump to content

NullPointerException when filling report due to uninstall clutter


pawelc

Recommended Posts

Hi all,

I have NullPointerException when Preview report using custom adapter (print stack below).

Arguably this may the adapter itself (I dont have the source code) but the fact is that my workmate installed the same versions and it works for him fine.

The only difference being I had some previous version of  JapserStudio installed and uninstalled. That why I reckon it must be some clutter after the previous version not quite cleared.

I will appreciate any comments on this thread please.

Note: I tried to reinstall different versions, running under Administration privileges on my Windows machine, just simply ran out of ideas, please help!

net.sf.jasperreports.engine.JRException: java.lang.NullPointerException
    at com.jaspersoft.studio.editor.preview.view.control.ReportController.fillReport(ReportController.java:551)
    at com.jaspersoft.studio.editor.preview.view.control.ReportController.access$18(ReportController.java:526)
    at com.jaspersoft.studio.editor.preview.view.control.ReportController$1.run(ReportController.java:444)
    at org.eclipse.core.internal.jobs.Worker.run(Worker.java:63)
Caused by: java.lang.NullPointerException
    at com.redprairie.moca.jrds.UomConverter.convert(UomConverter.java:46)
    at com.redprairie.moca.jrds.JRMocaQueryExecuter.executeQuery(JRMocaQueryExecuter.java:127)
    at com.redprairie.moca.jrds.JRMocaQueryExecuter.createDatasource(JRMocaQueryExecuter.java:88)
    at net.sf.jasperreports.engine.fill.JRFillDataset.createQueryDatasource(JRFillDataset.java:1257)
    at net.sf.jasperreports.engine.fill.JRFillDataset.initDatasource(JRFillDataset.java:726)
    at net.sf.jasperreports.engine.fill.BaseReportFiller.setParameters(BaseReportFiller.java:457)
    at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:578)
    at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:135)
    at java.lang.Thread.run(Thread.java:748)

 

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Thanks for your suggestions. The solution was just about the place you mention.

I was trying different versions of the plugin (Data Adapter) for my data source and they were all corrupted. That is, they were failing with the error print stack above. Ultimately I got a jar that  proved to work, so much time wated on trial and error!

Thanks again for being ready to help.
Pawel.

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