CCI exception error handling

hi,
I am a running a java program using CCI Non-Managed environment to connect to CICS commarea program.....
in that when i run the Java code without my gateway daemon CTG interface to CICS. I get an error when CTG(CICS Transaction gateway) service has not been started.
The error is in my ConnectionFactory class:
12:15:02:806 : [main:17ace8d] : Exception Logged by: com.ibm.connector2.cics.EC
IManagedConnection
12:15:02:822 : [main:17ace8d] : javax.resource.spi.CommException: CTG9631E Error
occurred during interaction with CICS. Error Code=: ECI_ERR_NO_CICS
12:15:02:822 : [main:17ace8d] : at com.ibm.connector2.cics.ECIManagedCon
nection.checkReturnCode(Unknown Source)
12:15:02:822 : [main:17ace8d] : at com.ibm.connector2.cics.ECIManagedCon
nection.call(Unknown Source)
12:15:02:822 : [main:17ace8d] : at com.ibm.connector2.cics.ECIConnection
.call(Unknown Source)
12:15:02:822 : [main:17ace8d] : at com.ibm.connector2.cics.ECIInteractio
n.execute(Unknown Source)
12:15:02:822 : [main:17ace8d] : at Ccitest.flowrequest(Ccitest.java:113)
12:15:02:822 : [main:17ace8d] : at Ccitest.main(Ccitest.java:219)
How do i handle this exception????kindly suggest........

This is my code:
import com.ibm.connector2.cics.ECIManagedConnectionFactory;
import com.ibm.connector2.cics.ECIManagedConnectionFactory;
import com.ibm.connector2.cics.ECIInteractionSpec;
import javax.resource.cci.ConnectionFactory;
import javax.resource.cci.Connection;
import javax.resource.cci.Interaction;
import javax.resource.ResourceException;
import java.io.UnsupportedEncodingException;
import javax.resource.cci.LocalTransaction;
import java.io.IOException;
import java.io.*;
import java.lang.*;
import java.util.*;
import java.lang.String.*;
import java.text.*;
public class Ccitest
     static String message=null;
     static String err=null;
     static StringBuffer sb1 = null;
     public String s1;
     public static int iValidationFailed = 0;
     static StringBuffer sb = null;
     public static class GenericRecord implements javax.resource.cci.Record,javax.resource.cci.Streamable
          private byte commarea[]=null;
          public GenericRecord()
               super();
          public GenericRecord(byte[] comm)
               setCommarea(comm);
          public Object clone() throws CloneNotSupportedException
               return super.clone();
          public void setCommarea(byte[] comm)
               try
                    read(new java.io.ByteArrayInputStream(comm));
               catch (java.io.IOException ioe)
          public byte[] getCommarea()
               return commarea;
          public void read(java.io.InputStream in) throws java.io.IOException
               commarea=new byte[in.available()];
               in.read(commarea);
          public void setRecordName(String arg1)
          public String getRecordName()
               return null;
          public void setRecordShortDescription(String arg1)
          public String getRecordShortDescription()
               return null;
          public void write(java.io.OutputStream out) throws java.io.IOException
               out.write(commarea);
               out.flush();
public void flowrequest(String str,StringBuffer sb)
     //Create and set values for ECI managed connection factory
          try
          ECIManagedConnectionFactory mcf= new ECIManagedConnectionFactory();
          mcf.setConnectionURL("localhost");
          mcf.setPortNumber("2006");
          mcf.setServerName("CICS1");
          mcf.setUserName("dsrm022");
          mcf.setPassword("dsrm022");
          //mcf.setTranName("M22I");
          //System.out.println("MCF"+mcf);
     //Create a connection factory connection object
          ConnectionFactory cxnf=(ConnectionFactory)mcf.createConnectionFactory();
          //System.out.println("cxnf"+cxnf);
          Connection cxn= cxnf.getConnection();
          //System.out.println(cxn);
     //create an interaction with CICS to start program ECIPROG
          Interaction ixn= cxn.createInteraction();
          ECIInteractionSpec ixnSpec= new ECIInteractionSpec();
          ixnSpec.setInteractionVerb(ixnSpec.SYNC_SEND_RECEIVE);
          LocalTransaction tran = cxn.getLocalTransaction();
          ixnSpec.setFunctionName("M22AP05");
          ixnSpec.setTPNName("M22I");
          //System.out.println(ixnSpec);
     //Create a new record for handling the COMMAREA byte array
          GenericRecord record = new
          GenericRecord((str).getBytes("IBM037"));
          System.out.println("Comm in: "+new String(record.getCommarea(),"IBM037"));
     //Finally execute and flow the request to CICS
     boolean res;
          res = ixn.execute(ixnSpec, record, record);          
