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 215707 - NullPointerException at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorImpl.createTaggedCompilationController
Summary: NullPointerException at org.netbeans.api.java.source.JavaSource$JavaSourceAcc...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Source (show other bugs)
Version: 7.2
Hardware: All All
: P3 normal (vote)
Assignee: Svata Dedic
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-07-18 21:23 UTC by Exceptions Reporter
Modified: 2014-08-08 21:20 UTC (History)
4 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 190853


Attachments
stacktrace (1.90 KB, text/plain)
2012-07-18 21:23 UTC, Exceptions Reporter
Details
stacktrace (5.03 KB, text/plain)
2014-04-15 12:59 UTC, IrianR
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Exceptions Reporter 2012-07-18 21:23:38 UTC
This bug was originally marked as duplicate of bug 149880, that is already resolved. This bug is still valid, so this seems to be another bug, but it might be related.

Build: NetBeans IDE 7.2 Beta (Build 201205031832)
VM: Java HotSpot(TM) 64-Bit Server VM, 22.1-b02, Java(TM) SE Runtime Environment, 1.7.0_03-b05
OS: Windows 7

Stacktrace: 
java.lang.NullPointerException
   at org.netbeans.api.java.source.JavaSource$JavaSourceAccessorImpl.createTaggedCompilationController(JavaSource.java:723)
   at org.netbeans.modules.java.source.JavaSourceUtilImpl.createTaggedCompilationController(JavaSourceUtilImpl.java:60)
   at org.netbeans.modules.java.preprocessorbridge.spi.JavaSourceUtilImpl$MyAccessor.createTaggedCompilationController(JavaSourceUtilImpl.java:78)
   at org.netbeans.modules.java.preprocessorbridge.api.JavaSourceUtil.createControllerHandle(JavaSourceUtil.java:96)
   at org.netbeans.modules.editor.java.JavaCodeTemplateProcessor$6.run(JavaCodeTemplateProcessor.java:944)
   at org.netbeans.modules.progress.ui.RunOffEDTImpl.runOffEventDispatchThread(RunOffEDTImpl.java:102)
Comment 1 Exceptions Reporter 2012-07-18 21:23:40 UTC
Created attachment 122176 [details]
stacktrace
Comment 2 Svata Dedic 2013-09-02 10:21:53 UTC
To reproduce:
* create any JSP file
* add <% %> scriptlet
* try to expand "sb" abbreviation inside the scriptlet.

The JavaSource is created just from the whole (JSP) file in this case; text/x-java embeddings are not covered
Comment 3 IrianR 2014-04-15 12:59:25 UTC
Created attachment 146766 [details]
stacktrace

Editing a jsp file not belonging to the currently opened project.
Comment 4 Svata Dedic 2014-08-08 21:20:18 UTC
Could not reproduce / not enough info. Possibly the fileobject was null for some reason. If you can reproduce the defect, please add
-J-Dorg.netbeans.api.java.source.JavaSource.level=500 
to your commandline or netbeans.cfg. Remove it as soon as the defect is reproduced, it will decrease performance of the IDE / make the logs quite large. Attach messages.log here. Thanks.