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 211806 - OSGi in Caches broken on Mac OS X
Summary: OSGi in Caches broken on Mac OS X
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Netigso (show other bugs)
Version: 7.2
Hardware: Macintosh Mac OS X
: P1 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords:
: 211838 211866 (view as bug list)
Depends on:
Blocks:
 
Reported: 2012-04-26 18:00 UTC by David Strupl
Modified: 2012-10-10 07:34 UTC (History)
5 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 187416


Attachments
stacktrace (2.66 KB, text/plain)
2012-04-26 18:00 UTC, David Strupl
Details
stacktrace (2.66 KB, text/plain)
2012-04-26 18:32 UTC, David Strupl
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Strupl 2012-04-26 18:00:02 UTC
Build: NetBeans IDE 7.2 Beta (Build 201204260929)
VM: Java HotSpot(TM) 64-Bit Server VM, 20.6-b01-415, Java(TM) SE Runtime Environment, 1.6.0_31-b04-415-11M3635
OS: Mac OS X

User Comments:
dstrupl: Second start with some projects opened ...




Stacktrace: 
java.lang.ClassNotFoundException: org.eclipse.core.internal.net.Activator
   at org.eclipse.osgi.internal.loader.BundleLoader.findClassInternal(BundleLoader.java:513)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:429)
   at org.eclipse.osgi.internal.loader.BundleLoader.findClass(BundleLoader.java:417)
   at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.java:107)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
   at org.eclipse.osgi.internal.loader.BundleLoader.loadClass(BundleLoader.java:345)
Comment 1 David Strupl 2012-04-26 18:00:06 UTC
Created attachment 118825 [details]
stacktrace
Comment 2 David Strupl 2012-04-26 18:32:26 UTC
Created attachment 118826 [details]
stacktrace

another start ...
Comment 3 Jaroslav Tulach 2012-04-27 11:46:07 UTC
There is also possibly related bug 211744.
Comment 4 Marian Mirilovic 2012-04-27 12:04:08 UTC
Stopper for Beta
Comment 5 Jaroslav Tulach 2012-04-27 12:46:33 UTC
I have not seen the bug myself at all. Are you sure it happens on all platforms?
Comment 6 Marian Mirilovic 2012-04-27 13:36:15 UTC
Similar to issue 209643

