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 18800 - Parse error on Java file
Summary: Parse error on Java file
Status: CLOSED DUPLICATE of bug 18584
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2001-12-19 08:17 UTC by bcaroll
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
The file that causes the parse error (5.67 KB, text/plain)
2001-12-19 08:22 UTC, bcaroll
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bcaroll 2001-12-19 08:17:18 UTC
I get the error below when I right click anywhere in the file and the explorer 
reports parse error for the file AuthorizeSessionSLSEJB.java. The Java source 
module version is 200112041930-jdk14.

Tue Dec 18 13:58:11 CET 2001: java.lang.IllegalArgumentException:
Incompatible implementation:
org.netbeans.modules.java.parser.SourceImplProxy@120de2
java.lang.IllegalArgumentException: Incompatible implementation:
org.netbeans.modules.java.parser.SourceImplProxy@120de2
        at org.netbeans.modules.java.JavaParserGlue.getBinding(Unknown
Source)
        at org.netbeans.modules.java.JavaParserGlue.sourceToText(Unknown
Source)
        at org.netbeans.modules.java.JavaParserGlue.findElement(Unknown
Source)
        at
org.netbeans.modules.editor.java.NbJavaSyntaxSupport.getElementAtPos(NbJavaS
yntaxSupport.java:151)
        at
org.netbeans.modules.editor.java.NbJavaSyntaxSupport.getClassElement(NbJavaS
yntaxSupport.java:160)
        at
org.netbeans.modules.editor.java.NbJavaSyntaxSupport.getClass(NbJavaSyntaxSu
pport.java:172)
        at
org.netbeans.editor.ext.java.JavaCompletionQuery$Context.resolveItem(JavaCom
pletionQuery.java:386)
        at
org.netbeans.editor.ext.java.JavaCompletionQuery$Context.resolveExp(JavaComp
letionQuery.java:312)
        at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.j
ava:104)
        at
org.netbeans.editor.ext.java.JavaCompletionQuery.query(JavaCompletionQuery.j
ava:52)
        at
org.netbeans.modules.editor.java.JavaKit$JavaGotoSourceAction.openSource(Jav
aKit.java:413)
        at
org.netbeans.modules.editor.java.JavaKit$JavaGotoSourceAction.getPopupMenuTe
xt(JavaKit.java:470)
        at
org.netbeans.editor.ext.ExtKit$BuildPopupMenuAction.getItemText(ExtKit.java:
261)
        at
org.netbeans.editor.ext.ExtKit$BuildPopupMenuAction.addAction(ExtKit.java:23
0)
        at
org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.addAction(NbE
ditorKit.java:243)
        at
org.netbeans.editor.ext.ExtKit$BuildPopupMenuAction.buildPopupMenu(ExtKit.ja
va:205)
        at
org.netbeans.modules.editor.NbEditorKit$NbBuildPopupMenuAction.buildPopupMen
u(NbEditorKit.java:165)
        at
org.netbeans.editor.ext.ExtKit$BuildPopupMenuAction.actionPerformed(ExtKit.j
ava:187)
        at
org.netbeans.editor.BaseAction.actionPerformed(BaseAction.java:133)
        at
org.netbeans.editor.ext.ExtEditorUI.showPopupMenu(ExtEditorUI.java:87)
        at org.netbeans.editor.ext.ExtCaret.mouseReleased(ExtCaret.java:369)
        at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:231)
[catch] at
java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:230)
        at java.awt.Component.processMouseEvent(Component.java:3715)
        at java.awt.Component.processEvent(Component.java:3544)
        at java.awt.Container.processEvent(Container.java:1164)
        at java.awt.Component.dispatchEventImpl(Component.java:2593)
        at java.awt.Container.dispatchEventImpl(Container.java:1213)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at
java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:2451)
        at
java.awt.LightweightDispatcher.processMouseEvent(Container.java:2216)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:2125)
        at java.awt.Container.dispatchEventImpl(Container.java:1200)
        at java.awt.Window.dispatchEventImpl(Window.java:926)
        at java.awt.Component.dispatchEvent(Component.java:2497)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:339)
        at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.ja
va:131)
        at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java
:98)
        at
java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:93)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:85)
Comment 1 bcaroll 2001-12-19 08:22:10 UTC
Created attachment 3884 [details]
The file that causes the parse error
Comment 2 Tomas Hurka 2001-12-19 17:17:39 UTC
I am sorry, cannot reproduce here. File is parsed OK, no exception
with right click. 
Comment 3 bcaroll 2001-12-21 09:19:44 UTC
I reinstalled NB 3.3, recreated the project and reinstalled the 
JavaSource module version 200112041930-jdk14. Now the file is parsed 
fine. I guess this issue can be closed as a non bug depending och 
some unknown bad state of the project or installation.
Comment 4 bcaroll 2001-12-21 11:52:49 UTC
This is a really strange bug. Now three other files report this 
error. The only thing the three (and the first one attached in this 
Issue) has in common is that they are implementation classes of an 
EJB.
Comment 5 Tomas Hurka 2001-12-21 12:58:30 UTC
Check issue #18584 and related issue #18858, issue #18844, issue
#18585. I guess this one can be caused by the same problem. 
Comment 6 Jan Becicka 2002-01-02 10:06:22 UTC
Björn, please reopen this bug, if it is not duplicate of issue 18584. 
Thanks.

*** This issue has been marked as a duplicate of 18584 ***
Comment 7 Quality Engineering 2003-07-01 13:11:31 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 8 Quality Engineering 2003-07-01 13:21:20 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.