Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Dynamic Languages Toolkit (DLTK) » NullPointerException related to AbstractInterpreterInstallType
NullPointerException related to AbstractInterpreterInstallType [message #663009] Fri, 01 April 2011 23:53 Go to next message
Timothy Wall is currently offline Timothy WallFriend
Messages: 21
Registered: July 2009
Junior Member
I'm seeing the following exception show up in numerous places but I'm at a loss to determine how to resolve it.

I've implemented a basic editor and run capabilities, and am now trying to get a simple type navigator hooked up according to the wiki at ( http://wiki.eclipse.org/DLTK_IDE_Guide:Step_3._Towards_an_ID E). Can't get even the simple, hard-coded type hierarchy to display (my project seems to work ok, as does script selection for running). The following error shows up from time to time, although I think it's unrelated to the type hierarchy working.

(Running DLTK 2.0, comparing with the ruby implementation from the CVS 2.0 tag)

java.lang.NullPointerException
	at org.eclipse.core.internal.filesystem.local.LocalFile.getChild(LocalFile.java:171)
	at org.eclipse.dltk.internal.launching.execution.EFSDeployment.getFile(EFSDeployment.java:128)
	at org.eclipse.dltk.internal.launching.AbstractInterpreterInstallType$2.run(AbstractInterpreterInstallType.java:685)
	at org.eclipse.dltk.internal.launching.AbstractInterpreterInstallType.runLibraryLookup(AbstractInterpreterInstallType.java:428)
	at org.eclipse.dltk.internal.launching.AbstractInterpreterInstallType.getDefaultLibraryLocations(AbstractInterpreterInstallType.java:757)
	at org.eclipse.dltk.launching.ScriptRuntime.getLibraryLocations(ScriptRuntime.java:975)
	at org.eclipse.dltk.launching.ScriptRuntime.getLibraryLocations(ScriptRuntime.java:963)
	at org.eclipse.dltk.internal.launching.InterpreterContainer.computeBuildpathEntries(InterpreterContainer.java:135)
	at org.eclipse.dltk.internal.launching.InterpreterContainer.getBuildpathEntries(InterpreterContainer.java:118)
	at org.eclipse.dltk.internal.launching.InterpreterContainer.computeBuildpathEntries(InterpreterContainer.java:221)
	at org.eclipse.dltk.internal.launching.InterpreterContainer.getBuildpathEntries(InterpreterContainer.java:215)
	at org.eclipse.dltk.internal.core.ModelManager.containerPutIfInitializingWithSameEntries(ModelManager.java:2130)
	at org.eclipse.dltk.core.DLTKCore.setBuildpathContainer(DLTKCore.java:1994)
	at org.eclipse.dltk.internal.launching.InterpreterContainerInitializer.initialize(InterpreterContainerInitializer.java:62)
	at org.eclipse.dltk.internal.core.ModelManager.initializeContainer(ModelManager.java:1895)
	at org.eclipse.dltk.internal.core.ModelManager.getBuildpathContainer(ModelManager.java:1725)
	at org.eclipse.dltk.core.DLTKCore.getBuildpathContainer(DLTKCore.java:1772)
	at org.eclipse.dltk.internal.core.ScriptProject.getResolvedBuildpath(ScriptProject.java:428)
	at org.eclipse.dltk.internal.core.ScriptProject.getResolvedBuildpath(ScriptProject.java:332)
	at org.eclipse.dltk.internal.core.ScriptProject.getResolvedBuildpath(ScriptProject.java:275)
	at org.eclipse.dltk.internal.core.ScriptProject.buildStructure(ScriptProject.java:672)
	at org.eclipse.dltk.internal.core.Openable.generateInfos(Openable.java:188)
	at org.eclipse.dltk.internal.core.ModelElement.openWhenClosed(ModelElement.java:184)
	at org.eclipse.dltk.internal.core.ModelElement.getElementInfo(ModelElement.java:171)
	at org.eclipse.dltk.internal.core.ModelElement.getChildren(ModelElement.java:356)
	at org.eclipse.dltk.internal.core.ModelElement.getChildren(ModelElement.java:351)
	at org.eclipse.dltk.internal.core.ScriptProject.getProjectFragments(ScriptProject.java:1483)
	at org.eclipse.dltk.internal.core.search.DLTKSearchScope.add(DLTKSearchScope.java:164)
	at org.eclipse.dltk.internal.core.search.DLTKSearchScope.add(DLTKSearchScope.java:126)
	at org.eclipse.dltk.core.search.BasicSearchEngine.createSearchScope(BasicSearchEngine.java:209)
	at org.eclipse.dltk.core.search.BasicSearchEngine.createSearchScope(BasicSearchEngine.java:189)
	at org.eclipse.dltk.core.search.SearchEngine.createSearchScope(SearchEngine.java:253)
	at org.eclipse.dltk.internal.core.SourceType.createReferencingProjectsScope(SourceType.java:459)
	at org.eclipse.dltk.internal.core.SourceType.newTypeHierarchy(SourceType.java:471)
	at org.eclipse.dltk.internal.ui.typehierarchy.TypeHierarchyLifeCycle.createTypeHierarchy(TypeHierarchyLifeCycle.java:126)
	at org.eclipse.dltk.internal.ui.typehierarchy.TypeHierarchyLifeCycle.doHierarchyRefresh(TypeHierarchyLifeCycle.java:165)
	at org.eclipse.dltk.internal.ui.typehierarchy.TypeHierarchyLifeCycle$1.run(TypeHierarchyLifeCycle.java:106)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

Re: NullPointerException related to AbstractInterpreterInstallType [message #663440 is a reply to message #663009] Tue, 05 April 2011 05:28 Go to previous messageGo to next message
Alex Panchenko is currently offline Alex PanchenkoFriend
Messages: 3
Registered: July 2009
Junior Member
Hi Timothy,

@Override
protected ILookupRunnable createLookupRunnable(
IFileHandle installLocation,
List<LibraryLocation> locations,
EnvironmentVariable[] variables) {
return new ILookupRunnable() {
public void run(IProgressMonitor monitor)
throws InvocationTargetException, InterruptedException {
}
};
}
in your implementation of InterpreterInstallType if your interpreter
doesn't have a concept of system external libraries.

It will be improved in next version.

Regards,
Alex
Re: NullPointerException related to AbstractInterpreterInstallType [message #663549 is a reply to message #663440] Tue, 05 April 2011 15:12 Go to previous message
Timothy Wall is currently offline Timothy WallFriend
Messages: 21
Registered: July 2009
Junior Member
I worked around the issue by overriding AbstractInterpreterInstallType.getDefaultLibraryLocations so that it returns an empty list.

I'm not certain if I'm going to need to use any "external library" functionality, that depends on whether the language has something that's almost, but not entirely, unlike external libraries.
Previous Topic:Package not found
Next Topic:Use DefaultProblem to put error marker in editor
Goto Forum:
  


Current Time: Fri Apr 26 03:25:40 GMT 2024

Powered by FUDForum. Page generated in 0.03262 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top