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 177382 - IllegalStateException: Warning: multiple instances of shared class org.netbeans.modules.xml.actions.CollectXMLAction created.
Summary: IllegalStateException: Warning: multiple instances of shared class org.netbea...
Status: VERIFIED FIXED
Alias: None
Product: xml
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P1 normal (vote)
Assignee: _ alexpetrov
URL:
Keywords: REGRESSION
: 177825 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-11-22 14:28 UTC by Ivan Sidorkin
Modified: 2009-12-01 00:26 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 162217


Attachments
stacktrace (4.54 KB, text/plain)
2009-11-22 14:28 UTC, Ivan Sidorkin
Details
stacktrace (4.54 KB, text/plain)
2009-11-23 20:17 UTC, David Konecny
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ivan Sidorkin 2009-11-22 14:28:44 UTC
Build: NetBeans IDE Dev (Build 091122-fa8b12981306)
VM: OpenJDK 64-Bit Server VM, 14.0-b08, OpenJDK Runtime Environment, 1.6.0_0-b14
OS: Linux, 2.6.28-16-generic, amd64

User Comments:
ca-nb: - created an SVG image
- opened it in SVG editor
- switched to source
- right-clicked source and invoked 'All XML Actions' popup menu command



Stacktrace: 
java.lang.IllegalStateException: Warning: multiple instances of shared class org.netbeans.modules.xml.actions.CollectXMLAction created.
        at org.openide.util.SharedClassObject.<init>(SharedClassObject.java:185)
        at org.openide.util.actions.SystemAction.<init>(SystemAction.java:84)
        at org.netbeans.modules.xml.actions.CollectSystemAction.<init>(CollectSystemAction.java:58)
        at org.netbeans.modules.xml.actions.CollectXMLAction.<init>(CollectXMLAction.java:53)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeConstructorAccessorImpl.java:0)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
Comment 1 Ivan Sidorkin 2009-11-22 14:28:48 UTC
Created attachment 91489 [details]
stacktrace
Comment 2 Ivan Sidorkin 2009-11-23 08:35:32 UTC
for now exception is not 100% reproducible
but the main problem is existing 'All XML Actions' menu item for xml node that do nothing
and missed XML actions (Check XML, Validate XML, Generate DTD, XSL Transformation)

steps to reproduce:
- create Java Application
- add XML Document
- right click on created document
Comment 3 _ alexpetrov 2009-11-23 13:33:47 UTC
Fixed in trunk: http://hg.netbeans.org/main/rev/c7be2e3fa280
Comment 4 David Konecny 2009-11-23 20:17:25 UTC
Created attachment 91566 [details]
stacktrace
Comment 5 David Konecny 2009-11-23 20:23:32 UTC
IMO, this should be resolved for NB68 FCS - the exception itself is not a problem but fact that action "All XML actions" is shown in any XML popup (in my case it is web.xml) without having any sense these and the fact that actions which you would expect there are missing is serious enough to justify it.
Comment 6 Marian Mirilovic 2009-11-24 01:20:54 UTC
Agreed - rising to P1 ... please proceed with integration into release68
Comment 7 Ivan Sidorkin 2009-11-24 04:23:50 UTC
verified with trunk build NetBeans IDE Dev (Build 200911240305)
Comment 8 Quality Engineering 2009-11-24 19:09:23 UTC
Integrated into 'main-golden', will be available in build *200911241400* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/c7be2e3fa280
User: Alex Petrov <alexpetrov@netbeans.org>
Log: Fix for issue [#177382]. IllegalStateException: multiple instances of shared class org.netbeans.modules.xml.actions.CollectXMLAction created (see issue [#173031]).
Comment 9 _ alexpetrov 2009-11-25 10:00:44 UTC
Fixed in release68: http://hg.netbeans.org/release68/rev/41123c04fc74
Comment 10 Ivan Sidorkin 2009-11-27 02:34:14 UTC
verified with NetBeans IDE 6.8 RC1 (Build 200911252200)
Comment 11 Sergey Lunegov 2009-12-01 00:26:05 UTC
*** Bug 177825 has been marked as a duplicate of this bug. ***