NullPointerException when starting JBoss from IDEA

When trying to start JBoss 5 directly from IDEA, I get a popup that tells me:


Error running JBoss 5.0.1.GA:
Error running JBoss Server.
Exception occured : java.lang.NullPointerException
Exception message : null


In IDEA log, I see following stack:

2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - IntelliJ IDEA 10.5.4  Build #IU-107.777
2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - JDK: 1.6.0_27
2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - VM: Java HotSpot(TM) 64-Bit Server VM
2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - Vendor: Sun Microsystems Inc.
2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - OS: Windows 7
2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - Last Action: Run
2012-11-16 10:37:16,900 [5372207]  ERROR - a.javaee.admin.AdminClientBase - Original exception:  
java.lang.NullPointerException
at $Proxy117.connect(Unknown Source)
at com.fuhrer.idea.javaee.agent.ThreadAgentProxyFactory$3.connect(ThreadAgentProxyFactory.java:91)
at com.fuhrer.idea.javaee.admin.JavaeeAgentAdminServerBase.doConnect(JavaeeAgentAdminServerBase.java:78)
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 com.fuhrer.idea.javaee.admin.AdminClientBase$InvocationHandlerImpl$1.call(AdminClientBase.java:51)
at com.intellij.javaee.util.SequentialTaskExecutor$2.run(SequentialTaskExecutor.java:61)
at com.intellij.javaee.util.SequentialTaskExecutor$1.run(SequentialTaskExecutor.java:32)
at com.intellij.openapi.application.impl.ApplicationImpl$7.run(ApplicationImpl.java:386)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:662)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:130)
2012-11-16 10:37:16,900 [5372207]   INFO - ee.run.state.PatchedLocalState -  
java.lang.NullPointerException
at $Proxy118.doConnect(Unknown Source)
at com.fuhrer.idea.javaee.admin.JavaeeAdminClientImpl.doConnect(JavaeeAdminClientImpl.java:30)
at com.fuhrer.idea.javaee.server.JavaeeAdminBasedServer.doConnect(JavaeeAdminBasedServer.java:81)
at com.fuhrer.idea.javaee.server.JavaeeAdminBasedServer.connectInstance(JavaeeAdminBasedServer.java:57)
at com.fuhrer.idea.javaee.server.JavaeeServerInstance.connect(JavaeeServerInstance.java:88)
at com.intellij.javaee.run.execution.ExecutionHelper.connectToProcess(ExecutionHelper.java:151)
at com.intellij.javaee.run.execution.PatchedLocalState.execute(PatchedLocalState.java:91)
at com.intellij.execution.impl.DefaultJavaProgramRunner.doExecute(DefaultJavaProgramRunner.java:87)
at com.intellij.execution.runners.GenericProgramRunner$1.execute(GenericProgramRunner.java:85)
at com.intellij.execution.impl.ExecutionManagerImpl$2.run(ExecutionManagerImpl.java:157)
at com.intellij.openapi.project.DumbServiceImpl.runWhenSmart(DumbServiceImpl.java:97)
at com.intellij.openapi.project.DumbService$1.run(DumbService.java:76)
at com.intellij.openapi.application.impl.LaterInvocator$FlushQueue.run(LaterInvocator.java:332)
at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:641)
at java.awt.EventQueue.access$000(EventQueue.java:84)
at java.awt.EventQueue$1.run(EventQueue.java:602)
at java.awt.EventQueue$1.run(EventQueue.java:600)
at java.security.AccessController.doPrivileged(Native Method)
at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:611)
at com.intellij.ide.IdeEventQueue.e(IdeEventQueue.java:662)
at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:515)
at com.intellij.ide.IdeEventQueue.b(IdeEventQueue.java:411)
at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:369)
at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)


I guess it has something to do with latest Windows Updates (installed yesterday)?
(very similar to http://devnet.jetbrains.net/message/5179837;jsessionid=194B85AD50D843AFBC55C770843170FC#5179837 - but the mentioned JAR is not available any more)

2 comments
Comment actions Permalink

Hello,

You are using an IDEA 10.5.4, but we don't provide new builds for 10.x stream anymore.
is the issue reproducable with the new IDEA 12 EAP?

Regards,
Michael

0
Comment actions Permalink

It was still not reproducable with 10.x any more after a few hours. At first, it occured every time when I tried to start JBoss. It was also reproducible on a colleague's environment. Some hours later, everything worked as usual.
It seems it has not necessarily to do with windows updates. It's strange that it occured only for a few hours, but here for several machines.

I cannot try with Idea 12 because it's a company rule that we use 10.x (there is any reason for, which I do not know in detail)

Regards
Christoph

0

Please sign in to leave a comment.