Error retrieving record through database adapter.  (ORABPEL-11614)

Am trying to pass a customer name into a database adapter to retrieve customer info. It is working, but it is also faulting.
When I invoke the process with the name "3M COMPANY", I get the following audit message
[2008/06/05 17:36:01] Faulted while invoking operation "GetCustomerDataSelect_paramName" on provider "GetCustomerData".less
-<messages>
-<input>
-<customerName>
-<part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="GetCustomerDataSelect_paramName_inparameters">
-<GetCustomerDataSelect_paramNameInputParameters xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/GetCustomerData">
<paramName>3M COMPANY
</paramName>...
WSIF JCA Execute of operation 'GetCustomerDataSelect_paramName' failed due to: DBReadInteractionSpec Execute Failed Exception.
Query name: [GetCustomerDataSelect], Descriptor name: [GetCustomerData.Cstcgvmp].
; nested exception is:
     ORABPEL-11614
DBReadInteractionSpec Execute Failed Exception.
Query name: [GetCustomerDataSelect], Descriptor name: [GetCustomerData.Cstcgvmp].
See root exception for the specific exception. Caused by Exception [TOPLINK-6044] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.QueryException
Exception Description: The primary key read from the row [DatabaseRecord(
     => 101
     => A
     => 3M COMPANY
     => 3M CENTER
     => SAINT PAUL
     => MN
     => 551441000
     => 22)] during the execution of the query was detected to be null. Primary keys must not contain null.
Query: ReadAllQuery(bpel___localhost_default_Onboarding_1_0__MD5_8f8d9220a0bc6957be6fb657cf4ffabd_.GetCustomerData.Cstcgvmp).
</summary ...
The retrieved data is correct. The Database Adapter is pointing to an AS/400 table which does not have primary keys defined. In the offline database, I've defined CGVMSTCST to be the primary key.
The toplink_mappings.xml reflects that:
<opm:alias>Cstcgvmp</opm:alias>
<opm:primary-key>
<opm:field table="CSTCGVMP" name="CGVMSTCST" xsi:type="opm:column"/>
</opm:primary-key>
The value of this field for 3M is 101 (which was correctly picked up).
Why am I getting a primary key is null error?

I did, but I'm not sure how.
I deleted the Database Adapter and the associated offline file and reran the wizard (having a better idea of how to implement a parameter search) and it worked.
I was not able to identify what was created differently the second time.