.. ok so let's say : so far, it has been reproduce on Mac only
Comment 7 Jaroslav Tulach 2012-04-27 13:37:39 UTC
In such case, don't expect my help anytime  soon. I don't have Mac.
Comment 8 Marian Mirilovic 2012-04-27 13:42:26 UTC
(In reply to comment #7)
> In such case, don't expect my help anytime  soon. I don't have Mac.

I am sure David will provide you an access into his one.
Comment 9 Tomas Stupka 2012-04-27 14:05:30 UTC
Product Version         = NetBeans IDE 7.2 Beta (Build 201204260929) (#35dd63b26ba2)
Operating System        = Mac OS X version 10.6.8 running on x86_64

from os independent zip

tried with empty userdir as well a with some projects opened. could not reproduce ...
Comment 10 Tomas Danek 2012-04-27 14:30:01 UTC
still no luck reproducing on my mac... Davide, according to message logs you are using javase distro, right? Did you try also with full?

Product Version: NetBeans IDE 7.2 Beta (Build 201204260929)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.2beta
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.2beta
Comment 11 Tomas Danek 2012-04-27 14:52:38 UTC
ok, i can confirm that i can reproduce something similar with javase bundle! 
after installing and running javase i got http://statistics.netbeans.org/analytics/exception.do?id=576375

-------------------------------------------------------------------------------
>Log Session: Friday, April 27, 2012 4:50:30 PM CEST
>System Info: 
  Product Version         = NetBeans IDE 7.2 Beta (Build 201204260929) (#35dd63b26ba2)
  Operating System        = Mac OS X version 10.7.3 running on x86_64
  Java; VM; Vendor        = 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415; Apple Inc.
  Runtime                 = Java(TM) SE Runtime Environment 1.6.0_31-b04-415-11M3635
  Java Home               = /System/Library/Java/JavaVirtualMachines/1.6.0.jdk/Contents/Home
  System Locale; Encoding = en_US (nb); MacRoman
  Home Directory          = /Users/tomas
  Current Directory       = /
  User Directory          = /Users/tomas/Library/Application Support/NetBeans/7.2beta
  Cache Directory         = /Users/tomas/Library/Caches/NetBeans/7.2beta
  Installation            = /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/nb
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/ide
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/java
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/apisupport
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/websvccommon
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/profiler
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/harness
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/javafx
                            /Applications/NetBeans/NetBeans 7.2 Beta.app/Contents/Resources/NetBeans/platform
Comment 12 Tomas Danek 2012-04-27 15:19:38 UTC
ok, I think I've found steps (at least they work on my mac):

-delete any previous installation of beta 7.2
- delete userdir and cache
- install 7.2 beta javase
- start it --> you will get stacktrace where rootcause is CNFE (http://statistics.netbeans.org/analytics/detail.do?id=187435 in my case now, but differs)
Comment 13 Tomas Danek 2012-04-27 15:24:54 UTC
*** Bug 211866 has been marked as a duplicate of this bug. ***
Comment 14 Jaroslav Tulach 2012-05-02 12:15:21 UTC
Probably duplicate of bug  211744
Comment 15 Jaroslav Tulach 2012-05-03 12:30:47 UTC
The problem is in non-exisiting cluster and their interpretation or relative path. There is a symlink in /Application/NetBeans/NetBeans 7.2 Beta/MacOSX/netbeans which points to ../Resource/NetBeans/bin/netbeans and depending whether the first symlink is used with full path or just relative path the "osgi.install.area" gets computed differently. Thus the installer (calling directly the Resource/NetBeans/bin/netbeans) and the Mac OS X icon disagree on the location of caches.
Comment 16 Jaroslav Tulach 2012-05-03 12:44:27 UTC
Integrated as ergonomics#7e8f5e9a6786, somebody please verify.
Comment 17 Tomas Danek 2012-05-03 14:09:59 UTC
Fix works in custom installer from nbinstaller machine (javase bundle), no exception is thrown during startup, bugzilla functionality works as well. 
Please proceed with integration to beta.

Product Version: NetBeans IDE Dev (Build Trunk-Build-106-on-20120503)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/dev
Cache directory: /Users/tomas/Library/Caches/NetBeans/dev
Comment 18 Jaroslav Tulach 2012-05-03 15:34:43 UTC
$ hg transplant -s ../ergonomics 7e8f5e9a6786
searching for changes
applying 7e8f5e9a6786
7e8f5e9a6786 transplanted to 3c0c2d2b84a4


# Branch release72_beta
# Node ID 3c0c2d2b84a40fc22f8220edfd01277931802df2
# Parent  73677f1acd1f83e69c1723888b18f2a7b7201fa3
#211806: Ignore non-existing clusters
Comment 19 Quality Engineering 2012-05-04 03:03:07 UTC
Integrated into 'releases', will be available in build *201205031832* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/3c0c2d2b84a4
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #211806: Ignore non-existing clusters
Comment 20 Tomas Danek 2012-05-04 06:08:33 UTC
verified in beta:

Product Version: NetBeans IDE 7.2 Beta (Build 201205031832)
Java: 1.6.0_31; Java HotSpot(TM) 64-Bit Server VM 20.6-b01-415
System: Mac OS X version 10.7.3 running on x86_64; MacRoman; en_US (nb)
User directory: /Users/tomas/Library/Application Support/NetBeans/7.2beta
Cache directory: /Users/tomas/Library/Caches/NetBeans/7.2beta
Comment 21 Quality Engineering 2012-05-05 10:21:09 UTC
Integrated into 'main-golden', will be available in build *201205050400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/7e8f5e9a6786
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #211806: Ignore non-existing clusters
Comment 22 Jaroslav Tulach 2012-05-18 12:55:15 UTC
*** Bug 211838 has been marked as a duplicate of this bug. ***
Comment 23 Quality Engineering 2012-10-10 07:34:22 UTC
Integrated into 'releases', will be available in build *201210100002* or newer. Wait for official and publicly available build.
Changeset: http://hg.netbeans.org/releases/rev/3c0c2d2b84a4
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #211806: Ignore non-existing clusters