//code added by shiyamala for checking the connection messages-22/oct/07
          //message = new String(record.getCommarea(), "IBM037");
          //sb = new StringBuffer(message);
          //System.out.println("res"+res);
          if(res)
               message = new String(record.getCommarea(), "IBM037");
          sb = new StringBuffer(message);
          System.out.println(sb);
          else
                    message = "null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"ECI flow Error";
                    sb = new StringBuffer(message);
                    // System.out.println(sb);
     //Close the interaction and the connection
          ixn.close();
          cxn.close();
          System.out.println("Comm out: "+new String(record.getCommarea(),"IBM037"));
          //System.out.println("res after comm out"+res);
catch (ResourceException re)
     //System.out.println("Error: "+re.getErrorCode());
     int errorcode =      Integer.parseInt(re.getErrorCode());
     //System.out.println("Errorcode: "+re.getErrorCode());
          switch(errorcode)
                         case     (-3):
                                   message = "null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"CICS not available";     
                                   sb = new StringBuffer(message);
                                   // System.out.println(sb);
                                   break;     
                         case     (-7):
                                   message = "null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"You are not authorized to run the transaction";     
                                   sb = new StringBuffer(message);
                                   // System.out.println(sb);
                                   break;
                         case     (-4):
                                   message = "null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"CICS died";     
                                   sb = new StringBuffer(message);
                                   // System.out.println(sb);
                                   break;
                         case     (-6):
                                   message = "null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"Response Timeout";     
                                   sb = new StringBuffer(message);
                                   // System.out.println(sb);
                                   break;     
                         default:
                                   message = "null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"null"+"~"+"ECI flow Error";
                                   sb = new StringBuffer(message);
                                   // System.out.println(sb);
     catch (Exception ioe)
               System.out.println("test");
public class CommException extends ResourceException
               public CommException(String message, String errorCode)
                    super(message, errorCode);
     public static void main(String args[])
               int i;
               String sNextToken;
               String s=" ";
               String customerno     =     args[0].toUpperCase();
               //This is to append the commarea space length
               int     temp1 = 500;
               System.out.println("Length of temp1: "+temp1);
               for(int j=0;j<temp1;j++)
                    s=s+" ";
               //System.out.println("spaces:"+s);
               String str = customerno+s;
               Ccitest c = new Ccitest();
               c.flowrequest(str,sb);
               sb = new StringBuffer(message);
System.out.println("comm out flow : "+sb);               
               String s1 = new String();
               s1 = String.valueOf(sb);
               String s2 = s1.trim();
               StringTokenizer st = null;
               String result=null;
               Vector oActVector = new Vector();
               st = new StringTokenizer(s2,"~#~");
                    while(st.hasMoreTokens())
                              sNextToken = st.nextToken();
                              System.out.println("sNextToken==>"+sNextToken);
                              oActVector.addElement(sNextToken);
                              //System.out.println("length:"+sNextToken.length());
          String CustomerId                    =     (String) oActVector.elementAt(0);
          String CompanyName                    =     (String) oActVector.elementAt(1);
          String Website                         =     (String) oActVector.elementAt(2);
          String Industry                         =     (String) oActVector.elementAt(3);
          String phone                         =     (String) oActVector.elementAt(4);
          String Zip                              =     (String) oActVector.elementAt(5);
          String mesg                         =     (String) oActVector.elementAt(6);
          System.out.println("String CustomerId:"+CustomerId);
          System.out.println("String Company Name:"+CompanyName);
          System.out.println("String Website:"+Website);
          System.out.println("String Industry:"+Industry);
          System.out.println("String phone:"+phone);
          System.out.println("String Zip:"+Zip);
          System.out.println("String mesg:"+mesg);
}

