ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nicolas Lalevée (JIRA) <j...@apache.org>
Subject [jira] [Commented] (IVYDE-349) NullPointerException in IvyClasspathContainerConfAdapter.convertOldRetrieveConf
Date Sun, 03 Nov 2013 11:28:17 GMT

    [ https://issues.apache.org/jira/browse/IVYDE-349?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13812335#comment-13812335
] 

Nicolas Lalevée commented on IVYDE-349:
---------------------------------------

Do you have a .classpath file to share so I can reproduce the issue ?

> NullPointerException in IvyClasspathContainerConfAdapter.convertOldRetrieveConf
> -------------------------------------------------------------------------------
>
>                 Key: IVYDE-349
>                 URL: https://issues.apache.org/jira/browse/IVYDE-349
>             Project: IvyDE
>          Issue Type: Bug
>          Components: workspace resolver
>    Affects Versions: 2.2.0.beta1
>         Environment: Eclipse Java EE IDE for Web Developers.
> Version: Kepler Service Release 1
> Build id: 20130919-0819
> Apache IvyDE	2.2.0.beta1-201203282058-RELEASE
> Apache Ivy	2.3.0.final_20130110142753
>            Reporter: GK Ephorus
>
> When doing things in Eclipse Kepler (Find type) I get a NPE in my workspace/.metadata/.log
and Eclipse crashes.
> There are multiple mentions of NPE in the log. All about "IvyClasspathContainerConfAdapter.convertOldRetrieveConf".
> Maybe there is a workaround in creating a new 'RetrieveConf'. I'll have a go at that
by removing Ivy-support from the project and adding it again.
> This is the stacktrace:
> {noformat}
> !MESSAGE Error while locating java source roots for P/tui2-db
> !STACK 1
> Java Model Exception: Core Exception [code 0] Unable to set container for org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=tui2-db&ivyXmlPath=ivy.xml&confs=*
>         at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2891)
>         at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1902)
>         at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:3221)
>         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2692)
>         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2856)
>         at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1994)
>         at org.jboss.tools.common.EclipseUtil.getJavaSourceRoots(EclipseUtil.java:66)
>         at org.jboss.tools.common.model.util.EclipseResourceUtil.getJavaProjectSrcLocations(EclipseResourceUtil.java:623)
>         at org.jboss.tools.common.model.util.EclipseResourceUtil.updateSrcs(EclipseResourceUtil.java:485)
>         at org.jboss.tools.common.model.util.EclipseResourceUtil.createObjectForResource(EclipseResourceUtil.java:414)
>         at org.jboss.tools.jst.web.model.helpers.InnerModelHelper.createXModel(InnerModelHelper.java:40)
>         at org.jboss.tools.jst.web.kb.internal.scanner.ClassPathMonitor.init(ClassPathMonitor.java:60)
>         at org.jboss.tools.jst.web.kb.internal.KbProject.setProject(KbProject.java:202)
>         at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:233)
>         at org.eclipse.core.internal.resources.Project.getNature(Project.java:448)
>         at org.jboss.tools.jst.web.kb.KbProjectFactory.getKbProject(KbProjectFactory.java:67)
>         at org.jboss.tools.jst.web.kb.WebKbPlugin$1.saving(WebKbPlugin.java:66)
>         at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
>         at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
>         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>         at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
>         at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
>         at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
>         at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
>         at org.eclipse.core.internal.resources.SaveManager.shutdown(SaveManager.java:1393)
>         at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:605)
>         at org.eclipse.core.resources.ResourcesPlugin.stop(ResourcesPlugin.java:415)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
>         at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
>         at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566)
>         at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
>         at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
>         at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692)
>         at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:400)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
>         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:597)
>         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>         at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: java.lang.NullPointerException
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfAdapter.convertOldRetrieveConf(IvyClasspathContainerConfAdapter.java:250)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfAdapter.loadV1(IvyClasspathContainerConfAdapter.java:231)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfAdapter.load(IvyClasspathContainerConfAdapter.java:66)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfiguration.<init>(IvyClasspathContainerConfiguration.java:94)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer.<init>(IvyClasspathContainer.java:80)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathInitializer.initialize(IvyClasspathInitializer.java:90)
>         at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2867)
>         ... 48 more
> Caused by: org.eclipse.core.runtime.CoreException: Unable to set container for org.apache.ivyde.eclipse.cpcontainer.IVYDE_CONTAINER/?project=tui2-db&ivyXmlPath=ivy.xml&confs=*
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathInitializer.initialize(IvyClasspathInitializer.java:116)
>         at org.eclipse.jdt.internal.core.JavaModelManager.initializeContainer(JavaModelManager.java:2867)
>         at org.eclipse.jdt.internal.core.JavaModelManager.getClasspathContainer(JavaModelManager.java:1902)
>         at org.eclipse.jdt.core.JavaCore.getClasspathContainer(JavaCore.java:3221)
>         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2692)
>         at org.eclipse.jdt.internal.core.JavaProject.resolveClasspath(JavaProject.java:2856)
>         at org.eclipse.jdt.internal.core.JavaProject.getResolvedClasspath(JavaProject.java:1994)
>         at org.jboss.tools.common.EclipseUtil.getJavaSourceRoots(EclipseUtil.java:66)
>         at org.jboss.tools.common.model.util.EclipseResourceUtil.getJavaProjectSrcLocations(EclipseResourceUtil.java:623)
>         at org.jboss.tools.common.model.util.EclipseResourceUtil.updateSrcs(EclipseResourceUtil.java:485)
>         at org.jboss.tools.common.model.util.EclipseResourceUtil.createObjectForResource(EclipseResourceUtil.java:414)
>         at org.jboss.tools.jst.web.model.helpers.InnerModelHelper.createXModel(InnerModelHelper.java:40)
>         at org.jboss.tools.jst.web.kb.internal.scanner.ClassPathMonitor.init(ClassPathMonitor.java:60)
>         at org.jboss.tools.jst.web.kb.internal.KbProject.setProject(KbProject.java:202)
>         at org.eclipse.core.internal.resources.NatureManager.createNature(NatureManager.java:233)
>         at org.eclipse.core.internal.resources.Project.getNature(Project.java:448)
>         at org.jboss.tools.jst.web.kb.KbProjectFactory.getKbProject(KbProjectFactory.java:67)
>         at org.jboss.tools.jst.web.kb.WebKbPlugin$1.saving(WebKbPlugin.java:66)
>         at org.eclipse.core.internal.resources.SaveManager.executeLifecycle(SaveManager.java:383)
>         at org.eclipse.core.internal.resources.SaveManager$1.run(SaveManager.java:192)
>         at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)
>         at org.eclipse.core.internal.resources.SaveManager.broadcastLifecycle(SaveManager.java:195)
>         at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1130)
>         at org.eclipse.core.internal.resources.SaveManager.save(SaveManager.java:1109)
>         at org.eclipse.core.internal.resources.DelayedSnapshotJob.run(DelayedSnapshotJob.java:51)
>         at org.eclipse.core.internal.resources.SaveManager.shutdown(SaveManager.java:1393)
>         at org.eclipse.core.internal.resources.Workspace.close(Workspace.java:605)
>         at org.eclipse.core.resources.ResourcesPlugin.stop(ResourcesPlugin.java:415)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:771)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at org.eclipse.osgi.framework.internal.core.BundleContextImpl.stop(BundleContextImpl.java:764)
>         at org.eclipse.osgi.framework.internal.core.BundleHost.stopWorker(BundleHost.java:510)
>         at org.eclipse.osgi.framework.internal.core.AbstractBundle.suspend(AbstractBundle.java:566)
>         at org.eclipse.osgi.framework.internal.core.Framework.suspendBundle(Framework.java:1206)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.decFWSL(StartLevelManager.java:592)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.doSetStartLevel(StartLevelManager.java:257)
>         at org.eclipse.osgi.framework.internal.core.StartLevelManager.shutdown(StartLevelManager.java:215)
>         at org.eclipse.osgi.framework.internal.core.InternalSystemBundle.suspend(InternalSystemBundle.java:284)
>         at org.eclipse.osgi.framework.internal.core.Framework.shutdown(Framework.java:692)
>         at org.eclipse.osgi.framework.internal.core.Framework.close(Framework.java:600)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.shutdown(EclipseStarter.java:400)
>         at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:200)
>         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:597)
>         at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:636)
>         at org.eclipse.equinox.launcher.Main.basicRun(Main.java:591)
>         at org.eclipse.equinox.launcher.Main.run(Main.java:1450)
>         at org.eclipse.equinox.launcher.Main.main(Main.java:1426)
> Caused by: java.lang.NullPointerException
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfAdapter.convertOldRetrieveConf(IvyClasspathContainerConfAdapter.java:250)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfAdapter.loadV1(IvyClasspathContainerConfAdapter.java:231)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfAdapter.load(IvyClasspathContainerConfAdapter.java:66)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainerConfiguration.<init>(IvyClasspathContainerConfiguration.java:94)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathContainer.<init>(IvyClasspathContainer.java:80)
>         at org.apache.ivyde.eclipse.cpcontainer.IvyClasspathInitializer.initialize(IvyClasspathInitializer.java:90)
>         ... 49 more
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Mime
View raw message