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 143653 - reflect.UndeclaredThrowableException at $Proxy19.actionPerformed
Summary: reflect.UndeclaredThrowableException at $Proxy19.actionPerformed
Status: RESOLVED WONTFIX
Alias: None
Product: apisupport
Classification: Unclassified
Component: Templates (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: rmichalsky
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-12 18:46 UTC by Lukas Hasik
Modified: 2008-08-23 05:25 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 28114


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lukas Hasik 2008-08-12 18:46:20 UTC
Build: NetBeans IDE 6.0.1 (Build 200801291616)
VM: Java HotSpot(TM) Client VM, 1.5.0_13-119
OS: Mac OS X, 10.5.2, i386
User comments: 
Actually before I was using java 5 to load netbeans, I thought I had 6. I've changed my netbeans.conf JDK to java 6 now,
and the problem is solved. for now and forever I hope.
I thought I was using Java 6 to load netbeans, but this was not the case. I was using java 5.
I've change the netbeans.conf and load netbeans with java 6. Now, it works, and I can create a java class (!!!)


sorry for the duplicate
STACKTRACE: (first 10 lines)
java.lang.reflect.UndeclaredThrowableException
        at $Proxy19.actionPerformed(.java:0)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1882)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2202)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:420)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:258)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:5602)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3135)
        at java.awt.Component.processEvent(Component.java:5367)
        at java.awt.Container.processEvent(Container.java:2010)


this exception report has 60 duplicates
Comment 1 Stanislav Aubrecht 2008-08-21 11:40:43 UTC
looks like a problem with templates / scripting engine to me, reassigning
Comment 2 rmichalsky 2008-08-22 15:48:20 UTC
The problem occurs when there are both JDK 1.5 and 1.6 installed, NetBeans is configured to run under 1.5 and for some
reason it finds scripting API from 1.6 on boot classpath and tries to load classes in 1.5. Not sure what causes the
classpath problem, maybe when JDK 1.6 is the default one (?). I was only able to reproduce it with fake build of
scripting api jar.

The workaround is to configure NetBeans to run under JDK 1.6. I've added message box with the workaround when this
happens  - core-main #81f8e4e99dc5.
Comment 3 Quality Engineering 2008-08-23 05:25:51 UTC
Integrated into 'main-golden', available in build *200808230201* on http://bits.netbeans.org/dev/nightly/
Changeset: http://hg.netbeans.org/main/rev/81f8e4e99dc5
User: Richard Michalsky <rmichalsky@netbeans.org>
Log: Message box when error from issue #143653 appears.