Similar Messages

  • File Adapter - Exception / Error handling

    We are using File Adapter in BPEL process to read multiple records from the file. Additionally, we have also handled rejectedMessageHandlers & fatalErrorFailoverProcess exception to lunch custom BPEL process. The process is running fine and also successfully launches custom handler processes too.
    Need help / direction in addressing following issues.
    1. While reading from file, if a records errors out, the custom BPEL process is launched (as specified in rejectedMessageHandlers property). In such instance, the previously read valid records are processed but remaining records are marked as errored out. Our requirement is to make entire record set as invalid and would like to perform rollback of entire process.
    2. Whenever an error occurs during reading the records using File adapter, the associated data file is being deleted from the input directory and also NOT available in archive directory also.
    Are we missing any set up ? We are on 10.1.3.1
    thanks
    -Yj
    Sample Log file:
    <2009-04-20 11:46:14,080> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::init - Initializing the JCA activation agent, processId='bpel://localhost/default/TestFileRead~1.0/
    <2009-04-20 11:46:14,080> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> JCAActivationAgent::initiateInboundJcaEndpoint - Creating and initializing inbound JCA endpoint for:
    process='bpel://localhost/default/TestFileRead~1.0/'
    domain='default'
    WSDL location='Read.wsdl'
    portType='Read_ptt'
    operation='Read'
    activation properties={portType=Read_ptt, rejectedMessageHandlers=bpel://default|AdapterError2|initiate|payload}
    <2009-04-20 11:46:14,096> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - endpointActivation for portType=Read_ptt, operation=Read
    <2009-04-20 11:46:14,143> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Endpoint Activation called in File Adapter for endpoint: c:\temp\yj
    <2009-04-20 11:46:14,143> <INFO> <default.collaxa.cube.activation> <AdapterFramework::Inbound> Adapter Framework instance: OraBPEL - successfully completed endpointActivation for portType=Read_ptt, operation=Read
    <2009-04-20 11:46:30,580> <WARN> <default.collaxa.cube.activation> <File Adapter::Inbound> PollWork::run exiting, Worker thread will die
    <2009-04-20 11:47:14,158> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Translated inbound batch index 1 of file {testdata6.txt} with corrupted message count = 1
    <2009-04-20 11:47:14,158> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Sending message to Adapter Framework for rejection to user-configured rejection handlers : {
    fileName=C:\temp\yj\testdata6.txt, startLine=3, startColumn=1, endLine=-1, endCol=-1, Exception=ORABPEL-11168
    Error while reading native data.
    [Line=3, Col=5] Expected "|" for the data starting at the specified position, while trying to read the data for "element with name C2", using "style" as "terminated" and "terminatedBy" as "|", but not found.
    Ensure that "|", exists for the data starting at the specified position.
    <2009-04-20 11:47:14,158> <WARN> <default.collaxa.cube.activation> <AdapterFramework::Inbound> [Read_ptt::Read(Root-Element)]onReject: Sending invalid inbound message to Exception Handler: bpel://default|AdapterError2|initiate|payload
    <2009-04-20 11:47:14,315> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Setting last error record to : -1
    <2009-04-20 11:47:14,658> <ERROR> <default.collaxa.cube.activation> <AdapterFramework::Inbound> onBatchFailure: Batch 'bpel://localhost/default/TestFileRead~1.0//testdata6.txt_1240205493408' (C:\temp\yj\testdata6.txt) has failed due to: ORABPEL-11168
    Error while reading native data.
    [Line=3, Col=5] Expected "|" for the data starting at the specified position, while trying to read the data for "element with name C2", using "style" as "terminated" and "terminatedBy" as "|", but not found.
    Ensure that "|", exists for the data starting at the specified position.

    Any light / idea on the following issue ?
    1. While reading from file, if a records errors out, the custom BPEL process is launched (as specified in rejectedMessageHandlers property). In such instance, the previously read valid records are processed but remaining records are marked as errored out. Our requirement is to make entire record set as invalid and would like to perform rollback of entire process. Even, if we do not configure rejectedMessageHandlers, the behavior is that valid rows are processed with the rest of BPEL process and for Invalid rows, the records are rejected. Our requirement, is that, even if there is one invalid record, the entire set of record should NOT move ahead with the BPEL process
    2. Whenever an error occurs during reading the records using File adapter, the associated data file is being deleted from the input directory and also NOT available in archive directory also. Note, in case of all valid record the file is available in archive directory

  • Exception/Error Handling in OMB PLus [ OWB 10.1.0.4 ]

    Hi,
    I have a shell script which imports multiple maps one by one based on certain parameters. If there is some error in between viz., map have been ftp'd with wrong name or ... , the script exits giving the error for the map . I want to handle this as an exception and continue processing till end of maps and finally display errors corresponding to the map. Is there any way to handle exceptions or errors in via OMBPLUS for this issue.
    Thanks & Regards,
    Santosh

    Yes, TCL has a catch construct. You "catch {} msg" and any exception code gets populated to $msg. The catch command itself returns 1 if an error has occurred.
    e.g.
    if [catch { OMBCONNECT CONTROL_CENTER USE 'mypassword' } errmsg] {
    puts "Error connecting to control center: $errmsg"
    return 1
    } else {
    #..continue on
    cheers,
    Mike

  • Exception error handling in module pool program

    Hi all,
    I have developed a screen in which I am calculating one of field value using two fields from same table.following is sample code.
    zfi_proposal-zpro_value =  zfi_proposal-zinv_rate  *  zfi_proposal-zno_of_shares.
    here, field zinv_rate has domain type quan length 10 and decimal places = 4, and field zno_of_shares has domain type numc length 4. while zpro_value has domain type quan length 10 and decimal places = 4.
    If zinv_rate > six digit value and zno_of_shares = two digit number system is giving conversion error.
    can anyone provide solution to rectify this error.Thanks in advance.
    Regards,
    Harshada

    You can catch the exception cx_sy_arithmetic_overflow
    Please refer example coding
    PARAMETERS: pa_rate TYPE p DECIMALS 4,
                pa_shar TYPE n LENGTH 4,
                pa_pro  TYPE p DECIMALS 4.
    AT SELECTION-SCREEN ON pa_rate.
      TRY .
          pa_pro = pa_rate * pa_shar.
        CATCH cx_sy_arithmetic_overflow.
          MESSAGE 'Sorry the rate is too high, please correct the entry' TYPE 'E'.
      ENDTRY.
    AT SELECTION-SCREEN ON pa_shar.
      TRY .
          pa_pro = pa_rate * pa_shar.
        CATCH cx_sy_arithmetic_overflow.
          MESSAGE 'Sorry the no_shares is too high, please correct the entry' TYPE 'E'.
      ENDTRY.
    Regards
    Marcin

  • Coldfusion SOAP Exception Error Handling

    Dear All Technology Expert's,
    I have a query related to Coldfusion SOAP services, that is most commonly asked in all the forum's but NONE of them has got answer.
    If there is NO solution so I think Adobe has to come up with some patches so developer can able to do some customization.
    I like to share with you all, in all other language ( PHP, JAVA, .NET etc) this option is available and you can customize the error.
    Ok let me again explain the very basic error:
    SOAP Request:
    <soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
       <soapenv:Header/>
       <soapenv:Body>
       </soapenv:Body>
    </soapenv:Envelope>
    SOAP Response:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <soapenv:Fault>
             <faultcode>soapenv:Server.userException</faultcode>
             <faultstring>java.lang.Exception: Body not found.</faultstring>
             <detail>
                <ns1:stackTrace xmlns:ns1="http://xml.apache.org/axis/">java.lang.Exception: Body not found.
      at org.apache.axis.providers.java.RPCProvider.processMessage(RPCProvider.java:121)...</ns1:s tackTrace>
                <ns2:hostname xmlns:ns2="http://xml.apache.org/axis/">Coldfusion Error</ns2:hostname>
             </detail>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    HOW we can customize the error, in all other languages you can simple customize the error like
    Other languages SOAP response:
      <soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
       <soapenv:Body>
          <soapenv:Fault>
             <faultcode>BODY_NOT_FOUND</faultcode>
             <faultstring>Body is missing in your request</faultstring>
          </soapenv:Fault>
       </soapenv:Body>
    </soapenv:Envelope>
    But the same is NOT possible in Coldfusion, right?
    AS you know it is vulnerability to display exception messages in the response.
    We are developing this web service to access  from other language website (PHP, .NET).
    We are also planning to upgrade server the Coldfusion 11, but do you think there is any solution with latest Coldfusion version.
    Please response only if you know about these issue's or solution. 
    Thanks
    Niyaz

    @Niyaz
    You will gain little by asking the same question in multiple places in the forum. In fact, many might consider it annoying or even spam.
    This question is being discussed in the thread that HaroonTyagi started. (Are you HaroonTyagi, by chance?) I will post an answer there shortly.

  • JDev 11.1.1.2.0 - Error while providing Error Handler Class in Databindings

    I get this exception as soon as I provide a reference to ErrorHandlerClass in DataBindings.cpx
    Error 500--Internal Server Error
    oracle.jbo.JboException: JBO-29000: Unexpected exception caught: java.lang.InstantiationException, msg=empexceptions.model.EmpDCErrorHandler
         at oracle.jbo.common.JBOClass.newInstance(JBOClass.java:253)
         at oracle.jbo.uicli.mom.JUApplicationDefImpl.initializeBindingContext(JUApplicationDefImpl.java:1242)
         at oracle.jbo.uicli.mom.JUApplicationDefImpl.populateContext(JUApplicationDefImpl.java:1215)
         at oracle.jbo.uicli.mom.JUMetaObjectManager.loadCpx(JUMetaObjectManager.java:713)
         at oracle.adf.model.BindingRequestHandler.initializeBindingContext(BindingRequestHandler.java:399)
         at oracle.adf.model.BindingRequestHandler.beginRequest(BindingRequestHandler.java:182)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:189)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:97)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:60)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.security.jps.ee.http.JpsAbsFilter$1.run(JpsAbsFilter.java:94)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
         at oracle.security.jps.ee.util.JpsPlatformUtil.runJaasMode(JpsPlatformUtil.java:413)
         at oracle.security.jps.ee.http.JpsAbsFilter.doFilter(JpsAbsFilter.java:138)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:326)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3592)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2202)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2108)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1432)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.lang.InstantiationException: empexceptions.model.EmpDCErrorHandler
         at java.lang.Class.newInstance0(Class.java:340)
         at java.lang.Class.newInstance(Class.java:308)
         at oracle.jbo.common.JBOClass.newInstance(JBOClass.java:245)
         ... 34 more
    DataBindings.cpx looks like this
    <?xml version="1.0" encoding="UTF-8" ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
                 version="11.1.1.55.36" id="DataBindings" SeparateXMLFiles="false"
                 Package="empexceptions.view" ClientType="Generic"
                ErrorHandlerClass="empexceptions.model.EmpDCErrorHandler">and my error handler class looks like this
    package empexceptions.model;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCErrorHandlerImpl;
    public class EmpDCErrorHandler extends DCErrorHandlerImpl {
        public EmpDCErrorHandler(boolean b) {
            super(false);
        @Override
        public void reportException(DCBindingContainer dCBindingContainer,
                                    Exception exception) {
            super.reportException(dCBindingContainer, exception);
    }Am I doing anything wrong here?

    hi Harry
    See "28.10 Customizing Error Handling"
    at http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/web_adv.htm#ADFFD1398
    that says "... The exception error handler must have a default constructor, as shown in Example 28-27. ...".
    success
    Jan Vervecken

  • Error Handling for ORA-02291

    Dear all,
    please help me, what exception name i must use
    (like "NO_DATA_FOUND" or "DUP_VAL_ON_INDEX") for error handling
    (exception) for ORA-02291 : integrity constraint(....) violated -
    parent key not found.
    Thank you.
    Regards
    Teguh Santoso

    Find out the error no. Oracle returns for this error & in the
    front-end (Ex:Forms) create a Pragma Exception error handler &
    give ur user defined error message when the user encounters
    it....
    Hope this suffices.
    Santhosh

  • 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

  • Exception while handling request: deserialization error: java.text.ParseExp

    Hi guys,
    While getting the sales order from the JDE database. It is giving
    Caught exception while handling request: deserialization error: java.text.ParseException: Unparseable date: "-11-JA-01T12:00:00-05".
    can any one of you can guide me about this exception
    Expecting a reply from any one ASAP.
    Regards,
    Chakri

    the schema element for this field is having different datatype than what you are receiving the data. Can you check logs and see on which column it is failing? If we know the exact xsd datatype used for the element and and value that is stored in table then we can correct the xsd accordingly. Are you using dynamic sql query or select options to get values from DB.

  • How to handle exceptions / errors in LiveCycle

    Hello All ,
    I want to handle some exception / errors that may arise while the user is filling the form so that the JavaScript console should not show any error rather we can simply show an alert / message .
    Say I got a dynamic table where the user can add / delete row at run time . There is a minimum count for the no.of rows . Suppose the user clicks the delete button without adding a new row then the JavaScript console will show error . I know we can handle this by using if else statements where depending on the instance manager count the deletion of rows are permitted . I want to know is it possible here to write a code to handle exception considering this thing as an exception without using the If-else statement ?? Just a thought.
    Thanks.
    Bibhu.

    What you're looking for is the javascript:
    try{
    // code
    } catch (err) {
    // fail code
    However, this is not the right way to solve your problem: Exception handling is for handling exceptions, and a scenario that you know can come to pass (such as the user clicking the removeInstance button when there are none to remove) is not an exception.
    Don't misunderstand me - putting code inside try/catch is 'good developer manners' (I do it myself all the time), and I strongly encourage you to do the same. Although only for handling exception sprung from code that you think should work just as fine without them.
    A better way of solving your particular problem is to remove the minus-button if there are no instances to remove.

  • Conflict Error Handler Exception in  Cluster

              Hi
              We bind some objects using rebind method to the JNDI in our weblogic servers.
              If we run one instance of weblogic server no problem but if we start another one
              server in the cluster it throughs conflict error handler exception. More over
              if we refresh one object instance in one server (by rebind) the new changes in
              the object doesn't reflect in other servers.
              

    If you bind non clusterable objects in the jndi from two servers then you
              will run into conflicts.
              Basically in a cluster, two servers cannot provide the same service unless
              it is clusterable.
              WLS assumes that everything you bind into jndi is a service.
              -- Prasad
              "BSIL" <[email protected]> wrote in message
              news:3b94f93a$[email protected]..
              >
              > Hi
              > We bind some objects using rebind method to the JNDI in our weblogic
              servers.
              > If we run one instance of weblogic server no problem but if we start
              another one
              > server in the cluster it throughs conflict error handler exception. More
              over
              > if we refresh one object instance in one server (by rebind) the new
              changes in
              > the object doesn't reflect in other servers.
              

  • 11g: Custom error handling for all application raised exceptions?

    Hi,
    the only thing I can find in the documentation regarding an error handler is this: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/web_adv.htm#BABEHFHI (26.8)
    However, this kind of error handler seems to ignore exceptions thrown in backing beans and underlaying business logic inplemented in app modules.
    Is there a way to globaly handle those exceptions and show an error message if an exception is throw or is the only way a catch block in each backing bean method?
    Thanks

    So, If I understand correctly, the only option is to redirect to exception handler view and show eror informatin there.
    If, however, we want to present errors in popup messages, we have to handle exceptions in all backing bean's methods, e.g.:
    catch (Exception ex){
    handleError(ex);
    public void handleError(Exception ex){
    FacesContext fctx = FacesContext.getCurrentInstance();
    FacesMessage message=
    new FacesMessage(
    FacesMessage.SEVERITY_ERROR,
    "Error",
    ex.getMessage());
    fctx.addMessage(null,message);
    Is that correct?
    Thanks

  • System Exception:OSoftResSvrAdm.Handle Creat ActiveX Object Error at Admin

    Hi Experts,
    While logging into the BPC admin client, we are facing the following errors:
    System.Web.Services.Protocols.SoapException: Server was unable to process request. ---> System.Exception: OSoftResSvrAdm.Handle Creat ActiveX Object Error at Admin Server
       at OSoft.Services.Webservice.AdminMainService.AdminMainService.GetText(Int64 intStringNum, String& strReturnString, String sParam1, String sParam2, String sParam3, String sParam4, String sParam5)
       at OSoft.Services.Webservice.AdminMainService.AdminMainService.LoadRes()
       at OSoft.Services.Webservice.AdminMainService.AdminMainService..ctor()
       --- End of inner exception stack trace ---}
    We have been facing this issue since the time the server was restarted after changing the admin password.
    Please help us in resolving this issue.
    Thanks in advance.
    Meera

    So you changed the pwd for installation user of SAP BPC.
    After you performed this change did you open Server Manager and go to Reset Credential link?
    There you have to input the new pwd for installation user.
    After that try to login again using BPC client.
    Regards
    Sorin Radulescu

  • SMBup quit. "An exception of class JSONException was not handled. The application must shut down. Exception Message: Parse Error: Expecting "{" or "[" at position 1. Exception Error Number: 1

    After updating to Mavericks 10.9.2, our Canon printer would no longer scan & send to our iMacs & MacBook Pros. We downloaded & installed SMBUp. Still trying to get it to work with MacBookPros, but has been working with iMacs. Today, out of the blue, I got the following error message:
    An exception of class JSONException was not handled. The application must shut down.
    Exception Message: Parse Error: Expecting "{" or "[" at position 1
    Exception Error Number : 1
    Now I get that message every time I try to open SMBUp. Tried to download & reinstall application, but get this message on website:
    Hmm, eduo.info isn't loading right now.
    The servers that run eduo.info are having some trouble. This is usually just a tempoary problem, so you might want to try again in a few minutes.
    (Have gotten that message for the last hour).
    Help?

    Hi,
    Pls don't forget to reward points and close the question if you find the answers useful.
    Eddy

  • Invoke Error - ORABPEL-00000 Exception not handled by the Collaxa

    Hi,
    We have a BPEL process that is involking a stubbed .net service which we are trying to simulate using a dummy Sync BPEL process to test the stubbed service. When we add the wsdlRuntimeLocation=DummyBPELProcess.wsdl we get the error ORABPEL-00000 Exception not handled by the Collaxa Cube system. An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "java.lang.NullPointerException at com.collaxa.cube.ws.WSInvocationManager.invoke2(WSInvocationManager.java:441) at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:285 .
    The input and output messsages and the namespace for the stubbed .net service and the dummy bpel process is the same.
    When we involke the Dummy BPEL process thru a another BPEL process the message looks
    <?xml version="1.0" encoding="UTF-8" ?><part><messages><Invoke_1_PersistSalesOrder_InputVariable><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="messagePart"><GlobalProductionOrderRequest xmlns:ns="http://schemas.xxx.com/it/fulfillment/RoutingSlip/1.0" xmlns:ns1="http://schemas.xxx.com/it/fulfillment/GlobalProductionOrder/1.0" xmlns="http://schemas.xxx.com/it/fulfillment/GlobalProductionOrder/1.0">
    <ns:RoutingSlip Sender="string" Receiver="string" Direction="RESPONSE" Type="string" MessageID="string" CorrelationID="string" CreateDate="2007-10-26T01:36:28" CreateHost="string" Instance="string"/>
    whereas the invoke message to the stubbed .net service looks like
    <?xml version="1.0" encoding="UTF-8" ?><part><messages>*<input>*<persistGPOInputVar><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="messagePart"><input><GlobalProductionOrderRequest xmlns:ns="http://schemas.xxx.com/it/fulfillment/RoutingSlip/1.0" xmlns:ns1="http://schemas.xxx.com/it/fulfillment/GlobalProductionOrder/1.0" xmlns="http://schemas.xxx.com/it/fulfillment/GlobalProductionOrder/1.0">
    <ns:RoutingSlip Sender="string" Receiver="string" Direction="RESPONSE" Type="string" MessageID="string" CorrelationID="string" CreateDate="2007-10-26T01:36:28" CreateHost="string" Instance="string"/><!--Optional:--><ns1:BackFed>true</ns1:BackFed>
    Is the additional <input> tag the issue ? Why is it coming for the .net stub and not the bpel process.

    Resolved after server Restart

Maybe you are looking for

  • EBusiness Suite User "Auto-provisioning" and  "Self-Request" Problem

    I have two types of OIM User, Staff and Contingent Staff (Role = Full-Time) Contingent (Role = Contractor / Role = Consultant) Resource Object: eBusiness Suite User Here's my RO configuration: Auto Pre-populate: true Allow Multiple: true Self Request

  • Curve 9360 not ringing with incoming calls

    Good day. I am using a Blackberry Curve 9360 Smartphone. Hope you can help me, I have inadvertently ticked the "All Alerts Off" option instead of the "Silent" option. The phone rejects my attemps to change it back to All Alerts on, with a reply "Aler

  • Ozzie, you mentioned you fixed this...

    Re: Podcasts appear under Music not Podcasts Posted: Jan 5, 2007 12:56 PM in response to: camoracer Click to reply to this topic Reply email Email This was very helpful!! I downloaded a podcast in iTunes AND directly from the source and looked at the

  • Launchpad Icons/Apps randomly change position

    Trying to get used to using Launchpad and initially spent a lot of time getting the location of each icon/app where I wanted them.  Randomly through the day though - and for no common reason I've come up with, they seem to the layout gets all messed

  • How to move a row in an updatable report

    Hello, I'm using an updatable report. I need to move one row to up or down. And when moving the last row further down, it should show up as the first row of ny report. And moving the first column up, it should be moved to the end of my report. How ca