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 150986 - IllegalStateException: Cannot call getCompilationInfo() if current phase
Summary: IllegalStateException: Cannot call getCompilationInfo() if current phase
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Debugger (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Alexey Butenko
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-10-22 10:37 UTC by Alexandr Scherbatiy
Modified: 2008-10-27 14:41 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
IDE log file (48.97 KB, text/plain)
2008-10-22 10:38 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2008-10-22 10:37:39 UTC
JavaFX_NB_Plugin_NB65_promoted: #45 2008-10-22_03-01-09.zip

  Product Version         = NetBeans IDE Dev (Build 200810150201)
  Operating System        = Windows XP version 5.1 running on x86
  Java; VM; Vendor        = 1.5.0_09; Java HotSpot(TM) Client VM 1.5.0_09-b03; Sun Microsystems Inc.


I am not able to 100% reproduce the issue but sometimes I see 
the IllegalStateException after IDE restarting:

java.lang.IllegalStateException: Cannot call getCompilationInfo() if current phase < JavaFXSource.Phase.PARSED. You must
call toPhase(Phase.PARSED) first.
	at org.netbeans.api.javafx.source.CompilationInfoImpl.getCompilationUnit(CompilationInfoImpl.java:99)
	at org.netbeans.api.javafx.source.CompilationInfo.getCompilationUnit(CompilationInfo.java:218)
	at org.netbeans.modules.debugger.javafx.projects.EditorContextImpl$6.run(EditorContextImpl.java:732)
	at org.netbeans.modules.debugger.javafx.projects.EditorContextImpl$6.run(EditorContextImpl.java:730)
[catch] at org.netbeans.api.javafx.source.JavaFXSource.runUserActionTask(JavaFXSource.java:461)
	at org.netbeans.modules.debugger.javafx.projects.EditorContextImpl.getFieldLineNumber(EditorContextImpl.java:727)
	at
org.netbeans.modules.debugger.javafx.projects.BreakpointAnnotationProvider.getAnnotationLines(BreakpointAnnotationProvider.java:239)
	at
org.netbeans.modules.debugger.javafx.projects.BreakpointAnnotationProvider.addAnnotationTo(BreakpointAnnotationProvider.java:270)
	at
org.netbeans.modules.debugger.javafx.projects.BreakpointAnnotationProvider.annotate(BreakpointAnnotationProvider.java:120)
	at org.openide.text.CloneableEditorSupport.ensureAnnotationsLoaded(CloneableEditorSupport.java:376)
	at org.openide.text.CloneableEditor$DoInitialize$1.run(CloneableEditor.java:525)
	at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)
	at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)
Comment 1 Alexandr Scherbatiy 2008-10-22 10:38:16 UTC
Created attachment 72458 [details]
IDE log file
Comment 2 Alexey Butenko 2008-10-22 10:57:57 UTC
Fixed
Comment 3 Alexandr Scherbatiy 2008-10-27 14:41:25 UTC
verified in 2008-10-27_03-01-09.zip