Marcel,

Can you write up a bug report on this issue?  Looking at the code, I'm 
seeing:

                    if 
(!path.segment(0).equals(J2MEClasspathContainer.J2ME_CONTAINER)) {
                        IClasspathContainer cpContainer =
                            JavaCore.getClasspathContainer(path, 
javaProject);
                        IClasspathEntry[] entries = 
cpContainer.getClasspathEntries();
                       
                        for (int i = 0; i < entries.length; i++) {
                            addClasspathEntryIfLib(entries[i]);
                        }
                    }

It appears that you have some kind of classpath container on your 
project that is no longer resolving correctly.  The call to 
JavaCore.getClasspathContainer is returning null, which (according to 
the documentation) only happens if the container cannot be resolved.  I 
obviously need to guard against this, but in the short term, it looks 
like your project is fixable. 

A word of warning... My workspace is completely broken at this point due 
to ongoing refactoring of EclipseME.  I'm not really in a good situation 
to get a fix in from an EclipseME perspective.  You are going to be much 
better off fixing up your project.

Craig

Marcel Ruff wrote:
> Hi,
>
> i suddenly get a NPE and can't deploy my project anymore,
> the NPE line number is available below,
>
> thanks
> Marcel
>
> !MESSAGE java.lang.NullPointerException encountered while running 
> Preverification.
> !STACK 0
> java.lang.NullPointerException
>     at 
> eclipseme.core.internal.preverification.builder.SourceResourcesFilter.addClasspathEntryIfLib(SourceResourcesFilter.java:193)
>     at 
> eclipseme.core.internal.preverification.builder.SourceResourcesFilter.initIgnoredClasspathLibs(SourceResourcesFilter.java:115)
>     at 
> eclipseme.core.internal.preverification.builder.SourceResourcesFilter.<init>(SourceResourcesFilter.java:79)
>     at 
> eclipseme.core.internal.preverification.builder.BuildInfo.setCurrentJavaProject(BuildInfo.java:352)
>     at 
> eclipseme.core.internal.preverification.builder.PreverificationBuilder.build(PreverificationBuilder.java:481)
>     at 
> org.eclipse.core.internal.events.BuildManager$2.run(BuildManager.java:624)
>     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>     at 
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:166)
>     at 
> org.eclipse.core.internal.events.BuildManager.basicBuild(BuildManager.java:273)
>     at 
> org.eclipse.core.internal.events.BuildManager.build(BuildManager.java:354)
>     at 
> org.eclipse.core.internal.resources.Project.internalBuild(Project.java:494)
>     at org.eclipse.core.internal.resources.Project.build(Project.java:83)
>     at 
> eclipseme.core.model.impl.MidletSuiteProject.createPackage(MidletSuiteProject.java:231)
>     at 
> eclipseme.ui.internal.actions.AbstractCreatePackageAction.createPackageForProject(AbstractCreatePackageAction.java:96)
>     at 
> eclipseme.ui.internal.actions.AbstractCreatePackageAction.access$0(AbstractCreatePackageAction.java:89)
>     at 
> eclipseme.ui.internal.actions.AbstractCreatePackageAction$1.run(AbstractCreatePackageAction.java:132)
>     at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37)
>     at org.eclipse.core.runtime.Platform.run(Platform.java:857)
>     at 
> eclipseme.ui.internal.actions.AbstractCreatePackageAction.doPackageCreation(AbstractCreatePackageAction.java:130)
>     at 
> eclipseme.ui.internal.actions.AbstractCreatePackageAction.run(AbstractCreatePackageAction.java:67)
>     at 
> org.eclipse.ui.internal.PluginAction.runWithEvent(PluginAction.java:256)
>     at 
> org.eclipse.jface.action.ActionContributionItem.handleWidgetSelection(ActionContributionItem.java:545)
>     at 
> org.eclipse.jface.action.ActionContributionItem.access$2(ActionContributionItem.java:490)
>     at 
> org.eclipse.jface.action.ActionContributionItem$5.handleEvent(ActionContributionItem.java:402)
>     at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:66)
>     at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1101)
>     at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3319)
>     at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:2971)
>     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(NativeMethodAccessorImpl.java:39)
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>     at java.lang.reflect.Method.invoke(Method.java:585)
>     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)
>
>
>   

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Eclipseme-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/eclipseme-users

Reply via email to