This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 168713

Summary: NPE when trying to import Eclipse project
Product: projects Reporter: host <host>
Component: Eclipse project importerAssignee: Jesse Glick <jglick>
Status: RESOLVED DUPLICATE    
Severity: blocker    
Priority: P3    
Version: 6.x   
Hardware: Macintosh   
OS: Mac OS X   
Issue Type: DEFECT Exception Reporter:

Description host 2009-07-16 21:43:38 UTC
I tried to import two projects from an Eclipse 3.5 workspace but failed.
In an earlier working session I had already succesfully imported another project
(/Users/stenzhorn_h/Development/obtima/Obtima/trunk) from the same workspace.

Here is the relevant portion from the IDE log:

SCHWERWIEGEND [org.netbeans.modules.projectimport.eclipse.core.Importer]: import of Eclipse project
/Users/stenzhorn_h/Development/obtima/ObtimaWSClient/trunk failed
java.lang.NullPointerException
        at
org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation.convertURLsToURIs(ProjectClassPathModifierImplementation.java:197)
        at org.netbeans.modules.java.api.common.classpath.ClassPathModifier.addRoots(ClassPathModifier.java:131)
        at
org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addRoots(ProjectClassPathModifierImplementation.java:442)
        at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addRoots(ProjectClassPathModifier.java:142)
        at
org.netbeans.modules.projectimport.eclipse.core.spi.ProjectFactorySupport.addItemToClassPath(ProjectFactorySupport.java:339)
        at
org.netbeans.modules.projectimport.eclipse.core.spi.ProjectFactorySupport.updateProjectClassPath(ProjectFactorySupport.java:107)
        at org.netbeans.modules.projectimport.eclipse.web.WebProjectFactory.createProject(WebProjectFactory.java:224)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.importProjectStage1(Importer.java:233)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.access$600(Importer.java:69)
[catch] at org.netbeans.modules.projectimport.eclipse.core.Importer$3.run(Importer.java:178)
        at org.netbeans.modules.projectimport.eclipse.core.Importer$3.run(Importer.java:175)
        at org.openide.util.Mutex.writeAccess(Mutex.java:394)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.importProject(Importer.java:175)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.access$200(Importer.java:69)
        at org.netbeans.modules.projectimport.eclipse.core.Importer$1.run(Importer.java:108)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
SCHWERWIEGEND [org.netbeans.modules.projectimport.eclipse.core.Importer]: import of Eclipse project
/Users/stenzhorn_h/Development/obtima/ObtimaWS/trunk failed
java.lang.NullPointerException
        at
org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation.convertURLsToURIs(ProjectClassPathModifierImplementation.java:197)
        at org.netbeans.modules.java.api.common.classpath.ClassPathModifier.addRoots(ClassPathModifier.java:131)
        at
org.netbeans.spi.java.project.classpath.ProjectClassPathModifierImplementation$Accessor.addRoots(ProjectClassPathModifierImplementation.java:442)
        at org.netbeans.api.java.project.classpath.ProjectClassPathModifier.addRoots(ProjectClassPathModifier.java:142)
        at
org.netbeans.modules.projectimport.eclipse.core.spi.ProjectFactorySupport.addItemToClassPath(ProjectFactorySupport.java:339)
        at
org.netbeans.modules.projectimport.eclipse.core.spi.ProjectFactorySupport.updateProjectClassPath(ProjectFactorySupport.java:107)
        at org.netbeans.modules.projectimport.eclipse.web.WebProjectFactory.createProject(WebProjectFactory.java:224)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.importProjectStage1(Importer.java:233)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.access$600(Importer.java:69)
[catch] at org.netbeans.modules.projectimport.eclipse.core.Importer$3.run(Importer.java:178)
        at org.netbeans.modules.projectimport.eclipse.core.Importer$3.run(Importer.java:175)
        at org.openide.util.Mutex.writeAccess(Mutex.java:394)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.importProject(Importer.java:175)
        at org.netbeans.modules.projectimport.eclipse.core.Importer.access$200(Importer.java:69)
        at org.netbeans.modules.projectimport.eclipse.core.Importer$1.run(Importer.java:108)
        at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:577)
        at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:1030)
Comment 1 Jesse Glick 2009-07-16 21:55:35 UTC
Fix should be in 6.7 patch 1.

*** This issue has been marked as a duplicate of 156369 ***