error when trying to connect to an external application via the Socket - attach option when using jdb in jdee

2003-07-18 Thread Paul Kinnucan
Philip Varghese writes:
 > Hi 
 > 
 >  
 > 
 > Could anyone throw some light on why I get this error when trying to
 > trying to connect to an external application via the Socket - attach
 > option when using jdb in jdee.
 > 
 >  
 > 
 > c:/Main/build-tools/j2sdk1.4.1_01/bin/jdb.exe -attach localhost:3999
 > 
 >  

You appear to be trying to attach jdb via a socket to a process that
is expecting a shared memory connection.

- Paul


 > 
 > java.io.IOException: shmemBase_attach failed, error code = -1
 > 
 > at com.sun.tools.jdi.SharedMemoryTransport.attach0(Native
 > Method)
 > 
 > at
 > com.sun.tools.jdi.SharedMemoryTransport.attach(SharedMemoryTransport.jav
 > a:43)
 > 
 > at
 > com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryAtta
 > chingConnector.java:43)
 > 
 > at
 > com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.j
 > ava:346)
 > 
 > at
 > com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)
 > 
 > at com.sun.tools.example.debug.tty.Env.init(Env.java:63)
 > 
 > at com.sun.tools.example.debug.tty.TTY.main(TTY.java:829)
 > 
 >  
 > 
 > Fatal error:
 > 
 > Unable to attach to target VM.
 > 
 > Error accessing shared memory, rc = -1
 > 
 >  
 > 
 > Comint finished
 > 
 >  
 > 
 >  
 > 
 >  
 > 
 > Thanks 
 > 
 > Philip
 > 
 >  
 > 



error when trying to connect to an external application via the Socket - attach option when using jdb in jdee

2003-07-18 Thread Philip Varghese
Hi 

 

Could anyone throw some light on why I get this error when trying to
trying to connect to an external application via the Socket - attach
option when using jdb in jdee.

 

c:/Main/build-tools/j2sdk1.4.1_01/bin/jdb.exe -attach localhost:3999

 

java.io.IOException: shmemBase_attach failed, error code = -1

at com.sun.tools.jdi.SharedMemoryTransport.attach0(Native
Method)

at
com.sun.tools.jdi.SharedMemoryTransport.attach(SharedMemoryTransport.jav
a:43)

at
com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryAtta
chingConnector.java:43)

at
com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnection.j
ava:346)

at
com.sun.tools.example.debug.tty.VMConnection.open(VMConnection.java:168)

at com.sun.tools.example.debug.tty.Env.init(Env.java:63)

at com.sun.tools.example.debug.tty.TTY.main(TTY.java:829)

 

Fatal error:

Unable to attach to target VM.

Error accessing shared memory, rc = -1

 

Comint finished

 

 

 

Thanks 

Philip