Forum Discussion

TommyTester's avatar
TommyTester
Occasional Contributor
6 years ago

Ready API 2.4.0 - java.lang.NullPointerException for Test Suite report when Coverage enabled

Hello,

 

I have upgraded to Ready API 2.4.0 and have started to receive a java.lang.NullPointerException when clicking the report icon after a Test Suite run (error logs appended below).

 

Upon investigation, this appears to be occurring when either: a) "Enable Coverage" is ticked on the Coverage tab in the Test Suite, or b) in Preferences > Coverage, "Automatically prepare coverage reports" is ticked.

 

Unticking either of these stops the NullPointerException.

 

Does anyone have any ideas why this has stopped working in 2.4.0 and if there is a fix?

 

Thanks

 

==============================================

 

  • Fri Jun 08 10:33:37 BST 2018: ERROR: java.lang.NullPointerException
  • java.lang.NullPointerException
  • at com.eviware.soapui.impl.coverage.report.CoverageReportBuilder.a(CoverageReportBuilder.java:121)
  • at com.eviware.soapui.impl.coverage.report.CoverageReportBuilder.getTestSuiteCoverageData(CoverageReportBuilder.java:454)
  • at com.eviware.soapui.reporting.reports.coverage.TestSuiteCoverageSubReportFactory$TestSuiteCoverageSubReport.buildDataSource(TestSuiteCoverageSubReportFactory.java:51)
  • at com.eviware.soapui.reporting.reports.coverage.TestSuiteCoverageSubReportFactory$TestSuiteCoverageSubReport.buildDataSource(TestSuiteCoverageSubReportFactory.java:1)
  • at com.eviware.soapui.reporting.reports.support.AbstractJasperSubReport.getJRDataSource(AbstractJasperSubReport.java:27)
  • at com.eviware.soapui.reporting.engine.jasper.JasperReportEngine.checkDependencies(JasperReportEngine.java:76)
  • at com.eviware.soapui.reporting.engine.jasper.JasperReportEngine$GeneratableJasperReport.c(JasperReportEngine.java:251)
  • at com.eviware.soapui.reporting.engine.jasper.JasperReportEngine$GeneratableJasperReport.getConfigurationComponent(JasperReportEngine.java:140)
  • at com.eviware.soapui.impl.wsdl.actions.testcase.CreateReportAction.actionPerformed(CreateReportAction.java:125)
  • at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:2022)
  • at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2348)
  • at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:402)
  • at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:259)
  • at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:252)
  • at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:289)
  • at java.awt.Component.processMouseEvent(Component.java:6533)
  • at javax.swing.JComponent.processMouseEvent(JComponent.java:3324)
  • at java.awt.Component.processEvent(Component.java:6298)
  • at java.awt.Container.processEvent(Container.java:2237)
  • at java.awt.Component.dispatchEventImpl(Component.java:4889)
  • at java.awt.Container.dispatchEventImpl(Container.java:2295)
  • at java.awt.Component.dispatchEvent(Component.java:4711)
  • at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4889)
  • at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4526)
  • at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4467)
  • at java.awt.Container.dispatchEventImpl(Container.java:2281)
  • at java.awt.Window.dispatchEventImpl(Window.java:2746)
  • at java.awt.Component.dispatchEvent(Component.java:4711)
  • at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:760)
  • at java.awt.EventQueue.access$500(EventQueue.java:97)
  • at java.awt.EventQueue$3.run(EventQueue.java:709)
  • at java.awt.EventQueue$3.run(EventQueue.java:703)
  • at java.security.AccessController.doPrivileged(Native Method)
  • at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
  • at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:90)
  • at java.awt.EventQueue$4.run(EventQueue.java:733)
  • at java.awt.EventQueue$4.run(EventQueue.java:731)
  • at java.security.AccessController.doPrivileged(Native Method)
  • at java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(ProtectionDomain.java:80)
  • at java.awt.EventQueue.dispatchEvent(EventQueue.java:730)
  • at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:205)
  • at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:116)
  • at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:105)
  • at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:101)
  • at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
  • at java.awt.EventDispatchThread.run(EventDispatchThread.java:82)

3 Replies

    • geneticmaterial's avatar
      geneticmaterial
      Contributor

      We have the same issue in 2.6 and a snapshot maintenance build ReadyAPI 2.6.0-m-SNAPSHOT.
      We have 2 projects in use and only 1 does this. The other creates the report correctly. I've raised this directly with support so hopefully we can bottom out the issue.