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 30449 - Startup crash on IBM JVM 1.4/OpenVMS
Summary: Startup crash on IBM JVM 1.4/OpenVMS
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: PC Linux
: P2 blocker (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: JDK_SPECIFIC
: 35080 35351 41301 41390 (view as bug list)
Depends on:
Blocks:
 
Reported: 2003-01-28 20:10 UTC by _ pkuzel
Modified: 2008-12-22 18:08 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Refinment of the talk to Proxy (1.24 KB, patch)
2004-03-25 12:15 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description _ pkuzel 2003-01-28 20:10:22 UTC
Is anybody able to run recent IDE on recent IBM's JVM?

http://www6.software.ibm.com/dl/dklx130/dklx130-p

I got (an exception pattern):

java.lang.NoClassDefFoundError: $Proxy1
sun.reflect.GeneratedConstructorAccessor9.newInstance(Unknown_Source)
sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:42)
java.lang.reflect.Constructor.newInstance(Constructor.java:299)
java.lang.reflect.Proxy.newProxyInstance(Proxy.java:585)
org.openide.util.WeakListener$ProxyListener.<init>(WeakListener.java:963)
org.openide.util.WeakListener.create(WeakListener.java:454)
org.openide.loaders.FolderInstance$HoldInstance.<init>(FolderInstance.java:901)
org.openide.loaders.FolderInstance.defaultProcessObjects(FolderInstance.java:644)
org.openide.loaders.FolderInstance.access$100(FolderInstance.java:69)
org.openide.loaders.FolderInstance$2.run(FolderInstance.java:592)
org.openide.util.Task.run(Task.java:136)
org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:313)
[catch] at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:650)

I wonder whether our bytecode (compiled using
javac 1.4), IBM's implementation or my local setup
is invalid.
Comment 1 _ ttran 2003-01-29 10:23:11 UTC
Definitely bug in IBM's JVM.  $Proxy1 and similarly named classes are
generated by the JVM in the new (1.4) implementation of reflection. 
If the JVM claims such a class is not found, it can only blame itself.
Comment 2 Marian Mirilovic 2003-07-24 11:59:01 UTC
Trung is right, not our fault - verifying, closing.
Comment 3 Marian Mirilovic 2004-03-24 19:43:15 UTC
*** Issue 41301 has been marked as a duplicate of this issue. ***
Comment 4 Marian Mirilovic 2004-03-24 19:44:37 UTC
*** Issue 35351 has been marked as a duplicate of this issue. ***
Comment 5 Marian Mirilovic 2004-03-24 19:50:40 UTC
*** Issue 35080 has been marked as a duplicate of this issue. ***
Comment 6 Jesse Glick 2004-03-24 20:54:07 UTC
Are we sure we are not doing something wrong? Apparently breaks
OpenVMS too. Looks like some WeakListeners thing.
Comment 7 Jaroslav Tulach 2004-03-25 07:47:30 UTC
The only thing I am doing is that I am using the first, longer style
for creation of the Proxy:
http://java.sun.com/j2se/1.4.2/docs/api/java/lang/reflect/Proxy.html
Instead of the second, shorter but more slower. I think that this is a
bug of VM, however there is a workaround - in case this style fails, I
am able to use the original, slower one.
Comment 8 Jaroslav Tulach 2004-03-25 12:15:30 UTC
Created attachment 14145 [details]
Refinment of the talk to Proxy
Comment 9 Jaroslav Tulach 2004-03-25 12:18:21 UTC
Corrections first:
This bug is not the same as the one reported by Meg on nbdev@. I have
noticed that after writing my previous comment. This is failure in
WeakListener class, not WeakListenerImpl one and moreover long time
ago.  It is not related to my changes in WeakListenerImpl between beta
and rc1.

I've attached a patch that may help Meg into this bug, as there is no
better place to attach it.
Comment 10 mgarrison 2004-03-25 13:58:12 UTC
Thanks Yarda.  I'll see if this patch avoids the problem.
Comment 11 mgarrison 2004-03-25 18:05:38 UTC
The patch works fine.  Thanks again.

Will this be committed to the release36 branch?
Comment 12 _ ttran 2004-03-25 18:13:23 UTC
okay, we should try to get this in even though it looks more like a
workaround for a bug in JDK impl.  Otherwise OpenVMS users would not
be able to use NB.


Reopen and make this P2
Comment 13 Marian Mirilovic 2004-03-25 22:22:43 UTC
Trung is right, this should be fixed to NB3.6....

Yarda, ask for review please, thanks in advance

Thanks to Meg we've already verified fix, ...... Thanks Meg
Comment 14 mgarrison 2004-03-26 12:49:02 UTC
My pleasure gentlemen.  And thank you for your support.
Comment 15 Jaroslav Tulach 2004-03-26 14:52:11 UTC
Checking in WeakListenerImpl.java;
/cvs/openide/src/org/openide/util/WeakListenerImpl.java,v  <-- 
WeakListenerImpl.java
new revision: 1.10; previous revision: 1.9
done
Comment 16 Jaroslav Tulach 2004-03-29 11:42:34 UTC
Backported to 3.6
Comment 17 Lukas Hasik 2004-03-31 13:16:34 UTC
*** Issue 41390 has been marked as a duplicate of this issue. ***
Comment 18 Lukas Hasik 2004-04-02 16:25:49 UTC
see Meg Garrison's comment -> verifying