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 173555 - Refactoring method throws AssertionError: Null snapshot
Summary: Refactoring method throws AssertionError: Null snapshot
Status: VERIFIED FIXED
Alias: None
Product: javafx
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Miloslav Metelka
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks: 173077
  Show dependency tree
 
Reported: 2009-10-02 09:43 UTC by Alexandr Scherbatiy
Modified: 2009-10-27 16:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 159414


Attachments
stacktrace (999 bytes, text/plain)
2009-10-02 09:43 UTC, Alexandr Scherbatiy
Details
MultiDim JavaFX project (59.36 KB, application/octet-stream)
2009-10-02 09:46 UTC, Alexandr Scherbatiy
Details
stacktrace (999 bytes, text/plain)
2009-10-07 10:24 UTC, Alexandr Scherbatiy
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Alexandr Scherbatiy 2009-10-02 09:43:11 UTC
Build: NetBeans IDE Dev (Build 200910010513)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments:
sunflower: - Open the attached MultiDim JavaFX project
- Go to the mathematics.multidimensional.shape.MDGroup class
- Refactor->Rename the getPoints() method to getPoints2()

The error pops up



Stacktrace: 
java.lang.AssertionError: Null snapshot
        at org.netbeans.modules.javafx.source.parsing.JavaFXParser.parse(JavaFXParser.java:128)
        at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:332)
        at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:319)
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:586)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
Comment 1 Alexandr Scherbatiy 2009-10-02 09:43:15 UTC
Created attachment 88714 [details]
stacktrace
Comment 2 Alexandr Scherbatiy 2009-10-02 09:46:08 UTC
Created attachment 88715 [details]
MultiDim JavaFX project
Comment 3 Alexandr Scherbatiy 2009-10-07 10:24:32 UTC
Build: NetBeans IDE Dev (Build 200910061401)
VM: Java HotSpot(TM) Client VM, 14.1-b02, Java(TM) SE Runtime Environment, 1.6.0_15-b03
OS: Windows XP, 5.1, x86

User Comments: 
I am trying to refactor a JavaFX class before the library scanning is finished

Stacktrace: 
java.lang.AssertionError: Null snapshot
        at org.netbeans.modules.javafx.source.parsing.JavaFXParser.parse(JavaFXParser.java:128)
        at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:332)
        at org.netbeans.modules.parsing.api.ParserManager$MimeTaskAction.run(ParserManager.java:319)
        at org.netbeans.modules.parsing.impl.TaskProcessor.runUserTask(TaskProcessor.java:190)
        at org.netbeans.modules.parsing.impl.TaskProcessor$CompilationJob.run(TaskProcessor.java:586)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
Comment 4 Alexandr Scherbatiy 2009-10-07 10:24:37 UTC
Created attachment 88983 [details]
stacktrace
Comment 5 J Bachorik 2009-10-07 12:52:13 UTC
marking as dependent on a resolution of the related javafxc issue
Comment 6 J Bachorik 2009-10-07 12:55:43 UTC
marked by mistake :(
Comment 7 J Bachorik 2009-10-13 15:42:17 UTC
Can no find anything wrong in refactoring. It seems that the JavaFX Parsing API implementation fails sometimes. Milo,
could you take a look a this?
Comment 8 Miloslav Metelka 2009-10-16 17:27:22 UTC
Should be fixed. But the refactorings are disabled and I don't know the cmd-line option to enable them. Jardo, could you please check it? Thanks.
http://hg.netbeans.org/javafx/rev/523d662cea80
Comment 9 Alexandr Scherbatiy 2009-10-27 16:14:04 UTC
Now I see another issue 148890
So this issue is not reproduced in Build 200910261401