Issues with AQ Adapter in BPEL

Hi,
I am currently using SOA suite 10g and my BPEL process dequeues from AQ Adapter the message and continues with the BPEL Flow.Currently I have a PL/SQL block to enqueue into the custom AQ Table.I see that after I enqueue the messages are present in the queue table and after sometime it disapppears.But the instance is not created in BPEL console for the record created in the custom queue table.Sometimes the BPEL instance is created in BPEL console.Kindly let me know your inputs on where these messages must be disappearing without showing up in the BPEL Console?
Also I have another clarification:Is there any setting in BPEL wherein I can dequeue only few threads from the queue to prevent overloading BPEL from creating many concurrent threads at the same time.
Thanks & Regards,
Anand

Anand,
Your transaction is rolling back because of some fault with the PLSQL call that you are making.
1. Try to put a catch or catch all block - that catches the fault instead of rolling back the instance.
2. You do not need a rejectMessageHandler in this case because the message will already be in Invoke Message table. You should see the message in Recovery(Invokes) in these scenarios and you should be able to recover from there.
Regarding your query regarding threads:
By default there will be only one thread per node that dequeues message from queue, but the scope of that threads ends once the message is placed in invoke message table. Once the message reach invoke message - It's the Invoker thread (Part of Invoke Thread Pool) who does the processing(Again there is a in memory queue in middle, but for the high level, I am ignoring it).
If you really wanted to single thread it, Make the Dequeue synchronous to the queue(by setting deliverypersistpolicy to off.immediate) and set adapter.aq.dequeue.threads to 1.
Hope it helps!!

