Why is debugging not working with Idea and IBM Websphere 6?

Hi,

When I was using pre 6951 builds of Idea I was able to debug my Websphere without any changes required to configuration in the admin console. When I upgraded to 6951 my project files were updated to support the new facet structure etc and since then debugging hasn't worked. I'm not claiming that the upgrade to the project structure had anything to do with it but just mentioning that for information about what is different.

Now when I try to debug my server I get the following error when it tries to connect:

Failed to establish connection to the target VM, address: '127.0.0.1:1970', transport: 'socket'

In the Websphere admin console my server is setup to use the default Websphere debugging port of 7777 and debugging is enabled - it has always been setup this way and I have never had to change it. Idea tries to connect at port 1970 which may be a problem but I didn't change it before and this all worked? Does anybody know why it is failing to connect now?

thanks
scott

4 comments

Hello Scott,

Please check that port 7777 is specified in your run configuration ("Startup/Connection"
tab, "Debug" item).

Hi,

When I was using pre 6951 builds of Idea I was able to debug my
Websphere without any changes required to configuration in the admin
console. When I upgraded to 6951 my project files were updated to
support the new facet structure etc and since then debugging hasn't
worked. I'm not claiming that the upgrade to the project structure had
anything to do with it but just mentioning that for information about
what is different.

Now when I try to debug my server I get the following error when it
tries to connect:

*Failed to establish connection to the target VM, address:
'127.0.0.1:1970', transport: 'socket'*

In the Websphere admin console my server is setup to use the default
Websphere debugging port of 7777 and debugging is enabled - it has
always been setup this way and I have never had to change it. Idea
tries to connect at port 1970 which may be a problem but I didn't
change it before and this all worked? Does anybody know why it is
failing to connect now?

thanks
scott



0

If I change it to 7777 it starts up but this exception occurs which stops debugging from working?:

java.lang.ClassNotFoundException: com.intellij.debugger.engine.PositionManagersFactoryImpl
java.lang.RuntimeException: java.lang.ClassNotFoundException: com.intellij.debugger.engine.PositionManagersFactoryImpl
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.a(ServiceManagerImpl.java:3)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.a(ServiceManagerImpl.java:11)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:6)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:18)
at com.intellij.debugger.engine.PositionManagersFactory.getInstance(PositionManagersFactory.java:29)
at com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInstanceImpl.createPositionManager(WebSphereInstanceImpl.java:113)
at com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInstanceImpl.access$200(WebSphereInstanceImpl.java:43)
at com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInstanceImpl$2.processAttached(WebSphereInstanceImpl.java:102)
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 com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:75)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:21)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:52)
at $Proxy84.processAttached(Unknown Source)
at com.intellij.debugger.engine.DebugProcessEvents.f(DebugProcessEvents.java:156)
at com.intellij.debugger.engine.DebugProcessEvents.commitVM(DebugProcessEvents.java:82)
at com.intellij.debugger.engine.DebugProcessImpl$10$2$1.action(DebugProcessImpl.java:0)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:8)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:3)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:67)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:17)
at com.intellij.debugger.impl.InvokeThread$1.run(InvokeThread.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:3)
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)
at java.lang.Thread.run(Thread.java:595)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:0)
Caused by: java.lang.ClassNotFoundException: com.intellij.debugger.engine.PositionManagersFactoryImpl
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.a(ServiceManagerImpl.java:18)
... 35 more



java.lang.ClassNotFoundException: com.intellij.debugger.engine.PositionManagersFactoryImpl
at com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoader.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.a(ServiceManagerImpl.java:18)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.a(ServiceManagerImpl.java:11)
at com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAdapter.getComponentInstance(ServiceManagerImpl.java:6)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:193)
at com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoContainer.java:180)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:162)
at org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at com.intellij.openapi.components.ServiceManager.getService(ServiceManager.java:18)
at com.intellij.debugger.engine.PositionManagersFactory.getInstance(PositionManagersFactory.java:29)
at com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInstanceImpl.createPositionManager(WebSphereInstanceImpl.java:113)
at com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInstanceImpl.access$200(WebSphereInstanceImpl.java:43)
at com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInstanceImpl$2.processAttached(WebSphereInstanceImpl.java:102)
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 com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:75)
at com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:21)
at com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:52)
at $Proxy84.processAttached(Unknown Source)
at com.intellij.debugger.engine.DebugProcessEvents.f(DebugProcessEvents.java:156)
at com.intellij.debugger.engine.DebugProcessEvents.commitVM(DebugProcessEvents.java:82)
at com.intellij.debugger.engine.DebugProcessImpl$10$2$1.action(DebugProcessImpl.java:0)
at com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCommandImpl.java:8)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:3)
at com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(DebuggerManagerThreadImpl.java:67)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:17)
at com.intellij.debugger.impl.InvokeThread$1.run(InvokeThread.java:0)
at com.intellij.openapi.application.impl.ApplicationImpl$4.run(ApplicationImpl.java:3)
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)
at java.lang.Thread.run(Thread.java:595)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:0)

0

Hello Scott,

This exception will be fixed in next EAP.

If I change it to 7777 it starts up but this exception occurs which
stops debugging from working?:

