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 72118 - IllegalStateException when try to correct error using help bulb
Summary: IllegalStateException when try to correct error using help bulb
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 5.x
Hardware: PC Windows XP
: P1 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-02-01 14:08 UTC by Jaroslav Pospisil
Modified: 2007-09-26 09:14 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IllegalStateException (6.62 KB, text/plain)
2006-02-01 14:09 UTC, Jaroslav Pospisil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jaroslav Pospisil 2006-02-01 14:08:54 UTC
NB5.5 build 200601302300

1)Start IDE with new userdir and add Glassfish server
2)Create new Enterprise application 
3)Add persistance unit into EJB Module- default, just click finish
4)Add Entity class
5)Update source code by adding some lines, which will be then marked as 
compillation error and red underlined, for example "implements Serializable" to 
class definition or add fields "Date date;Collection<Item> items;
6)Click then on error lines and help lightbulb should appear at the beginning of
line.
7)Click on lightbulb and select a choice.
ERROR:
Not everytime,but at least in 60% of cases I got IllegalStateException window,
which tended to open again and again if closed, till I shutted down whole IDE.
Is strange, that sometimes it appeared just when I clicked on
lightbulb,sometimes i had to select a choice from list, sometimes it went O.K.
for two times and appeared third time.
I'm attaching the exception from messages.log
Comment 1 Jaroslav Pospisil 2006-02-01 14:09:32 UTC
Created attachment 28693 [details]
IllegalStateException
Comment 2 Petr Blaha 2006-02-01 14:32:56 UTC
The issue is stopper since is reproducible very often in user tutorials.
Comment 3 Pavel Buzek 2006-02-01 16:59:03 UTC
I _think_ this is a duplicate of #72039. I fixed that one yesterday - it has an
RTE on the same line. Reopen if you can still reproduce it. Tx.

*** This issue has been marked as a duplicate of 72039 ***
Comment 4 Jaroslav Pospisil 2006-02-02 13:39:21 UTC
I've been able to reproduce it easy  in 200602012300 build, so reopening.
Comment 5 Martin Adamek 2006-02-02 14:10:25 UTC
Tomas, can you take a look? It comes from Persistence hints.
Comment 6 Tomasz Slota 2006-02-02 14:59:19 UTC
The quickest and safest fix would be to disable persistence hints provider
functionality by removing it from the layer. As it was commited to the jee5
branch it anyway had to little functionality to be useful for the user and is
not included in any demo scenario. I have a much modified version of this module
on my private branch.

So I will remove it from the layer if nobody objects.
Comment 7 Petr Blaha 2006-02-02 15:09:39 UTC
I agree, please disable it for preview release. thanks
Comment 8 Pavel Buzek 2006-02-02 15:13:30 UTC
That's OK with me.
Comment 9 Tomasz Slota 2006-02-02 15:54:27 UTC
done.

IDE: [2/2/06 4:51 PM] Committing "layer.xml" started
Checking in layer.xml;
/cvs/j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/resources/layer.xml,v 
<--  layer.xml
new revision: 1.1.2.6; previous revision: 1.1.2.5
done
Comment 10 Jaroslav Pospisil 2006-02-07 12:46:36 UTC
Verified
Comment 11 Tomasz Slota 2006-02-17 16:03:37 UTC
I have re-enabled hints support in the release55 and the problem occurs again.
It seems to be located in the JMI.
Comment 12 Tomasz Slota 2006-02-20 10:15:00 UTC
Here is another interesting stack trace coming from the getElementByOffset():

javax.jmi.reflect.InvalidObjectException: Object with MOFID
24E9C2A1-A1F0-11DA-9ACA-BB196394AA77:0000000000000FB4 no longer exists, class:
org.netbeans.jmi.javamodel.Method$Impl
        at
org.netbeans.mdr.handlers.BaseObjectHandler._getDelegate(BaseObjectHandler.java:359)
        at
org.netbeans.mdr.storagemodel.AttrCollection.clearAttribComposite(AttrCollection.java:281)
        at
org.netbeans.mdr.storagemodel.AttrCollection.remove(AttrCollection.java:227)
        at org.netbeans.mdr.handlers.AttrCollWrapper.remove(AttrCollWrapper.java:98)
        at org.netbeans.mdr.handlers.AttrCollWrapper.clear(AttrCollWrapper.java:62)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.LightAttrList.clear(LightAttrList.java:260)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:513)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.JavaClassImpl.matchPersistent(JavaClassImpl.java:581)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:364)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.matchMember(SemiPersistentElement.java:650)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.processMembers(SemiPersistentElement.java:541)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.matchPersistent(ResourceImpl.java:206)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.updatePersistent(SemiPersistentElement.java:364)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.updateMetadata(ResourceImpl.java:761)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.directUpdate(ResourceImpl.java:754)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:644)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.checkUpToDate(ResourceImpl.java:587)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.initResource(ResourceImpl.java:430)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.initCheck(MetadataElement.java:134)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getElementInfo(SemiPersistentElement.java:185)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.SemiPersistentElement.getInternalForm(SemiPersistentElement.java:843)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getASTree(MetadataElement.java:515)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.MetadataElement.getPosition(MetadataElement.java:521)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ElementFinder.getElementByOffset(ElementFinder.java:37)
        at
org.netbeans.modules.javacore.jmiimpl.javamodel.ResourceImpl.getElementByOffset(ResourceImpl.java:1661)
        at
org.netbeans.modules.j2ee.ejbcore.hints.EjbHintsProvider.getHints(EjbHintsProvider.java:87)
[catch] at
org.netbeans.modules.editor.hints.HintsOperator$HintPopupTaskImpl.run(HintsOperator.java:255)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:493)
        at
org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:926)
Comment 13 Jan Becicka 2006-02-20 10:27:27 UTC
Please attach system log.
Comment 14 Tomasz Slota 2006-02-23 14:16:31 UTC
I cannot reproduce the issue in recent builds
Comment 15 Quality Engineering 2007-09-20 09:58:45 UTC
Reorganization of java component