You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "David Savage (JIRA)" <ji...@apache.org> on 2010/02/24 23:29:27 UTC

[jira] Created: (FELIX-2133) NPE in JavaHelper causes bundle classpath refresh to fail

NPE in JavaHelper causes bundle classpath refresh to fail
---------------------------------------------------------

                 Key: FELIX-2133
                 URL: https://issues.apache.org/jira/browse/FELIX-2133
             Project: Felix
          Issue Type: Bug
          Components: Sigil
            Reporter: David Savage


java.lang.NullPointerException
at org.apache.felix.sigil.eclipse.model.util.JavaHelper.resolveClasspathEntrys(JavaHelper.java:384)
at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.findExternalClasspath(SigilProject.java:205)
at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.buildClassPathEntries(SigilClassPathContainer.java:102)
at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.getClasspathEntries(SigilClassPathContainer.java:58)
at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1806)
at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1760)
at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:68)
at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:51)
at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:110)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4759)
at org.apache.felix.sigil.ui.eclipse.classpath.SigilClasspathContainerInitializer.requestClasspathContainerUpdate(SigilClasspathContainerInitializer.java:73)
at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.resetClasspath(SigilProject.java:358)
at org.apache.felix.sigil.ui.eclipse.handlers.project.RefreshSigilClasspathCommandHandler$1.execute(RefreshSigilClasspathCommandHandler.java:56)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Root exception:
java.lang.NullPointerException
at org.apache.felix.sigil.eclipse.model.util.JavaHelper.resolveClasspathEntrys(JavaHelper.java:384)
at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.findExternalClasspath(SigilProject.java:205)
at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.buildClassPathEntries(SigilClassPathContainer.java:102)
at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.getClasspathEntries(SigilClassPathContainer.java:58)
at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1806)
at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1760)
at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:68)
at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:51)
at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:110)
at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4759)
at org.apache.felix.sigil.ui.eclipse.classpath.SigilClasspathContainerInitializer.requestClasspathContainerUpdate(SigilClasspathContainerInitializer.java:73)
at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.resetClasspath(SigilProject.java:358)
at org.apache.felix.sigil.ui.eclipse.handlers.project.RefreshSigilClasspathCommandHandler$1.execute(RefreshSigilClasspathCommandHandler.java:56)
at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-2133) NPE in JavaHelper causes bundle classpath refresh to fail

Posted by "David Savage (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-2133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Savage resolved FELIX-2133.
---------------------------------

       Resolution: Fixed
    Fix Version/s: sigil-1.0.0
         Assignee: David Savage

This was due to non protected a.equals(b) check where the a could occasionally be null. reversed ordering to b.equals(a) to prevent this npe in future

> NPE in JavaHelper causes bundle classpath refresh to fail
> ---------------------------------------------------------
>
>                 Key: FELIX-2133
>                 URL: https://issues.apache.org/jira/browse/FELIX-2133
>             Project: Felix
>          Issue Type: Bug
>          Components: Sigil
>            Reporter: David Savage
>            Assignee: David Savage
>             Fix For: sigil-1.0.0
>
>
> java.lang.NullPointerException
> at org.apache.felix.sigil.eclipse.model.util.JavaHelper.resolveClasspathEntrys(JavaHelper.java:384)
> at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.findExternalClasspath(SigilProject.java:205)
> at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.buildClassPathEntries(SigilClassPathContainer.java:102)
> at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.getClasspathEntries(SigilClassPathContainer.java:58)
> at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1806)
> at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1760)
> at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:68)
> at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:51)
> at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:110)
> at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
> at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4759)
> at org.apache.felix.sigil.ui.eclipse.classpath.SigilClasspathContainerInitializer.requestClasspathContainerUpdate(SigilClasspathContainerInitializer.java:73)
> at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.resetClasspath(SigilProject.java:358)
> at org.apache.felix.sigil.ui.eclipse.handlers.project.RefreshSigilClasspathCommandHandler$1.execute(RefreshSigilClasspathCommandHandler.java:56)
> at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
> Root exception:
> java.lang.NullPointerException
> at org.apache.felix.sigil.eclipse.model.util.JavaHelper.resolveClasspathEntrys(JavaHelper.java:384)
> at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.findExternalClasspath(SigilProject.java:205)
> at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.buildClassPathEntries(SigilClassPathContainer.java:102)
> at org.apache.felix.sigil.ui.eclipse.classpath.SigilClassPathContainer.getClasspathEntries(SigilClassPathContainer.java:58)
> at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1806)
> at org.eclipse.jdt.internal.core.ClasspathEntry.validateClasspathEntry(ClasspathEntry.java:1760)
> at org.eclipse.jdt.internal.core.ClasspathValidation.validate(ClasspathValidation.java:68)
> at org.eclipse.jdt.internal.core.ChangeClasspathOperation.classpathChanged(ChangeClasspathOperation.java:51)
> at org.eclipse.jdt.internal.core.SetContainerOperation.executeOperation(SetContainerOperation.java:110)
> at org.eclipse.jdt.internal.core.JavaModelOperation.run(JavaModelOperation.java:728)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.jdt.internal.core.JavaModelOperation.runOperation(JavaModelOperation.java:793)
> at org.eclipse.jdt.core.JavaCore.setClasspathContainer(JavaCore.java:4759)
> at org.apache.felix.sigil.ui.eclipse.classpath.SigilClasspathContainerInitializer.requestClasspathContainerUpdate(SigilClasspathContainerInitializer.java:73)
> at org.apache.felix.sigil.eclipse.internal.model.project.SigilProject.resetClasspath(SigilProject.java:358)
> at org.apache.felix.sigil.ui.eclipse.handlers.project.RefreshSigilClasspathCommandHandler$1.execute(RefreshSigilClasspathCommandHandler.java:56)
> at org.eclipse.ui.actions.WorkspaceModifyOperation$1.run(WorkspaceModifyOperation.java:106)
> at org.eclipse.core.internal.resources.Workspace.run(Workspace.java:1800)
> at org.eclipse.ui.actions.WorkspaceModifyOperation.run(WorkspaceModifyOperation.java:118)
> at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.