Similar Messages

  • Issue with Apps adapter for Create_Cust_Account API

    Hi ,
    I need to invoke this package from apps adapter in BPEL(10.1.3.5).
    Create Customer: HZ_CUST_ACCOUNT_V2PUB. create_cust_account. This is a Over loaded procedure. Look for the Procedure with these Parameters.
    PROCEDURE create_cust_account (
    p_init_msg_list IN VARCHAR2:= FND_API.G_FALSE,
    p_cust_account_rec IN CUST_ACCOUNT_REC_TYPE,
    p_organization_rec IN HZ_PARTY_V2PUB.ORGANIZATION_REC_TY
    PE,
    p_customer_profile_rec IN HZ_CUSTOMER_PROFILE_V2PUB.CUSTOMER
    PROFILEREC_TYPE,
    p_create_profile_amt IN VARCHAR2:= FND_API.G_TRUE,
    x_cust_account_id OUT NUMBER,
    x_account_number OUT VARCHAR2,
    x_party_id OUT NUMBER,
    x_party_number OUT VARCHAR2,
    x_profile_id OUT NUMBER,
    x_return_status OUT VARCHAR2,
    x_msg_count OUT NUMBER,
    x_msg_data OUT VARCHAR2
    But I’m getting the following error,
    An error occurred while running Jpublisher.missing method
    · I’ve tried with Database adapter. But in the runtime I’m not able to pass oracle apps initialization parameter in spite of using transaction and idempotent property in partnerlink.
    · Then I’ve tried to invoke fnd_global.apps_initialize first then call the package from database adapter, but it fails again, apparently its not able to execute both DBadapter in same database session although they are in same BPEL transaction.
    When I’m passing the initialization parameters in adapter created wrapper procedure then its working fine and customer got created.
    Please let me know where I’m going wrong or issue with apps adapter.
    It’s urgent …
    Thanks in Advance,
    Shreekanta

    Thanks for the reply.
    I'm able to execute the BPEL flows using DB adapter in same session and customer got created.
    But I'm wondering why I cant invoke the API using Apps adapter though its standard one.
    wsdl file is not getting generated as the adapter wizard not get completed.
    Do u have any idea why its giving ' error occurred while running Jpublisher.missing method' error?should I conclude that apps adapter does not support overloaded procedure.

  • Issue with DB Adapter involving multiple tables

    Hi,
    Am facing an issue with DB Adapter with multiple tables. Here are the details.
    I have 4 tables. Header, Details,Products and Devices. The relationship is defined as follows:
    Header has 1:M relationship with Details.
    Details has 1:M relationship with Products.
    Products has 1:M relationship with Devices.
    I want to select the details from all the tables for a particular header_id and detail_id. Defined 2 parameters and query is created with parameters.
    SELECT DISTINCT t0.FILE_NAME, t0.UNIQUE_SEQUENCE_NUMBER, t0.HEADER_COUNT, t0.TOTAL_DEVICE_COUNT, t0.FILE_DATE, t0.FILE_SEQ_NUMBER, t0.DEVICE_COUNT, t0.PHONE_TYPE, t0.PHONE_OWNERSHIP, t0.TRANSACTION_TYPE, t0.PURCHASE_ORDER_NUMBER, t0.CUSTOMER_ID, t0.CUSTOMER_DEST_SUFFIX, t0.LOCATION_DESTINATION, t0.MASTER_FACTORY_ORDER, t0.MASTER_FACTORY_ORDER_LINE_NUM, t0.ENT_ORDER_NUMBER, t0.DELIVERY_IDENTIFICATION_NUM, t0.UEDF_REVISION_NUM, t0.STATUS, t0.INBOUND_BPEL_INSTANCE_ID, t0.ERROR_DESCRIPTION, t0.INBOUND_FILE_VERSION, t0.CREATED_BY, t0.CREATION_DATE, t0.UPDATED_BY, t0.UPDATE_DATE FROM EDF_HEADER_STG_INT t0, EDF_DETAILS_STG_INT t1 WHERE (((t0.FILE_NAME = #file_name) AND (t1.EDF_SERIAL_TYPE = #prod_type)) AND (t1.UNIQUE_SEQUENCE_NUMBER = t0.UNIQUE_SEQUENCE_NUMBER))
    I expect the DB Adapter to retrieve the records for the parameters passed. i.e only those records from details table which matches with the parameter I passes in (t1.EDF_SERIAL_TYPE = #prod_type) . But I see that the DB Adapter retrieves all records from the details table for a particular unique_sequence_number(unique_sequence_number is primary key for headers table and foreign key for details table). Could you pls tell me how can I retrieve only selected records from the details table?
    Regards,
    Meenu

    Yes. When I run this query in DB, I get one record . While defining DB Adapter, I have imported 4 tables and also defined the relationship between the tables. In my case, column unique sequence number is primary key of headers table and foreign key of details table.The above select query is generated by the DB Adapter for the parameters I have passed in.
    My data is as follows:
    Headers table:
    file_name uniq_seq_num
    file_1.xml 220
    Details table
    product_id unique seq num edf_prod_type
    111 220 A
    112 220 B
    113 220
    Now, I call DB Adapter with parameters 'file_1.xml' (file_name)and 'A'(prod_type). I expect the DB adapter to retrieve only one record with product_id 111 in the detailscollection. But I see that the adapter retrieves all records from the details table without considering the value of prod_type.
    Edited by: user13276819 on Mar 19, 2012 6:32 AM

  • Issue with MQ adapter

    Hi,
    I am facing the following issue when deploying a simple BPEL process with a MQ adapter - dequeue operation.
    I am using MQ 6.0 (trial) and SOA Suite 10.1.3.4 and also followed configuration steps as per Adapter Doc. Both MQ and SOA suite is installed on same machine.
    Error thrown is:
    bpel_ReadMQ_1.0.jar failed to deploy. Exception message is:  ORABPEL-09903
    Could not initialize activation agent.
    An error occured while initializing an activation agent for process "ReadMQ", revision "1.0".
    Please ensure that the activation agents are configured correctly in the bpel deployment descriptor (bpel.xml).
    oracle.tip.adapter.fw.agent.jca.JCAActivationAgent: ORABPEL-12517
    AdapterFrameworkImpl::endpointActivation - Endpoint Activation Error.
    +The Resource Adapter MQSeries Adapter was unable to activate the endpoint :{OpaqueSchema=false, QueueName=SourceQueue, setSecondaryQueueMgrName=QM_b6_4f_289_ltp} due to the following reason: ORABPEL-12532+
    Error while setting JCA WSDL Property.
    Property setSetSecondaryQueueMgrName is not defined for oracle.tip.adapter.mq.inbound.ActivationSpecImpl
    Please verify the spelling of the property.
    Please correct the reported issue and redeploy the BPEL process.
    at com.collaxa.cube.engine.core.BaseCubeProcess.startAllActivationAgents(BaseCubeProcess.java:428)
    at com.collaxa.cube.engine.deployment.DeploymentManager.activateDefaultRevision(DeploymentManager.java:1733)
    at com.collaxa.cube.engine.deployment.DeploymentManager.setDefaultRevision(DeploymentManager.java:1691)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deployProcess(DeploymentManager.java:950)
    at com.collaxa.cube.engine.deployment.DeploymentManager.deploySuitcase(DeploymentManager.java:792)
    at com.collaxa.cube.ejb.impl.BPELDomainManagerBean.deploySuitcase(BPELDomainManagerBean.java:455)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:585)
    at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    at com.evermind.server.ThreadState.runAs(ThreadState.java:693)
    at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    at DomainManagerBean_RemoteProxy_4bin6i8.deploySuitcase(Unknown Source)
    at com.oracle.bpel.client.BPELDomainHandle.deploySuitcase(BPELDomainHandle.java:319)
    at com.oracle.bpel.client.BPELDomainHandle.deployProcess(BPELDomainHandle.java:341)
    +at deployHttpClientProcess.jspService(_deployHttpClientProcess.java:376)+
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:462)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.security.jazn.oc4j.JAZNFilter$1.run(JAZNFilter.java:400)
    at java.security.AccessController.doPrivileged(Native Method)
    at javax.security.auth.Subject.doAsPrivileged(Subject.java:517)
    at oracle.security.jazn.oc4j.JAZNFilter.doFilter(JAZNFilter.java:414)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:623)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:595)
    Please help.
    Regards,
    AP
    Edited by: ARPL on Mar 29, 2010 6:01 AM
    Edited by: ARPL on Mar 29, 2010 6:02 AM

    Can you increase the logging? I just wonder if you can get any more information.
    On the surface it looks like you are sending duplicate messges to the adapter? SOA Suite likes the group id / correlation id to be unique every time, otherwise it thinks it has processed that message.
    If you restart SOA Suite does one message get read then stop, if so then this looks to be the issue.
    What you need to do is populate the group id and correclation id with unique values every time.
    To increase the logging, in BPEL Configuration increase the default.collaxa.cube.activation to debug.
    cheers
    James

  • Issues with FTP adapter

    Hello,
    I m facing issues using the FTP adapter. I am using 10.1.3.1 standalone installed in my desktop.
    1) The FTP adapter doesnt poll continuously for the files. It dies off as soon the folder is empty. If there are incoming files after sometime, the BPEL process fails to pick them. I created an empty BPEL process that has a recieve activity from an FTP adapter as partner link
    2) The files are fetched and deleted but are never archived, despite setting the archive files. Can we not archive those files in another folder of same FTP server ?
    3) Sometimes, the files are deleted, but there is no activity or process shown in the BPEL console.
    Can you please help me with these issues
    Thanks
    Harinath Gandhi

    Are you able to upgrade to 10.1.3.3. A lot of issues with adapters are solved in this release.
    Marc
    http://orasoa.blogspot.com

  • Satellite P300-1AN - Touchpad issue with AC adapter

    I've a Satellite P300-1AN notebook and since the beginning (two weeks)
    I have a touchpad issue: it is not immediately responsive and the pointer trembles when touching the pad. Very often it freezes for just one or two seconds.
    This is VERY annoying. A USB mouse works perfectly.
    I tried reinstalling ALPS drivers, tried Synaptics ones, tried just Windows Vista drivers: no way.
    Now I have found the reason: this issue is present only when the notebook is powered by AC adapter.
    With battery the touchpad is perfect.
    I contacted Toshiba Service and thay said that they won't change the AC adapter if I don't try before a complete system restore!
    Isn't it simpler just try with a new adapter and only then, if the problem persists, try more drastic procedures?
    Has anyone had this same issue?

    > I contacted Toshiba Service and thay said that they won't change the AC adapter if I don't try before a complete system restore! Isn't it simpler just try with a new adapter and only then, if the problem persists, try more drastic procedures?
    The point is that your notebook should be always checked using the Toshiba factory configuration.
    Why? Because the ASP wants to be sure that this issue is not related to a software problem (compatibility issue with 3rd party applications). The software issues are not covered by warranty.
    Furthermore the ASP will always recover the notebook before checking any hardware parts for a malfunction. Therefore you should always backup your data from the HDD before you will send the notebook for checking.
    I would recommend to reinstall the OS using the Toshiba recover disk and then check if the issue would appears.
    If yes then you can contact the ASP again and could provide all details which are necessary for an technician.
    Bye

  • Issue with minidisplay adapter and wifi

    I'm not sure if anyone else is having this issue, but my gf is having an issue when she connects her 13" macbook pro to her monitor via the minidisplay dvi adapter. When she connects it her wifi disconnects and has no internet access at all, but when she disconnects it the internet comes right back on. She's using a generic adapter but what would that have to with the wifi? She uses a linksys G router and is using 10.6.1

    This thread caught my attention - because since switching last week from a late '06 Macbook to the Macbook Pro 13", my Wifi performance at home has gotten slow and unreliable.
    I'm using the Apple MiniDP-DVI adapter, connected to a 24" Dell monitor, which has worked great for a few years on my white Macbook. My base station is a Linksys WRTSL54GS, located about 20 feet away from my desk.
    So, I tried some speed tests with and without the DVI. Performance with the adapter connected is terrible, disconnected it's perfect. Further testing shows that positioning matters.
    When the adapter is turned back 90 degrees, leading the monitor cable towards the back of my desk, Wifi performance is bad. When I turn the adapter so it sticks straight out the left side of the Macbook Pro, performance is normal.
    This is a little weird, but an acceptable workaround for me.

  • Issue With Apps Adapter JDev 11.1.1.3

    Hi ,
    We are facing some issue with Oracle Apps Adapter with Jdev 11.1.1.3. The wrappers for PLSql APIs were not properly generated.
    If anyone having such issue/solution pls share the same.
    Thanks In Adv
    Venkata Madhu

    Hi Anuj,
    I sent email to ur official id with the issue details. 1 query i have here, Can i generate wrapper using 10g Adapter and consume in OSB 11.1.1.3?.
    Also some funny issues we are facing with API's. If the API create/modified, immediately we couldn't able to generte the wrapper if generate also, the response is not in xsd defined format.
    But if we re-generate the wrapper after sometime, it work with no issues. Don't why.
    Regards
    Venkata Madhu

  • Classloader issue with resource adapter and webservice

    The following applications are planned to be deployed on the server.
    1.My-shared-lib.ear (J2EE shared library).
    2.My-Service-ear.ear (Service)
    3.My-Resource-Adapter.rar
    The My-shared-lib.ear contains a war which has 3rd Party jars.
    The My-Service-ear.ear contains the service classes and refers to the My-shared-lib.ear using a library relationship. In our case, it refers to spring, Hibernate and related jars.
    The My-Resource-Adapter.rar contains the Resources Adapters. In this case it contains the Spring jars.
    Points on Setup
    1.The configuration does not specify any jars in the classpath.
    2.There are no 3rd party jars in the ext folder.
    *2.Issue Description*
    Issue while starting the Service EAR.*
    The development setup has an application server that has My-shared-lib.ear and My-Service-ear.ear deployed. This works fine.
    The proposed deployment architecture mandates that these applications be deployed on a server where the My-Resource-Adapter.rar is already running. We can deploy & start My-shared-lib.ear . However, when we try to deploy and start My-Service-ear.ear, it fails to start with the error. The detailed exception is found in Appendix A.
    Error Message:
    java.lang.NoClassDefFoundError: org/hibernate/ejb/HibernatePersistence
    *3.Options tried*
    1.Place all the required jars in the .rar.
    We placed all the 3rd party jars required for the My-Service-ear.ear in the My-Resource-Adapter.rar file. When we deployed all the 3 applications, all applications including the My-Service-ear.ear were deployed and started as well.
    2.Place all the required jars in the Service ear.
    We placed all the 3rd party jars required for the My-Service-ear.ear in the My-Service-ear.ear file with the <prefer-web-inf-classes>true</prefer-web-inf-classes>. When we deployed all the 3 applications, all applications including the My-Service-ear.ear were deployed and started as well.
    3.Altering deployment order.
    The deployment order was altered with a higher preference being given to the My-Service-ear.ear. When we deployed all the 3 applications, the application My-Service-ear.ear was deployed but failed to start giving the same exception.
    *4.Analysis*
    1.The spring jar though available in the library ear is being loaded from the .rar application by the classloader.
    2.The above point means that the library reference being provided in the My-Service-ear.ear does not seem to have any impact.
    3.In the 3rd scenario we observed that when the spring is removed from the .rar, it gets loaded from the My-shared-lib.ear. However when it tries to load Hibernate related classes, it fails.
    *5.Summary*
    Our understanding is that all the applications run within their own Classloaders. If classes are not found within the applications, then they should be looking at the Application Server. But here we see that they are referring to the classes in ‘.rar’ file. Hence we are unable to understand this issue. The above problem has workarounds. However, these options are not allowed as per the requirement. The requirement is that the application should run independent of the’ .rar’. Is there a better approach? Are we missing any configuration?
    Edited by: user8575867 on Oct 13, 2010 11:41 PM

    This thread caught my attention - because since switching last week from a late '06 Macbook to the Macbook Pro 13", my Wifi performance at home has gotten slow and unreliable.
    I'm using the Apple MiniDP-DVI adapter, connected to a 24" Dell monitor, which has worked great for a few years on my white Macbook. My base station is a Linksys WRTSL54GS, located about 20 feet away from my desk.
    So, I tried some speed tests with and without the DVI. Performance with the adapter connected is terrible, disconnected it's perfect. Further testing shows that positioning matters.
    When the adapter is turned back 90 degrees, leading the monitor cable towards the back of my desk, Wifi performance is bad. When I turn the adapter so it sticks straight out the left side of the Macbook Pro, performance is normal.
    This is a little weird, but an acceptable workaround for me.

  • Interpreting Multibyte data with File Adapter in BPEL Process

    Hi all,
    I am trying to interpret multibyte data file using native schema file.The file is defined as below:-
    <?xml version="1.0" encoding="UTF-8" ?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/ftpinbound"
    xmlns:tns="http://TargetNamespace.com/ftpinbound"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="MS932" nxsd:stream="bytes" nxsd:version="NXSD">
    <xsd:element name="root">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="Header" minOccurs="1" maxOccurs="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RecType" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5"/>
    <xsd:element name="OperMode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1"/>
    <xsd:element name="SendSideCompCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="RecvSideCompCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="BPID" type="xsd:string" nxsd:style="fixedLength" nxsd:length="8"/>
    <xsd:element name="InfoTypeCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4"/>
         <xsd:element name="CreateDate" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="SendSideSysCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="RecvSideSysCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="Preliminary" type="xsd:string" nxsd:style="fixedLength" nxsd:length="458"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Lines" minOccurs="1" maxOccurs="unbounded" nxsd:style="array" nxsd:arrayTerminatedBy="(">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="DataProcessNo" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5"/>
    <xsd:element name="InfoClassCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4"/>
    <xsd:element name="DataCreateDate" type="xsd:string" nxsd:style="fixedLength" nxsd:length="6"/>
    <xsd:element name="SellerCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="OrderRecvPartyCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="PODeptCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="8"/>
    <xsd:element name="ProductNo" type="xsd:string" nxsd:style="fixedLength" nxsd:length="19"/>
    <xsd:element name="CorrectionCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1"/>
    <xsd:element name="SupplyClass" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1"/>
    <xsd:element name="Buyer" type="xsd:string" nxsd:style="fixedLength" nxsd:length="7"/>
    <xsd:element name="MatStdDimension" type="xsd:string" nxsd:style="fixedLength" nxsd:length="20"/>
    <xsd:element name="Package" type="xsd:string" nxsd:style="fixedLength" nxsd:length="7"/>
    <xsd:element name="Remarks" type="xsd:string" nxsd:style="fixedLength" nxsd:length="30"/>
    <xsd:element name="ConTaxClass" type="xsd:string" nxsd:style="fixedLength" nxsd:length="1"/>
    <xsd:element name="SuppDeptCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="8"/>
    <xsd:element name="SuppProdName" type="xsd:string" nxsd:style="fixedLength" nxsd:length="30"/>
    <xsd:element name="SuppProdNameCode" type="xsd:string" nxsd:style="fixedLength" nxsd:length="25"/>
    <xsd:element name="SuppUnit" type="xsd:string" nxsd:style="fixedLength" nxsd:length="3"/>
    <xsd:element name="SuppUnitPrice" type="xsd:string" nxsd:style="fixedLength" nxsd:length="13"/>
    <xsd:element name="PODeptName" type="xsd:string" nxsd:style="fixedLength" nxsd:length="20"/>
    <xsd:element name="Buyer_K" type="xsd:string" nxsd:style="fixedLength" nxsd:length="14"/>
    <xsd:element name="MatStdDim_K" type="xsd:string" nxsd:style="fixedLength" nxsd:length="40"/>
    <xsd:element name="Remarks_K" type="xsd:string" nxsd:style="fixedLength" nxsd:length="60"/>
    <xsd:element name="SuppDeptName_K" type="xsd:string" nxsd:style="fixedLength" nxsd:length="40"/>
    <xsd:element name="SuppProdName_K" type="xsd:string" nxsd:style="fixedLength" nxsd:length="60"/>
    <xsd:element name="PODeptName_K" type="xsd:string" nxsd:style="fixedLength" nxsd:length="40"/>
    <xsd:element name="CountingMTHs" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4"/>
    <xsd:element name="SuppProdNvAmount" type="xsd:string" nxsd:style="fixedLength" nxsd:length="10"/>
    <xsd:element name="SupProdSingleItem" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="SupProdWIP" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    <xsd:element name="SupProdSpoiledQnty" type="xsd:string" nxsd:style="fixedLength" nxsd:length="12"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    <xsd:element name="Trailer" minOccurs="1" maxOccurs="1">
    <xsd:complexType>
    <xsd:sequence>
    <xsd:element name="RecType" type="xsd:string" nxsd:style="fixedLength" nxsd:length="4"/>
    <xsd:element name="NoOfRec" type="xsd:string" nxsd:style="fixedLength" nxsd:length="5"/>
    <xsd:element name="Preliminary" type="xsd:string" nxsd:style="fixedLength" nxsd:length="526"/>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:sequence>
    </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    This schema works fine and data is produced as expected when I am using "chars" as the stream option.However I can't use "chars" as the stream option and need "bytes" as the stream option. However when mentinong "bytes" option the following exception is generated:
    Charset "MS932" not supported.
    Check the error stack and fix the cause of the error. Contact oracle support if error is not fixable.
         at oracle.tip.pc.services.translation.xlators.nxsd.ByteReader.<init>(ByteReader.java:87)
         at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.createScanner(NXSDTranslatorImpl.java:800)
         at oracle.tip.pc.services.translation.xlators.nxsd.NXSDTranslatorImpl.translateFromNative(NXSDTranslatorImpl.java:440)
         at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork.java:504)
         at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWork.java:266)
         at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:179)
         at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
         at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
         at java.lang.Thread.run(Thread.java:595)
    Please let me know can I at all read a file in byte format with File adapter using a desired encoding style?This is littile urgent.
    Thanks

    Hi James,
    Yeah I tried that too and it gave the same error. And I need to encode with MS932 only since the data will contain Japanese characters and this encoding is identified both by windows and non-windows OS.
    Please can you advice what can I do since the requirement is urgent.
    Thanks

  • Issue with batch load into bpel through MQ    Urgent

    Hi Guys,
    I am stuck with an issue and need your help and suggestions.
    I am working in a project where there is a synch bpel process in which there is a MQ adapter which picks up messages from a source queue which is populated by an external application. This bpel process calls another bpel process in which there is a sychronous call to an external webservice which updates the payload and bpel puts that payload in an output queue.
    The input queue is continuously populated with a lost of messages like - 100k messages in 1 hr (in 2 or 3 intervals) and MQ picks up all the messages even if they are 100k in a second and gives it to bpel.
    Everything runs fine until the external webservice which is called is up and running or it is completely down. But the issue is sometimes when the external webservice is up but is unresponsive for sometime(it does garbage collection or dump or something which we don't have control on) all the instances in bpel are in running and pending state until the response is given. And in this mean time MQ adapter still polls the source queue and gives it to bpel. so what is happening is the number of pending req's are getting increased by very percentage and soa is becoming unstable. Eventually when the external service is up all these instances are completed but will take long time to do it.
    ---> So the solutions which came to me was, block MQ adapter from sending messages to bpel when the external service is doing the garbage collection, but we dont seem to have any control of that sort on MQ adapter. if any please suggest.
    There are 2 prop for MQ adapter -- inboundthreadcount and delaybetweenmessages which can be tried out but it will effect the overall throughput which is not desired.
    ---> Another was we tried to make the call to the external service asynch but we cannot do that as the external service is a synch process and we cannot call it ashyncronously.
    ---> The timeout value for the external webserive is 10sec but the issue here is when it is busy doin some other work, it is not taking the input from bpel and so not able to give timeout fault. And also the we are not getting a remote fault as the service is reachable and active.
    ---> There is one other property which is SyncMaxWaitTime in Oracle BPEL properties in enterprise console where we can set the max wait time for an instance to wait to get the reponse or it will time out at bpel level and that can be handled in bpel and continued with the flow. the default value is 45sec and by decreasing it we may achieve gud results but setting it at domain level will take effect to all the composites (and i dnt think client will be ok with it).
    (If there is any property which we can set at composite level then Please suggest)
    (One thing is we do not have control on the external webservice or the application which puts messages into the source queue.)
    --> Another thought was to put a notification to the prod support when the pending requests are getting higher to shut off the first bpel process so that we are not accepting any more messages from the queue so that SOA is stable. but that doesnt seem feasible as after an e-mail goes to the support they need to instantly shut off otherwise it cause the same issue and they have to be available all the time to monitor it.
    Please suggest your solutions guys...it will be very helpful for me.... thx all

    Hi Guys,
    I am stuck with an issue and need your help and suggestions.
    I am working in a project where there is a synch bpel process in which there is a MQ adapter which picks up messages from a source queue which is populated by an external application. This bpel process calls another bpel process in which there is a sychronous call to an external webservice which updates the payload and bpel puts that payload in an output queue.
    The input queue is continuously populated with a lost of messages like - 100k messages in 1 hr (in 2 or 3 intervals) and MQ picks up all the messages even if they are 100k in a second and gives it to bpel.
    Everything runs fine until the external webservice which is called is up and running or it is completely down. But the issue is sometimes when the external webservice is up but is unresponsive for sometime(it does garbage collection or dump or something which we don't have control on) all the instances in bpel are in running and pending state until the response is given. And in this mean time MQ adapter still polls the source queue and gives it to bpel. so what is happening is the number of pending req's are getting increased by very percentage and soa is becoming unstable. Eventually when the external service is up all these instances are completed but will take long time to do it.
    ---> So the solutions which came to me was, block MQ adapter from sending messages to bpel when the external service is doing the garbage collection, but we dont seem to have any control of that sort on MQ adapter. if any please suggest.
    There are 2 prop for MQ adapter -- inboundthreadcount and delaybetweenmessages which can be tried out but it will effect the overall throughput which is not desired.
    ---> Another was we tried to make the call to the external service asynch but we cannot do that as the external service is a synch process and we cannot call it ashyncronously.
    ---> The timeout value for the external webserive is 10sec but the issue here is when it is busy doin some other work, it is not taking the input from bpel and so not able to give timeout fault. And also the we are not getting a remote fault as the service is reachable and active.
    ---> There is one other property which is SyncMaxWaitTime in Oracle BPEL properties in enterprise console where we can set the max wait time for an instance to wait to get the reponse or it will time out at bpel level and that can be handled in bpel and continued with the flow. the default value is 45sec and by decreasing it we may achieve gud results but setting it at domain level will take effect to all the composites (and i dnt think client will be ok with it).
    (If there is any property which we can set at composite level then Please suggest)
    (One thing is we do not have control on the external webservice or the application which puts messages into the source queue.)
    --> Another thought was to put a notification to the prod support when the pending requests are getting higher to shut off the first bpel process so that we are not accepting any more messages from the queue so that SOA is stable. but that doesnt seem feasible as after an e-mail goes to the support they need to instantly shut off otherwise it cause the same issue and they have to be available all the time to monitor it.
    Please suggest your solutions guys...it will be very helpful for me.... thx all

  • Dequeue issue with MQ adapter but can enqueue

    I was trying to do a POC for MQ adapter. Even though I was able to write messages into a MQ queue, I could not read from MQ queue. I got the message below in the domain.log.
    <2009-06-05 16:57:48,343> <ERROR> <default.collaxa.cube.activation> <MQSeries Adapter::Inbound>
    ORABPEL-13080
    Error.
    "[QueueProcessor] could not get message from Queue :TEST.EPOS.QUEUE"
    Contact oracle support if error is not fixable.
    at oracle.tip.adapter.mq.inbound.QueueProcessor.dequeueMessage(QueueProcessor.java:598)
    at oracle.tip.adapter.mq.inbound.QueueProcessor.run(QueueProcessor.java:172)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:272)
    at java.lang.Thread.run(Thread.java:595)
    Caused by: com.ibm.mq.MQException: MQJE001: Completion Code 2, Reason 2394
    at com.ibm.mq.MQQueue.get(MQQueue.java:1012)
    at oracle.tip.adapter.mq.inbound.QueueProcessor.dequeueMessage(QueueProcessor.java:587)
    ... 4 more
    The steps I have done are
    1.     Created a JNDI entry for MQ Adapter in oc4j_ra.xml (Channel, Queue Manager, Host are all correct)
    2.     Restarted the oc4j_soa only from front end.
    3.     Created a BPEL process to write message to a particular MQ. This was working. I checked the message using a java client.
    4.     Created a BPEL process to receive the message from the same queue (all details were same as earlier one). No instance of the BPEL process instantiated.
    I tried to dequeue the message using a java client and it was working. I was getting MQ reason number 2394. I am not sure about the reason. May be you have faced the same problem. Do you have any idea or suggestion?

    Can you increase the logging? I just wonder if you can get any more information.
    On the surface it looks like you are sending duplicate messges to the adapter? SOA Suite likes the group id / correlation id to be unique every time, otherwise it thinks it has processed that message.
    If you restart SOA Suite does one message get read then stop, if so then this looks to be the issue.
    What you need to do is populate the group id and correclation id with unique values every time.
    To increase the logging, in BPEL Configuration increase the default.collaxa.cube.activation to debug.
    cheers
    James

  • Urgent : TimeOut/DeadLock issue with DB Adapter

    Hi,
    I have a DB adapter that executes a Proc in Sybase.[The proc takes 5-10 minutes based on the load]
    There is another DB adapter after this which fetches the data from DB based on the completion of previous proc.
    This Bpel is called from another Bpel in sync mode(inside flow , i have set the nonblockinginvoke = true)
    I have set the JTA properties, Soa-infra EJB properties , MaxsyncWait , statement timeout .
    Still getting this issue when running concurrent requests, single request works fine.
    My env is a clustered env.
    Please help.
    Thanks !!

    Yes. When I run this query in DB, I get one record . While defining DB Adapter, I have imported 4 tables and also defined the relationship between the tables. In my case, column unique sequence number is primary key of headers table and foreign key of details table.The above select query is generated by the DB Adapter for the parameters I have passed in.
    My data is as follows:
    Headers table:
    file_name uniq_seq_num
    file_1.xml 220
    Details table
    product_id unique seq num edf_prod_type
    111 220 A
    112 220 B
    113 220
    Now, I call DB Adapter with parameters 'file_1.xml' (file_name)and 'A'(prod_type). I expect the DB adapter to retrieve only one record with product_id 111 in the detailscollection. But I see that the adapter retrieves all records from the details table without considering the value of prod_type.
    Edited by: user13276819 on Mar 19, 2012 6:32 AM

  • Issue with DB Adapter - ORABPEL-11811

    Hi,
    I'm invoking a custom API using Db adapter and the process throws ORABPEL-11811 error at runtime. As per the error, I'd verified if the value passed is of incorrect datatype and its not so. I'm able to get the valid response if I test the custom API from an SQL prompt for the same input I pass in the BPEL process.
    The error goes as this:
    file:/app/orclas/esbdev03/bpel/domains/otm/tmp/.bpel_mytestpos_1.1_31f21ec7a8445e747f7c896429362b74.tmp/mydba.wsdl [ mydba_ptt::mydba(InputParameters,OutputParameters) ] - WSIF JCA Execute of operation 'mydba' failed due to: Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.BPEL_MYDBA.XX_ONT_POS_SHIP_CONF_PKG$OD_P API. Cause: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "APPS.BPEL_MYDBA", line 1
    ORA-06512: at "APPS.BPEL_MYDBA", line 1
    ORA-06512: at line 1
    [Caused by: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "APPS.BPEL_MYDBA", line 1
    ORA-06512: at "APPS.BPEL_MYDBA", 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 APPS.BPEL_MYDBA.XX_ONT_POS_SHIP_CONF_PKG$OD_P API. Cause: java.sql.SQLException: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "APPS.BPEL_MYDBA", line 1
    ORA-06512: at "APPS.BPEL_MYDBA", line 1
    ORA-06512: at line 1
    [Caused by: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "APPS.BPEL_MYDBA", line 1
    ORA-06512: at "APPS.BPEL_MYDBA", 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.
    I'm using JDev 10.1.3.1.0. Can someone point out if this a valid error or a bug which needs a patch to be applied. I did verify for a similar issue in the forum but wasnt able to get a resolution to mine.
    Thanks in advance,
    Gayathri

    Hi,
    Even after changing the OUT parameters to IN OUT parameters we encounter the same error.
    The error is..
    <2007-06-11 22:29:28,796> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/E:/NewBPEL/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.b
    pel_BPELProcess2_1.0_926648afbf81509a7362b645586f22f7.tmp/Apps.wsdl [ Apps_ptt::
    Apps(InputParameters,OutputParameters) ] - Could not invoke operation 'Apps' aga
    inst the 'Oracle Applications Resource Adapter' due to:
    ORABPEL-11811
    Error while trying to prepare and execute an API.
    An error occurred while preparing and executing the APPS.XX_BPEL_APPS.XX_OM_POAC
    KINT_PKG$VALIDATE_P API. Cause: java.sql.SQLException: ORA-06502: PL/SQL: numeri
    c or value error
    ORA-06512: at "APPS.XX_BPEL_APPS", line 1
    ORA-06512: at "APPS.XX_BPEL_APPS", line 1
    ORA-06512: at line 1
    [Caused by: ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "APPS.XX_BPEL_APPS", line 1
    ORA-06512: at "APPS.XX_BPEL_APPS", 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.
    <2007-06-11 22:29:28,812> <INFO> <default.collaxa.cube.ws> <AdapterFramework::Ou
    tbound> Change logging level for Logger 'default.collaxa.cube.ws' to DEBUG to se
    e full error stack
    <2007-06-11 22:29:28,812> <ERROR> <default.collaxa.cube.ws> <AdapterFramework::O
    utbound> file:/E:/NewBPEL/product/10.1.3.1/OraBPEL_1/bpel/domains/default/tmp/.b
    pel_BPELProcess2_1.0_926648afbf81509a7362b645586f22f7.tmp/Apps.wsdl [ Apps_ptt::
    Apps(InputParameters,OutputParameters) ] - Rolling back JCA LocalTransaction
    Any help in this regard would be highly appreciated.

  • Issue with FTP Adapter ListFiles files with spaces in the filename

    Hi
    I have an FTP adapter that does a ListFiles of all the files in a directory. It comes back and everything works fine however it removes all spaces from the filename meaning when I do the GET afterwards this fails as it is a different filename.
    The filename is a0eQ0000000wJVdIAM~1~ technote316.TIF note the space between ~ and technote.
    When a ListFiles is done I get the following request response in BPEL execution:
    <messages>
    <InvokeGetFilenames_FileListing_InputVariable><part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/CommonServices/SalesforceNotifcationServices/GetFileNameFromFTPServer"/></part></InvokeGetFilenames_FileListing_InputVariable>
    <InvokeGetFilenames_FileListing_OutputVariable><part name="filelist" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><filelist size="1" xmlns="http://xmlns.oracle.com/pcbpel/adapter/ftp/CommonServices/SalesforceNotifcationServices/GetFileNameFromFTPServer"><file><directory>/salesforce/006Q0000007yKcd</directory><filename>a0eQ0000000wJVdIAM~1~technote316.TIF</filename><lastModifiedTime>1305507120000</lastModifiedTime><creationTime>0</creationTime><size>1906643</size></file></filelist></part></InvokeGetFilenames_FileListing_OutputVariable></messages>
    This then follows with a GET that fails:
    <messages><input>
    <InvokeGETfile_SynchRead_InputVariable><part name="Empty" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><empty xmlns="http://xmlns.oracle.com/pcbpel/adapter/opaque/"/></part></InvokeGETfile_SynchRead_InputVariable></input><fault>
    <bpelFault><faultType>0</faultType><remoteFault xmlns="http://schemas.oracle.com/bpel/extension"><part name="summary"><summary>Exception occured when binding was invoked.
    Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'SynchRead' failed due to: No Data to process.
    No Data to process.
    File /salesforce/006Q0000007yKcd/a0eQ0000000wJVdIAM~1~technote316.TIF to be processed was not found or not available or has no content
    The invoked JCA adapter raised a resource exception.
    Please examine the above error message carefully to determine a resolution.
    </summary></part><part name="detail"><detail>550 /salesforce/006Q0000007yKcd/a0eQ0000000wJVdIAM~1~technote316.TIF: No such file or directory</detail></part><part name="code"><code>550</code></part></remoteFault></bpelFault></fault><faultType>
    <message>0</message></faultType></messages>
    I'm guessing its some use of the jca.message.encoding I can't find anything that really explains this though. Just the http://download.oracle.com/docs/cd/E12839_01/integration.1111/e10231/adptr_propertys.htm link.
    Any help would be greatly appreciated.
    Thanks

    Hi PG,
    Is your private file in the form of Java Keystore (.jks)? I had used .ppk file and it was a success.
    If it is .jks in your case, try using the same password for private key as of keystore file (.jks). I hope you're not supplying any PASSWORD in the Adapter properties.
    Regards,
    Neeraj Sehgal

Maybe you are looking for