Marcus-- There have been many changes to ATF in this release that may cause issues with projects created before the new release is installed. A workaround on your end is to copy the files out of your project into a temp directory at the OS level, delete the original project and create a new one. Then re-import the files into the new project.
Javier--
I'm not sure precisely what is causing Marcus' error. My guess is that
getToolkitFolders() is causing the NPE or else its not returning any
folders (causing an NPE further down). Has the way ATF keeps track of
runtime folders changed? The (quick) fix below should work for now.
(org.eclipse.atf.compatibility.jsdt.ATFClasspathContainer.getClasspathEntries
():140) :
============================================
public IClasspathEntry[] getClasspathEntries()
{
IFolder[] toolkitFolders = getToolkitFolders();
....
=============================================
goes to :
=============================================
public IClasspathEntry[] getClasspathEntries()
{
IFolder[] toolkitFolders;
try {
toolkitFolders = getToolkitFolders();
} catch (Exception ex) {
toolkitFolders = new IFolder[0];
}
...
==============================================
Thanks,
Brad Childs
IBM Software Group
Emerging Internet Technology / Browser Technology Center
Office: (512)-838-0919
Marcus Better
<[EMAIL PROTECTED]
et> To
Sent by: [email protected]
[EMAIL PROTECTED] cc
clipse.org
Subject
[atf-dev] NullPointerException when
08/16/2007 03:50 using ATF
AM
Please respond to
AJAX Toolkit
Framework
discussion
<[EMAIL PROTECTED]
org>
With ATF 0.2.3M3 I get an error pop-up saying a NullPointerException
occurred when initializing the JavaScript tooling. This happens when I
open the Web Development perspective, and also when I try to open an
existing web project. (As a result, the Project Explorer doesn't show
the files in my web project - I cannot expand the project directory
although it isn't empty.)
The log is attached.
Regards,
Marcus
!SESSION 2007-08-16 10:41:51.484
-----------------------------------------------
eclipse.buildId=I20070625-1500
java.version=1.6.0_02
java.vendor=Sun Microsystems Inc.
BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=sv_SE
Command-line arguments: -os win32 -ws win32 -arch x86
This is a continuation of log file C:\Documents and Settings\marcus
\workspace\.metadata\.bak_5.log
Created Time: 2007-08-16 10:43:49.656
!ENTRY org.eclipse.ui.navigator 4 0 2007-08-16 10:43:49.656
!MESSAGE java.lang.NullPointerException
!STACK 0
java.lang.NullPointerException
at
org.eclipse.atf.compatibility.jsdt.ATFClasspathContainer.getClasspathEntries
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaModelManager.containerPutIfInitializingWithSameEntries
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.SetContainerOperation.executeOperation
(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run
(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1797)
at
org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(Unknown
Source)
at org.eclipse.wst.jsdt.core.JavaCore.setClasspathContainer
(Unknown Source)
at
org.eclipse.wst.jsdt.core.ClasspathContainerInitializer.initialize(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeContainer
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaModelManager.getClasspathContainer
(Unknown Source)
at org.eclipse.wst.jsdt.core.JavaCore.getClasspathContainer
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaProject.resolveClasspath(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.JavaProject.getResolvedClasspath(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.SetContainerOperation.executeOperation
(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.JavaModelOperation.run
(Unknown Source)
at org.eclipse.core.internal.resources.Workspace.run
(Workspace.java:1797)
at
org.eclipse.wst.jsdt.internal.core.JavaModelOperation.runOperation(Unknown
Source)
at org.eclipse.wst.jsdt.core.JavaCore.setClasspathContainer
(Unknown Source)
at
org.eclipse.wst.jsdt.libraries.BasicBrowserLibraryClassPathContainerInitializer.initialize
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaModelManager.initializeContainer
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaModelManager.getClasspathContainer
(Unknown Source)
at org.eclipse.wst.jsdt.core.JavaCore.getClasspathContainer
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaProject.resolveClasspath(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.JavaProject.getResolvedClasspath(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.JavaProject.buildStructure(Unknown
Source)
at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos
(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.Openable.openParent
(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.Openable.generateInfos
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.core.JavaElement.openWhenClosed(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.JavaElement.getElementInfo(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.PackageFragmentRoot.getKind(Unknown
Source)
at
org.eclipse.wst.jsdt.internal.core.CompilationUnit.validateCompilationUnit
(Unknown Source)
at org.eclipse.wst.jsdt.internal.core.CompilationUnit.exists
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.ui.navigator.JavaNavigatorContentProvider.convertToJavaElements
(Unknown Source)
at
org.eclipse.wst.jsdt.internal.ui.navigator.JavaNavigatorContentProvider.interceptUpdate
(Unknown Source)
at
org.eclipse.ui.internal.navigator.NavigatorPipelineService.pipelineInterceptUpdate
(NavigatorPipelineService.java:298)
at
org.eclipse.ui.internal.navigator.NavigatorPipelineService.interceptUpdate
(NavigatorPipelineService.java:280)
at org.eclipse.ui.navigator.CommonViewer.update
(CommonViewer.java:421)
at org.eclipse.jface.viewers.StructuredViewer.update
(StructuredViewer.java:1905)
at
org.eclipse.jface.viewers.StructuredViewer.handleLabelProviderChanged
(StructuredViewer.java:1118)
at
org.eclipse.ui.navigator.CommonViewer.handleLabelProviderChanged
(CommonViewer.java:177)
at org.eclipse.jface.viewers.ContentViewer
$1.labelProviderChanged(ContentViewer.java:74)
at
org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider
$1.run(NavigatorContentServiceLabelProvider.java:294)
at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
at
org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.fireLabelProviderChanged
(NavigatorContentServiceLabelProvider.java:292)
at
org.eclipse.ui.internal.navigator.NavigatorContentServiceLabelProvider.labelProviderChanged
(NavigatorContentServiceLabelProvider.java:347)
at
org.eclipse.wst.jsdt.ui.ProblemsLabelDecorator.fireProblemsChanged(Unknown
Source)
at org.eclipse.wst.jsdt.ui.ProblemsLabelDecorator.access$0
(Unknown Source)
at org.eclipse.wst.jsdt.ui.ProblemsLabelDecorator
$1.problemsChanged(Unknown Source)
at
org.eclipse.wst.jsdt.internal.ui.viewsupport.ProblemMarkerManager$1.run
(Unknown Source)
at org.eclipse.swt.widgets.RunnableLock.run
(RunnableLock.java:35)
at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages
(Synchronizer.java:123)
at org.eclipse.swt.widgets.Display.runAsyncMessages
(Display.java:3659)
at org.eclipse.swt.widgets.Display.readAndDispatch
(Display.java:3296)
at org.eclipse.ui.internal.Workbench.runEventLoop
(Workbench.java:2389)
at org.eclipse.ui.internal.Workbench.runUI
(Workbench.java:2353)
at org.eclipse.ui.internal.Workbench.access$4
(Workbench.java:2219)
at org.eclipse.ui.internal.Workbench$4.run(Workbench.java:466)
at
org.eclipse.core.databinding.observable.Realm.runWithDefault
(Realm.java:289)
at org.eclipse.ui.internal.Workbench.createAndRunWorkbench
(Workbench.java:461)
at org.eclipse.ui.PlatformUI.createAndRunWorkbench
(PlatformUI.java:149)
at
org.eclipse.ui.internal.ide.application.IDEApplication.start
(IDEApplication.java:106)
at org.eclipse.equinox.internal.app.EclipseAppHandle.run
(EclipseAppHandle.java:153)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication
(EclipseAppLauncher.java:106)
at
org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start
(EclipseAppLauncher.java:76)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:363)
at org.eclipse.core.runtime.adaptor.EclipseStarter.run
(EclipseStarter.java:176)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.eclipse.equinox.launcher.Main.invokeFramework
(Main.java:504)
at org.eclipse.equinox.launcher.Main.basicRun(Main.java:443)
at org.eclipse.equinox.launcher.Main.run(Main.java:1169)
_______________________________________________
atf-dev mailing list
[email protected]
https://dev.eclipse.org/mailman/listinfo/atf-dev
<<inline: graycol.gif>>
<<inline: pic20418.gif>>
<<inline: ecblank.gif>>
_______________________________________________ atf-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/atf-dev
