Debugging in JDev 10.1.2

I've created an application workspace with a single project, and the project has a single java class that contains a main method. I've put a stop point on the first line of the main method, and another in another method that main calls. When I try to debug in JDev 10.1.2, it sits for several minutes then I finally get the message "Debugger connection attempt not successful. Debugger will retry", and then finally "Debugger unable to connect to local process.
Process exited.".
Is there a setting I need to make to make the debugger work? Or is this a bug?

Does modifying the
Connection Retry Setting connect the debugger.
http://download-east.oracle.com/otn_hosted_doc/jdeveloper/904preview/compiling_debugging/f1_deb_projset_debugwin.html

Similar Messages

  • Remote Debugging in Jdev EA1.

    Hey guys, what happen to remote debugging in Jdev EA1?
    Thanks,
    Tony

    The remote debugging was moved to tools/project properties select run/Debug and then edit.
    Thanks,
    Tony

  • BUG: OC4J recompiled JSPs can not be debugged in JDev 10.1.3.2

    We are having problems on JSP which are modified while running on OC4J within JDev 10.1.3.2. The modified JSP are not correctly recompiled.
    A similar thread discussing this problem is here:
    Oracle JDeveloper 10.1.3.1's Internal OC4J JSP Recompile
    We consider this to be a problem that may be related more to OC4J than to JDev and therefore I am asking for suggestions in this forum.
    To explain what we observe:
    In JDev 10.1.3.1 we found that big/complex JSP would not recompile after changes were made while OC4J was running. The compiled JSP files under \.jsps\_web_2d_inf\... changed from myfile.class and myfile.java to myfile.class, myfile.java and (a new file) myfile.jpa.
    After installing JDev 10.1.3.2 we now observe that for any JSP that gets changed (also the small/simple ones) the constellation of three files (with the additional .jpa) gets created. Small files are compiled and can be used after changed in real time but code insight and variable inspection and modification needed for debugging no longer work. (Note that they worked on the unchanged file, and would work again if we stop and recompile the whole project).
    I could certainly appreciate if someone has found a solution to this problem as migrating back to a JDev version previous to 10.1.3.1 is not wanted.
    Thanks in advance!
    Gonzalo

    I have openned a SR with this issue.
    Does nobody else has this problem?
    To reproduce it try:
    Run any application in JDeveloper which contains a JSP file where a scriptlet declares
    and use some variables.
    Run the application and set a breakpoint after some of the variables. Call the JSP from the browser to start its execution and after stopping at the breakpoint inspect the variables content. It works, you can see the variable contents.
    Now make a change in the JSP (anything) and call it again from the browser without restarting OC4J.
    After stopping at the breakpoint you will see that the variables can no longer be inspected, their content is no longer available.
    Thanks for any suggestions,
    Gonzalo

  • Can not test, run or debug from JDev 10.1.3

    Hi,
    Just starting to play with latest JDeveloper 10.1.3 (installed latest version + patch), I've then created a new application (ADF BC + JSF), a new ViewObject and an app module.
    When I try to test the app module, I'm getting the following error:
    "C:\Oracle\Jdev\jdk\bin\javaw.exe" -classpath "C:\Oracle\Jdev1013\BC4J\jlib\bc4jtester.jar;C:\Oracle\Jdev1013\jlib\jdev-cm.jar;C:\Oracle\Jdev1013\lib\xmlparserv2.jar;C:\Oracle\Jdev1013\jlib\help4.jar;C:\Oracle\Jdev1013\jlib\share.jar;C:\Oracle\Jdev1013\jlib\jewt4.jar;C:\Oracle\Jdev1013\jlib\oracle_ice.jar;C:\Oracle\Jdev1013\jlib\ojmisc.jar;C:\Oracle\Jdev\jdk\jre\lib\rt.jar;C:\Oracle\Jdev\jdk\jre\lib\i18n.jar;C:\Oracle\Jdev\jdk\jre\lib\sunrsasign.jar;C:\Oracle\Jdev\jdk\jre\lib\jsse.jar;C:\Oracle\Jdev\jdk\jre\lib\jce.jar;C:\Oracle\Jdev\jdk\jre\lib\charsets.jar;C:\Oracle\Jdev\jdk\jre\classes;D:\Projects\jdev1013\SizzleFlowBuilder\Model\classes;C:\Oracle\Jdev1013\jdev\lib\jdev-rt.jar;C:\Oracle\Jdev1013\BC4J\lib\adfshare.jar;C:\Oracle\Jdev1013\BC4J\lib\bc4jmt.jar;C:\Oracle\Jdev1013\BC4J\lib\collections.jar;C:\Oracle\Jdev1013\BC4J\lib\bc4jct.jar;C:\Oracle\Jdev1013\jlib\commons-el.jar;C:\Oracle\Jdev1013\jlib\jsp-el-api.jar;C:\Oracle\Jdev1013\jlib\oracle-el.jar;C:\Oracle\Jdev1013\BC4J\lib\adfm.jar;C:\Oracle\Jdev1013\BC4J\jlib\adfui.jar;C:\Oracle\Jdev1013\BC4J\lib\adfbinding.jar;C:\Oracle\Jdev1013\jdbc\lib\ojdbc14dms.jar;C:\Oracle\Jdev1013\jdbc\lib\orai18n.jar;C:\Oracle\Jdev1013\jdbc\lib\ocrs12.jar;C:\Oracle\Jdev1013\diagnostics\lib\ojdl.jar;C:\Oracle\Jdev1013\lib\dms.jar;C:\Oracle\Jdev1013\BC4J\lib\bc4jdomorcl.jar;C:\Oracle\Jdev1013\BC4J\jlib\bc4jdatum.jar;" oracle.jbo.jbotester.MainFrame -X 10A4B929471 -H "jar:file:/C:/Oracle/Jdev1013/jdev/doc/studio_doc/ohj/bc4j_f1.jar!/bc4j_f1.hs"
    java.lang.NoClassDefFoundError: oracle.jbo.jbotester.Res
         void oracle.jbo.jbotester.MainFrame$FileConnectAction.<init>(oracle.jbo.jbotester.MainFrame)
              MainFrame.java:829
         void oracle.jbo.jbotester.MainFrame.$init$()
              MainFrame.java:109
         void oracle.jbo.jbotester.MainFrame.<init>()
              MainFrame.java:132
         void oracle.jbo.jbotester.MainFrame.main(java.lang.String[])
              MainFrame.java:391
    Then I added a new JSP and when I try to run or debug it, I'm getting:
    [Starting OC4J using the following ports: HTTP=8988, RMI=23891, JMS=9227.]
    **** Unable to obtain password from principals.xml. Using default.
    C:\Oracle\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config>
    C:\Oracle\Jdev\jdk\bin\javaw.exe -ojvm -classpath C:\Oracle\Jdev1013\j2ee\home\oc4j.jar;C:\Oracle\Jdev1013\jdev\lib\jdev-oc4j-embedded.jar -Dhttp.proxyHost=proxy.us.oracle.com -Dhttp.proxyPort=80 -Dhttp.nonProxyHosts=*.oracle.com|*.oraclecorp.com -Dhttps.proxyHost=proxy.us.oracle.com -Dhttps.proxyPort=80 -Dhttps.nonProxyHosts=*.oracle.com|*.oraclecorp.com -Xverify:none -DcheckForUpdates=adminClientOnly -Doracle.application.environment=development -Doracle.j2ee.dont.use.memory.archive=true -Doracle.j2ee.http.socket.timeout=500 -Doc4j.jms.usePersistenceLockFiles=false oracle.oc4j.loader.boot.BootStrap -config C:\Oracle\Jdev1013\jdev\system\oracle.j2ee.10.1.3.36.73\embedded-oc4j\config\server.xml
    [waiting for the server to complete its initialization...]
    OC4J startup failed
    java.lang.NoClassDefFoundError: oracle.classloader.ClassLoaderQuery
         void oracle.oc4j.loader.boot.BootConfigurationFactory.<init>(java.lang.String[])
              BootConfigurationFactory.java:63
         oracle.classloader.util.InitialLoadersConfiguration oracle.oc4j.loader.boot.BootConfigurationFactory.create(java.lang.String[])
              BootConfigurationFactory.java:57
         void oracle.oc4j.loader.boot.BootStrap.main(java.lang.String[])
              BootStrap.java:22
    Process exited with exit code 0.
    Does anyone already see that?
    Thanks.

    My J2SE version was wrongly set to 1.3 instead of 1.5.
    Now it works.

  • Debug between jdev projects - no source

    I'm using JDeveloper 3.2.2
    I have split my project in smaller jdev projects with 10-15 files each. They all are stored in different subdirectories in my big project.
    My problem is that when I'm debugging any of those projects debugger does not find source of files in other projects.
    How does the source file search works for debugging - where shall I write those paths to get debugger work through all of my source code no matter in which project they are?
    Thanks in advance,
    Casper-
    null

    For the project (or projects) that you use when debugging, bring up the Project Properties dialog. On the Paths page, make sure that the Source Root Directories field contains ALL the directories where you source files are located.
    However, don't include the package directories. For example if you source file is called test.java and it is in package casper.testing and the fully qualified filename is C:\mysources\casper\testing\test.java then you should enter C:\mysources in the SourceRootDirectories field.
    Liz
    null

  • Cannot remote debug from JDev 10.1.3 on AS 10.1.2 running hotspot

    Hi,
    I've set up an embedded OC4J instance in an application server as described in the help topic, "Remote Debugging in OC4J" (with a few changes, such as the fact that I added startup options using the OC4J instance Admin page of EM, rather than at the command line (since the instance is embedded in a full AS). I followed the directions specifically for HotSpot, because that's the JVM the instance was set up to use, and I can't change it (I know OJVM enables lots more features, but that's the situation I'm in).
    I've also configured my project for remote debugging, ensuring the host name and port matches, and trying both "Attach to JDPA" and "Attach to OJVM" (these being the only two options, except for starting a listener, which I don't think will help with a web application).
    When I try to debug, though, I get:
    Debugger unable to connect to remote process.
    Should I be doing something differently?
    Thanks much,
    Avrom

    I had the delete key quit working after accidentally pressing a key sequent that included the delete key. I don't know what keys were involved, but the delete key from that point on did nothing.
    I am running JDeveloper 10.1.3.0.4 on Window XP.
    To resolve the problem, I set the keyboard Accelerators back to 'Default' in JDeveloper.
    I selected... Tools->Preferences->Accelerators
    then click on 'Load preset' then I chose 'Default'
    You may need to select something other than default for your platform, but that did the trick for me.

  • JSP Remote debugging from Jdev to WL 7.0

              I am trying to remote debug my JSP deployed on WL from Jdeveloper 903.
              I have included the parameters to make WL start in a debug mode.
              I have also included ojsp.jar, servlet.jar and ojc.jar in WL classpath.
              So I can start WL in debug mode, I can launch the url to get access to my JSP,
              a break point is included in the code but it doesn't stop at the break point.
              I am using JPDA.
              Do I have to modify something else to be able to remote debug my JSP?
              PS: remote debugging my EJB works fine.
              Thanks for your help
              

              Is there any possibility to change the JSP engine in Weblogic server and customize
              the new JSP
              with additional parameters, so that IDE's can debug JSP code itself?
              "Mike Herrick" <[email protected]> wrote:
              >
              >As far as I know this is behaving correctly.
              >
              >To debug a JSP via JDPA you have to compile your JSPs and put the Servlet
              >classes
              >the JSP compiler spits out in your IDE Classpath. Then you can debug
              >those Servlets
              >-- but you can't set break points in the JSP itself. Not the best.
              >
              >Some IDE Vendors add this on top of JDPA etc.
              >
              >I'm not 100% on this, but think I'm correct.
              >
              >Mike
              >
              >"Magali Richard" <[email protected]> wrote:
              >>
              >>I am trying to remote debug my JSP deployed on WL from Jdeveloper 903.
              >>I have included
              >>the parameters to make WL start in a debug mode. I have also included
              >>ojsp.jar,
              >>servlet.jar and ojc.jar in WL classpath. So I can start WL in debug
              >mode,
              >>I can
              >>launch the url to get access to my JSP, a break point is included in
              >>the code
              >>but it doesn't stop at the break point. I am using JPDA. Do I have to
              >>modify something
              >>else to be able to remote debug my JSP?
              >>
              >>PS: remote debugging my EJB works fine. Thanks for your help
              >>
              >
              

  • Debugging w/ JDev and iPlanet

    Just curious if anyone has been successful with remote debugging from JDeveloper 3.1 where iPlanet 4 is the web-server?
    I've tried the "General Settings" as described in the help files, but they cause the web-server to not restart.

    Sorry!
              the debug option was NOT enabled (seems that my ant script is too
              complex at this stadium...)
              Cheers,
              Jan.
              [email protected] (Jan-Friedrich Mutter) wrote in message news:<[email protected]>...
              > Hi,
              >
              > I'd like to debug my Servlets/EJB's running on a Weblogic 6.1 SP4. My
              > IDE is Eclipse 2.1
              > To enable remote debugging I start Weblogic with that additional JVM
              > options:
              >
              > -classic -Xdebug -Xnoagent
              > -Xrunjdwp:transport=dt_socket,address=5000,suspend=y,server=y
              >
              > and configured my Remote Application in Eclipse accordingly.
              >
              > The connection successes.
              >
              > Problem: When I reach my breakpoint, Eclipse pops up an error message:
              > "Attempting to install a breakpoint in the type
              > com.xxx....
              > that has no line number attributes. The breakpoint cannot be
              > installed. Class files must be generated with the line number
              > attributes.
              > Reason:
              > Absent Line Number Information"
              >
              > I compiled my sources with enabled debug option.
              >
              > Any comments and ideas are appreciated.
              >
              > Cheers,
              > Jan.
              

  • JDeveloper 11g: Can System.console be used with the JDev debug window

    The version of JDev should not matter for this problem.
    I am working on a console application that I would like to debug from within JDev. Unfortunately, System.console does not detect the JDev debug window as a valid Console object.
    Running the following will return null;
    Console console = System.console();My code works fine if run from an actual command window.
    The main reason that I was using Console was for readPassword.
    Does anyone know of a way to get this to work?
    Should I ditch this and go with BufferedReader or Scanner?

    Thanks for replying so quickly Shay!
    Yes, I did enable "Allow Program Input". Unfortunately that never worked with Console.
    BufferedReader works just fine though.
    I really only wanted to use Console because it bundled up readPassword. I most likley will have to go with BufferedReader or Scanner if I wish to debug within JDev.

  • Null pointer exception while inserting a new row in ADF with jdev

    Hi,
    In ADF, I have retrieved some user information from LDAP server and I want to insert those values in to my table. But when I do this, I am getting a null pointer exception when I get the view object (ViewObject vo=getCRUIP002_1();). I am not sure why this happens.
    Here is my code. It is urgent.
    and please some one help me in fixing the issue.
    ViewObject vo=getCRUIP002_1();
    vo.clearCache();
    vo.setMaxFetchSize(0);
    vo.executeQuery();
    Row newRow=vo.createRow();
    vo.insertRow(newRow);
    SearchResult res = (SearchResult)results.next();
    Attributes attrs = res.getAttributes();
    // Row newRow = vo.getCurrentRow();
    newRow.setAttribute("LOGINNAME",(Object)attrs.get("sn").get().toString());
    newRow.setAttribute("PASSWORDVALUE","x");
    newRow.setAttribute("FIRSTNAME",(Object)attrs.get("sn").get().toString());
    newRow.setAttribute("LASTNAME",(Object)attrs.get("sn").get().toString());
    newRow.setAttribute("EMAIL",(Object)attrs.get("mail").get().toString());
    Thanks,
    Priya.S

    assuming ur jdev version is 10.1.2
    ViewObject vo=getCRUIP002_1();i dont think ur getting the view object hence null pointer expception.
    ViewObject vo = findViewObject("MyView1");
    if u r in the object class then first get the root application module and then access the View obejct from there.
    In ADF if u assign a null value, u will always get the null pointer exception coz of java. Run the app in debug mode and check the values step by step, by the way there is not exception handling in ur code either, Do u know how to debug in Jdev ?
    zaibi.

  • Develop in JDev 10.1.3.5, test and deploy to Oracle Weblogic 11g

    Hi,
    I have run into some important issues when trying to migrate my Jdev 10.1.3.5 applications to JDev 11g for deployment to the latest Oracle Weblogic Application server version, see threads:
    Thread: migration problems ADF/ Struts 10.1.3 -> 11.1.1.3
    migration problems ADF/ Struts 10.1.3 -> 11.1.1.3
    Thread: ADF/Swing/JClient application migration problem from 10.1.3.5 to 11.1.1.3
    Re: ADF/Swing/JClient application migration problem from 10.1.3.5 to 11.1.1.3
    - so using JDev 10.1.3.5 with deployment to Oracle Weblogic 11g is a must for us.
    Questions:
    1) Is there a way to use Oracle WEBLOGIC 10.3 for debugging inside JDev 10.1.3.5?
    2) Can I develop with JDev 10.1.3.5 + JDK 1.5 and create an ear to deploy to Oracle WEBLOGIC 10.3 Application server with JDK 1.6 64bits?
    3) Which version of ADF should I install on Oracle WEBLOGIC 10.3 to run my 10.1.3.5 application?
    Your help will be appreciated
    Fred

    Is there a way to use Oracle WEBLOGIC 10.3 for debugging inside JDev 10.1.3.5?While you can't replace the embedded OC4J - you can use an external WLS server and do remote debugging on it. http://www.oracle.com/technetwork/developer-tools/jdev/remotedebugwls-086628.html
    From inside JDeveloper you can also deploy directly to the WLS server.
    Can I develop with JDev 10.1.3.5 + JDK 1.5 and create an ear to deploy to Oracle WEBLOGIC 10.3 Application server with JDK 1.6 64bits?Yes you can. Note that so far we haven't officially certified ADF 10.1.3 on WLS 10.3 - but from various customers and testings we think it works ok. We might certify this combination in the future.
    Follow these steps to get the deployment working:
    http://www.oracle.com/technetwork/developer-tools/jdev/deployingwls-091640.html
    Which version of ADF should I install on Oracle WEBLOGIC 10.3 to run my 10.1.3.5 application?You always install the version of ADF that matches the one your application was developed and compiled with.

  • JDeveloper 10g - Debugging and hotswap

    Hi All,
    Have recently started to explore the hotswap funtionality in JDev debugging. I've created a simple application with a single EJB3 stateless session bean. Debugging from JDev works great, however when I make any source change while debuging and recompile the hotswap fails with the following error.
    The debugger was unable to redefine the recompiled classes.
    Unsupported operation: hierarchy change.
    What does the message mean and how do I get hotswap working? I'm using the JDK supplied with JDeveloper if that makes any difference.
    Cheers,
    J

    Thanks, but isn't this for implementing enhancements to JDeveloper only? Is it possible to use this classes in a standalone java application?

  • Java.lang.OutOfMemoryError in JDev

    Hi,
    i have this error when i launch my application via JDevelopper. I don't encounter this problem when using Tomcat Server...
    My application works a lot with JAXP, using DOM parser with big tree.
    I don't mind using Tomcat but i would like to use debug tool from JDev and trace my prog' !
    Is there a solution to this ?
    thanks

    Hi,
    I am unsure what your question is. Do you want to debug using the embedded OC4J server in jdeveloper, or do you want to connect to your application running on tomcat to debug from jdev? The answer is that you can do both.
    JDeveloper has a built-in debugger. If you are working within JDeveloper, it is as easy as setting a break point in the code editor and running debug. You can then step over, step into, watch and change values, view allocations, garbage collect, etc.
    If your program is running on tomcat, then you will need to start the tomcat server in a remote debug session using either OJVM or another VM such as Hotspot. From jdev you must then specify the project for remote debugging and connect using the correct port and host information. If you are trying to debug JSP on tomcat, that is a trickier question, because you need to replace the JSP engine with OJSP.
    For more information, check out the online help topics "Remote Debugging in OC4J" and "Starting a Java Process in Debug Mode". You can find other related topics by just searching on "remote debug" in help.

  • Remote debug struts Tomcat 4.1

    I'm trying to setup jdeveloper 10g to remote debug a struts application which is located in the web apps of the tomcat directory. I called myself setting up everything by using the help documentation. I'm doing something wrong, I need some help.

    Hi.
    For remote debugging, the Virtual Machine setting on the Runner options panel is not used. That Virtual Machine setting is used for local running/debugging, when JDev will be launching the debuggee process.
    For remote debugging, you need to select the correct Remote Debugging Protocol. In the most recent JDev (the preview that came out in November/December 2004), that setting is in the Tools Preferences dialog box, on the Debugger - Remote panel. In previous versions of JDev, that setting is in the Project Properties dialog, on the Debugger - Remote panel (it's right under the Remote Debugging checkbox).
    If you will be starting up Tomcat with ojvm (with -XXdebug,detached,port8080 option), then you want to select the "Attach to OJVM" radio button.
    If you will be starting up Tomcat with Hotspot (with -Xdebug -Xrunjdwp:<blah blah blah> options), then you want to select the "Attach to JPDA" (or perhaps, but less likely, the "Listen for JPDA") radio button.
    -Liz

  • How do I set a breakpoint in a Java Server page (.jsp)?

    I have set up an application for remote debugging and am able to connect to it from JDeveloper. When the code execution comes to breakpoints that I have set in java (.java) files they work and the application stops so I can debug etc.
    This also applies to breakpoints set in java code that is called from Java Server pages.
    However if I set breakpoints directly in a java server page whether it is in html code or in java code (such as scriplets) the execution does not stop and the breakpoints are ignored.
    Why? Is there some extra thing I have to do? I have tried in Project Properties/Run/Debug/Profile/Edit/Launch Settings to choose server as Virtual Machine for instance but that does not change anything.
    Comment. I do not know if this is of interest but I am going to add some java server pages to an application and they are defined in a directory like this:
    . . . src\org\yawlfoundation\yawl\resourcing\jsf\jsp
    but when the tomcat deploys the .war file they end up here:
    . . . apache-tomcat-6.0.18\webapps\resourceService
    As I can find no package declaration in a .jsp file this should not matter but I mention it anyway.
    Edited by: user10477024 on Nov 25, 2008 5:32 AM

    Hi user10477024,
    thanks for explaining your background on what you are trying to do and I do understand the approach you are taking. Unlike user10689900's completely random post.
    I've tried to convey why there is no support for JSP debugging in JDev, but again the main reason is that the current frameworks do not code Java directly into a JSP. The JSP is purely used to position the components on the page aiding visual design and real Java classes in tag libs do the rest.
    So the evolution has been:
    Servlets (Java classes writing HTML logic and intermingling presentation and business logic)
    JSP 1.0 JSP (HTML looking) files where you can add scriptlets enclosed in <% ... %> <- you are here
    JSP 1.1 Introduction of Tags and Tag libraries, tag libraries are true java classes and the JSP controls layout and simpler more elegant design.
    Really JSP 1.1 is all about building reusable components together in tag libraries that can be reused across pages and improving design by not mixing presentation and business logic code together.
    If I had inherited something as you have, my advice (if you can) would be to code up some tag libraries because it would be a good learning experience and would be very helpful for moving to more advanced frameworks like JSF.
    regards,
    Brenden

Maybe you are looking for

  • Why table getWidth and setWidth is not working when resize column the table

    hi all, i want to know why the setWidth is not working in the following code, try to uncomment the code in columnMarginChanged method and run it wont resize the table. i cont set width(using setWidth) of the other table column using getWidth of the m

  • Safari and querystring

    I have a user accessing a web application with Safari 1.3.2 on Mac OS X 10.3.9. The web app is built with cold fusion. When he clicks the save button in the application frg.cfm, the application saves form data to a database and then sends the user ba

  • Data model design in SAP BI

    Hi All, I have one requirement to design the data model for BI.  How to design a dataflow in BI. I know dataflow is different from data model. Could you pls let me know hoe to design it. Is there any model available ...so that i can refer. if not let

  • Exporting resulting Applets as jpg,gif or png

    Hello, i am currently working on an applet, included in a webapplication. The insurance agent make a drawing of an accident within this applet and i need to export the result as a file. Does anyone know how ? is this even possible with applets ? hope

  • How can I open 100D RAW files in CS4, I have tried everything.

    Hi guys, can someone please help me.  I am trying to open 100D RAW files in PS CS4.  I have tried so many things including downloading the plug in and even DNG converting but would rather be able to open RAW files direct and not have to convert every