Can'n attach to JVM using remote debug

Hello!
I have some problem. I have create a JVM in C++ program usin JNI. Parameters (reat from conf file):
-Xdebug
-Xnoagent
-Djava.compiler=NONE
-Xrunjdwp:transport=dt_socket,server=y,address=5007,suspend=n
-Djava.class.path=jar_1;jar_2;...;jar_n
JVM is created successfullly. Then I try attach to JVM from IDEA by remote debug with parameters:
-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5007
After this I have get the next error: "Unable to open debugger port: java.net.SocketException Connection reset". And my program is shut down. I can't solve this problem. Maybe anybody have some ideas. Thanks.

Try to debug the next java cod:
public class TestClass {
public static void FileCrt(String str)
DataOutputStream OutStream;
String sOut;
sOut = new String(str);
try
OutStream = new DataOutputStream( new BufferedOutputStream(new FileOutputStream("c:\\output.txt")));
OutStream.writeBytes(sOut);
OutStream.close();
catch (IOException e)
e.printStackTrace();
public static void main(String[] args)
FileCrt("Test");
I have created the test.jar and run it by the command:
java -cp test.jar -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=8787,suspend=y testpackage.TestClass
Then I try to connect to JVM by remote debuger (-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8787) and get exception "Unable to open debugger port java.net.ConnectException". What's the problem?

Similar Messages

  • Can I attach file by using QA11 BAPI ?

    I want to make a list similar QA32.
    In that list, I will make usage decision by using BAPI.
    But I can't attach file by using BAPI.
    Can I attach file by using QA11 BAPI(BAPI_INSPLOT_GETDETAIL or  BAPI_INSPLOT_SETUSAGEDECISION) ?

    Try to use FM in BDC

  • How can I display more info using remote app?

    Hi there,
    I use remote app a lot, but I find it quite basic in the display features.
    I mean: remote is great to browse my music library and play songs with on my living room hi-fi while I'm sitting comfortable on my sofa.
    But what if I would like to know the release date of the album, the name of the composer, and so on?
    Is there any way to configure the remote app to display more?
    Is any kind of new release of the app on its way?
    Thank you.

    Command (right) - click on a photo in the Photo tray and select Small Photo from the contextual menu:
    This will give you two columns of photos.
    To reduce the number of photos to select from one can select only Unplaced Photos to be displayed in the tray.
    Happy Holidays

  • How to use Remote Debugging in JDeveloper 3.1 ?

    I am trying to use the Remote Debugging option with EJBs in JDeveloper 3.1 with Oracle8i 8.1.6.
    I checking all steps the online walkthrough for Remote Debugging EJB in 8i and it didn't work.
    I'm using Oracle8i EJB/CORBA debug option in project properties, but it does not stop in my EJB's break points.
    I tried deploying the EJB again ( with break points) and again it didn't work.
    The error message I got in the trace file is:
    Errors in file D:\Oracle\admin\SCT\udump\sctS000.TRC:
    ORA-29516: Aurora assertion failure: Java thread deadlock detected
    Could someone please tell me how to use it?
    null

    Which platform is the database running on ??
    Other things you should check -
    when debugging the EJB, JDev
    3.1 looks through your IIOP connections to find the one to use.
    Make sure that the IIOP connection that JDev is using for the debugging matches the IIOP connection that the EJB client application is using.
    raghu
    null

  • Problems using remote debugging for Web Dynpro applications

