How to hook(Listen) to java's exception handler?

Hello Guys,
If you know you can replace or add new EventQueue in AWT event queue listener, so what ever events occurs, will be received by own extended class of EventQueue.
Now how to listen to the global exception listener,
Like,
I want to monitor for a perticular execution of a program , which says how many exceptions are raised by Java, and which are the exceptions.
So is there any method where i can listen using some interface for exceptions...???
-Regards,
Nachiket

Hello,
I tried to find out somethings on java.beans.ExceptionListener, but i am unable to find out any help or anything which explains how to use it.
Regards,
Nachiket

Similar Messages

  • JAVA BEANSHELL EXCEPTION HANDLING

    Hi
    still new to ODI
    I have created a java beanshell script in ODI which calls a simple java class, cars, then sets the no of seats to a value designed to raise an exception. Exception raised but procedure works OK,
    How can I register the fact that it has failed through exception handling? (It is possible that my java exception handling isn't quite right)
    The no of seats has no effect on the success/failure of the ODI procedure, but the log shows that the exception is caught !
    any assistance gratefully received.
    Regards
    Terry
    cars class: (added to agent start)
    ====================
    public class cars {
    private int seats;
    public void setSeats (int seats) throws tooManySeatsException {
    if (seats) < 100) {
    this .seats = seats;
    } else {
    throw new tooManySeatsException("Too many seats");
    public int getSeats () {
    return this.seats;
    class tooManySeatsException extends Exception {
    public tooManySeatsException (String msg){
    super();
    Java beanshell procedure in ODI
    ====================
    import cars;
    public class carsTest {
    public carsTest(){
    public void init(){
    cars c = new cars();
    c.setSeats(20);
    //c.setseats(200);
    try {
    carsTest ct = new carsTest();
    ct.init();
    } catch (Exception e) {
    throw Error (e);
    }

    Your code throws exception when you set value >100 but you are setting 20 thus it would not throw exception.
    In the procedure step you can uncheck "Ignore error" flag to let execution failed on throwing any exception from your code. If you check that flag then the execution would not fail rather lease the task in warning state.

  • How to retrieve error information from an exception handler?

    I have an Embedded PL/SQL block in a Pro*C
    application that uses something like the following to catch exceptions and fill a host variable with diagnostic information.
    It then re-raises the exception so that
    the global error handler specified with a
    WHENEVER SQLERROR DO ... can log the error and determine the appropriate action.
    EXCEPTION
    WHEN OTHERS THEN
    :zerrtext := 'Failure occurred at ' &#0124; &#0124; mylocator;
    RAISE;
    According to all the Oracle docs this should work; but it does not. Re-Raising the exception within PL/SQL appears to negate the assignment of the string data to the host variable. When the global error handler runs, the host variable is empty.
    The assignment works if the 'RAISE' is commenting out; but then the detailed Oracle exception data is lost, and the global error handler never gets an opportunity to run.
    Does anyone know why re-raising the exception voids the assignment within the PL/SQL exception handler; and how to prevent this from happening?

    Have you tried getting the value from 'sqlerrm'? In PL/SQL this is a built-in placeholder for the ORA-xxxx code and message when trapping exceptions.
    Hope this helps,
    - Alex
    null

  • Java Junit4 Exception Handling

    Hi,
    Is it possible to test an excption in JUnit4 with out,
    throwing an exception object from the oriogional class.
    How can the exceptions which usualy throw errow objects
    can be handled in JUnit4.
    thak you

    Thank you for the reply, but I was expecting a way test
    exceptionWhat is a 'way test exception'?
    such as "FileNotFoundException"Why is 'FileNotFoundException' a 'way test exception'?
    original code if an object of "FileNotFoundException" is not
    thrown then, Junit is unable to detect the exception.Well of course because there isn't one. Is there a reason why you can't use the suggestion above?
    >
    In my origional code I cannot throw an exception objectSo why do you need to test it?
    so JUnit does't see "FileNotFoundException" etc.. as an ExceptionBecause you haven't thrown it,
    I need to find a techniques to test such cases
    What cases? You haven't made any sense at all here.

  • Generic Exception Handler/Listener

    All,
    I have a web application and I want to create a generic exception handler/listener which will listen to all the exception(checked and runtime) which are thrown by web application.
    Any idea how can I do this?
    Regards.

    797836 wrote:
    Hi,
    I want to build a generic exception handler which can be reused in any java j2ee applications. Unlikely. Probably impossible.
    I have java application which is communicating with other 3rd party applications like webservices, webmethods , etc from where we are getting an errorcode which will be used in our java application to do a lookup to get the respestive error message from the resource bundle. Please clarify in such case how I can go with a generic exception handler which will be build separately and will be integrated with Java applications to handle the exceptions and errors.An excellent example of why a universal exception handler wouldn't work.
    At some point a call tree looks like A->B->C, where C (or beyond) that is where your communications problem occurs. The impact of that depends on the application.
    For example if a user types in a url (at A) and the server (C) fails to resolve it then that is a user problem.
    However if nightly batch process expects to download an update file every night from one location and it can't connect then that is an operations error (or notification/alert.)

  • Exception handling in Web Services

    Hi all,
    I am exposing ejb2-based webservices and am unable to find a way to throw checked Exceptions.
    Could anyone provide resources about how to leverage SOAP/WSDL features of exception handling (i.e. wsdl:fault tag)?
    Thanks, regards
    Vincenzo

    Hi, thanks for replying
    actually on saphelp I found that supported Exceptions are:
    java.lang.Exception -> no fault generated
    java.rmi.RemoteException -> deploy refused with explicit error (RemoteException not allowed in ejb business method signature)
    java.lang.Throwable -> doesn't seem very appropriate to use such a root class
    Any suggestion?
    Thanks, regards
    Vincenzo

  • UTL file exception handling oracle 11g

    We use oracle 11g
    We use UTL file and exception handling in many place. Thanks in advance.
    We have many utl program and we are writing same exception handling code ,copy and paste .
    It is possible to create new UTL exception procedure and call it.
    I am not sure how to write generic UTL exception procedure and reuse the same.
    I am learning oracle etl files method.
    Please advise.
    sample program 1 :
    DECLARE
    fileHandler UTL_FILE.FILE_TYPE;
    BEGIN
    fileHandler := UTL_FILE.FOPEN('test_dir', 'test_file.txt', 'W');
    UTL_FILE.PUTF(fileHandler, 'Writing TO a file\n');
    UTL_FILE.FCLOSE(fileHandler);
    EXCEPTION
    when utl_file.invalid_path then
    raise_application_error(-20001,
    'INVALID_PATH: File location or filename was invalid.');
    when utl_file.invalid_mode then
    raise_application_error(-20002,
    'INVALID_MODE: The open_mode parameter in FOPEN was invalid.');
    when utl_file.invalid_filehandle then
    raise_application_error(-20002,
    'INVALID_FILEHANDLE: The file handle was invalid.');
    when utl_file.invalid_operation then
    raise_application_error(-20003,
    'INVALID_OPERATION: The file could not be opened or operated on as requested.');
    when utl_file.read_error then
    raise_application_error(-20004,
    'READ_ERROR: An operating system error occurred during the read operation.');
    when utl_file.write_error then
    raise_application_error(-20005,
    'WRITE_ERROR: An operating system error occurred during the write operation.');
    when utl_file.internal_error then
    raise_application_error(-20006,
    'INTERNAL_ERROR: An unspecified error in PL/SQL.');
    when utl_file.invalid_filename then
    raise_application_error(-20010, 'The filename parameter is invalid.');
    WHEN OTHERS THEN
    IF UTL_FILE.IS_OPEN(fileHandler ) THEN
    UTL_FILE.FCLOSE (fileHandler );
    END IF;
    RAISE;
    END;
    How to write generic procedure of utl exception handling ?
    please advise.
    create or replace procedure sp_utl_exception
    begin
    when utl_file.invalid_path then
    raise_application_error(-20001,
    'INVALID_PATH: File location or filename was invalid.');
    when utl_file.invalid_mode then
    raise_application_error(-20002,
    'INVALID_MODE: The open_mode parameter in FOPEN was invalid.');
    when utl_file.invalid_filehandle then
    raise_application_error(-20002,
    'INVALID_FILEHANDLE: The file handle was invalid.');
    when utl_file.invalid_operation then
    raise_application_error(-20003,
    'INVALID_OPERATION: The file could not be opened or operated on as requested.');
    when utl_file.read_error then
    raise_application_error(-20004,
    'READ_ERROR: An operating system error occurred during the read operation.');
    when utl_file.write_error then
    raise_application_error(-20005,
    'WRITE_ERROR: An operating system error occurred during the write operation.');
    when utl_file.internal_error then
    raise_application_error(-20006,
    'INTERNAL_ERROR: An unspecified error in PL/SQL.');
    when utl_file.invalid_filename then
    raise_application_error(-20010, 'The filename parameter is invalid.');
    WHEN OTHERS THEN
    IF UTL_FILE.IS_OPEN(fileHandler ) THEN
    UTL_FILE.FCLOSE (fileHandler );
    END IF;
    RAISE;
    end;

    Mahesh Kaila wrote:
    Hello,
    Common procedure to log exception in log file
    create or replace procedure sp_utl_exception (log_dir varchar2, log_file varchar2, exception_msg varchar2)
    is
    hnd_file   UTL_FILE.file_type;
    begin
    hnd_file := UTL_FILE.fopen (log_dir, log_file, 'A');
    UTL_FILE.put_line (hnd_file, exception_msg);
    UTL_FILE.fclose (hnd_file);
    exception
    when others
    then
    raise;
    end;
    Very poor implementation.
    a) Absolutely no need for that exception handler in there. It should be removed.
    b) As it's a procedure for logging exceptions relating to UTL_FILE, it would seem error prone to be logging the errors with UTL_FILE. For example, what is it supposed to do if the exception is raised because of lack of disk space in those file locations? How is it going to write out the exception with the disk full? Also, if the exception handler is used by multiple processes, then only 1 process at a time can access the log file to write it's exceptions, so it doesn't scale well. Better logging is done by having an autonomous transaction procedure that writes log/trace messages to dedicated table(s). That also means that the logs etc. can be viewed, as appropriate, from any client using SQL (either manually or through a application written to view logs etc.), rather than requiring physical/remote access to the server o/s to go and view the contents of the file, which in itself could lock the file and prevent any process from writing further logs whilst it's being used.

  • How to prevent java.io.exception when someone enters a bogus page in theURL

    Say i have a page called Test.jsp. The user goes to it and everything is fine. If the user happens to play with the url and changes it to Tes.jsp, i get java.io.exception. Is there anyway to catch this?
    This is my error:
    JSP Error:
    Request URI:/page/Tes.jsp
    Exception:
    java.io.FileNotFoundException: page/Tes.jsp
         at java.io.FileInputStream.(FileInputStream.java)
         at oracle.jsp.provider.JspFilesystemResource.fromStream(JspFilesystemResource.java)
         at oracle.jsp.provider.JspFilesystemResource.fromReader(JspFilesystemResource.java)
         at oracle.jsp.app.JspAppLoader.reloadPage(JspAppLoader.java)
         at oracle.jsp.app.JspAppLoader.loadPage(JspAppLoader.java)
         at oracle.jsp.app.JspAppLoader.getPage(JspAppLoader.java)
         at oracle.jsp.app.JspApplication.dispatchRequest(JspApplication.java)
         at oracle.jsp.JspServlet.doDispatch(JspServlet.java)
         at oracle.jsp.JspServlet.internalService(JspServlet.java)
         at oracle.jsp.JspServlet.service(JspServlet.java)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:588)
         at org.apache.jserv.JServConnection.processRequest(JServConnection.java:314)
         at org.apache.jserv.JServConnection.run(JServConnection.java:188)
         at java.lang.Thread.run(Thread.java)
    Thanks in advance
    Adam

    Most JSP servers have a configuration option to serve
    up an error page in situations like this. Yours
    probably does too.Once you find that, make it your error page with a page directive of isErrorPage="true". Then you have access to the implicit exception variable name to determine if it is really a 404 exception.

  • EM 10g : java.lang.Exception: Exception in sending Request :: null

    I have installed 2 db on 10.2.0.1.0. The first one is running fine and easily manageable via Enterprise Manager. When I open EM on the second db I receive "java.lang.Exception: Exception in sending Request :: null" with no further explanation. When I try startup/shutdown, I get "Couldnot contact the agent. Verify that the url for the agent is null". However the db service and the DB console are up and running. I can connect via SQL*plus to manage my DB.
    From a java application the connection fails with "java.sql.SQLException: Io exception: The Network Adapter could not establish the connection"
    listener.ora is as follow:
    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = D:\OraHome_1)
    (PROGRAM = extproc) ) )
    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512) ) ) )
    TSANAMES is as follow:
    26ALER =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = 26aler) ) )
    LISTENER_26ALER =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512))
    LISTENER_ORCL1020 =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1512))
    ORCL1020 =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = MyHost)(PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = orcl1020) ) )
    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = IPC)(KEY = EXTPROC2))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO) ) )
    Any clue what could be wrong?
    The console servier is running as stated here:
    starting Oracle Enterprise Manager 10g Database Control ...The OracleDBConsole26
    aler service is starting................
    the OracleDBConsole26aler service was started successfully.
    Edited by: user730614 on Oct 27, 2008 8:27 PM

    I have same issue when i upgraded the database from 9i to 10g...some articales point that the issue is related to the timeZone settings..
    I hope some one here could explain what it is and how to solve it... thank you

  • Generic Exception handler in java

    We have developed a client java application with our own exception hierarchy derived from java.lang.exception. We raise our own exception in case of error scenarios. But there is one additional thing which we want to do:
    1. When ever any exception is raised in our exception we want to do some generic exception handling (like kicking of some module which collects the log files and send it to the administrator.
    2. We want the above activity to happen also when any runtime exception is raised. We are not catching any runtime exception and we have no handle for this.
    How should we go about this. Can we write a very low-level generic exception handler?
    We do not want to have done at every catch block we have in our code. I mean we want to have some hook at a very generic place.
    Let me know if some body can be help me on this.

    As far as I know, for exceptions that are caught, you must make a call to a generic handler in the catch block, or you may rethrow the exception as a RuntimeException, and let it propagate.
    For RuntimeExceptions and Errors in threads that you create, the easiest way to solve this is to subclass ThreadGroup, override uncaughtException with the appropriate code, and create all your threads in this group. For a thread like main, have the first thing in the thread be the creation of a new thread in the new group, then pass control to that thread. For fixed threads, like the event queue, someone had a suggestion already. Note that uncaughtException is only called just before the thread ends, so an exception that shouldn't end the thread should be handled seperately.

  • EM console error java.lang.exception no such target ?

    My database oracle 10g EM console getting error message java.lang.exception no such target.
    How to solve this error ?

    Hi,
    I have the same problem, and when looking for the sysman/log files I found the following erros reported:
    [oracle@dbserver log]$ tail emdb.nohup
    10/09/08 12:59:19 ## 1. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:19 ## 2. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:23 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:23 ## 1. newPage = /database/instance/sitemap/health
    10/09/08 12:59:23 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:23 ## 1. newPage = /database/instance/sitemap/health
    10/09/08 12:59:23 ## 2. newPage = /database/instance/sitemap/health
    10/09/08 12:59:28 ## oracle.sysman.db.adm.inst.SitemapController: event="doLoad"
    10/09/08 12:59:28 ## 1. newPage = /database/instance/sitemap/sitemap
    10/09/08 12:59:28 ## 2. newPage = /database/instance/sitemap/sitemap
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emoms.log
    2010-09-08 12:51:31,094 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2010-09-08 12:51:31,097 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2010-09-08 12:51:31,099 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2010-09-08 12:51:31,101 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.reports.em.RepIntg
    2010-09-08 12:51:31,102 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2010-09-08 12:51:31,135 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2010-09-08 12:51:31,137 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2010-09-08 12:51:31,139 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2010-09-08 12:51:31,141 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2010-09-08 12:51:31,143 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emoms.trc
    2010-09-08 12:51:31,094 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.tip.oem.central.instance.ProcessConnectInstanceIntg
    2010-09-08 12:51:31,097 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.PortalIntegration
    2010-09-08 12:51:31,099 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.webdb.admin.em.SSOIntegration
    2010-09-08 12:51:31,101 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.reports.em.RepIntg
    2010-09-08 12:51:31,102 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsEmailIntegration
    2010-09-08 12:51:31,135 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOidIntegration
    2010-09-08 12:51:31,137 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsOvfIntegration
    2010-09-08 12:51:31,139 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWebconfIntegration
    2010-09-08 12:51:31,141 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsWirelessIntg
    2010-09-08 12:51:31,143 [Orion Launcher] ERROR app.ContextInitializer contextInitialized.272 - Integration Class not found: oracle.sysman.ocs.mntr.target.OcsCalGrpIntegration
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emagent.trc
    2010-09-08 12:49:32 Thread-47082384 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2010-09-08 12:49:35 Thread-126417808 ERROR : (nmedmtm.c,626):Memory 0x0 encountered, expect struct_id=10502
    2010-09-08 12:49:35 Thread-126417808 ERROR emSDK.xml: ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist
    2010-09-08 12:49:35 Thread-126417808 WARN collector: putTgtColl aborted - null type or name
    2010-09-08 12:49:35 Thread-126417808 ERROR recvlets: Failed to remove target ORACLE_SID oracle_database (key BA9A34B2AFFFC3FA92AB311F36350213) from hashtable for recvlet tnmevr
    2010-09-08 12:49:35 Thread-126417808 ERROR recvlets: Failed to remove target ORACLE_SID oracle_database (key BA9A34B2AFFFC3FA92AB311F36350213) from hashtable for recvlet AQMetrics
    2010-09-08 12:49:35 Thread-126417808 WARN upload: Upload manager has no Failure script: disabled
    2010-09-08 12:49:35 Thread-40782736 ERROR upload: Error in uploadXMLFiles. Trying again in 123.00 seconds.
    2010-09-08 12:50:32 Thread-40782736 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    2010-09-08 12:51:02 Thread-40782736 ERROR pingManager: nmepm_pingReposURL: Error in request response. code = 400. text =
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$
    [oracle@dbserver log]$ tail emagent.log
    2010-09-08 11:35:15 Thread-58100624 target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2010-09-08 11:35:15 Thread-58100624 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 11:37:57 Thread-46816144 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 12:43:52 Thread-3336784 EMAgent normal shutdown (00703)
    2010-09-08 12:45:32 Thread-8911408 Starting Agent 10.1.0.6.0 from /oracle/product/102/db_1 (00701)
    2010-09-08 12:47:02 Thread-8911408 target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)
    2010-09-08 12:47:02 Thread-8911408 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    2010-09-08 12:47:02 Thread-8911408 fatal error parsing /oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, will be ignored (00405)
    2010-09-08 12:47:02 Thread-8911408 EMAgent started successfully (00702)
    2010-09-08 12:49:35 Thread-126417808 ParseError: File=file:/oracle/product/102/db_1/SERVER_ORACLE_SID/sysman/emd/collection/oracle_database_ORACLE_SID.xml, Line=2, Msg=<CollectionItem> Target NAME=ORACLE_SID does not exist (01006)
    And when looking for this error on ML : "target {ORACLE_SID, oracle_database} is broken: cannot compute dynamic properties in time. (00155)"
    I found this document: "Target {database instance, oracle_database} is broken: cannot compute dynamic properties in time [ID 739993.1]"
    Which said:
    1. Stop the dbconsole
    ./emctl stop dbconsole
    2. Have a back up of the emd.properties file which is in <ORACLE_HOME>/Hostname_SID/sysman/config
    Increase the value of
    dynamicPropsComputeTimeout=60
    to
    dynamicPropsComputeTimeout=120
    3. Start the dbconsole
    ./emctl start dbconsole
    I follow the instructions and the problem was solved.
    post results
    Regards

  • I'm trying to develop a PKI enabled plugin for firefox using add-on builder. how do you call a java applet using add-on javascript on add-on builder ?

    i have a signed applet which encrypts and digitally signs text information. i need to call this applet from the add-on javascript on firefox's add-on builder . how do i do it ?
    i've tried using contentScript and contentScriptFile to load the html file which calls the applet vis applet tag , it doesnt work.
    this is the error which croped up:
    Java Plug-in 1.6.0_26
    Using JRE version 1.6.0_26-b03-383-11A511 Java HotSpot(TM) 64-Bit Server VM
    User home directory = /Users/sreer1990
    c: clear console window
    f: finalize objects on finalization queue
    g: garbage collect
    h: display this help message
    l: dump classloader list
    m: print memory usage
    o: trigger logging
    q: hide console
    r: reload policy configuration
    s: dump system and deployment properties
    t: dump thread list
    v: dump thread stack
    x: clear classloader cache
    0-5: set trace level to <n>
    java.lang.NullPointerException
    at sun.net.www.ParseUtil.toURI(ParseUtil.java:261)
    at sun.net.www.protocol.http.HttpURLConnection.plainConnect(HttpURLConnection.java:861)
    at sun.net.www.protocol.http.HttpURLConnection.connect(HttpURLConnection.java:836)
    at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1172)
    at sun.plugin.PluginURLJarFileCallBack.downloadJAR(PluginURLJarFileCallBack.java:81)
    at sun.plugin.PluginURLJarFileCallBack.access$000(PluginURLJarFileCallBack.java:48)
    at sun.plugin.PluginURLJarFileCallBack$2.run(PluginURLJarFileCallBack.java:150)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin.PluginURLJarFileCallBack.retrieve(PluginURLJarFileCallBack.java:127)
    at sun.net.www.protocol.jar.URLJarFile.retrieve(URLJarFile.java:186)
    at sun.net.www.protocol.jar.URLJarFile.getJarFile(URLJarFile.java:50)
    at sun.net.www.protocol.jar.JarFileFactory.get(JarFileFactory.java:70)
    at sun.net.www.protocol.jar.JarURLConnection.connect(JarURLConnection.java:104)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.connect(CachedJarURLConnection.java:201)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFileInternal(CachedJarURLConnection.java:145)
    at sun.plugin.net.protocol.jar.CachedJarURLConnection.getJarFile(CachedJarURLConnection.java:91)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.getJarFile(DeployURLClassPath.java:752)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.access$800(DeployURLClassPath.java:631)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader$1.run(DeployURLClassPath.java:698)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.ensureOpen(DeployURLClassPath.java:690)
    at com.sun.deploy.security.DeployURLClassPath$JarLoader.<init>(DeployURLClassPath.java:652)
    at com.sun.deploy.security.DeployURLClassPath$3.run(DeployURLClassPath.java:400)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:389)
    at com.sun.deploy.security.DeployURLClassPath.getLoader(DeployURLClassPath.java:366)
    at com.sun.deploy.security.DeployURLClassPath.getResource(DeployURLClassPath.java:230)
    at sun.plugin2.applet.Plugin2ClassLoader$2.run(Plugin2ClassLoader.java:966)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.plugin2.applet.Plugin2ClassLoader.findClassHelper(Plugin2ClassLoader.java:955)
    at sun.plugin2.applet.Applet2ClassLoader.findClass(Applet2ClassLoader.java:134)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:250)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Plugin2ClassLoader.java:240)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:180)
    at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Plugin2ClassLoader.java:161)
    at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
    at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Plugin2ClassLoader.java:675)
    at sun.plugin2.applet.Plugin2Manager.createApplet(Plugin2Manager.java:3046)
    at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Plugin2Manager.java:1498)
    at java.lang.Thread.run(Thread.java:680)
    Exception: java.lang.NullPointerException

    Try posting at the Web Development / Standards Evangelism forum at MozillaZine. The helpers over there are more knowledgeable about web page development issues with Firefox. <br />
    http://forums.mozillazine.org/viewforum.php?f=25 <br />
    You'll need to register and login to be able to post in that forum.

  • How do i run a java program an another directory?

    How do I run a java program that's in a different directory?
    I have been doing this in the command line:
    java "C:\Document and Settings\freeOn\Desktop\Java\Test\test"
    and I get
    Exception in thread "main" java.lang.NoClassDefFoundError:
    C:\Document and Settings\freeOn\Desktop\Java\Test\test
    I just thought there might be a quick way to do this and not
    have to cd to the following dir evertime i want to run an app in
    console.
    The test.java file is this:
    import java.io.*;
    public class test {
        public static void main(String args[]) {
          System.out.println("Testing.....");

    Ok I looked in the java help and found the classpath, this makes it alittle easier.
    java -cp C:\DOCUME~1\freeOn\Desktop\Java\Test\ test
    At least i can run this in the run dialog which makes it easier thanks for you help kota balaji

  • Keytool error: java.lang.Exception: Keystore file does not exist:

    Hi All,
    While listing the keystore using the command keytool -list, I got the error message that
    keytool error: java.lang.Exception: Keystore file does not exist: C:\Documents and Settings\subramanian.arivalag\.keystore
    I noticed there is no file .keystore in the above mentioned directory. What's this .keystore file? Will it be created automatically or should we create manually?
    Already I created a keystore using -genkey command and received CA authority also.
    Kindly provide me more details about .keystore file and how to handle this error.

    If you specified a keystore filename when you created the keystore
    i.e. keytool -genkey -alias jboss-ssl -keyalg RSA -keystore my_name.keystore -validity 3650
    then you need to specify the same keystore when you export the cert
    i.e. keytool -export -alias jboss-ssl -keystore my_name.keystore –file my_name.cer

  • Java.lang.Exception: Could not get name for DC project

    Hello Experts,
    We have a code which is downloaded from SVN repository.
    I have imported the code from my desktop into NWDS and when I try to deploy it throws,
    java.lang.Exception: Could not get name for DC project
    I have referred few threads in SCN and solution suggested is to change the workspace and create a new DC & copy the _comp from old DC.
    I tried the above solution but there are lot of build errors as we have few RFC models and it is throwing build errors for missing model reference.
    Kindly help me on how to fix the error.
    Thanks, Swarnaprakash

    Dear Swarnaprakash,
    The Web Dynpro DCs Import C:\----\user\.dtc\LocalDevelopment\DCs\sap.com\test and
    the related package for DC  is missing once check it after try to import.
    Depending on which Java compiler preferences are set, you may see some
    warnings in the "Task" view after importing the project. If the severity level for problems of type "Unused imports" (set in Preferences – Java – Compiler) has the value "Warning", the compiler will issue a warning for unused import references. Ignore these warnings!
    Still You getting means delete your .metadata before take the backup.after open the NWDS again it will set new configurations in your system.
    Thanks & Regards,
    Durga Rao.

Maybe you are looking for

  • Discoverer Report  returning ' no data  found '

    Hi  ... i  have an issue with one discoverer  report  . Discoverer report  name : EDI Price Exception Report. when i ran the report  in Discoverer  Desktop edition  It is returning 'No Data Found ' But  i am taken the  Query from admin edition  and t

  • IPod Shuffle 4th-Gen NOT recognized by iTunes

    I have this Shuffle that won't be recognized by iTunes and it has no music in it. When I connect it to my iMac it only shows up as a flash drive with a lonely file called "iPod Control." I tried deleting this file just to see what would happen but it

  • Importing Excel or CSV fields into PDF

    Is it possible to import fields from excel files or CSV files?  I would like to have the answers and questions from my old PDF forms re-created with the new PDF 11 forms. Please help.

  • Image loading bad performance!!!!

    I have a background image on a Jpanel and i have added some buttons on the JPanel. The problem is when I start my application, the buttons are visible about 5 secondes before my background image. So, how can I improve my dowloading performance of my

  • New ipod 5th gen

    Okay I cannot seem to figure out how to get my ipod screen from going black after about 2 minutes. I also cannot get the videos to show on the full screen. Any quick help would be appreciated! Zodog