JDB Access is denied

I need to debug a java service which is invoked by a c app(*.exe) on windows.

I use the

java -Xdebug -Djava.compiler=none -Xnoagent -Xrunjdwp:transport=dt_shmem,address=jdbconn,server=y,suspend=y -classpath D:/SOAM/3.0/samples/java/SampleApplication/bin MyService

to call my java service

then I use jdb -attach jdbconn

The result is

java.io.IOException: shmemBase_attach failed: Access is denied

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

at com.sun.tools.jdi.SharedMemoryTransportService.attach(SharedMemoryTra

nsportService.java:90)

at com.sun.tools.jdi.GenericAttachingConnector.attach(GenericAttachingCo

nnector.java:98)

at com.sun.tools.jdi.SharedMemoryAttachingConnector.attach(SharedMemoryA

ttachingConnector.java:45)

at com.sun.tools.example.debug.tty.VMConnection.attachTarget(VMConnectio

n.java:358)

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

68)

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

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

Fatal error:

Unable to attach to target VM.



I do not know why this happen

[1293 byte] By [skaterxua] at [2007-10-2 21:20:08]
# 1
I have worked out.It is just a permission.Change the invoke user's permissionOr change the invoke user.
skaterxua at 2007-7-14 0:29:37 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 2
It' s user roles problems http://www.skillipedia.com
skillipediaa at 2007-7-14 0:29:37 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...
# 3
> It' s user roles problems> > http://www.skillipedia.comDon't resurrect a five-month old thread for your spam. And don't put your spam in any recent threads, either.
doremifasollatidoa at 2007-7-14 0:29:37 > top of Java-index,Developer Tools,Debugging and Profiling Tool APIs...