    Hello All,
      Have anyone ever encounter the above mentioned problem ? I am not able to step through my codes nor break @ my breakpoints using the debugging features despite many attempts following the tutorial on "Debuggng Web Dynpro applications". The problem always occur when I click on the Run -> Debug -> "Click on Debug". The debug perspective will show the threads running but my application window dows not appear. Should attempts  be made to "Terminate All" threads and relaunch my apllication again, I will get an error message   saying "Deployment of archive file already running : XXX.ear" Then I will need to wait some 15 mnutes or so before I can try again. Any suggestions ? Thank you.
    The status of my J2EE engine is as stated in the tutorial:
    1) State = "Debugging"
    2) Debug Mode = "On"
    3) Restricted Load Balancing = "Yes"
    4) Productive Use = "No"
      I have posted similar queries under "JDI" and "Web AS General" but did not receive and sugestions.
    from
    Kwok Wei

    Hi
    You should Create and Deploy if you want to reflect the code changes that you just did. However if you just want debug to an existing code then you need not Create and Deploy.
    This can also be done as a two step process where you first deploy from NDS and launch Debug without create and deploy.
    Is the issue that after you launch debug that it does not launch the application window.
    Regards
    Pran

  • Can iPhoto and iTunes be used "remotely" on an external hard drive?

    For some years I've kept certain documents, photos and videos on an external hard drive as a security measure. The drive is attached via FireWire to my iMac.
    When using that material, if I want to add some details to a family history there's no problem and access is made automatically to the necessary Mac writing program, while with photos Preview allows one to view them and make some adjustments. But what if I want to clean up a photo using "Retouch" in iPhoto? Can one move those tools to the hard disk so they are near at hand, rather than moving the photo back to iPhoto on the iMac? Is it a matter of moving certain iPhoto files to the hard disk?
    Similarly with short movies that reside in iTunes under "Movies." Can they be moved to the hard disk for ease of access and perhaps a little editing with iMovie? Then what iTunes or iMovie files would be needed?
    All help much appreciated . . . Fortes

    Can I move another copy of the iPhoto program from the iMac to the external hard disk so I can use it there? In other words, can one have a second iPhoto -- and if so, how does one go about it?
    No and there is no reason to
    iPhoto is an application and it must remain in the applications folder as it was originally installed to operate and upgrade correctly
    The iPhoto Application accesses its data in the iPhoto library - the iPhoto library can be anywhere - and you can import photos form anywhere into the iPhoto Library
    I still am not clear on your question but I believe that you are trying to make a simple process complicated
    It may help to take the iPhoto tutorials - http://www.apple.com/findouthow/photos/ - so you have a better understanding of how iPhoto works
    LN

  • I can't create the JVM using JNI_CreateJavaVM

    I'm very much new to the JNI on Windows 2000. When I compiled the example invoke.c program that invoke the java program, it generated invoke.exe file. but when I run the this executable file, it always shows "Can't create Java VM". I tried other samples, but the result is same. I am also sure that I copy jvm.dll from jdk1.2.2\jre\bin\classic to the same folder with invoke.exe file.
    I use JDK1.2.2 and Microsoft Visual Studio 6.0 C++. Please let me know what's going on about the following program?
    #include <jni.h>
    #define USER_CLASSPATH "." /* where Prog.class is */
    int main() {
    JNIEnv *env;
    JavaVM *jvm;
    jint res;
    jclass cls;
    jmethodID mid;
    jstring jstr;
    jclass stringClass;
    jobjectArray args;
    JavaVMInitArgs vm_args;
    JavaVMOption options[1];
    options[0].optionString =
    "-Djava.class.path=" USER_CLASSPATH;
    vm_args.version = JNI_VERSION_1_2;
    vm_args.options = options;
    vm_args.nOptions = 1;
    vm_args.ignoreUnrecognized = JNI_TRUE;
    /* Create the Java VM */
    res = JNI_CreateJavaVM(&jvm, (void**)&env, &vm_args);
    if (res < 0) {
    fprintf(stderr, "Can't create Java VM\n");
    exit(1);
    cls = (*env)->FindClass(env, "Prog");
    if (cls == 0) {
    goto destroy;
    mid = (*env)->GetStaticMethodID(env, cls, "main",
    "([Ljava/lang/String;)V");
    if (mid == 0) {
    goto destroy;
    jstr = (*env)->NewStringUTF(env, " from C!");
    if (jstr == 0) {
    goto destroy;
    stringClass = (*env)->FindClass(env, "java/lang/String");
    args = (*env)->NewObjectArray(env, 1, stringClass, jstr);
    if (args == 0) {
    goto destroy;
    (*env)->CallStaticVoidMethod(env, cls, mid, args);
    destroy:
    if ((*env)->ExceptionOccurred(env)) {
    (*env)->ExceptionDescribe(env);
    (*jvm)->DestroyJavaVM(jvm);
    return 0;

    Are you sure you are using the correct jvm.dll?
    Remove any jvm.dll files you copied to your .exe directory and set your Path so that is using the jdk1.3 hotspot jvm.dll.
    You said you were using windows so the default location of your jdk is C:\jdk1.3.1 To set your path to the correct location use this command:
    set Path=%Path%;C:\jdk1.3.1\jre\bin\hotspot
    If your jdk is installed somewhere else replace C:\jdk1.3.1 with the root path to your jdk.
    If that doesn't work there may be a conflict with the way you compiled the program.

  • Can not attach library for use OC4J

    Hi,
    I am new to Oracle designer and have go to the point where I am trying to run a form I generated in Oracle Designer but the error I keep having is FRM-40039 cannot attach library - I get this for four libraries that are attached to the form; OFGCALL. OFGTEL, OFGNAVL, OFGMES. I have been playing about and attaching/removing them from the form, and saying NO to the dialog box that comes up saying 'attached library name xxxx contains a non-portable directory specification. Remove path?' seems to mean that the form will then start to have an error on one of the other libraries - so you would think that by attaching them all in this way that the form would run - but it doesnt.
    Can someone please help? I have checked the forms path in the registry and it does point to the folder where these pll and plx files are located.
    Many thanks
    Message was edited by:
    congacocon

    Hello,
    I am not sure to understand your question around OC4J and Forms/Designer.
    I doubt that the issue is related to OC4J since OC4J is a pure J2EE/Web Services container that does not have direct links with OracleAS Forms Server.
    I am inviting you to post this question in Oracle Designer or Forms forums
    Regards
    Tugdual Grall

  • Advantages of using Oracle JVM over JPDA for Remote Debugging?

    What are the "additional features" that the documentation hints at when using the Oracle JVM for remote debugging vs. the JPDA protocoL? Can a member of the JDEV briefly address this? What exactly am I losing when using JPDA?

    I am not getting anywhere with 'NCOMPing' the stuff. Attempts to NCOMP keeps erroring out . The first of the errors is
    'Error while determining classes contained in jsch-1.29_minimalClassListAndTCD
    mper.java
    Exception oracle.aurora.sqljdecl.ParseException: Encountered "-" at line 14
    column 18.
    Was expecting one of:
    "extends" ...
    "implements" ...
    The following operations failed
    jsch-0.1.29_minimalClassListAndTCDumper.java: creation
    exiting : Failures occurred during processing
    Kuassi, I have looked at a few of your posts where you make mention of a file titled 'Settings_os.properties'. I see no such file in my Oracle installation. What am I missing here ?

  • Remote debugging issue: Address already in use

    First, I want to explain that to use remote debugging in oracle UCM server (IdcServerNT.exe), I add these lines at */server/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=-Xdebug
    JAVA_OPTIONS_debug_options=-Xrunjdwp:transport=dt_socket,server=y,address=8000,suspend=n
    and since the JAVA_OPTIONS is shared between admin server (IdcAdminNT.exe) and non-admin server (IdcServerNT.exe), to prevent "Address already in use" error, I added same lines but with empty value into */server/admin/bin/intradoc.cfg*:
    JAVA_OPTIONS_debug_enable=
    JAVA_OPTIONS_debug_options=
    or alternatively enable it but use different port for the "address=xxx".
    Now the issue is when I had run the non-admin UCM server with remote debugging enabled, then I tried to run the Component Wizard, I got "Address already in use" error:
    ERROR: transport error 202: bind failed: Address already in use ["transport.c",L41]
    I found out that's possible because Component Wizard (ComponentWizard.exe) is using same setting file with non-admin server (IdcServerNT.exe): */server/bin/intradoc.cfg*. It's obvious that happened because of ComponentWizard.exe is in same location with IdcServerNT.exe, so I think other tools like Batch Loader and System Properties will be affected with same issue too.
    Because of this issue, everytime I want to open Component Wizard, I had to stop the non-admin server which is inconvenient.
    So, the question is there a way to define separately or disable the JAVA_OPTIONS_debug_enable & JAVA_OPTIONS_debug_options for Component Wizard?

    WillT wrote:
    My run method was being called somewhere else and I can't find out whereOkay, but changing from implementing Runnable to extending Thread won't change that one whit. You must've also changed something else.
    Extending Thread is the wrong approach, since you're not creating a special kind of Thread.

  • Remote Debug in eclipse

    Hello!
    I am new to eclipse...Can someone tell me how to use remote debug? I thought it is done by running "Debug..." after selecting the java file...Sorry for being so ignorant about this...I will really appreciate your help. Thank you.

    You do not have to have a main() method in the application. In fact you can have a breakpoint in any Java component. It just has to be in debugger's scope and it'll get visited.
    Example: Let's say you're rinning a Tomcat app. You can have a breakpoint inside a servlet's doGet() methof and when you invkoke the servlet from Firefox, Eclipse will pause the excution and will bring the debugger perspective up.
    From the article "Eclipse Debug window should automatically pop-up with the stack pointer on your first breakpoint (See Figure 3: Breakpoint hit in Eclipse's debugger). After that, you can use all the various functions that the debugger has to offer, namely variable assignments, step-into, drop to frame, etc."
    If you're not seeining anything, chances are that you're not executing that piece of code. Double check that and let me know.
    Levent Gurses

  • Apex 4.1 remote debugging with dbms_debug_jdwp - breakpoints not working

    Hi all,
    I'm using remote debugging with sqldeveloper like described here:
    http://www.oracle.com/webfolder/technetwork/de/community/apex/tipps/remote-debug/index.html
    http://sueharper.blogspot.com/2006/07/remote-debugging-with-sql-developer_13.html
    It works great with my sqldeveloper 3.0 and Apex 4.0.2
    Now i tried the same on two other servers with Apex 4.1
    The debugger is connecting. I can see the connect and diconnect message in the debug windows in the sqldeveloper.
    But the breakpoints are not working.
    Is the debugging working in Apex 4.1 for anyone here?
    Any ideas why the breakpoints are not working?
    BR,
    Björn

    Hi Björn,
    In your APEX application, have you tried updating the URL to include the parameter REMOTE, in order to initiate the remote debug connection? e.g.
    f?p=100:1:&SESSION.::REMOTE::Using the REMOTE parameter cuts out the need to specify debug code surrounding statements in the APEX PL/SQL.
    The steps are as follows:
    1) In SQL Developer, set break points in the the PL/SQL code, and compile using the "Compile for debug" option
    2) Execute the following two grants
    grant DEBUG CONNECT SESSION to <PARSE USER>;
    grant debug on <PROC> to public;  <-- might not need public but just whoever the DAD is running as.5) In SQL Developer, right-click on your connection and select the "Remote Debug..." context menu item. This will launch the "Listen for JPDA" dialog.
    5) Run the APEX Application page containing/activating the code you wish to debug, and update its URL with REMOTE in the debug parameter of the URL, and then hit Enter.
    6) Carry out the action on the page to trigger the breakpoint in your code e.g. submit the page, or click a button on the page, and you should be redirected to the breakpoint in the code in SQL Developer.
    Although I'm running with the latest release of SQL Developer, version 3.2.2 (http://www.oracle.com/technetwork/developer-tools/sql-developer/downloads/index.html), and APEX 4.2, the 'REMOTE' parameter was introduced with our 3.1 release so will also be available for you to use in 4.1.
    Regards,
    Hilary

  • Remote debugging in JDeveloper

    Hi,
    Can you please provide the steps to do remote Debugging of source from JDeveloper
    Thanks

    are you looking for this?
    http://aboutsoa.wordpress.com/2009/03/10/remote-debugging-in-jdeveloper/
    http://jdeveloperfaq.blogspot.com/2009/12/faq-4-how-to-remote-debug-adf.html
    http://xmlandmore.blogspot.com/2010/12/using-remote-debugging-in-jdeveloper.html

  • Remote debug with gdb

    Can anybody help?
    I try to use remote debug with gdb-5.0 on Solaris8 x86. When I issue "target cisco ..." I get "No such file or directory" message.
    What is the problem.
    Thanks.

    Solved for me
    FlasCC/sdk/usr/bin/g++ -c -g -O0 main.cpp ## additional flags
    FlasCC/sdk/usr/bin/g++ main.o -emit-swf -o main.swf ## additional flags
    changet to
    FlasCC/sdk/usr/bin/g++ -g -O0 main.cpp -emit-swf -o main.swf ## additional flags

  • Weblogic 8.1 Remote Debugging Setup

    I am requesting help on a problem I am encountering using remote debugging with eclipse and Weblogic 8.1.2. I have successfully used remote debugging in the past with other application servers, but I have been unsuccessful with Weblogic 8.1.
    I have set the remote debugging options both on the weblogic start script as well as configured eclipse to connect to the port that was defined in the startup script (See Below). When I start the remote debugger within eclipse and it seems to connect properly. Once I set a break point or remove a break point, weblogic generates a "Transport error, error code = -1" and stops the debugger with in Eclipse.
    At this point I am at a loss of what is causing this error. I would appreciate any help on this issue.
    Operating System: WindowsXP Pro
    Weblogic Version: 8.1.2
    Eclipse 3.2
    JDK 1.4.2
    JAVA_OPTS: =-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n
    Thanks!
    Rafael Salazar

    Address 7001 does't seem to be good idea for debuging, it is weblogic default address.
    try 3999.
    "Arsel" <[email protected]> wrote:
    >
    Hi There,
    I started weblogic server 8.1 with the follwing option -Xdebug -Xnoagent
    -Djava.compiler=NONE
    -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=7001
    Weblogic started successfully but when I tried to attached the java process
    from
    my IDE I got the error 'Target server failed to handshake' and in the
    weblogic
    console I got the following error.
    <22-Aug-2003 10:09:52 o'clock AM EDT> <Error> <HTTP> <BEA-101083> <Connection
    failure.
    java.io.IOException: A complete message could not be read on socket:
    'weblogic.servlet.internal.MuxableSocketHTTP@1871db
    1 - idle timeout: '60000' ms, socket timeout: '5000' ms', in the configured
    timeout
    period of '60' secs
    at weblogic.socket.SocketMuxer$TimeoutTrigger.trigger(SocketMuxer.java:734)
    at weblogic.time.common.internal.ScheduledTrigger.run(ScheduledTrigger.java:243)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:97)
    at weblogic.time.common.internal.ScheduledTrigger.executeLocally(ScheduledTrigger.java:229)
    at weblogic.time.common.internal.ScheduledTrigger.execute(ScheduledTrigger.java:223)
    at weblogic.time.server.ScheduledTrigger.execute(ScheduledTrigger.java:49)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:178)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:151)
    Does weblogic 8.1 support JPDA? Any suggesstion is higly appreciated.
    Thanks.
    Arsel

