Accessing trace level or logging flag from applet

I need to do some performance tracking related logging from my applet. It will be decided at runtime whether the applet should perform logging or not. The logging should work for java plugin 1.4.x.
The java plugin console provides the facility to set trace level and enable / disable logging. Is there some way I can access these values from my applet? Is it possible to access the PluginLogger from my applet ?

Thanks for the reply.
If I set a runtime parameter on the Java Plug-in Control Panel, I need to access it through my applet.
I am not able to figure out how to access the runtime parameters from my applet.

Similar Messages

  • Auto log in from applet to web app.

    I'm trying to allow a user to jump from an applet to a web app.
    The applet code I'm pretty sure is complete. It creates a URL and then calls container().getAppletContext().showDocument(new URL(path),name);
    This opens a browser and seems to be sending the correct URL.
    What I have done is send it to a URL like /appName/JumpFromApplet
    Then I have created a filter in the web app to catch anything of that format.
    The doFilter method is being executed and it the if statement is catching it appropriately.
    But when the browser opens up the url is just http://localhost:9080/ with a page cannot be found. I'm not sure what I'm doing wrong. Here is the appropriate code. Am I way off base?
    private static final String LOGGEDIN_URL = "login.do";
    //inside doFilter method
    Object o = httpRequest.getSession().getAttribute("LOGGEDIN");
    if(o == null && url != null
             && url.indexOf(JUMP) > 0) {
         config.getServletContext().getRequestDispatcher(LOGGEDIN_URL).forward(request, response);
    }else {
         chain.doFilter(request, response);
    }edit:
    This is basically the same code as in my LoginFilter, I just changed the URL and of course the if statement.
    Edited by: gmachamer on Jan 22, 2008 9:05 AM

    hmmm, strange. I added the code to the loginFilter as an else if.
    If I enter the url in the browser that the filter is suppose to be catching then it works just fine.
    If I jump from the applet it does not... but when stepping through the code in both instances it looks like everything is the same?
    the else if is what is executed.
    public void doFilter(ServletRequest request, ServletResponse response,
            FilterChain chain) throws IOException, ServletException {
        HttpServletRequest httpRequest = (HttpServletRequest) request;
        Object o = httpRequest.getSession().getAttribute("LOGGEDIN");
        String url = httpRequest.getRequestURL().toString();
        if (o != null
                || (url != null && (url.indexOf(LOGIN_URL) > 0
                        || url.indexOf(LOGIN_FORM_URL) > 0
                        || url.indexOf(EXTERNAL_LOGIN_URL) > 0
                        || url.indexOf(EXTERNAL_LOGIN_FORM_URL) > 0
                        || url.indexOf("images") > 0 || url.indexOf(services) > 0))) {
            chain.doFilter(request, response);
            return;
        }else if(o == null && url != null
                  && url.indexOf(JUMP) > 0) {
              config.getServletContext().getRequestDispatcher("/" + JUMP_URL).forward(request, response);
            return;
        config.getServletContext().getRequestDispatcher("/" + LOGIN_FORM_URL)
                .forward(request, response);
    }Edited by: gmachamer on Jan 22, 2008 9:43 AM

  • Programmatic read access to applet console trace level

    Is there any apis for getting the current trace level setting of the applet java console?

    thanks for the info.
    But as a user I would find it confusing, especially as that would mean to see traces from your applet I would have to turn on, and see, traces from the JVM mixed in with them.I'm surprised others don't use System.out.println, or e.printStackTrace in their applet code. Is that not common? It irritates me to know end that i'm not allowed (by the company) to have them there. So a problem occurs at a customer site, and there's no way to know what happened. So i was able to talk them into emitting important stuff as long as the user consciously set the trace level up, something a normal person would never do, most likely.
    So how do other people log information from applets? I can't imagine you're actually logging errors to the filesystem? sending them back to the server? seems hard to believe anyone would do that?

  • Does SAP increase SM50 ... - trace level automatically?

    Hi experts,
       Does SAP increase SM50 ... -> trace level automatically? I find file system is full in application server from time to time and I find trace level increases to 2 from default: 1. Why? How do I prevent from reoccurring?

    Hello
    These files are work process trace files, this has nothing to do with the system log.
    You can restrict these file growth using instance parameter rdisp/TRACE_LOGGING as stated in the here under note.
    Check also the value of instance parameter rdisp/TRACE as stated in note 112 - Trace and error information in the "dev_" files
    Regards
    573800 - Reasons for trace files increasing in size
    How can I prevent trace files that are increasing in size from filling the hard disk and causing the system to shut down?
    - Reset the trace files (as described as Section 1 of note 532918).
    - Set the "rdisp/TRACE_LOGGING = on, 10 m" profile parameter

  • Table level supplemental logging

    How is table level supplemental logging different from Database level supplemental logging? Is Database level supplemental logging required for enabling table level supplemental logging?
    I have done 3 test cases, please suggest!
    Case 1
    Enabled only DB level supplemental logging(sl)
    observations--->
    DML on all tables can be tracked with logminer.
    I find this perfect.
    case 2
    Enabling only table level supplemental logging
    Setting---->
    2 tables ---AAA(with table level sl) & BBB (without table level sl)
    Only DDL is recorded with the help of logminer & few of the operations are listed as internal.
    case3
    Enabling database level sl first & then enabling table level sl only on one table --->AAA & no table level sl on BBB
    observation---> All the tables DDL & DML are getting tracked--point is if this is getting the same result
    as DB level SL, what is the significance of enabling Table level SL? or am I missing something?

    I have the same experience: when database level supplemental logging is enabled, adding supplemental logging at the table level does not affect functionality or performance.  Inserting 1 M rows into test table takes 25 sec ( measured on target database ) with table level supplemental logging, and 26 sec without it.  My GoldenGate version is 11.2, Oracle database version 11.2.0.3.0
    If someone can show the benefit of having table level supplemental logging in addition to database level logging, I would very much appreciate.

  • Setting logging trace level

    Hello,
    Is it possible to set the logging trace level(FATAL, ERROR, ...DEBUG) for the following jolt components :
    JRLY, JRAD, JSL, JSH ? If yes how ? If no how can we debbug this component ? or make the logs more talkative ?
    Thanks in advance for your answers
    pledreau

    There aren't any configurable debug levels available to customers in Jolt.
    Your best bet for debugging this component is to turn on the TMTRACE
    facility. Depending on which ATMI APIs your application is using, this will
    produce few or no additional userlog messages from the Jolt processes
    themselves, but it will produce a significant amount of additional userlog
    information from the application servers that are called by Jolt, which may
    be of help in debugging.
    Ed
    <First Last> wrote in message news:[email protected]..
    Hello,
    Is it possible to set the logging trace level(FATAL, ERROR, ...DEBUG) for
    the following jolt components :
    JRLY, JRAD, JSL, JSH ? If yes how ? If no how can we debbug this component
    ? or make the logs more talkative ?
    Thanks in advance for your answers
    pledreau

  • Sbtio.log and trace levels

    Hi all,
    we're using Tivoli (TSM) with RMAN and I want to log error messages to USER_DUMP_DEST/sbtio.log . The log is there but always empty, even when there is a trace file stating there should be messages in it.
    RMAN documentation says that sbtio.log must be configured with TSM. This does not seem to be true: I found that you can set a trace via ALLOCATE CHANNEL .... TRACE <integer>. I did NOT find anything in the RMAN documentation on this topic.
    Can anyone enlighten me? What trace levels are there, what do I do to just get the errors dumped to the log? Any hints appreciated.
    Thanks, Susanne

    The 'details' can' tbe set to be more specific.
    MAX_DUMP_FILE_SIZE specifies the maximum size of trace files (excluding the
    alert file). Change this limit if you are concerned that trace files may use too much
    space.
    A numerical value for MAX_DUMP_FILE_SIZE specifies the maximum size in
    operating system blocks.
    A number followed by a K or M suffix specifies the file size in kilobytes or
    megabytes.
    The special value string UNLIMITED means that there is no upper limit on trace
    file size. Thus, dump files can be as large as the operating system permits.
    See Also:
    Oracle9i Database Performance Tuning Guide and Reference for
    more information on setting this parameter
    Your operating system-specific Oracle documentation for the
    default value and range of values
    Parameter type String
    Syntax MAX_DUMP_FILE_SIZE = {integer [K | M] |
    UNLIMITED}
    Default value UNLIMITED
    Parameter class Dynamic: ALTER SESSION, ALTER SYSTEM
    Range of values 0 to unlimited, or UNLIMITED
    See Also: Oracle9i Database Administrator’s Guide and Oracle9i
    Database Performance Tuning Guide and Reference for more
    information on setting this parameter

  • How to access database from applet using connection pooling.

    Hi,
    I am using tomcat 4.1, JRE 1.4.2_10, MySQL 5.0, and IE 6.0. I can access the database using connection pooling from JSP without problems. But, if I try to acess from the applet, I get the following exception (related to JNDI.):
    javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial
    at javax.naming.spi.NamingManager.getInitialContext(Unknown Source)
    at javax.naming.InitialContext.getDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.getURLOrDefaultInitCtx(Unknown Source)
    at javax.naming.InitialContext.lookup(Unknown Source)
    I know what this acception means, but I don't know how to fix it. I set up connection pooling in my Tomcat 4.1 that talks to MySQL 5.0. As I said, when I access from jsp, JNDI works. But, applet complains. Please help. In my applet, the following code accesses the database:
    ArrayList toolTipData =
          access.getToolTipData (projectName,interfac);This is the snipet of my Access class:
    public ArrayList getToolTipData (String projectName, String interfac) {
        System.out.println("In getToolTipData");
        ArrayList toolTipData = new ArrayList();
       try{
        Context ctx = new InitialContext();
        if(ctx == null )
            throw new Exception("No Context");
        DataSource ds = (DataSource)ctx.lookup("java:comp/env/jdbc/interfacesDB");
        if (ds != null) {
          Connection conn = ds.getConnection();
          if(conn != null)  {
              Statement s = conn.createStatement();
              //For some reason paramtized queries don't work, so I am forced
              //to this in slighly less eficient way.
              ResultSet rst = s.executeQuery("select * from interfaces");
              while (rst.next()) {
                 if (rst.getString("Project_Name").equals(projectName) &&
                     rst.getString("Interface").equals(interfac)) {
                   System.out.println("getToolTipData: ITG #" + rst.getString("ITG"));
                   toolTipData.add("ITG #: " + rst.getString("ITG"));
                   toolTipData.add("SPNE Prime Name: " +
                                   rst.getString("SPNE_Prime_Name"));
                   toolTipData.add("PD Prime Name: " +
                                   rst.getString("PD_Prime_Name"));
                   toolTipData.add("IT Prime Name: " +
                                   rst.getString("IT_Prime_Name"));
                   toolTipData.add("MLC Priority: " +
                                   rst.getString("MLC_Priority"));
                   toolTipData.add("Gary's Prime: " + rst.getString("Garys_Prime"));
                   toolTipData.add("QA Prime: " + rst.getString("QA_Prime"));
                   toolTipData.add("Brief Description: " +
                                   rst.getString("Brief_Description"));
                   toolTipData.add("Project_Status: " +
                                   rst.getString("Project_Status"));
              conn.close();
      }catch(Exception e) {
        e.printStackTrace();
      return toolTipData;
    ....

    The jsp runs on the server, whereas the applet runs on the client so
    you must package with your applet any jndi implementation specific classes
    and
    Properties props = new Properties();
    props.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory" );
    props.setProperty("java.naming.provider.url", "url:1099");
    Context ctx = new InitialContext(props);
    Object ref = ctx.lookup("...");

  • Trace level of RWB's Message Monitoring - Detail Message - Tab "Audit log"

    Hi,
    My flow is: File -> PI -> Transformed File with seeburger module. Everything is good except the trace level in RWB.
    Exactly, in our PI production, under RWB -> Message Monitoring, when I select a message (e.g PI -> Outside) and see its Detail, under tab "Audit Log", I have a log with only 2 pages (which corresponds to the sender part "File -> PI")... whereas in our PI pre-production, I have 4 pages for the exact same flow, on which I have also info of the receiver part "PI -> Outside"...
    My question is just: do you know which parameter is involved in this trace level of RWB's Message Monitoring Detail log ?
    regards.
    Mickael
    Note: in [Help SAP|http://help.sap.com/saphelp_nw04/helpdata/en/fd/16e140a786702ae10000000a155106/frameset.htm], I see only this sentence "Audit Log: The audit log for the selected message is displayed as the default setting.".
    Edited by: Mickael Huchet on Oct 18, 2011 1:59 PM

    Hi Shabarish,
    Thanks that will help to localize my search.
    else by hazard, you don't know which parameter in this tree is for the "Audit Log"?
    coz I did a quick look in prod and pre-prod, but it seems the severity is the same (e.g "Info" for most of them) whereas the trace level of "Audit log" is different.
    Thanks for
    Regards.

  • Accessing EJB's from Applet

    Hai friends,
    I want to access the ejb form the applet is it possible ?
    if passible please let me know how we access?
    Please send souce code to this id
    [email protected]
    Ok Friends i am wating for replys

    Is it possible to access EJB's from applet?Yes, but not recommended.
    if Yes,Please let me know how will happen and also if
    possible send me the peace of source code for this.
    mail id is : [email protected]
    Are you inviting spam by passing your mail id?
    Google and find out how EJB lookups are performed.

  • Unable to see custom Trace messages in Log Viewer which were defined in UDF

    Hello Experts, I am not able to see my trace messages in Log Viewer. I have a small user defined fuction which takes a variable and returns its uppercase and while do that it writes few warning level trace messages in the trace file. I've tried changing the levels from Warning to Info but I still don't see anything in my Log Viewer. At this point I am not even sure if I am looking at right place. When I test my mapping in Message Mapping's Test tab it works fine and shows me all my trace messages. But when I do end to end it is not writing anything to the trace file. I've tried to use instructions from following blogs:
    1. /people/michal.krawczyk2/blog/2007/04/30/xipi-personalized-logging-tracing(logging and tracing)
    2. /people/michal.krawczyk2/blog/2005/05/10/xi-i-cannot-see-some-of-my-messages-in-the-sxmbmoni (logging and tracing)
    3. /people/michal.krawczyk2/blog/2005/02/25/simple-java-code-in-graphical-mapping--xi(for my UDF)
    but I still don't see traces in my Log Viewer. Please let me know if I am doing anything wrong here.
    Thanks in advance!!
    ==============================================================
    public String TraceVar(String var1, Container container) throws StreamTransformationException{
    AbstractTrace importanttrace; //create an instace of AbstractTrace
    importanttrace = container.getTrace(); //get trace
    importanttrace.addWarning("FiletoFileMP:MyUdflibrary: " + var1); //write first message to the trace
    // fix the naming conventions later
    String SenderName; // declare multiple vars to store infos
    String ReceiverName;
    String interface_name;
    String message_ID;
    String time_Sent;
    java.util.Map map;
    map = container.getTransformationParameters();
    //get interface info into the variables
    time_Sent = (String) map.get(StreamTransformationConstants.TIME_SENT);
    message_ID = (String) map.get(StreamTransformationConstants.MESSAGE_ID);
    interface_name = (String) map.get(StreamTransformationConstants.INTERFACE);
    SenderName = (String) map.get(StreamTransformationConstants.SENDER_NAME);
    ReceiverName = (String) map.get(StreamTransformationConstants.RECEIVER_NAME);
    //post interface info to the trace
    importanttrace.addWarning("Time Sent: " + time_Sent);
    importanttrace.addWarning("Message ID: " + message_ID);
    importanttrace.addWarning("Interface Name: " + interface_name);
    importanttrace.addWarning("Sender Name: " + SenderName);
    importanttrace.addWarning("Receiver Name: " + ReceiverName);
    //convert var1 to uppercase to make sure this function has be executed
    return var1.toUpperCase();
    Edited by: Mayur Patel on May 5, 2009 11:03 PM

    Thank you Prateek for a quick response.
    Yes I was able to see my trace messages in SXMB_MONI. Below is my the info... This is great. I am still not sure why this info is not showing up in Log Veiwer's (default trace) window. Any ideas? Since this XML file contains lots of other information I was wondering how to put my trace messages into the log viewer.
    Thanks!!
      <Trace level="1" type="T">*** START APPLICATION TRACE ***</Trace>
      <Trace level="2" type="T">FiletoFileMP:MyUdfLibrary: Honda</Trace>
      <Trace level="1" type="T">FiletoFileMP:MyUdfLibrary: Honda</Trace>
      <Trace level="1" type="T">Time Sent: 2009-05-05T16:16:39Z</Trace>
      <Trace level="1" type="T">Message ID: 366CEAF14D3B410033AFDDB71CD2AF73</Trace>
      <Trace level="1" type="T">Interface Name: SIC_Car_Outbound</Trace>
      <Trace level="1" type="T">Sender Name: SIC_Car_Outbound</Trace>
      <Trace level="1" type="T">Receiver Name: SI_Car_Inbound</Trace>
      <Trace level="1" type="T">*** END APPLICATION TRACE ***</Trace>

  • When I open BEx, error message appears: "....trace level 8 activated.."

    Hi,
    when i open bex, then it appears:
    "SAPGUI 640
    Enviroment information:
    Directory: 'C:\Documents and Setting\ ...\SapWorkDir
    trace level 8 activated
    logging activated
    For maximum data security delete the settings as soon as possible."
    But I dont know, which setting it is meaning.
    Thanks zd.

    Jan,
    The "*." should NOT be in the registry.
    We are still experiencing the problem and have a customer message into SAP.  The problem only occurs logging on through SAP Portal.  It occurs on Sun J2SE version 1.5 and 1.4.2 consistently.  It occurs using the Microsoft VM occaisionaly.  Deleting cookies, temporary internet files and clearing the history in IE seems to solve the problem for users using the Microsoft JVM.
    We are on XP SP2 with all the latest MS security patches.  Since we use Portals as the main logon process, we have the registry key set to prevent saplogon from launching when the user logs on.
    Hope that helps,
    John

  • Nered to know where I can view ACL denies regarding "access-list deny any log" ?

    I ask this question in the context of an SNMP access list. I am guessing that this line of config (access-list deny any log) will allow you to see which addresses were denied SNMP access.
    I need to know where I can view the source addresses from where the packets were dropped? Could this be just in sh log? Thanks in advance for any help. Cheers

    Hi,
    Yes, with an extended access-list with the last line:
    deny ip any any log
    with "sh log" you can  see the source address of the packets being dropped.
    Take note that you must be at least in the logging level 6 (informational), by default console and monitor are in level 7 (debugging):
    logging console debugging
    logging monitor debugging
    With older IOS versions (before at least 12.4) you had to add the following lines at the bottom of the acl:
    access-list 101 deny   tcp any range 0 65535 any range 0 65535 log
    access-list 101 deny   udp any range 0 65535 any range 0 65535 log
    access-list 101 deny   icmp any any log
    access-list 101 deny   ip any any log
    to log the sources and destinations IPs and port numbers.
    Best Regards,
    Pedro Lereno

  • Trace Level X activated after SAPGUI patch upgrade

    Greetings,
    After upgrading SAPGUI 6.40 from patch level 7 to patch level 14, many of our users are getting a dialog box appearing after the Portal auto launches the SAPGUI:
    SAPGUI 640 (header)
    Environment information:  working directory:'.'
    Trace level 3 activated
    Logging activated
    For maximum data security, delete the setting(s) as soon as possible!
    We've tried the following fixes to no avail: emptying the temp files in working directory, reinstalling the update, checking the GUI options to make sure that the SAPGUI trace level is not turned on.
    Any suggestions are greatly appreicated.
    Regards,
    Dan Kuhlmann
    [email protected]

    Hi John,
    Thank you very much for 'patching' my trouble.
    I have another trouble with SAP shortcut - "Working Dir".
    SAP GUI do not use this setting for tracing from shortcut.
    Probably, you could 'patch' this trouble also?
    P.S. I'd like to award you with points but do not know how.
    -- Sam

  • To check who change the trace level

    Hi All,
    Can anyone please help me how can i get that who change the trace level in system, in our client lot of people have Sm50, St01, St05,ST12 and other trace transactions, and it become difficult to track down who is changing the traces level
    people often change the trace level and forget, and it become difficult to track down the changes,
    can someone help me how can i know that trace level are changed by which user id at what time
    Thanks,
    Dinesh

    I cannot remember the exact names, but if you take look in those transactions (there are more than the ones you have listed..) then you will see a call to FM TH_CHANGE PARAMETER.
    You will see the name of the dynamic profile (and the authority check in it against S_ADMI_FCD action ST0M etc...) there, or some checks performed before the function is called.
    Then take a look in transaction TU02 for the history of the parameters...
    Good luck,
    Julius
    ps: A popular error exists in transaction SMGW: Wanting to dynamically set the gateway logging via the Expert Functions menu, you might be tempted to increase the "Trace level"... This is the ST11 developer trace!!! Rather choose the Security sub menu and activate the gateway specific log there, otherwise your production system might have some performance problems from the developer trace (which is a different local topic of less interest for gateway security....).
    Edited by: Julius Bussche on Nov 4, 2009 12:03 AM

Maybe you are looking for

  • HT201412 iPhone 4S text alerts stop working

    I've have iOS 6 for months. Out of the blue my text alerts stopped working. I've rebooted a few times to no avail. All settings look right. And everything else seems to be working proper.

  • Table in which TECO Date is Store

    Dear All, Can any one help me in finding out the Table in which TECO Date of Order  is Store. or any report in which TECO date is present. I already check COOIS and CO03, there is no TECO date avilable there. Regards Shayam

  • UTF-8 character encoding not working in Firefox

    I have a jPlayer playlist that works fine in all browsers except Firefox. The issue is with non-standard characters, i.e. characters with accents or asian characters. I have set up a demo playlist so that you can see [http://monthlymixup.com/mixups/j

  • Question about wiring Time Capsule

    Just bought a 2 TB Time Capsule but haven't hooked it up. Currently, I'm using an old D-link wireless router that's hooked up with the cable going first into the router, then out to my primary iMac. Our other two computers connect to it wirelessly Wi

  • What causes JBO-33001: Cannot find the configuration file /common/bc4j.xcfg

    I know that the jbo exception message: JBO-33001: Cannot find the configuration file /common/bc4j.xcfg can be caused by several things including the file really not being there. But in my current case, I know it is there and can be found throgh the c