Toplink Handling of Database Exceptions

Is there a sessions.xml setting to display the sql that caused an Oracle exception (e.g. value too large for column) WITHOUT setting log-debug=TRUE? Our current setting or log-exceptions=TRUE does not display the SQL that generated the exception. It seems senseless to get a stacktrace without any indication of what caused the problem.

In 10.1.3 TopLink now prints the SQL that was issued with the exception regardless of whether or not logging is turned on.

Similar Messages

  • How to handle multiple save exceptions (Bulk Collect)

    Hi
    How to handle Multiple Save exceptions? Is it possible to rollback to first deletion(of child table) took place in the procedure.
    There are 3 tables
    txn_header_interface(Grand Parent)
    orders(parent)
    order_items (Child)
    One transaction can have one or multiple orders in it.
    and one orders can have one or multiple order_items in it.
    We need to delete the data from child table first then its parent and then from the grand parent table.if some error occurs anywhere I need to rollback to child record deletion. Since there is flag in child table which tells us when to delete data from database.
    Is it possible to give name to Save exceptions?
    e.g.
    FORALL i IN ABC.FIRST..ABC.LAST SAVE EXCEPTIONS A
    FORALL i IN abc.FIRST..ABC.LAST SAVE EXCEPTIONS B
    if some error occurs then
    ROLLBACK A; OR ROLLBACK B;
    Please find the procedure attached
    How to handle the errors with Save exception and rollback upto child table deletion.
    CREATE OR REPLACE
    PROCEDURE DELETE_CONFIRMED_DATA IS
    TYPE TXN_HDR_INFC_ID IS TABLE OF TXN_HEADER_INTERFACE.ID%TYPE;
    TXN_HDR_INFC_ID_ARRAY TXN_HDR_INFC_ID;
    ERROR_COUNT NUMBER;
    BULK_ERRORS EXCEPTION;
    PRAGMA exception_init(bulk_errors, -24381);
    BEGIN
    SELECT THI.ID BULK COLLECT
    INTO TXN_HDR_INFC_ID_ARRAY
    FROM TXN_HEADER_INTERFACE THI,ORDERS OS,ORDER_ITEMS OI
    WHERE THI.ID = OS.TXN_HDR_INFC_ID
    AND OS.ID = OI.ORDERS_ID
    AND OI.POSTING_ITEM_ID = VPI.ID
    OI.DW_STATUS_FLAG =4 --data is moved to Datawarehouse
    MINUS
    (SELECT THI.ID FROM TXN_HEADER_INTERFACE THI,ORDERS OS,ORDER_ITEMS OI
    WHERE THI.ID = OS.TXN_HDR_INFC_ID
    AND OS.ID = OI.ORDERS_ID
    OI.DW_STATUS_FLAG !=4);
    IF SQL%NOTFOUND
    THEN
    EXIT;
    END IF;
    FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
    EXCEPTIONS
    DELETE FROM ORDER_ITEMS OI
    WHERE OI.ID IN (SELECT OI.ID FROM ORDER_ITEMS OI,ORDERS
    OS,TXN_HEADER_INTERFACE THI
    WHERE OS.ID = OI.ORDERS_ID
    AND OS.TXN_HDR_INFC_ID = THI.ID
    AND THI.ID = TXN_HDR_INFC_ID_ARRAY(i));
    FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
    EXCEPTIONS
    DELETE FROM ORDERS OS
    WHERE OS.ID IN (SELECT OS.ID FROM ORDERS OS,TXN_HEADER_INTERFACE THI
    WHERE OS.TXN_HDR_INFC_ID = THI.ID
    AND THI.ID = TXN_HDR_INFC_ID_ARRAY(i));
    FORALL i IN TXN_HDR_INFC_ID_ARRAY.FIRST..TXN_HDR_INFC_ID_ARRAY.LAST SAVE
    EXCEPTIONS
    DELETE FROM TXN_HEADER_INTERFACE THI
    WHERE THI.ID = TXN_HDR_INFC_ID_ARRAY(i);
    COMMIT;
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(SYSDATE, 'DD-MON-YY HH:MIPM')||':
    DELETE_CONFIRMED_DATA: INFO:DELETION SUCCESSFUL');
    EXCEPTION
    WHEN OTHERS THEN
    ERROR_COUNT := SQL%BULK_EXCEPTIONS.COUNT;
    DBMS_OUTPUT.PUT_LINE(TO_CHAR(SYSDATE, 'DD-MON-YY HH:MIPM')||':
    DELETE_CONFIRMED_DATA: ERROR:Number of errors is ' ||ERROR_COUNT);
    FOR indx IN 1..ERROR_COUNT LOOP
    DBMS_OUTPUT.PUT_LINE('Error ' || indx || 'occurred during
    '||'iteration'||SQL%BULK_EXCEPTIONS(indx).ERROR_INDEX);
    DBMS_OUTPUT.PUT_LINE('Error is '
    ||SQLERRM(-SQL%BULK_EXCEPTIONS(indx).ERROR_CODE));
    END LOOP;
    END DELETE_CONFIRMED_DATA;
    Any suggestion would be of great help.
    Thanks in advance
    Anu

    If you have one or two places in your code that need multiple exceptions, just do it with multiple catch statements. Unless you are trying to write the most compact Programming 101 homework program, inventing tricks to remove two lines of code is not good use of your time.
    If you have multiple catches all over your code it could be a code smell. You may have too much stuff happening inside one try statement. It becomes hard to know what method call throws one of those exceptions, and you end up handling an exception from some else piece of code than what you intended. E.g. you mention NumberFormatException -- only process one user input inside that try/catch so it is easy to see what error message is given if that particular input is gunk. The next step of processing goes inside its own try/catch.
    In my case, the ArrayIndexOutOfBoundsException and
    NumberFormatException should be handled by the same way.Why?
    I don't think I have ever seen an ArrayIndexOutOfBoundsException that didn't indicate a bug in the code. Instead of an AIOOBE perhaps there should be an if statement somewhere that prevents it, or the algorithm logic should prevent it automatically.

  • Error handle request; Root exception is: java.lang.NoSuchMethodError

    Hello Guys,
    I am running EBS 11i, rdbms 10g on OEL4. After applying a bunch of patches to resolve some IE issues I ran into an error:
    "FRM-41072: Cannot create group ACTION_REC_GROUP" when trying to cancel a PO.
    An SR directed me to apply patch 8286920 which indeed fixed the FRM-41072 error. After this patch "Logon to Oracle Applications Manager" is not possible as the page gives me :
    Error handle request; Root exception is: java.lang.NoSuchMethodError: oracle.apps.fnd.security.AolSecurity.userPwdHash(Ljava/lang/String;)Ljava/lang/String;
    MOS thinks that patch 8286920 didn't break OAM but I don't think so since this is only happening on my DEV and TEST systems on which I have applied the patch. PROD, wihtout the patch, is accessible through OAM just as usual?
    Any thouths?
    Thank you
    Mathias

    Did you apply all patches mentioned in the following docs?
    FRM-41072 - Unable to Cancel Purchase Order or Purchase Order Line or Release [ID 947402.1]
    Change Tax Code in the Purchase Order Gets Error - Could not reserve record (2 tries) Keep trying [ID 956047.1]
    Autocreate Process Does Not Default Purchase Order Form As The Active Window After PO Is Created - Does Not Come To The Front [ID 1055623.1]
    Did you bounce all the services and see if you ca reproduce the issue?
    What about clearing the server cache files? -- How To Clear Caches (Apache/iAS, Cabo, Modplsql, Browser, Jinitiator, Java, Portal, WebADI) for E-Business Suite? [ID 742107.1]
    Can you find any errors in the database/apache log files? Any invalid objects?
    If you have verified all the above please update the SR with the error you have after applying that patch.
    Thanks,
    Hussein

  • Strategy for database exceptions

    I am designing our strategy for handling database exceptions which may occur upon saving for instance.
    For example, if a user tries to save an object which violates a unique key constraint, I get that error wrapped by the DatabaseException class as documented.
    The wrinkle is that I would really like to report to the user which fields caused this violation. We are using an oracle database for the foreseeable future, so portability is not critical.
    Has anyone designed something which can get this metadata and attach it to the exception? Any tips would be much appreciated.
    Cheers,
    craig

    I have found it very helpfull to separate the database / recordset from the rest of the project. If you create objects that model your records then the rest of your program doesn't know or care where the data came from. You could easily write store / retrieve methods to deal with the data from a file, over the web, from a socket connection, etc without having to alter your entire app. My advise is to do as little manipulation on the resultsets and focus on object manipulation instead. Mind you if your writing some sort of generic recordset "explorer" then this doesn't apply. You can't possibly model objects from some random recordset that you have no previous knowledge of. In that case you'd have to examine the meta data of the recordset to get field names, data types, etc.

  • How to Handle RFC delivery exception (rfcClientException) in XI?

    I have a following scenario.
    I have an outbound soap interface (sender) and inbound RFC(receiver). When the soap message is posted it goes to receiver where it has to execute the RFC. It tries to convert the XML to RFC and throws the following exception.
    com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date 'xxxx-xx-xx' has a wrong format at field CREAT_DATE: Unparseable date: "xxxx-xx-xx
    I defined the fault message and attached it to the Inbound Interface. I also defined the mapping of receiver exception message to fault message. I am expecting a fault message back to sender which is not happening.
    When I go to moni and try to look for the error in the response message I see the following.
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
    <SAP:Category>XIAdapterFramework</SAP:Category>
    <SAP:Code area="PARSING">GENERAL</SAP:Code>
    <SAP:P1 />
    <SAP:P2 />
    <SAP:P3 />
    <SAP:P4 />
    <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date 'xxxx-xx-xx' has a wrong format at field CREAT_DATE: Unparseable date: "xxxx-xx-xx"</SAP:AdditionalText>
    <SAP:ApplicationFaultMessage namespace="" />
    <SAP:Stack />
    <SAP:Retry>M</SAP:Retry>
    </SAP:Error>
    I am suspecting that since the fault message does not contain this structure it's not able to build it.
    How do I handle such runtime exception and transfer it to sender system. Any help would be greatly apperciated.

    I have the same problem. The error is as follows:
    <?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
    - <!--  Call Adapter
      -->
    - <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="1">
      <SAP:Category>XIAdapterFramework</SAP:Category>
      <SAP:Code area="PARSING">GENERAL</SAP:Code>
      <SAP:P1 />
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>com.sap.aii.af.ra.ms.api.DeliveryException: error while processing message to remote system:com.sap.aii.af.rfc.core.client.RfcClientException: could not convert request from XML to RFC:com.sap.mw.jco.JCO$ConversionException: (122) JCO_ERROR_CONVERSION: Date '2006/04/09' has a wrong format at field INVALIDITYBEGIN: Unparseable date: "2006/04/09"</SAP:AdditionalText>
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack />
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    Anyone have any idea, how should I resolve the data format issue?
    Thanks

  • How can we handle user defined exceptions in ejbStore() of entity bean

    Accroding to my knowledge in ejbStore we can not handle user defined exceptions. Can anybody help on this????

    In my case I am calling a method from ejbsotre() . In that method i wanted to put some checks according to that i wanted to throw exceptions.
    In this case how would I handle exceptions.
    Can you suggest in this case,please !!!

  • Extend BizTalk ESB Exception Handling to manage exception for all organization wide application exception

    Hello,
    Can we Extend BizTalk ESB Exception Handling to manage exception for all organization wide application ( both biztalk and external) exception ?
    Is it something a good option or there are better approach to do this.
    Business requirement is Exception management should be single window for complete end-to end application ( source-Biztalk - destination)
    Tarun
    Tarun

    Hi Tarun,
    ESB Toolkit framework for exception handling is not complete OOTB. it is intended as a framework and set of patterns that can and should
    be extended based on the customer’s needs.
    One way of extending the capabilities is by using Standardized Exception Management or SEM in short. 
    SEM solution extends the capabilities of the Microsoft ESB Exception Management Framework and follows a design pattern that provides a flexible
    approach to exception monitoring and enables error responses to originate from outside of the solution. While SEM is primarily targeted to Microsoft BizTalk Server applications, it can also be leveraged by other applications that are able to call a Windows
    Communications Foundation (WCF) or web service.
    Refer: Standardized Exception Management
    Standardized Exception Management (SEM)
    Rachit

  • Unproper ADF BC behaviour after database exception

    Hi,
    A have a problem with ADF session.
    I use ADF Business Components in my application and generally it works good.
    Unfortunatelly I experience problem when I face database exception (i.e. packages I use are not compiled). I catch such an exception in my web application, but unfortunatelly there is something wrong with views or business components because I get unproper results (usually no records at all). It's a problem connected with all views in application and it is not connected with the exception directly.
    The only thing that helps is logout and login (which resets ADF session).
    Is there a problem with database session, adf session or some connections settings/states ?
    Could you explain what is the reason for that behavior and tell me if it is a way to make application work with relogin after database error ?
    Thanks in advance
    Marcin

    Hi,
    no, there is not. From the description you give its hard to determine whats going on there, but at least I can offer a pointer to the developer guide to learn about best practices. Maybe this helps solving the issue http://download-uk.oracle.com/docs/html/B25947_01/toc.htm
    Frank

  • [oracle@localhost database]$ Exception in thread "main" java.lang.Unsatisfi

    hi,
    i am trying to install oracle 10 g in my redhat 4 machine 32 bit. i have created all the required users and directories. but when i run the rininstaller i get following error( i believe possible i have to install some package which i don't know):
    [oracle@localhost ~]$ cd /home/oracle/Desktop/untitled/ora10g/database
    [oracle@localhost database]$ ./runInstaller
    Starting Oracle Universal Installer...
    Checking installer requirements...
    Checking operating system version: must be redhat-3, SuSE-9, redhat-4, UnitedLinux-1.0, asianux-1 or asianux-2
    Passed
    All installer requirements met.
    Preparing to launch Oracle Universal Installer from /tmp/OraInstall2008-01-08_10-47-41PM. Please wait ...[oracle@localhost database]$ Exception in thread "main" java.lang.UnsatisfiedLinkError: /tmp/OraInstall2008-01-08_10-47-41PM/jre/1.4.2/lib/i386/libawt.so: libXp.so.6: cannot open shared object file: No such file or directory
    at java.lang.ClassLoader$NativeLibrary.load(Native Method)
    at java.lang.ClassLoader.loadLibrary0(Unknown Source)
    at java.lang.ClassLoader.loadLibrary(Unknown Source)
    at java.lang.Runtime.loadLibrary0(Unknown Source)
    at java.lang.System.loadLibrary(Unknown Source)
    at sun.security.action.LoadLibraryAction.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at sun.awt.NativeLibLoader.loadLibraries(Unknown Source)
    at sun.awt.DebugHelper.<clinit>(Unknown Source)
    at java.awt.Component.<clinit>(Unknown Source)
    can u plz help me with that.

    I think that you have to install Xorg (or XFree, whichever X environment redhat uses) related packages.
    They seem to be missing or not completely installed.
    I don't remember which specific package contains "libXp" nor its dependencies... so i'd recommend you to install them all.
    Good luck!

  • How to handle user defined exception from C#?

    Hi:
    I have some PL/SQL code that will throw a user defined exception if certain conditions are met. How do I handle user defined exceptions if this procedure/function is being called from C#? C# can handle a normal Oracle SQL error (e.g. ORA-XXXX) because they are defined in the proper class, but how do I get it to know about my user defined exception? Does anyone have any links to examples of doing this?
    Thanks.

    Hi Gaff,
    Is there a particular problem you're having doing this? It works as normal for me...
    Cheers
    Greg
    PLSQL
    =========
    create or replace procedure throwsomething as
    begin
    raise_application_error(-20001,'kaboom');
    end;
    ODP
    =====
        class Program
            static void Main(string[] args)
                using (OracleConnection con = new OracleConnection())
                    con.ConnectionString = "user id=scott;password=tiger;data source=orcl";
                    con.Open();
                    using (OracleCommand cmd = new OracleCommand())
                        cmd.CommandText = "begin throwsomething;end;";
                        cmd.Connection = con;
                        try
                            cmd.ExecuteNonQuery();
                        catch (OracleException oe)
                            Console.WriteLine("caught " + oe.Message);
    OUTPUT
    ========
    caught ORA-20001: kaboom
    ORA-06512: at "SCOTT.THROWSOMETHING", line 3
    ORA-06512: at line 1

  • Database exceptions data missing in SMD 7.1

    Hello all,
    I have configured SMD on SolMan 7.1 SP03. I successfully connected 2 systems (ABAP single and JAVA single) to technical monitoring. Also SolMan self-monitoring was configured successfully. I can see some monitoring data in solman_workcenter, but I don't see any data in section Database Exceptions and Database performance like e.g. tablespace usage, last successful backup, reads per usercall etc... I can see current data in Database availability section - archiver status, instance status etc... There are obviously some data missing in BI as I get an info message : "No data has been transferred to BI system up to now for metric .....". Unfortunately I can't find out where is the problem so far. I can see SMD agents are connected and pushing other data (ABAP and host related) to SMD w/o any problems. Any hint is appreciated.
    Thanks.

    Hi,
    Check this: http://help.sap.com/saphelp_sm71_sp01/helpdata/en/f7/51b87f807344eba0ddca2d2174cbee/frameset.htm
    "A remote database connection between the DBA Cockpit and the remote database is configured and available, to gather the data for tablespaces, availability, backup status, etc. remotely. The prerequisites for database administration and monitoring are described in SAP note 1027146."
    Cheers,
    Diego.

  • TopLink SessionBean Example Deploy Exception

    I am deploying the SessionBean Example which comes with TopLink installable in the examples folder on OC4J 9.0.4 standalone server. I have changed the datasource references for Db url and db driver in the DataSource.xml. Also added TopLink.jar and Xerces.jar in OC4J\j2ee\home\lib.
    Server StackTrace is :
    e:\oc4j903standalone\j2ee\home>java -jar oc4j.jar
    Oracle9iAS (9.0.4.0.0) Containers for J2EE initialized
    com.evermind.server.rmi.OrionRemoteException: Transaction was rolled back: EXCEP
    TION [TOPLINK-7094] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exceptions.Val
    idationException
    EXCEPTION DESCRIPTION: LOCAL EXCEPTION STACK:
    EXCEPTION DESCRIPTION: Several [2] SessionLoaderExceptions were thrown:
    EXCEPTION [TOPLINK-9005] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exception
    s.SessionLoaderException
    EXCEPTION DESCRIPTION: An exception was thrown while loading the <project-xml> f
    ile [EmployeeProject.xml].
    INTERNAL EXCEPTION: EXCEPTION [TOPLINK-13009] (TopLink - 9.0.3 (Build 423)): ora
    cle.toplink.xml.XMLDataStoreException
    EXCEPTION DESCRIPTION: ** Parsing error, line [1], uri [null] [The markup in
    the document preceding the root element must be well-formed.]
    EXCEPTION [TOPLINK-9001] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exception
    s.SessionLoaderException
    EXCEPTION DESCRIPTION: Unknown tag name: [session] in XML node: [toplink-configu
    ration].
    INTERNAL EXCEPTION: java.lang.reflect.InvocationTargetException
    TARGET INVOCATION EXCEPTION: java.lang.NullPointerException
    at oracle.toplink.exceptions.SessionLoaderException.finalException(Unkno
    wn Source)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Sour
    ce)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unkn
    own Source)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unkn
    own Source)
    at examples.ejb.sessionbean.EmployeeSessionEJB.getSession(EmployeeSessio
    nEJB.java:183)
    at examples.ejb.sessionbean.EmployeeSessionEJB.createNewEmployee(Employe
    eSessionEJB.java:71)
    at EmployeeSession_StatelessSessionBeanWrapper0.createNewEmployee(Employ
    eeSession_StatelessSessionBeanWrapper0.java:90)
    at examples.ejb.sessionbean.CreateEmployee.doPost(CreateEmployee.java:53
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:763)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:308)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:779)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:264)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:107)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:484)
    SessionLoaderExceptions:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-9005] (TopLink - 9.0.3 (Build 423)): oracle.toplink.exception
    s.SessionLoaderException
    EXCEPTION DESCRIPTION: An exception was thrown while loading the <project-xml> f
    ile [EmployeeProject.xml].
    INTERNAL EXCEPTION: EXCEPTION [TOPLINK-13009] (TopLink - 9.0.3 (Build 423)): ora
    cle.toplink.xml.XMLDataStoreException
    EXCEPTION DESCRIPTION: ** Parsing error, line [1], uri [null] [The markup in
    the document preceding the root element must be well-formed.]
    at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectX
    ml(Unknown Source)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_project_x
    ml_Tag(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.process_session_T
    ag(Unknown Source)
    at java.lang.reflect.Method.invoke(Native Method)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.processRootTag(Un
    known Source)
    at oracle.toplink.tools.sessionconfiguration.XMLLoader.load(Unknown Sour
    ce)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unkn
    own Source)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(Unkn
    own Source)
    at examples.ejb.sessionbean.EmployeeSessionEJB.getSession(EmployeeSessio
    nEJB.java:183)
    at examples.ejb.sessionbean.EmployeeSessionEJB.createNewEmployee(Employe
    eSessionEJB.java:71)
    at EmployeeSession_StatelessSessionBeanWrapper0.createNewEmployee(Employ
    eeSession_StatelessSessionBeanWrapper0.java:90)
    at examples.ejb.sessionbean.CreateEmployee.doPost(CreateEmployee.java:53
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletReque
    stDispatcher.java:763)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(Ser
    vletRequestDispatcher.java:308)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpReques
    tHandler.java:779)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:264)
    at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.ja
    va:107)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:484)
    INTERNAL EXCEPTION STACK:
    LOCAL EXCEPTION STACK:
    EXCEPTION [TOPLINK-13009] (TopLink - 9.0.3 (Build 423)): oracle.toplink.xml.XMLD
    ataStoreException
    EXCEPTION DESCRIPTION: ** Parsing error, line [1], uri [null] [The markup in
    the document preceding the root element must be well-formed.]
    at oracle.toplink.xml.XMLDataStoreException.parserError(Unknown Source)
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.buildDocument(Un
    known Source)
    at oracle.toplink.xml.xerces.XMLToDatabaseRowTranslator.read(Unknown Sou
    rce)
    at oracle.toplink.xml.xerces.DefaultXMLTranslator.read(Unknown Source)
    at oracle.toplink.xml.XMLReadCall.execute(Unknown Source)
    at oracle.toplink.sdk.SDKAccessor.executeCall(Unknown Source)
    at oracle.toplink.publicinterface.Session.executeCall(Unknown Source)
    at oracle.toplink.sdk.SDKQueryMechanism.executeCall(Unknown Source)
    at oracle.toplink.sdk.SDKQueryMechanism.executeCall(Unknown Source)
    at oracle.toplink.sdk.SDKQueryMechanism.selectOneRow(Unknown Source)
    at oracle.toplink.queryframework.ReadObjectQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.DatabaseQuery.execute(Unknown Source)
    at oracle.toplink.queryframework.ReadQuery.execute(Unknown Source)

    I don't think it has to do with no dtd, but is a strange error. Have you tried oc4j 9.0.3?
    My only guess would be the extra blank line at the top of the EmployeeProject.xml (try removing this). Otherwise oc4j 9.0.4 may have a different version of xerces ahead of the one from toplink on the classpath. Try make sure that the toplink xerces is first or the only one on the classpath.

  • TopLink IAS\SessionBean Example exception

    I am deploying the SessionBean Example which comes with TopLink installable in the examples folder on OC4J 9.0.4 standalone server. I have changed the datasource references for Db url and db driver in the DataSource.xml. Also added TopLink.jar and Xerces.jar in OC4J\j2ee\home\lib.
    Now server is throwing an exception : Unknown tag name: [session] in XML node: [toplink-configution] which i think is from the Sessions.xml file
    Any help or pointers will be really welcome.

    Hello,
    This exception is not a problem with sessions.xml, its a problem with the project that is being referenced by sessions.xml.
    There should be a description of the problem, such as:
    EXCEPTION DESCRIPTION: The object [oracle.demo.MyClass], of class [class java.lang.String], could not be converted to [class java.lang.Class]. Please ensure that the class [class java.lang.Class] is on the CLASSPATH. You may need to use alternate API passing in the appropriate class loader as required, or setting it on the default ConversionManager
    INTERNAL EXCEPTION: java.lang.ClassNotFoundException: oracle.demo.HockeyTea
    EXCEPTION [TOPLINK-9001] (TopLink - 9.0.3.4 (Build 432)): oracle.toplink.exceptions.SessionLoaderException
    EXCEPTION DESCRIPTION: Unknown tag name: [session] in XML node: [toplink-configuration].
    INTERNAL EXCEPTION: java.lang.reflect.InvocationTargetException
    TARGET INVOCATION EXCEPTION: java.lang.NullPointerException
    Without a more detailed stack trace, I would be taking guesses as to the problem.

  • Handling multiple database with 10g CONSOLE

    Hello list,
    How do we handle multiple databases with 10g Enterprise Console?
    We are running Oracle 10.1.0.2.0 on Windows 2003 server. I have one database setup but I need to install more databases and am having difficulty accessing and managing the second database. thanks for your input.

    may be you can try the following:
    1) create a file named new_target.xml with the following:
    <Target TYPE="oracle_database" NAME="DBAPV9.WORLD" DISPLAY_NAME="DBAPV9">
    <Property NAME="OracleHome" VALUE="/opt/oracle/app/oraadm9i/product/9.2.0.4"/>
    <Property NAME="UserName" VALUE="sys" ENCRYPTED="FALSE"/>
    <Property NAME="password" VALUE="thepassword" ENCRYPTED="FALSE"/>
    <Property NAME="Role" VALUE="sysdba"/>
    <Property NAME="MachineName" VALUE="machine.domain"/>
    <Property NAME="Port" VALUE="1521"/>
    <Property NAME="SID" VALUE="DBAPV9"/>
    </Target>
    replace as appropriate
    2) Execute emctl config agent addtarget new_target.xml
    3) Execute emctl stop dbconsole
    4) Execute emctl start dbconsole

  • Free Report Writer for Oracle Database except Crystal Report and Data Vison

    Dear All,
    I want Free Report Writer for Oracle Database except Crystal Report and Data Vision software.
    Wr are working on Linux and windows both platform.
    Any one have direct link or website address for it ?
    Regards,
    Vipul Patel
    Ahmedabad

    Please check the following link -
    http://www.google.co.in/search?client=firefox-a&rls=org.mozilla%3Aen-US%3Aofficial&channel=s&hl=en&q=open+source+report+writer+for+oracle&meta=&btnG=Google+Search
    Regards.
    Satyaki De.

Maybe you are looking for