Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 367268 - An internal error occurred during: "Requesting JavaScript AST from selection". java.lang.NullPointerException
Summary: An internal error occurred during: "Requesting JavaScript AST from selection"...
Status: CLOSED DUPLICATE of bug 359005
Alias: None
Product: JSDT
Classification: WebTools
Component: General (show other bugs)
Version: unspecified   Edit
Hardware: PC Windows XP
: P3 major (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact: Nitin Dahyabhai CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-21 02:47 EST by Prabhash Mishra CLA
Modified: 2012-03-16 08:34 EDT (History)
2 users (show)

See Also:


Attachments
Configuration of my eclipse (609.06 KB, text/plain)
2012-03-16 08:29 EDT, Claudio Nieder CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Prabhash Mishra CLA 2011-12-21 02:47:21 EST
Build Identifier: 20110916-0149

hi All,
       I am using Html/Ajax TabbedPanel example(dwonloading from internet) in 
       my struts project.Projectis running fine with mozilla but when I am running project with IE
       Version:6.0.2900.5512.xpsp3_gdr.100216-1514 Can't find the server error
       is reporting.Can Anyone guide me in solving this problem.Initially for
        10-15 times project runs in IE browser but after that cant find server
       error is sending.It is working fine with mozilla.Please give me solution 
       as soon as possible.

With regards
Prabhash mishra

Reproducible: Always
Comment 1 Nitin Dahyabhai CLA 2011-12-22 02:51:43 EST
The summary doesn't seem to have anything to do with comment 0.
Comment 2 Claudio Nieder CLA 2012-03-16 08:27:31 EDT
I found this bug because I get the message mentioned in the bug summary. For me it happens while editing in JavaScript view. It happens occasionally when I click into the edit window with my JavaScript source. The error log sometimes contains just a short message like this:


eclipse.buildId=I20120127-1145
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/claudio/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/claudio/.eclipse_keyring -showlocation

Error
Fri Mar 16 13:22:20 CET 2012
An internal error occurred during: "Requesting JavaScript AST from selection".

java.lang.NullPointerException



but sometimes a long one like this:


eclipse.buildId=I20120127-1145
java.version=1.6.0_29
java.vendor=Apple Inc.
BootLoader constants: OS=macosx, ARCH=x86_64, WS=cocoa, NL=en_US
Framework arguments:  -keyring /Users/claudio/.eclipse_keyring -showlocation
Command-line arguments:  -os macosx -ws cocoa -arch x86_64 -keyring /Users/claudio/.eclipse_keyring -showlocation

Error
Fri Mar 16 13:17:12 CET 2012
An internal error occurred during: "Requesting JavaScript AST from selection".

java.lang.NullPointerException
	at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:669)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.CompilationUnitScope.connectTypeHierarchy(CompilationUnitScope.java:674)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:387)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.completeTypeBindings(LookupEnvironment.java:443)
	at org.eclipse.wst.jsdt.internal.core.CompilationUnitProblemFinder.accept(CompilationUnitProblemFinder.java:174)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.askForBinding(LookupEnvironment.java:279)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.askForType(LookupEnvironment.java:132)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.getType(LookupEnvironment.java:766)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.LookupEnvironment.getResolvedType(LookupEnvironment.java:720)
	at org.eclipse.wst.jsdt.internal.compiler.lookup.Scope.getJavaLangString(Scope.java:1745)
	at org.eclipse.wst.jsdt.core.dom.DefaultBindingResolver.resolveExpressionType(DefaultBindingResolver.java:604)
	at org.eclipse.wst.jsdt.core.dom.Expression.resolveTypeBinding(Expression.java:111)
	at org.eclipse.wst.jsdt.internal.corext.refactoring.code.flow.ReturnFlowInfo.getReturnFlag(ReturnFlowInfo.java:31)
	at org.eclipse.wst.jsdt.internal.corext.refactoring.code.flow.ReturnFlowInfo.<init>(ReturnFlowInfo.java:19)
	at org.eclipse.wst.jsdt.internal.corext.refactoring.code.flow.FlowAnalyzer.createReturn(FlowAnalyzer.java:151)
	at org.eclipse.wst.jsdt.internal.corext.refactoring.code.flow.FlowAnalyzer.endVisit(FlowAnalyzer.java:679)
	at org.eclipse.wst.jsdt.core.dom.ReturnStatement.accept0(ReturnStatement.java:141)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2354)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2427)
	at org.eclipse.wst.jsdt.core.dom.Block.accept0(Block.java:136)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2354)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.acceptChild(ASTNode.java:2401)
	at org.eclipse.wst.jsdt.core.dom.IfStatement.accept0(IfStatement.java:193)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2354)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.acceptChildren(ASTNode.java:2427)
	at org.eclipse.wst.jsdt.core.dom.Block.accept0(Block.java:136)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2354)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.acceptChild(ASTNode.java:2401)
	at org.eclipse.wst.jsdt.core.dom.IfStatement.accept0(IfStatement.java:193)
	at org.eclipse.wst.jsdt.core.dom.ASTNode.accept(ASTNode.java:2354)
	at org.eclipse.wst.jsdt.internal.corext.refactoring.code.flow.InOutFlowAnalyzer.perform(InOutFlowAnalyzer.java:41)
	at org.eclipse.wst.jsdt.internal.ui.search.MethodExitsFinder.markReferences(MethodExitsFinder.java:122)
	at org.eclipse.wst.jsdt.internal.ui.search.MethodExitsFinder.perform(MethodExitsFinder.java:92)
	at org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaEditor.updateOccurrenceAnnotations(JavaEditor.java:2840)
	at org.eclipse.wst.jsdt.internal.ui.javaeditor.JavaEditor$7.selectionChanged(JavaEditor.java:2905)
	at org.eclipse.wst.jsdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartListenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:157)
	at org.eclipse.wst.jsdt.internal.ui.viewsupport.SelectionListenerWithASTManager$3.run(SelectionListenerWithASTManager.java:134)
	at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)



I hope this can help you find the issue.
Comment 3 Claudio Nieder CLA 2012-03-16 08:29:08 EDT
Created attachment 212781 [details]
Configuration of my eclipse

Find attached the configuration of my eclipse.
Comment 4 Nitin Dahyabhai CLA 2012-03-16 08:34:50 EDT

*** This bug has been marked as a duplicate of bug 359005 ***