This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 185429

Summary: equinox sample cannot find NB harness
Product: platform Reporter: Tomas Danek <musilt2>
Component: NetigsoAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal    
Priority: P3    
Version: 6.x   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Bug Depends on: 71515    
Bug Blocks:    

Description Tomas Danek 2010-05-04 12:15:01 UTC
Product Version: NetBeans IDE Dev (Build 201005030200)
Java: 1.6.0_14; Java HotSpot(TM) Client VM 14.0-b16
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Userdir: C:\Documents and Settings\Tomas\.netbeans\dev
-------
- started ide with fresh userdir
- created equinox sample project -> output shows


C:\Documents and Settings\Tomas\My Documents\NetBeansProjects\e\build.xml:7: The following error occurred while executing this line:
C:\Documents and Settings\Tomas\My Documents\NetBeansProjects\e\nbproject\build-impl.xml:41: Cannot find NetBeans build harness. 
Check that nbplatform.default.netbeans.dest.dir and nbplatform.default.harness.dir are defined. 
On a developer machine these are normally defined in ${user.properties.file}=C:\Documents and Settings\Tomas\.netbeans\dev/build.properties 
but for automated builds you should pass these properties to Ant explicitly.


build.properties in userdir contains:
nbplatform.default.harness.dir=${nbplatform.default.netbeans.dest.dir}/harness
nbplatform.default.netbeans.dest.dir=C:\\Program Files\\NetBeans Dev 201005030200
which seem to be correct.

- clean and build on suite seems to be ok, but running suite results with:

java.io.FileNotFoundException: C:\Documents%20and%20Settings\Tomas\My%20Documents\NetBeansProjects\e\build\cluster\modules\org-netbeans-demo-osgi-showbundles.jar
        at org.eclipse.osgi.framework.internal.protocol.reference.ReferenceURLConnection.connect(ReferenceURLConnection.java:46)
        at org.eclipse.osgi.framework.internal.protocol.reference.ReferenceURLConnection.getInputStream(ReferenceURLConnection.java:61)
        at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:56)
Caused: org.osgi.framework.BundleException: An error occurred trying to read the bundle
        at org.eclipse.osgi.internal.baseadaptor.BundleInstall.begin(BundleInstall.java:94)
        at org.eclipse.osgi.framework.internal.core.Framework.installWorkerPrivileged(Framework.java:922)
        at org.eclipse.osgi.framework.internal.core.Framework$1.run(Framework.java:838)
        at java.security.AccessController.doPrivileged(Native Method)
        at org.eclipse.osgi.framework.internal.core.Framework.installWorker(Framework.java:889)
        at org.eclipse.osgi.framework.internal.core.Framework.installBundle(Framework.java:833)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:167)
        at org.eclipse.osgi.framework.internal.core.BundleContextImpl.installBundle(BundleContextImpl.java:161)
        at org.netbeans.core.netigso.Netigso.fakeOneModule(Netigso.java:299)
Caused: java.io.IOException
        at org.netbeans.core.netigso.Netigso.fakeOneModule(Netigso.java:317)
        at org.netbeans.core.netigso.Netigso.prepare(Netigso.java:129)
        at org.netbeans.NetigsoFramework.turnOn(NetigsoFramework.java:157)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:933)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:283)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)
        at org.netbeans.core.startup.Main.start(Main.java:299)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:111)
[catch] at java.lang.Thread.run(Thread.java:619)
SEVERE [org.openide.util.Exceptions]
java.io.IOException: Not found bundle:org.netbeans.demo.osgi.showbundles
        at org.netbeans.core.netigso.Netigso.createLoader(Netigso.java:197)
        at org.netbeans.NetigsoModule.start(NetigsoModule.java:107)
        at org.netbeans.NetigsoFramework.delayedInit(NetigsoFramework.java:185)
        at org.netbeans.NetigsoFramework.turnOn(NetigsoFramework.java:159)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:933)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:283)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)
        at org.netbeans.core.startup.Main.start(Main.java:299)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:111)
[catch] at java.lang.Thread.run(Thread.java:619)
java.lang.NullPointerException
        at org.netbeans.core.netigso.Netigso.toActivate(Netigso.java:167)
        at org.netbeans.core.netigso.Netigso.start(Netigso.java:146)
        at org.netbeans.NetigsoFramework.turnOn(NetigsoFramework.java:160)
        at org.netbeans.ModuleManager.enable(ModuleManager.java:933)
        at org.netbeans.core.startup.ModuleList.installNew(ModuleList.java:315)
        at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:251)
        at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:283)
        at org.netbeans.core.startup.Main.getModuleSystem(Main.java:169)
        at org.netbeans.core.startup.Main.start(Main.java:299)
        at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:111)
        at java.lang.Thread.run(Thread.java:619)
Result: 2
C:\Program Files\NetBeans Dev 201005030200\harness\suite.xml:483: The following error occurred while executing this line:
C:\Program Files\NetBeans Dev 201005030200\harness\run.xml:190: The application is already running within the test user directory.
You must shut it down before trying to run it again.
BUILD FAILED (total time: 17 seconds)
Comment 1 Jaroslav Tulach 2010-05-06 09:08:13 UTC
core-main#a171a47f3b25

Btw. I expect a constructive comment by Jesse soon...
Comment 2 Quality Engineering 2010-05-10 09:13:05 UTC
Integrated into 'main-golden', will be available in build *201005100200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/
User: 
Log: