Menu

#1 NullPointer when running tests

open
nobody
None
5
2008-08-27
2008-08-27
No

Hello,
I've been using PluginBuilder to build my RCP application on OS X without any problems. I just recently installed a continuous integration software on a server to run the builds automatically to me.
This server is Windows and I run the build by calling ant on the build.xml file generatade by PluginBuilder.

The weird part is that the build runs successfully. It generates my RCP application but the tests fail to run. I get a Java return code 13 because there is a NullPointerException when the ant tries to run the tests.

I've googled to try to find a solution and it seems there is some folder that is not set. The most common answers relate this to a simpleconfigurator but it seems pluginbuilder does not uses that. Have you got any idea what this might be?

Here goes the stack trace left in the metadata folder:
!ENTRY org.eclipse.equinox.p2.garbagecollector 4 2 2008-07-10 14:35:12.750
!MESSAGE Problems occurred when invoking code from plug-in: "org.eclipse.equinox.p2.garbagecollector".
!STACK 0
java.lang.NullPointerException
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.makeAbsolute(EquinoxFwConfigFileParser.java:398)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwConfigFileParser.readFwConfig(EquinoxFwConfigFileParser.java:271)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.loadWithoutFwPersistentData(EquinoxManipulatorImpl.java:368)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.initializeRuntime(EquinoxManipulatorImpl.java:277)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxManipulatorImpl.<init>(EquinoxManipulatorImpl.java:126)
at org.eclipse.equinox.internal.frameworkadmin.equinox.EquinoxFwAdminImpl.getRunningManipulator(EquinoxFwAdminImpl.java:100)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.WhatIsRunning.getFrameworkManipulator(WhatIsRunning.java:21)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.WhatIsRunning.getBundlesBeingRun(WhatIsRunning.java:15)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.MarkSetProvider.addRunningBundles(MarkSetProvider.java:110)
at org.eclipse.equinox.internal.p2.touchpoint.eclipse.MarkSetProvider.getMarkSets(MarkSetProvider.java:47)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector$ParameterizedSafeRunnable.run(GarbageCollector.java:125)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.contributeMarkSets(GarbageCollector.java:135)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.traverseMainProfile(GarbageCollector.java:67)
at org.eclipse.equinox.internal.p2.garbagecollector.GarbageCollector.runGC(GarbageCollector.java:43)
at org.eclipse.equinox.internal.p2.garbagecollector.GCActivator$1.notify(GCActivator.java:74)
at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.dispatchEvent(ProvisioningEventBus.java:86)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
at org.eclipse.osgi.framework.eventmgr.ListenerQueue.dispatchEventSynchronous(ListenerQueue.java:141)
at org.eclipse.equinox.internal.p2.core.ProvisioningEventBus.publishEvent(ProvisioningEventBus.java:71)
at org.eclipse.equinox.internal.provisional.p2.engine.Engine.perform(Engine.java:61)
at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.executeOperands(ProfileSynchronizer.java:358)
at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.executePlan(ProfileSynchronizer.java:349)
at org.eclipse.equinox.internal.p2.reconciler.dropins.ProfileSynchronizer.synchronize(ProfileSynchronizer.java:99)
at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.synchronize(Activator.java:402)
at org.eclipse.equinox.internal.p2.reconciler.dropins.Activator.start(Activator.java:161)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:1009)
at java.security.AccessController.doPrivileged(Native Method)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextImpl.java:1003)
at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:984)
at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
at org.eclipse.osgi.framework.internal.core.AbstractBundle.resume(AbstractBundle.java:355)
at org.eclipse.osgi.framework.internal.core.Framework.resumeBundle(Framework.java:1074)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.resumeBundles(StartLevelManager.java:616)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.incFWSL(StartLevelManager.java:508)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:299)
at org.eclipse.osgi.framework.internal.core.StartLevelManager.dispatchEvent(StartLevelManager.java:489)
at org.eclipse.osgi.framework.eventmgr.EventManager.dispatchEvent(EventManager.java:211)
at org.eclipse.osgi.framework.eventmgr.EventManager$EventThread.run(EventManager.java:321)

Thank you very much for your great work.

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.