Enable JSSE Debugging in servlet?

Hi everyone,
I read from an article that we can enable the JSSE debugging using the following command
java -Djavax.net.debug=all MySSLApp
Is it possible to enable such debugging utility inside the code of a servlet?
Thanks
Feng

Yes, you can enable this in a servlet, no problem. I am assuming that you are using iPlanet 6.X. Then in magnus.conf, you can capture the stdout and stderr to the errors log, and that will contain the "transcript" of your ssl handshakes, etc..... or whatever debugging output you want.
The config lines to capture stdout and stderr to the errors log are:
LogStdout on
LogStderr on
You can also configure java logging to go to places other than stdout and stderr, but for that you'll have to ask someone else.... :-)

Similar Messages

  • How to enable JIT debugging on my Windows 7 (64 bit) computer? I keep getting different Errors popping up on my computer about debugging different programs and that JIT debugging must be enabled!

    How do I enable JIT debugging on my Windows 7 (64 bit) computer? I keep getting different Errors popping up on my computer and the latest one says when I attempted to watch a DVD video with VLC media player but this isn't the first error this week saying
    that JIT debugging must be enabled and I don't know how to do that : ( "Microsoft Visual C++  Runtime Library"  Assertion Failed! Program C:\Program Files (x86) VideoLAN\VLC\vlc.exe  File: vm.c
    Line: 1765
    Expression: pgcit != NULL
    For information on how your program can cause an assertion failure, see the Visual C++ documentation on asserts.
    (Press Retry to debug the application- JIT must be enabled)

    Hi Rhondavas77,
    To enable/disable Just-In-Time debugging
    On the Tools menu, click Options.
    In the Options dialog box, select the Debugging folder.
    In the Debugging folder, select the Just-In-Time page.
    In the Enable Just-In-Time debugging of these types of code box, select or clear the relevant program types:
    Managed, Native, or Script.
    To disable Just-In-Time debugging, once it has been enabled, you must be running with Administrator privileges. Enabling Just-In-Time debugging sets a registry key, and Administrator privileges are required to change that key.
    Click OK.
    More information is here.
    http://msdn.microsoft.com/en-us/library/k8kf6y2a(v=vs.85).aspx
    Best Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • How to enable remote debugging for a session other than the current one

    Hi all,
    I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
    More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
    The docs indicate that I should be able to do so:
    dbms_debug_jdwp.connect_tcp(
    host IN VARCHAR2,
    port IN VARCHAR2,
    session_id IN PLS_INTEGER := NULL,
    session_serial IN PLS_INTEGER := NULL,
    debug_role IN VARCHAR2 := NULL,
    debug_role_pwd IN VARCHAR2 := NULL,
    option_flags IN PLS_INTEGER := 0,
    extensions_cmd_set IN PLS_INTEGER := 128);
    But when I try (even as sys), I get the following:
    exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    00022. 00000 - "invalid session ID; access denied"
    *Cause:    Either the session specified does not exist or the caller
    does not have the privilege to access it.
    *Action:   Specify a valid session ID that you have privilege to access,
    that is either you own it or you have the CHANGE_USER privilege.
    I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
    Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?

    Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
    I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
    Regards,
    K.

  • Casting problems getting a home I/F of an EJB in another app when debuging a servlet

    (Jdeveloper version = 9.0.2.798, OC4J Application Server version = Oracle9iAS (9.0.2.0.0))
    I am trying to debug a multi-tier application using the embedded application server. Servlets and EJBs within that application need to call EJBs contained within a second application (Horus).
    I have set up the embedded application server to run this second application automatically by adding the following entry into its server.xml
    <application auto-start="true" name="Horus" path="M:\Studio\build\production\java\Server\Obfuscate\J2EE_HOME\Horus\Horus.xml"/>
    I then start the embedded application server by debugging my servlet project, 'intermediateServlet'. I know the second application is running correctly in the embedded application server because I can access it from a separate client.
    In the 'intermediateServlet', I want to obtain a reference to a Dispatcher EJB held in the Horus application. This EJB has the following properties
         ejb-name     = com.internal.server.Dispatcher
         home interface     = com.internal.server.DispatcherHome
         bean class     = com.internal.server.DispatcherEJB
         remote interface= com.internal.server.Dispatcher
    The following code is executed during the container's call to my servlet init( context ) method to try and get the appropriate home interface.
    Context context = null;
    Object tempRemoteIF1 = null;
    Object tempRemoteIF2 = null;
    Properties h = null;
    h = new Properties();
    h.put( Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory" );
    h.put( Context.PROVIDER_URL, "ormi://127.0.0.1:23891/Horus");
    h.put( Context.SECURITY_PRINCIPAL, "user0" );
    h.put( Context.SECURITY_CREDENTIALS, "password" );
    context = new InitialContext (h);
    tempRemoteIF1 = context.lookup( "com.internal.server.Dispatcher" );
    tempRemoteIF2 = javax.rmi.PortableRemoteObject.narrow
    tempRemoteIF1,
    Class.forName( "com.internal.server.DispatcherHome" )
    The context.lookup call seems to work fine, returning an object of the class
         DispatcherHome_StatelessSessionHomeWrapper5
    Which I presume is a containter generated class implementing the home interface. To help confirm this,
    the object has a property beanName that has the value "com.internal.server.Dispatcher".
    The problem occurs on the next line, when I check whether I can cast the object to the home interface using ProtableRemoteObject.narrow(). This gives the following exception.
    java.lang.ClassCastException
         java.lang.Object com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:296
         java.lang.Object javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:137
         com.internal.server.Dispatcher com.Studio.servlet.intermediateServlet.getDispatcherRef(java.lang.String, java.lang.String, java.lang.String)
              intermediateServlet.java:601
         void com.Studio.servlet.intermediateServlet.init(javax.servlet.ServletConfig)
              intermediateServlet.java:150
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.loadServlet(com.evermind.util.ByteString)
              HttpApplication.java:1669
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.findServlet(com.evermind.util.ByteString)
              HttpApplication.java:4001
         javax.servlet.RequestDispatcher com.evermind.server.http.HttpApplication.getRequestDispatcher(com.evermind.util.ByteString, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
              HttpApplication.java:2200
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:580
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:243
         void com.evermind.util.ThreadPoolThread.run()
              ThreadPoolThread.java:62
    Interestingly, if I use practically the same code, to obtain the home interface of an EJB that is defined in the application that I am debugging, the cast works perfectly. The returned object looks identical, apart from the name to the DispatcherHome_StatelessSessionHomeWrapper5 mentioned above.
    Could the error possibly be because I need to declare 'Horus' as a parent application of the application I am debugging? If it is how do I do this?
    Many thanks in advance for any help with this one.
    Mark.

    (Jdeveloper version = 9.0.2.798, OC4J Application Server version = Oracle9iAS (9.0.2.0.0))
    I am trying to debug a multi-tier application using the embedded application server. Servlets and EJBs within that application need to call EJBs contained within a second application (Horus).
    I have set up the embedded application server to run this second application automatically by adding the following entry into its server.xml
    <application auto-start="true" name="Horus" path="M:\Studio\build\production\java\Server\Obfuscate\J2EE_HOME\Horus\Horus.xml"/>
    I then start the embedded application server by debugging my servlet project, 'intermediateServlet'. I know the second application is running correctly in the embedded application server because I can access it from a separate client.
    In the 'intermediateServlet', I want to obtain a reference to a Dispatcher EJB held in the Horus application. This EJB has the following properties
         ejb-name     = com.internal.server.Dispatcher
         home interface     = com.internal.server.DispatcherHome
         bean class     = com.internal.server.DispatcherEJB
         remote interface= com.internal.server.Dispatcher
    The following code is executed during the container's call to my servlet init( context ) method to try and get the appropriate home interface.
    Context context = null;
    Object tempRemoteIF1 = null;
    Object tempRemoteIF2 = null;
    Properties h = null;
    h = new Properties();
    h.put( Context.INITIAL_CONTEXT_FACTORY, "com.evermind.server.rmi.RMIInitialContextFactory" );
    h.put( Context.PROVIDER_URL, "ormi://127.0.0.1:23891/Horus");
    h.put( Context.SECURITY_PRINCIPAL, "user0" );
    h.put( Context.SECURITY_CREDENTIALS, "password" );
    context = new InitialContext (h);
    tempRemoteIF1 = context.lookup( "com.internal.server.Dispatcher" );
    tempRemoteIF2 = javax.rmi.PortableRemoteObject.narrow
    tempRemoteIF1,
    Class.forName( "com.internal.server.DispatcherHome" )
    The context.lookup call seems to work fine, returning an object of the class
         DispatcherHome_StatelessSessionHomeWrapper5
    Which I presume is a containter generated class implementing the home interface. To help confirm this,
    the object has a property beanName that has the value "com.internal.server.Dispatcher".
    The problem occurs on the next line, when I check whether I can cast the object to the home interface using ProtableRemoteObject.narrow(). This gives the following exception.
    java.lang.ClassCastException
         java.lang.Object com.sun.corba.se.internal.javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:296
         java.lang.Object javax.rmi.PortableRemoteObject.narrow(java.lang.Object, java.lang.Class)
              PortableRemoteObject.java:137
         com.internal.server.Dispatcher com.Studio.servlet.intermediateServlet.getDispatcherRef(java.lang.String, java.lang.String, java.lang.String)
              intermediateServlet.java:601
         void com.Studio.servlet.intermediateServlet.init(javax.servlet.ServletConfig)
              intermediateServlet.java:150
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.loadServlet(com.evermind.util.ByteString)
              HttpApplication.java:1669
         com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.findServlet(com.evermind.util.ByteString)
              HttpApplication.java:4001
         javax.servlet.RequestDispatcher com.evermind.server.http.HttpApplication.getRequestDispatcher(com.evermind.util.ByteString, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse)
              HttpApplication.java:2200
         boolean com.evermind.server.http.HttpRequestHandler.processRequest(com.evermind.server.ApplicationServerThread, com.evermind.server.http.EvermindHttpServletRequest, com.evermind.server.http.EvermindHttpServletResponse, java.io.InputStream, java.io.OutputStream, boolean)
              HttpRequestHandler.java:580
         void com.evermind.server.http.HttpRequestHandler.run(java.lang.Thread)
              HttpRequestHandler.java:243
         void com.evermind.util.ThreadPoolThread.run()
              ThreadPoolThread.java:62
    Interestingly, if I use practically the same code, to obtain the home interface of an EJB that is defined in the application that I am debugging, the cast works perfectly. The returned object looks identical, apart from the name to the DispatcherHome_StatelessSessionHomeWrapper5 mentioned above.
    Could the error possibly be because I need to declare 'Horus' as a parent application of the application I am debugging? If it is how do I do this?
    Many thanks in advance for any help with this one.
    Mark. Try loading the home interface from the same classloader used to load the the returned home object.
    tempRemoteIF2 = javax.rmi.PortableRemoteObject.narrow
    ( tempRemoteIF1,
    tempRemoteIF1.getClass().getClassLoader().loadClass("com.internal.server.DispatcherHome" )
    Dhiraj

  • Need to enable autoreload feature for servlet in Tomcat

    Hello
    I wants to enable autoreload feature for servlet in tomcat so that i need not to stop tomcat 4.0 web server again and again
    Thanks

    http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/context.html
    It is amazing what reading the manual might do for ya.

  • Debug a servlet

    Is my understanding correct you cannot debug a servlet in weblogic8.1 - or am I
    suffering from finger trouble?
    I have a servlet with breakpoints that are never actioned - even though I know
    I executing the code, I can edit, build and change its behaviour - but the breakpoints
    are ignored!
    If a project contains a runnable object like a xxx.jws file the debugger launches
    as expected.
    John

    You might try connecting to your running server with a standard JPDA debugger like
    NetBeans or Eclipse, with a project pointing to your source code. That works
    fine for me. I'm assuming by implication that you're trying to use WebLogic Workshop
    to do this.
    "john" <[email protected]> wrote:
    >
    Is my understanding correct you cannot debug a servlet in weblogic8.1
    - or am I
    suffering from finger trouble?
    I have a servlet with breakpoints that are never actioned - even though
    I know
    I executing the code, I can edit, build and change its behaviour - but
    the breakpoints
    are ignored!
    If a project contains a runnable object like a xxx.jws file the debugger
    launches
    as expected.
    John

  • Enable the Debug mode for Dispatcher and Server0.

    Hello All,
            In our EP server 7.0(stand alone java) apart from SDM we need to enable the Debug mode for Dispatcher and Server0.I tried to do it from mmc but cannot do so.When I try to right click & enable from mmc the "Enable Process" is not highlited,it is disabled.How Can I enable the the Debug mode for Dispatcher and Server0?

    Hi
    Goto Configtool Select Instance_IDxxxxx on the right side you can see "Servers Debug" tab, select that and choose, enable debug and debuggable options.
    Save the settings.
    Then expand the above mentioned node and select Server_IDxxxxxxx , you will see a tab Debug select it and choose, enable debug and debuggable options.
    Save the settings.
    After it is done, take a restart of the instance. This should help you.
    Regards
    Rahul

  • Enabling ALSB debug level logging

    Within my proxy services I have added some DEBUG level log statements, however, these do not seem to get logged to either my standard out log or my application log. If I switch them to WARN or ERROR, I get them logged.
    I verified in Operational Settings on my proxy service logging is enabled at level DEBUG or above.
    I think something maybe within WLS itself might be preventing the logs. If within the WLS console I switch debug logging on for everything (Debug tab on the server screen), I do see my log statements, among other things. Unfortunately I cannot figure out which one of the hundred or so items actually enables the debug logging just for ALSB's debug statements.
    Has anybody else figured out the right combination of things to get ALSB to log the proxy service debug statements?

    Thanks. That was already enabled but checking it made me think of another thing. I have been watching the console you get when you start up your server from the automatically created shortcuts. Instead, I checked the actual log file for the server and the debug statements do in fact get written there. The console that comes up must be standard error, hence, only the warnings and errors.
    Thanks for leading me to the answer.

  • Enable SMTP debug for OIM 11g notifications

    Hi,
    OIM 11g here. I am trying to set up reset password notification, but no way. I would like to know how to enable the debug mode to see what SMTP commands are issued towards the mail server. I have already trying setting to TRACE:32 the logger class oracle.iam.notification, but didn't help
    thanks in advance.
    Alex

    Rajiv,
    that's exactly what I have tried, i created an IT Resource (Mail server type) with authentication=false, no user/password (the server allows unauthenticated connections) and the hostname of the SMTP server (reachable, no firewall in between). The IT Resource name is the same one that i have specified in the system properties. That's all and it didn't work. No error, only something like "mail notification not successful". That's why I am asking a way to see the SMTP commands issued by OIM.

  • Can i enable USB debugging?

    How to enable USB debugging?

    Hello Samual.
    Follow all the steps mentioned below to enable the USB debugging option in your tablet:
    First, tap on the Home icon > Apps Widget > Settings > Developer Options > Tap to check mark the box next to the USB debugging option > OK.
    Note: If my post answers your question, please mark it as an "Accepted Solution."

  • Debug 2 servlets at the same time please help!!!!

    I am using JDeveloper 3.1 and trying to Debug 2 servlets at the same time. I can debug either servlet individually, but I cannot seem to call Servlet 2 from Servlet1 while debugging. I keep getting Web-to-go cannot find URL. What am I doing wrong.
    Whenever I run a servlet in the debugger, the url shows: http://<myserver>/servlets/servlet regardless of the name of the servlet.
    How do I debug 2 servlets at the same time.

    Hi,
    It depends on how you call the second servlet from the first. You want to make sure to use a relative URL.
    For example, if both of your compiled servlet classes are in JDEV_HOME\myclasses\ServletProject, then make sure to call servlet2 from servlet1 directly. If servlet2 is in JDEV_HOME\myclasses\OtherServlets, then you want to use '..\OtherServlets\servlet2'
    I'm not sure why it resolves the url to servlets\servlet for everything.

  • Enable syslog debug level 7 and send logs to syslog

    Hi,
    on cisco ASA, I've to enable syslog debug level 7 and send logs to syslog. how to do that?

    Unless you have been fiddling with logging levels previously, most ACE's will be using the cisco default logging, and at debug/7 level most of those will generate syslog entries.  Don't forget that "show access-list" will show hits counts for the individual entries as well, independently of any syslog output.
    Lastly, if a reload is an option, in your situation what I would do if modifying 3k lines was needed is:
      1) copy startup-config a.txt
      2) export a.txt by TFTP or SSH or USB or whatever
      3) edit the configuration using offline tools with regular-expression capabilities such as textpad (windows) or vi or emacs or perl or ...
      4) import the revised b.txt config
      5) copy b.txt startup-config and reload
    -- Jim Leinweber, WI State Lab of Hygiene

  • Intergated WLS not starting after enabling all "Debug" flags

    Hi,
    I have JDeveloper 11.1.1.4 with Integrated Weblogic Server. I had enabled all "Debug" flags in WLS servers and now after the required bounce, it is not coming up. I should not have enabled all "Debug" options, but I'm just unable to login to disable it.
    Is there any way to get around this issue?
    Thanks,
    Vikas

    Also check if you could comment the below similar elements in the config.xml and restart the server, if you have not maintained the backup copy of the configuration file.
    <server-debug>
          <debug-scope>
            <name>weblogic</name>
            <enabled>true</enabled>
          </debug-scope>
        </server-debug>
    If the server still fails to start, please check the server log , for any critical issues or errors and revert back with the details or error stack trace to further assist you.
    Thanks,
    Vijaya

  • Enabling netlogon debug logging

    Windows Server 2008 r2
    i'm trying to isolate the cause of a frequent account lockout and was reading this article
    troubleshooting the PSS way where it suggested to enable netlogon debugging.
    a question comes to mind, if that gets enabled it would surely consume disk space, can the location of the logs be redirected elsewhere?

    What you could try is to limit the log file:
    https://technet.microsoft.com/en-us/library/cc957336.aspx?f=255&MSPPError=-2147217396
    Than if you batch the folliwing lines in a scheduled task and save te location to a network drive. You should be able append it. It would could doubles. But it should not be a problem to filter those out.
    type
    netlogon.log |find /i  "0xC000006A“ >> Z:\badpassword.txt 
     type netlogon.log |find /i  "0xC0000234“ >>Z:\lockedout.txt
    anather solution you could check is :
    http://www.lazywinadmin.com/2013/10/powershell-report-ad-missing-subnets.html

  • Enabling the Debug Mode

    Hello!
    I can't enable the debug mode as descibed here http://help.sap.com/saphelp_nwce10/helpdata/en/45/e4fa02855c2e97e10000000a155369/frameset.htm.
    There isn't "Start Debug Session..." in the context menu.
    How can I enable the debug mode on the fly?
    Regards,
    Armin

    Your probably missing the oracle debug privileges then. I can never remember them off hand but its something like debug any procedure and connect any session that are needed

Maybe you are looking for

  • Sessions in Flex

    Can anyone tell me how sessions work in Flex? From a browser perspective, I understand when a new session is created the ID is saved into a session cookie client-side and this ID is used to link the browser to the server-side session. But I can't fin

  • Cancellation of billing document - message OIC_SDP 008

    Hello Group, We have IS-OIL(downstream) version 4.6C and doing cancellation of billing document. After saving, it gives message no.OIC_SDP 008 and not getting posted to FI. Pl.advise me. Regards, Kedar.

  • Can I use JNI in my xlet?

    Can I use JNI in my xlet? Is there any security issues?

  • Mac Mini 2011 Black screen

    I have a mid 2011 mac mini (Intel HD 3000 graphics) with 8 Gb RAM running Yosemite (10.10). It's connected to a LG 42 inch monitor. Randomly, the screen blacks out for 2-3 seconds and then returns. I have: Reset the PRAM Removed one of the memory SIM

  • How to merge aperture 1 library to aperture 3

    I have been running aperture 1 successfully on leopard. i upgraded to snow leopard and i couldn't open ap 1. i upgraded to ap 3 and tried to import my 1 library and ap 3 says unsupported library. how do i recover my photos or successfully merge libra