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 253652 - IllegalStateException: Cannot create PositionRef for file C:/Oracle/glassfish/domains/domain1/generated/jsp/j2ee-modules/StatusTool2/org/apache/jsp/SummaryReport_jsp.java. CloneableEditorSupport not f
Summary: IllegalStateException: Cannot create PositionRef for file C:/Oracle/glassfish...
Status: NEW
Alias: None
Product: javaee
Classification: Unclassified
Component: Servlet (show other bugs)
Version: 8.1
Hardware: All All
: P3 normal (vote)
Assignee: issues@javaee
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-07-22 14:19 UTC by Maksim Khramov
Modified: 2015-07-29 01:28 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 218696


Attachments
stacktrace (3.15 KB, text/plain)
2015-07-22 14:19 UTC, Maksim Khramov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Maksim Khramov 2015-07-22 14:19:57 UTC
Build: NetBeans IDE Dev (Build 201507200001)
VM: Java HotSpot(TM) 64-Bit Server VM, 25.51-b02, Java(TM) SE Runtime Environment, 1.8.0_51-b13
OS: Windows 7

User Comments:
mkhramov: Invoke View Servlet command for jsp file




Stacktrace: 
java.lang.IllegalStateException: Cannot create PositionRef for file C:/Oracle/glassfish/domains/domain1/generated/jsp/j2ee-modules/StatusTool2/org/apache/jsp/SummaryReport_jsp.java. CloneableEditorSupport not found
   at org.netbeans.api.java.source.TreePathHandle.createPositionRef(TreePathHandle.java:364)
   at org.netbeans.api.java.source.TreePathHandle.create(TreePathHandle.java:246)
   at org.netbeans.spi.java.hints.JavaFix.<init>(JavaFix.java:120)
   at org.netbeans.spi.java.hints.JavaFix.<init>(JavaFix.java:102)
   at org.netbeans.spi.java.hints.JavaFixUtilities$RemoveFromParent.<init>(JavaFixUtilities.java:1497)
   at org.netbeans.spi.java.hints.JavaFixUtilities.removeFromParent(JavaFixUtilities.java:220)
Comment 1 Maksim Khramov 2015-07-22 14:19:59 UTC
Created attachment 154796 [details]
stacktrace
Comment 2 Svata Dedic 2015-07-24 12:13:10 UTC
I provided a workaround in jet-main#9ffe3dfb155d which will suppress hints on files without the necessary *editorsupports.

But still the JspServletDataObject should expose Open/EditorCookie otherwise other features might be broken as well. Reassigning to JSP/web for proper fix.
Comment 3 Quality Engineering 2015-07-29 01:28:40 UTC
Integrated into 'main-silver', will be available in build *201507290002* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)

Changeset: http://hg.netbeans.org/main-silver/rev/9ffe3dfb155d
User: Svata Dedic <sdedic@netbeans.org>
Log: #253652: partial fix - do not run hints on files without editor support, breaks assumptions in hint/fix code