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 206347 - Applications not using OSGi don't start on NbP 7.1
Summary: Applications not using OSGi don't start on NbP 7.1
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.1
Hardware: PC Windows Vista
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: REGRESSION
: 206285 207134 (view as bug list)
Depends on: 205019
Blocks:
  Show dependency tree
 
Reported: 2011-12-13 23:26 UTC by bdschubert
Modified: 2012-02-14 16:26 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Can you test this patch please? (2.25 KB, patch)
2011-12-14 08:10 UTC, Jaroslav Tulach
Details | Diff
RCP test app that duplicates the problem (74.63 KB, application/x-zip-compressed)
2011-12-14 12:27 UTC, bdschubert
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bdschubert 2011-12-13 23:26:41 UTC
My application will not run when launch within the 7.1 IDE. It runs fine in 7.0.  Note that my suite's library dependencies are as lean as I can make them.  Do I need to add OSGI support or something for 7.1?  I'm not familiar with the NetigsoModule listed in the error.

The error message about the test user directory is bogus: I can delete the directory and I still get the same error.

java.lang.NullPointerException
	at org.netbeans.NetigsoModule.getStartLevelImpl(NetigsoModule.java:228)
	at org.netbeans.Module.getStartLevel(Module.java:624)
	at org.netbeans.core.startup.ModuleList.computeProperties(ModuleList.java:984)
	at org.netbeans.core.startup.ModuleList.moduleChanged(ModuleList.java:939)
	at org.netbeans.core.startup.ModuleList.flushInitial(ModuleList.java:859)
	at org.netbeans.core.startup.ModuleList.trigger(ModuleList.java:281)
	at org.netbeans.core.startup.ModuleSystem.restore(ModuleSystem.java:294)
	at org.netbeans.core.startup.Main.getModuleSystem(Main.java:172)
	at org.netbeans.core.startup.Main.start(Main.java:308)
	at org.netbeans.core.startup.TopThreadGroup.run(TopThreadGroup.java:123)
	at java.lang.Thread.run(Thread.java:662)

...
Result: 2
C:\Program Files\NetBeans 7.1 RC2\harness\suite.xml:498: The following error occurred while executing this line:
C:\Program Files\NetBeans 7.1 RC2\harness\run.xml:193: 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: 2 minutes 25 seconds)


Product Version = NetBeans IDE 7.1 RC2 (Build 201111302200)
Operating System = Windows Vista version 6.0 running on x86
Java; VM; Vendor = 1.6.0_24
Runtime = Java HotSpot(TM) Client VM 19.1-b02
Comment 1 Jesse Glick 2011-12-13 23:33:31 UTC
The warning about the app already being running is just a side effect of the startup sequence failing.
Comment 2 Jaroslav Tulach 2011-12-14 08:10:14 UTC
Created attachment 114125 [details]
Can you test this patch please?

Or give me a sample application that is broken to test it myself.
Comment 3 Jaroslav Tulach 2011-12-14 08:29:18 UTC
*** Bug 206285 has been marked as a duplicate of this bug. ***
Comment 4 bdschubert 2011-12-14 11:48:12 UTC
I'd love to test the patch, but I'm not familiar with the process.  Is there a link the explains how to apply the patch?
Comment 5 bdschubert 2011-12-14 12:27:56 UTC
Created attachment 114154 [details]
RCP test app that duplicates the problem

This is the NetBeans sample PaintApp (created in 7.0).  Its platform.properties file is modified to match that of my own application.  Before the modification, the PaintApp ran fine in 7.1.  After trimming the platform and ide dependencies, the problem surfaced.
Comment 6 Jaroslav Tulach 2011-12-15 09:03:40 UTC
Introduced while fixing bug 205019.
Comment 7 Jaroslav Tulach 2011-12-15 09:19:18 UTC
ergonomics#e01258f7eccc 

can be (and should be) merged to release71 by 

$ hg up -C release71
$ hg merge e01258f7eccc 
$ hg ci -m "Merge to release71"
Comment 8 Quality Engineering 2011-12-17 16:48:10 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/e01258f7eccc
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #206347: Don't rely on presence of Netigso
Comment 9 Jaroslav Tulach 2012-01-10 18:57:02 UTC
*** Bug 207134 has been marked as a duplicate of this bug. ***
Comment 10 Jaroslav Tulach 2012-01-24 21:38:53 UTC
Merged to release71_fixes as 35ef14d7582c
Comment 11 javydreamercsw 2012-01-31 14:50:18 UTC
Thanks a lot, it would be awful to have to wait until 7.2 to have this fixed.
Comment 12 Tomas Danek 2012-02-14 16:26:22 UTC
verified.

Product Version: NetBeans IDE 7.1.1 RC1 (Build 20120214-bc2419f3bf35)
Java: 1.6.0_29; Java HotSpot(TM) 64-Bit Server VM 20.4-b02-402
System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb)
User directory: /tmp/ud3
Cache directory: /tmp/ud3/var/cache