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.
I had created a new visual web project with target server Sun App Server 8.2 With this project open, I removed the Sun App Server from the Servers node. Next, I closed the project. Result: javax.enterprise.deploy.spi.exceptions.DeploymentManagerCreationException: Failed to get FileObject for server instance [C:\Sun\AppServer]deployer:Sun:AppServer::localhost:4849 at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getDisconnectedDeploymentManager(ServerInstance.java:246) at org.netbeans.modules.j2ee.deployment.impl.ServerInstance.getJ2eePlatformImpl(ServerInstance.java:269) at org.netbeans.modules.j2ee.deployment.impl.query.J2eePlatformSourceForBinaryQuery.findSourceRoots(J2eePlatformSourceForBinaryQuery.java:72) at org.netbeans.api.java.queries.SourceForBinaryQuery.findSourceRoots(SourceForBinaryQuery.java:67) at org.netbeans.modules.java.source.classpath.GlobalSourcePath.getSourceRootForBinaryRoot(GlobalSourcePath.java:151) at org.netbeans.api.java.source.ClassIndex.createQueriesForRoots(ClassIndex.java:385) at org.netbeans.api.java.source.ClassIndex.reset(ClassIndex.java:351) at org.netbeans.api.java.source.ClassIndex.access$600(ClassIndex.java:59) at org.netbeans.api.java.source.ClassIndex$SPIListener.classIndexRemoved(ClassIndex.java:497) 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.openide.util.WeakListenerImpl$ProxyListener.invoke(WeakListenerImpl.java:427) at $Proxy8.classIndexRemoved(Unknown Source) at org.netbeans.modules.java.source.usages.ClassIndexManager.fire(ClassIndexManager.java:165) at org.netbeans.modules.java.source.usages.ClassIndexManager.writeLock(ClassIndexManager.java:82) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:929) at org.netbeans.modules.java.source.usages.RepositoryUpdater$CompileWorker.run(RepositoryUpdater.java:902) at org.netbeans.api.java.source.JavaSource$CompilationJob.run(JavaSource.java:1418) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:417) at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:269) at java.util.concurrent.FutureTask.run(FutureTask.java:123) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675) [catch] at java.lang.Thread.run(Thread.java:595)
I had a similar problem while using the sample "Making web applications Accessible" project bundled with Netbeans 5.5.1. It seems that the project assumes you are using Sun Application Server and automatically creates "sun-web.xml" but when you click on that file in the Projects window, a NPE is thrown.
Stack trace does not contain plugin's code. Just seems to have popped up with Sun Application Server. Reassigning to j2eeserver
Is there a reliable way to reproduce it? It's not reproducible for me.
Hopefully fixed in changeset 683d5b66b9c9. Please reopen if this occurs again. I'm not able to reproduce this.