Similar Messages

  • Get username from session and retrieve records from database wit tat userna

    hello..
    i got a ChangePassword.jsp which i retrieve the username from session using bean to display on e page..
    <jsp:getProperty name="UsernamePassword" property = "username"/>
    but in my servlet, i wan to retrieve records from database with tat username..
    i tot of coding
    String username = (String)request.getSession().getAttribute("UsernamePassword");
    and then use tat username to retrieve records.. but is that e right way? The page did not display and i got a CastingException..
    Please help.

    If you are using the session inside a jsp, you can say "session" without having to declare it.String usernamePassword = (String) session.getAttribute("usernamePassword");However, right after you get this value, check if it is null:
    if(usernamePassword==null)
    // do sth like forward to error page
    else
    // continue processing
    If it is null, then you are probably not setting it right in the first place. Make sure that in your servlet A you create a session, and before you return or forward to a jsp, that you actually set this value in the session like saying
    session.setAttribute("usernamePassword", usernamePassword);
    and it is case sensitive for the key.

  • Error while connecting through DB adapter in ESB

    ESB is getting data from siebel , but while sending to database through DB adapter , it gets the following error
    An unhandled exception has been thrown in the ESB system. The exception reported is: "org.collaxa.thirdparty.apache.wsif.WSIFException: esb:///ESB_Projects/temp_DeTokenizedSource_MeruGenericUpdateSubscriberESB_vtmwapcl.vlink.in/genericUpdateOracleARCustomer_DbAdp.wsdl [ genericUpdateOracleARCustomer_DbAdp_ptt::genericUpdateOracleARCustomer_DbAdp(InputParameters) ] - WSIF JCA Execute of operation 'genericUpdateOracleARCustomer_DbAdp' failed due to: Error while trying to prepare and execute an API. An error occurred while preparing and executing the XMERU.XMERU_CUST_INT_PKG.XMERU_CUST_INT_PROC API. Cause: java.sql.SQLException: ORA-20001: XMERU_CUSTOMER_API => Processing for Customer : Statement No : 13 Unhandled Oracle Exception Occured at 13-ORA-20001: XMERU_CUSTOMER_API => Processing for Customer : Statement No : 13 Unhandled Oracle Exception Occured at 13-ORA-20001: XMERU_CUSTOMER_API => Processing for Customer : Statement No : 13 Unhandled Oracle Exception Occured at 13 -ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at "XMERU.XMERU_UTIL_PKG", line 652 ORA-06512: at "XMERU.XMERU_CUST_INT_PKG", line 1122 ORA-06512: at line 1 ; nested exception is: ORABPEL-11811 Error while trying to prepare and execute an API. An error occurred while preparing and executing the XMERU.XMERU_CUST_INT_PKG.XMERU_CUST_INT_PROC API. Cause: java.sql.SQLException: ORA-20001: XMERU_CUSTOMER_API => Processing for Customer : Statement No : 13 Unhandled Oracle Exception Occured at 13-ORA-20001: XMERU_CUSTOMER_API => Processing for Customer : Statement No : 13 Unhandled Oracle Exception Occured at 13-ORA-20001: XMERU_CUSTOMER_API => Processing for Customer : Statement No : 13 Unhandled Oracle Exception Occured at 13 -ORA-06508: PL/SQL: could not find program unit being called ORA-06512: at "XMERU.XMERU_UTIL_PKG", line 652 ORA-06512: at "XMERU.XMERU_CUST_INT_PKG", line 1122 ORA-06512: at line 1 Check to ensure that the API is defined in the database and that

    ORA 06508 PL/SQ could not find program unit being called  in the BPEL
    Regards,
    Anuj

  • "Error: null" when compiling database adapter project...

    Hello...
    I started to work trough the Order Booking Tutorial...
    In the end there is a Database Adapter. When i follow this tutorial step by step... I got a "Error: null" at the end when compile and deploy this project...
    What das "Error: null" mean? In this relation...
    Connection to database is configured correctly..
    Thanks for any reply..

    Thanks a lot for fast answer...
    I do so, and i just run through the tutorial again... Now it works...
    Everything I changed except of restart jdev I change the line ( Oracle_Home\integration\orabpel\system\appserver\oc4j\j2ee\home\application-deployments\default\DbAdapter\oc4j-ra.xml )
    <config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.OraclePlatform"/>
    to
    <config-property name="platformClassName" value="oracle.toplink.internal.databaseaccess.DatabasePlatform"/>
    What does this line represent...?! So what is the platformClassName...
    Thanks a lot...
    Message was edited by:
    Optimizer

  • Can we split and fetch the records in Database Adapter

    Hi,
    I designed a Database Adapter to fetch the records from oracle Database. Some time, the Database Adapter need to fetch around 5000, or 10,000 records in single shot. In that case my BPEL process is choking and getting error as
    java.lang.OutOfMemoryError: Java heap space at java.util.Arrays.copyOf(Arrays.java:2882) at java.lang.AbstractStringBuilder.expandCapacity(AbstractStringBuilder.java:100)
    Could someone help me to resolve this?
    In Database Adapter can we split and fetch the records, if number of records more then 1000.
    ex. First 100 rec as one set and next 100 as 2nd set like this.
    Thank you.

    You can send the records as batches useing the debatching feature of db adapter. Refer documentation for implementation details.

  • Access to package through database adapter in Soa suite problems

    Hi,
    We have to build a bpel process that inserts data in Oracle EBS custom tables. We have to use Soa suite 10.1.3.4.0.
    In Oracle EBS we have made a custom api with a pl/sql record and 2 pl/sql tables as argument.
    When i made a database adapter, Jdeveloper made a wrapper package to translate to this custom api.
    Under the user apps this works fine.
    But I have the following problem: Our customer does not want us to connect to apps schema direct.
    So we made another user that is granted to the custom api , the wrapper api and the types for the wrapper api.
    I even created public synonyms for all these objects.
    But still runtime in BPEL console these errors occurs:
    An error occurred while preparing and executing the APPS.XXEPF_BPEL_VERWERK_ASSIGNMENT.XXEPF_INHUUR_ASS_BERICHT_PKG$ API. Cause: java.sql.SQLException: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    [Caused by: ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PLS-00306: wrong number or types of arguments in call to 'XXEPF_INHUUR_ASS_BERICHT_PKG$'
    ORA-06550: line 1, column 7:
    PL/SQL: Statement ignored
    When i update only the location in the wsdl:
         <jca:address location="eis/DB/inflex" UIConnectionName="eli_apps_ontw2"
              ManagedConnectionFactory="oracle.tip.adapter.db.DBManagedConnectionFactory" />
            </port>
    to "eis/DB/inflex2" the same proces runs fine.
    (inflex2 connects to apps and inflex2 to XXEBSBPELQ)
    Anybody an idea?
    Thanks, JD                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

    Are the types defined in the same way in both schema's?
    Vaguely remember that there was some restriction to use DB and EBS adapter that types had to be owned by the schema that was connecting to it. Please check the docs for this.
    hth

  • Insert Multiple records using Database adapter with Stored procedure func

    Hi All,
    I want to insert multiple records on a database using a stored procedure. I wanted to insert those records using a Database Adapter and the Database adapter should be invoked by a Mediator.
    Can somebody suggest me with ideas whether it can be acheived with OOB capabtilities in SOA suite or not?
    Thanks for your help in advance.
    Thanks,
    Shiv

    The use case you want to achieve is feature supported by the DBAdapter and it is possible to invoke the same from mediator.
    Please have a look at the oracle documentation and you should be able to get the necessary information.
    The below links should help you as well:
    http://download.oracle.com/docs/cd/E15523_01/integration.1111/e10231/adptr_db.htm
    http://blogs.oracle.com/ajaysharma/2011/03/using_file_adapter_database_adapter_and_mediator_component_in_soa_11g.html
    There are some video tutorials as well :)
    http://www.youtube.com/watch?v=dFldS-fDx70 This should also help
    Thanks,
    Patrick

  • First row is repeting while accessing multiple rows through Database adapte

    Hi,
    Iam using Database adapter in BPEL process to retrive the data from remote database.In Database adapter i have selected select operation and passing input parameter.
    Actually that adapter needs to return 10 different rows though output variable of that adapter.
    Its returing 10 rows but the first row is repeting 10 times.
    Iam not able to get 10 rows.only first row is repeting.
    Please help me in this.
    Thanks in Advance

    Hi Arik,
    I got the solution.The problem is primary key only.
    Your solution correct.
    Thank u very much for answering this question quickly.
    I have changed the primary key its working fine.
    Could u please explain me what is the problem with primay key exactly.
    Thanks in advance,
    Sreeni

  • Error retrieving data from database

    my problem is i cant connect my eclipse to database
    it display this error
    Error parsing data org.json.JSONException: Value <html><body><h2>Checking of type java.lang.String cannot be converted to JSONObject
    my apps can run correctly before...but last night i cant open it when want to retrieve any data from database
    can somebody help me?

    This doesn't seem to have anything to do with Eclipse, but I'd guess that a server-side error message is being returned a HTML rather than the JSON you expect.

  • Error Storing records in database

    Hi all,
    Can anybody help me.I am getting following error message when I try to store data into a MySql database using a JSP form.I am using Tomcat4.0 server.
    The error message which I get is as follows :
    java.lang.NoClassDefFoundError : org/apache/jasper/runtime/JspException
    at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:463)
    at org.apache.jsp.smthank$jsp._jspService(smthank$jsp.java:451)
    at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:107)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(JspServlet.java:201)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:381)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:473)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)
    at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:98)
    at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:176)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:172)
    at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:243)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:190)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.CertificatesValve.invoke(CertificatesValve.java:246)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardContext.invoke(StandardContext.java:2347)
    at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:180)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.valves.ErrorDispatcherValve.invoke(ErrorDispatcherValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:170)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:564)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:174)
    at org.apache.catalina.core.StandardPipeline.invokeNext(StandardPipeline.java:566)
    at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:472)
    at org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:943)
    at org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:458)
    at org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:551)
    at java.lang.Thread.run(Thread.java:534)
    I would appreciate if someone could let me know the cause of this
    error message.What could be the possible reason for this error ?
    thanks for any help in advance.
    savdeep

    Dear Martin,
    thanks for the reply.The same JSP is running fine on my local Tomcat
    server.I have tested it.
    does this means that there is some problem in the classpath of the server in which i am uploading my JSP ?
    It means, I have to contact the server administrator of the external server for getting the problem sorted out so that they can check the problem in their classpath.Please inform.
    waiting for ur response.
    thanks,
    savdeep.

  • Database Adapter -- Getting Error While Running

    Team
    i was getting the following error while working on database adapter..
    Faulted while invoking operation "GetSQDBAdapter" on provider "GetSQDBAdapter".
    - <messages>
    - <input>
    - <InvokeGetSeq_GetSQDBAdapter_InputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="GetSQDBAdapterInput_msg">
    <GetSQDBAdapterInput xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/GetSQDBAdapter"/>
    </part>
    </InvokeGetSeq_GetSQDBAdapter_InputVariable>
    </input>
    - <fault>
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    null
    </code>
    </part>
    - <part name="summary">
    <summary>
    file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_AdapterProcess_1.0_7dc192de7b9309bf2a5733e111075804.tmp/GetSQDBAdapter.wsdl [ GetSQDBAdapter_ptt::GetSQDBAdapter(GetSQDBAdapterInput_msg,GetSQDBAdapterOutputCollection) ] - WSIF JCA Execute of operation 'GetSQDBAdapter' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    ; nested exception is:
         ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-7060] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found.
    </summary>
    </part>
    - <part name="detail">
    <detail>
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found
    </detail>
    </part>
    </bindingFault>
    </fault>
    </messages>
    [2011/01/12 19:38:37]
    "{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    <code>
    null
    </code>
    </part>
    - <part name="summary">
    <summary>
    file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_AdapterProcess_1.0_7dc192de7b9309bf2a5733e111075804.tmp/GetSQDBAdapter.wsdl [ GetSQDBAdapter_ptt::GetSQDBAdapter(GetSQDBAdapterInput_msg,GetSQDBAdapterOutputCollection) ] - WSIF JCA Execute of operation 'GetSQDBAdapter' failed due to: Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    ; nested exception is:
         ORABPEL-11622
    Could not create/access the TopLink Session.
    This session is used to connect to the datastore. [Caused by: loc/DBConnection1DataSource not found]
    See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-7060] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.ValidationException
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found.
    </summary>
    </part>
    - <part name="detail">
    <detail>
    Exception Description: Cannot acquire data source [loc/DBConnection1DataSource].
    Internal Exception: javax.naming.NameNotFoundException: loc/DBConnection1DataSource not found
    </detail>
    </part>
    </bindingFault>
    i dont have much idea about BPEL, iam a newbie to it . Please help me in this.
    regards
    sridhar

    Hi Team,
    iam getting the following error while running the sample : *122.DBAdapter/File2Table.*
    Please help me out why it is giving the error. Did i miss any configuration ?
    i followed the configuration which is mentioned in the : File2Table/README.txt
    Invoke_1
    *[2011/02/05 22:37:30]*
    Faulted while invoking operation "merge" on provider "Database".
    - <messages>
    - <input>
    - <outputVariable>
    - <part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="PurchaseorderCollection">
    - <PurchaseorderCollection xmlns:top="http://xmlns.oracle.com/pcbpel/adapter/db/top/File2Table" xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/File2Table">
    - <Purchaseorder xmlns="">
    *<id/>*
    *<requestDate/>*
    - <billTo>
    *<address/>*
    *<city/>*
    *<id/>*
    *<name/>*
    *<phone/>*
    *<state/>*
    *<zip/>*
    *</billTo>*
    - <lineitemCollection>
    - <Lineitem>
    *<item/>*
    *<line/>*
    *<price/>*
    *<quantity/>*
    - <shipTo>
    *<address/>*
    *<city/>*
    *<id/>*
    *<name/>*
    *<phone/>*
    *<state/>*
    *<zip/>*
    *</shipTo>*
    *</Lineitem>*
    *</lineitemCollection>*
    - <shipTo>
    *<address/>*
    *<city/>*
    *<id/>*
    *<name/>*
    *<phone/>*
    *<state/>*
    *<zip/>*
    *</shipTo>*
    *</Purchaseorder>*
    *</PurchaseorderCollection>*
    *</part>*
    *</outputVariable>*
    *</input>*
    - <fault>
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    *<code>*
    -5150
    *</code>*
    *</part>*
    - <part name="summary">
    *<summary>*
    *file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_File2Table_1.0_89ae3479c7199e576774b60c48e8454b.tmp/DBOutbound.wsdl [ DBOutbound_ptt::merge(PurchaseorderCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: Could not create/access the TopLink Session.*
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *; nested exception is:*
    *     ORABPEL-11622*
    Could not create/access the TopLink Session.
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150.*
    *</summary>*
    *</part>*
    - <part name="detail">
    *<detail>*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150*
    *</detail>*
    *</part>*
    *</bindingFault>*
    *</fault>*
    *</messages>*
    Copy details to clipboard
    *[2011/02/05 22:37:30]*
    *"{http://schemas.oracle.com/bpel/extension}bindingFault" has been thrown.*
    - <bindingFault xmlns="http://schemas.oracle.com/bpel/extension">
    - <part name="code">
    *<code>*
    -5150
    *</code>*
    *</part>*
    - <part name="summary">
    *<summary>*
    *file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_File2Table_1.0_89ae3479c7199e576774b60c48e8454b.tmp/DBOutbound.wsdl [ DBOutbound_ptt::merge(PurchaseorderCollection) ] - WSIF JCA Execute of operation 'merge' failed due to: Could not create/access the TopLink Session.*
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *; nested exception is:*
    *     ORABPEL-11622*
    Could not create/access the TopLink Session.
    *This session is used to connect to the datastore. [Caused by: [POL-5150] access violation]*
    *See root exception for the specific exception. You may need to configure the connection settings in the deployment descriptor (i.e. $J2EE_HOME/application-deployments/default/DbAdapter/oc4j-ra.xml) and restart the server. Caused by Exception [TOPLINK-4002] (Oracle TopLink - 10g Release 3 (10.1.3.1.0) (Build 061004)): oracle.toplink.exceptions.DatabaseException*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150.*
    *</summary>*
    *</part>*
    - <part name="detail">
    *<detail>*
    *Internal Exception: java.sql.SQLException: [POL-5150] access violationError Code: -5150*
    *</detail>*
    *</part>*
    *</bindingFault>*
    Copy details to clipboard

  • How to use Database Adapter in BPEL

    I want to use Database Adapter in BPEL to transfer data from one table to other table and the data is still hold in the read table?
    I can find a example from http://download.oracle.com/docs/cd/B31017_01/integrate.1013/b28994/adptr_db.htm#BDCIGDCB.
    And the general design of my BPEL is as following:
    1. Add a "status" column to the read table. And alter the value of status column of all data in read table to "unreaded".
    2. Then create a empty BPEL (BPELAdapter) Project.
    3. Add a Database Adapter:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to datain.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose "Poll for New or Changed Records in a Table".
    (4) Then click Import Tables button, and choose the read table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6 and 7.
    (7) In step 8, choose "Update a Field in the [Datain] Table (Logical Delete)".
    (8) In step 9, configure Logical Delete Field to STATUS, configure Read Value to readed and configure Unread Value to unreaded.
    (9) Don’t do anything in step 10 and 11.
    4. Add a receive activity to connect to above database adapter.
    5. Add another Database Adapter. Then configure this database adapter service WSDL:
    (1) In step 1 of Adapter Configuration Wizard, configure the Service Name to dataout.
    (2) In step 2, configure the database connection.
    (3) In step 3, choose Perform an Operation on a Table (and all items under it).
    (4) Then click Import Tables button, and choose the write table.
    (5) In step 5, choose a column.
    (6) Don’t do anything in step 6, 7 and 8.
    6. Add a invoke activity to connect to above database adapter.
    7. Add a assign activity between the receive activity and invoke activity. And configure the assign copy operation.
    But after I deploy this BPEL project to the BPEL server and invoke this project, I get following error. Meanwhile, this BPEL don't take effect.
    The following exception occured while processing this request:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。
    How to resolve?
    Thanks,
    Melody

    Now, I can insert data into the table through Database Adapter.
    But still can't select data from the table through Database Adapter.
    Above error still happen when invoke the read database table with Database Adapter project:
    Can't find partnerLinkType 2.
    in
    "file:/D:/soft/SOASuite/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_BPELAdapter_1.0_e82210b05e4d3e997eed581d0d220293.tmp/_BPELAdapter.wsdl" WSDL to find PartnerLinkType "{http://xmlns.oracle.com/pcbpel/adapter/db/datain/datain_plt"。

  • Dynamic where clause in database adapter

    Hi
    I have requirement to develop SOA service for search page! The back-end query for search is required to have where clauses to be appended to SELECT statement dynamically depending upon search criteria the user selects!
    E.g. if user is searching employee from a portal! If employee selects mobile number of the employee, or joining date range or other criteria, then accordingly appropriate clauses are to be appended to SEARCH SELECT statement.
    Can we achieve same while implementing executing database query through database adapter from BPEL service?
    Thanks In Advance
    Priyadarshi 

    It is difficult using the standard database adapter approach. You may have to use nested sql queries.Following is a good example of the same.
    Neeraj Sehgal - Experimenting with SOA: Pass multiple parameters, dynamic query in Pure SQL in Database Adapter
    If your only problem in using this that you are hard coding the connection details  , you can use the datasource jndi name in the query. hence you will not be required to change your code when moving from one env to other env. You just have to take care of keeping the jndi name same in all the env.

  • Error while inserting record into database using BPEL

    I am trying to read from an xml file using a File Adapter and insert the values read into a database (by invoking a database adapter).
    I formed the BPEL Process in the following manner:
    1.Receive activity to receive the values read from the file
    2.Assign activiuty to assign the values read to the Database input variable
    3.Invoke activity to invoke the Database adapter.
    The process deploys fine although with a warning : Trying to assign incompatible types.
    But when the process is executed, it is faulting at the invoke stage.
    The error i am getting is :
    <messages><input><InvokeDBInput><part xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="EmployeesCollection"><EmployeesCollection xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/top/SaveToDB">
    <ns0:Employees xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/filetoDB D:\Smita\Software\jdevstudio10133\jdev\mywork\FileToDatabase\filetoDB\emp.xsd" xmlns="http://xmlns.oracle.com/filetoDB" xmlns:ns0="http://xmlns.oracle.com/pcbpel/adapter/db/top/SaveToDB">
         <Name>John Smith</Name>
         <Email>[email protected]</Email>
         <Department>Finance</Department>
         <Designation>Accountant</Designation>
         <Grade>5</Grade>
    </ns0:Employees>
    </EmployeesCollection>
    </part></InvokeDBInput></input><fault><bindingFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>null</code>
    </part><part name="summary"><summary>file:/D:/product/10.1.3.1/OracleAS_1/bpel/domains/default/tmp/.bpel_FileToDBTest1_3.5_1558cd90a5c3c9708cd747f1b3638054.tmp/SaveToDB.wsdl [ SaveToDB_ptt::insert(EmployeesCollection) ] - WSIF JCA Execute of operation 'insert' failed due to: Mapping Not Found Exception.
    The mapping [Name] for descriptor [class bpel___localhost_default_FileToDBTest1_3_5__MD5_02e1d439ab7f9c7430b64c2a306ee77c_.SaveToDB.Employees] could not be found. The input xml record had an element [Employees/Name].
    ; nested exception is:
         ORABPEL-11627
    Mapping Not Found Exception.
    The mapping [Name] for descriptor [class bpel___localhost_default_FileToDBTest1_3_5__MD5_02e1d439ab7f9c7430b64c2a306ee77c_.SaveToDB.Employees] could not be found. The input xml record had an element [Employees/Name].
    Make sure that the input xml is valid relative to the xsd and that the mapping exists in the Mappings.xml. If an old version of the descriptor without this mapping has been loaded by the database adapter, you may need to bounce the app server. If the same descriptor is described in two separate Mappings.xml files, make sure both versions include this attribute/mapping.
    </summary>
    </part><part name="detail"><detail>null</detail>
    </part></bindingFault></fault></messages>
    The xml and xsd files i have used are these:
    XML File (Employee.xml ) :
    <?xml version="1.0" encoding="UTF-8"?>
    <person xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/filetoDB D:\Smita\Software\jdevstudio1013\jdev\mywork\FileToDatabase\filetoDB\emp.xsd" xmlns="http://xmlns.oracle.com/filetoDB">
         <Name>John Smith</Name>
         <Email>[email protected]</Email>
         <Department>Finance</Department>
         <Designation>Accountant</Designation>
         <Grade>5</Grade>
    </person>
    Schema file : (emp.xsd) :
    <?xml version="1.0"?>
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://xmlns.oracle.com/filetoDB"
    xmlns="http://xmlns.oracle.com/filetoDB"
    elementFormDefault="qualified">
    <xs:element name="person">
    <xs:complexType>
    <xs:sequence>
         <xs:element name="Name" type="xs:string"/>
         <xs:element name="Email" type="xs:string"/>
         <xs:element name="Department" type="xs:string"/>
         <xs:element name="Designation" type="xs:string"/>
         <xs:element name="Grade" type="xs:integer"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element></xs:schema>
    can someone help me out?

    I figured where i was going wrong...added a transform activity after the assign activity to map the file input fieds to the database columns. Now it works fine.

  • Error while invoking custom API using Database Adapter

    Hi,
    I've a requirement where in I need to fetch the data returned by a recordtype of a custom API. I've implemented this by invoking the custom API using Database Adapter. I'm facing a problem while performing this.
    The custom API holds the signature as:
    PROCEDURE EMP_DET
    Argument Name Type      In/Out Default?
    P_DEPTNO NUMBER IN
    L_LINE_TBL TABLE OF RECORD OUT
    I've a schema with which it needs to be validated. It looks like:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema" xmlns:po="http://www.mycompany.com/ns/sales" targetNamespace="http://www.mycompany.com/ns/sales" elementFormDefault="qualified">          
    <element name="EmployeeDetails">          
    <complexType>               
    <sequence>                    
    <element name="EmpNo" type="integer"/>                    <element name="EName" type="string"/>                    <element name="Job" type="string"/>                    <element name="Mgr" type="integer"/>                    <element name="HireDate" type="date"/>                    <element name="Sal" type="decimal"/>                    <element name="Comm" type="decimal"/>               </sequence>          
    </complexType>     
    </element>
    </schema>
    I did a transformation to the above stated Emp.xsd with the xsd created for my custom API by the BPEL process. I could create the process and deploy successfully, but while invoking I get the following error. (I'm using BPM 10.1.3.1 with JDev 10.1.3.1)
    <remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="code"><code>6502</code>
    </part><part name="summary"><summary>file:/D:/OraBPEL/bpel/domains/default/tmp/.bpel_my_poc_1.0_16c5d0f7b937c780d27d8975726a15cb.tmp/emp_details.wsdl [ emp_details_ptt::emp_details(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'emp_details' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the SCOTT.BPEL_EMP_DETAILS.EMP_PKG$EMP_DET API. Cause: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at line 1
    [Caused by: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at line 1
    ; nested exception is:
         ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the SCOTT.BPEL_EMP_DETAILS.EMP_PKG$EMP_DET API. Cause: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at line 1
    [Caused by: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at line 1
    Check to ensure that the API is defined in the database and that the parameters match the signature of the API. Contact oracle support if error is not fixable.
    </summary>
    </part><part name="detail"><detail>
    Internal Exception: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at "SCOTT.BPEL_EMP_DETAILS", line 1
    ORA-06512: at line 1
    Error Code: 6502</detail>
    </part></remoteFault>
    Can someone let me know as to why I'm getting this error? Also lemme know if such an approach is valid to do, if not please suggest me alternate methods to do this.
    Thanks in advance,
    Gayathri

    The 'numeric or value error' is one we have seen many times. The problem has been identified and fixed. Refer to this thread for more information.
    Issue with DB Adapter - ORABPEL-11811

Maybe you are looking for

  • Apple pro speakers. Make them work D.I.Y.

    I picked up a pair of apple pro speakers today for five dollars. I didn't realize at the time the 2.5mm jack was just that. Needless to say it didn't plug in, nor could it. I'm an audio technician by trade an decided to delve into rewiring them to wo

  • KEEP POOL and count(*)

    Hello, I resized db_keep_cache_size and altered tables and indexes -> storage (buffer_pool keep). Now, I think, I have to select * from tables. Is command select count(*) from table an equivalent please ? If I run select count(*), Disk activity is on

  • Where Is File Stored On Computer When Using: File.applicationStorageDirectory

    When using the File.applicationStorageDirectory function, where is Adobe storing the program on an Windows/Apple computer? I know what it means, but I would just like to be able to verify for myself that the file is being created when I'm developing

  • Intermedia search in mixed language CAs

    Here is an additional problem, arising when using Intermedia on CA containing documents in multiple languages. If choosing not to declare the language, so using a default English definition even for non English documents, Intermedia will not be able

  • Error 150:30 shows on startup

    Adobe elements 8 (Am getting an error message on startup)