java.lang.ClassNotFoundException:
com.intellij.debugger.engine.PositionManagersFactoryImpl
java.lang.RuntimeException: java.lang.ClassNotFoundException:
com.intellij.debugger.engine.PositionManagersFactoryImpl
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.a(ServiceManagerImpl.java:3)
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.a(ServiceManagerImpl.java:11)
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.getComponentInstance(ServiceManagerImpl.java:6)
at
com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPi
coContainer.java:193)
at
com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoCon
tainer.java:180)
at
com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(Defau
ltPicoContainer.java:162)
at
org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.
getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at
com.intellij.openapi.components.ServiceManager.getService(ServiceManag
er.java:18)
at
com.intellij.debugger.engine.PositionManagersFactory.getInstance(Posit
ionManagersFactory.java:29)
at
com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInst
anceImpl.createPositionManager(WebSphereInstanceImpl.java:113)
at
com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInst
anceImpl.access$200(WebSphereInstanceImpl.java:43)
at
com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInst
anceImpl$2.processAttached(WebSphereInstanceImpl.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:75)
at
com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:21)
at
com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:52)
at $Proxy84.processAttached(Unknown Source)
at
com.intellij.debugger.engine.DebugProcessEvents.f(DebugProcessEvents.j
ava:156)
at
com.intellij.debugger.engine.DebugProcessEvents.commitVM(DebugProcessE
vents.java:82)
at
com.intellij.debugger.engine.DebugProcessImpl$10$2$1.action(DebugProce
ssImpl.java:0)
at
com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCo
mmandImpl.java:8)
at
com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(De
buggerManagerThreadImpl.java:3)
at
com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(De
buggerManagerThreadImpl.java:67)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:17)
at com.intellij.debugger.impl.InvokeThread$1.run(InvokeThread.java:0)
at
com.intellij.openapi.application.impl.ApplicationImpl$4.run(Applicatio
nImpl.java:3)
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(ThreadPoolExecu
tor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:675)
at java.lang.Thread.run(Thread.java:595)
at
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(Applicat
ionImpl.java:0)
Caused by: java.lang.ClassNotFoundException:
com.intellij.debugger.engine.PositionManagersFactoryImpl
at
com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoa
der.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.a(ServiceManagerImpl.java:18)
... 35 more
java.lang.ClassNotFoundException:
com.intellij.debugger.engine.PositionManagersFactoryImpl
at
com.intellij.ide.plugins.cl.PluginClassLoader.loadClass(PluginClassLoa
der.java:56)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.a(ServiceManagerImpl.java:18)
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.a(ServiceManagerImpl.java:11)
at
com.intellij.openapi.components.impl.ServiceManagerImpl$MyComponentAda
pter.getComponentInstance(ServiceManagerImpl.java:6)
at
com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPi
coContainer.java:193)
at
com.intellij.util.pico.DefaultPicoContainer.getInstance(DefaultPicoCon
tainer.java:180)
at
com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(Defau
ltPicoContainer.java:162)
at
org.picocontainer.alternatives.AbstractDelegatingMutablePicoContainer.
getComponentInstance(AbstractDelegatingMutablePicoContainer.java:75)
at
com.intellij.openapi.components.ServiceManager.getService(ServiceManag
er.java:18)
at
com.intellij.debugger.engine.PositionManagersFactory.getInstance(Posit
ionManagersFactory.java:29)
at
com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInst
anceImpl.createPositionManager(WebSphereInstanceImpl.java:113)
at
com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInst
anceImpl.access$200(WebSphereInstanceImpl.java:43)
at
com.intellij.j2ee.webSphere.runDebug.serverInstance.impl.WebSphereInst
anceImpl$2.processAttached(WebSphereInstanceImpl.java:102)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.j
ava:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccess
orImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at
com.intellij.util.EventDispatcher.dispatch(EventDispatcher.java:75)
at
com.intellij.util.EventDispatcher.access$100(EventDispatcher.java:21)
at
com.intellij.util.EventDispatcher$1.invoke(EventDispatcher.java:52)
at $Proxy84.processAttached(Unknown Source)
at
com.intellij.debugger.engine.DebugProcessEvents.f(DebugProcessEvents.j
ava:156)
at
com.intellij.debugger.engine.DebugProcessEvents.commitVM(DebugProcessE
vents.java:82)
at
com.intellij.debugger.engine.DebugProcessImpl$10$2$1.action(DebugProce
ssImpl.java:0)
at
com.intellij.debugger.engine.events.DebuggerCommandImpl.run(DebuggerCo
mmandImpl.java:8)
at
com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(De
buggerManagerThreadImpl.java:3)
at
com.intellij.debugger.engine.DebuggerManagerThreadImpl.processEvent(De
buggerManagerThreadImpl.java:67)
at com.intellij.debugger.impl.InvokeThread.run(InvokeThread.java:17)
at com.intellij.debugger.impl.InvokeThread$1.run(InvokeThread.java:0)
at
com.intellij.openapi.application.impl.ApplicationImpl$4.run(Applicatio
nImpl.java:3)
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(ThreadPoolExecu
tor.java:650)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.
java:675)
at java.lang.Thread.run(Thread.java:595)
at
com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(Applicat
ionImpl.java:0)



0

That's good news. Any ideas roughly when that is likely to be?

0

Please sign in to leave a comment.