Maybe you are looking for

  • "Save AS" in another window

    Hi all, I use the following to prompt a save as dialog box : response.setContentType("image/svg+xml"); response.setHeader( "Content-Disposition", "attachment; filename=" + filename); It works, but as the file to open is a svg file (xml file), it is o

  • Need some help with a split package

    Basically, I'd like to have some code in my PKGBUILD that will append some extra info to the package name based on a file the user defined.  This is for kernel26-ck and the file I speak of is the .config he/she makes.  Below is the code that doesn't

  • I want to deploy an application using firefox but I don't want it set as default browser. I am using mozilla.cfg to lockdown firefox.

    I am deploying an application using firefox. I am using the mozilla.cfg file to lockdown firefox and I don't want firefox to be the default browser.

  • Sony S Tablet not found in Flash Builder 4.6

    Hi, i tried to debug an AIR app on a new Sony S Tablet, but the latest Flash Builder 4.6 didnt see the device. I setup the device in USB debugging mode and iam using an OSX OS with Lion 10.7. Anyone has an idea? Gary http://onlinelib.de

  • Slow Broadband Speed

    Hello Whom May Consent I have just found out that I am not the only one have problem with BT broadband speed. Many people seem to have problem with their slow Internet speed due to the exchange problem. That’s good, because after 10 calls to BT, I st