java.lang.NullPointerException on CodeCoverageView.java:1527

CodePro AnalytiX (Audit & Test), includes over 1000 audit rules and metrics, JUnit test generation & editing, code coverage, and duplicate code analysis

Moderators: gnebling, jwren, Eric Clayberg, Dan Rubel, Brian Wilkerson, dcarew

java.lang.NullPointerException on CodeCoverageView.java:1527

Postby serkans » Sat Jan 22, 2011 7:37 am

Hi All,

I am using Eclipse Helios X86_64 Windows

I am trying to generate code coverage report within the ide and getting the below exception.

My Log file looks like :
!SESSION 2011-01-24 16:50:53.942 -----------------------------------------------
eclipse.buildId=I20100608-0911
java.version=1.6.0_23
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86_64, WS=win32, NL=tr_TR
Framework arguments: -product org.eclipse.epp.package.jee.product
Command-line arguments: -os win32 -ws win32 -arch x86_64 -product org.eclipse.epp.package.jee.product

!ENTRY org.eclipse.jdt.launching 4 500 2011-01-24 16:59:22.754
!MESSAGE Cannot use Code Coverage launch configuration on instrumented projects. Either uninstrument the projects com.oksijen.sdf.pp.sdkTest or use a different kind of launch configuration.

!ENTRY org.eclipse.jdt.launching 4 500 2011-01-24 17:01:51.402
!MESSAGE Cannot use Code Coverage launch configuration on instrumented projects. Either uninstrument the projects com.oksijen.sdf.pp.sdkTest or use a different kind of launch configuration.

!ENTRY org.eclipse.ui 4 0 2011-01-24 17:13:22.236
!MESSAGE Unhandled event loop exception
!STACK 0
java.lang.NullPointerException
at com.instantiations.assist.eclipse.coverage.ui.view.CodeCoverageView.generateReport(CodeCoverageView.java:1527)
at com.instantiations.assist.eclipse.coverage.ui.view.CodeCoverageView.access$17(CodeCoverageView.java:1497)
at com.instantiations.assist.eclipse.coverage.ui.view.CodeCoverageView$29.run(CodeCoverageView.java:1280)
at org.eclipse.jface.action.Action.runWithEvent(Action.java:498)
at org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:584)
at org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:501)
at org.eclipse.jface.action.ActionContributionItem$6.handleEvent(ActionContributionItem.java:452)
at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)
at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1053)
at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:4066)
at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3657)
at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2629)
at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2593)
at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2427)
at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:670)
at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:663)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149)
at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:115)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110)
at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:369)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:179)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:619)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:574)
at org.eclipse.equinox.launcher.Main.run(Main.java:1407)
at org.eclipse.equinox.launcher.Main.main(Main.java:1383)

!ENTRY com.instantiations.eclipse 1 0 2011-01-24 17:16:57.258
!MESSAGE Failed to determine version of plugin com.instantiations.eclipse.application.audit

!ENTRY com.instantiations.eclipse 1 0 2011-01-24 17:16:57.259
!MESSAGE Failed to determine version of plugin com.instantiations.profiler.ui

!ENTRY com.instantiations.eclipse 1 0 2011-01-24 17:16:57.259
!MESSAGE Failed to determine version of plugin com.windowtester.runtime

!ENTRY com.instantiations.eclipse 1 0 2011-01-24 17:16:57.260
!MESSAGE Failed to determine version of plugin com.instantiations.designer.core

!ENTRY com.instantiations.eclipse 1 0 2011-01-24 17:16:57.260
!MESSAGE Failed to determine version of plugin com.windowtester.runtime
serkans
 
Posts: 1
Joined: Sat Jan 22, 2011 7:29 am

Re: java.lang.NullPointerException on CodeCoverageView.java:

Postby gnebling » Mon Jan 24, 2011 10:51 am

I have not been able to reproduce this. Is it repeatable? How about if you close and reopen Eclipse? Could you please try using our sample project (File>Import>Codepro...) to see if you still get the error.
gnebling
Moderator
 
Posts: 243
Joined: Tue Aug 22, 2006 7:49 am


Return to CodePro AnalytiX & PlusPak. EclipsePro Audit & Test

Who is online

Users browsing this forum: No registered users and 1 guest

cron