DB adapter polling issue-urgent

Hi ,
I am trying to poll for new or changed records from DB table using a DB adapter. I used a DB adapter with Poll for new or changed records in a table operation type and used a bpel process to write the changed records in a file adapter(using write file oeration). whenever i update a record or insert a new record it is not polling the chnaged record and instance is not getting created for the composite.
Pls find below the .jca file of my Db adapter,
<adapter-config name="pollDB" adapter="Database Adapter" wsdlLocation="pollDB.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
<connection-factory location="eis/DB/SOADemo" UIConnectionName="SOADemo" adapterRef=""/>
<endpoint-activation portType="pollDB_ptt" operation="receive">
<activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
<property name="DescriptorName" value="pollDB.Studentdb"/>
<property name="QueryName" value="pollDBSelect"/>
<property name="MappingsMetaDataURL" value="pollDB-or-mappings.xml"/>
<property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
<property name="MarkReadColumn" value="DOB"/>
<property name="MarkReadValue" value="PROCESSED"/>
<property name="MarkReservedValue" value="LOCKED"/>
<property name="MarkUnreadValue" value="UNPROCESSED"/>
<property name="PollingInterval" value="5"/>
<property name="MaxRaiseSize" value="1"/>
<property name="MaxTransactionSize" value="10"/>
<property name="NumberOfThreads" value="1"/>
<property name="ReturnSingleResultSet" value="false"/>
</activation-spec>
</endpoint-activation>
</adapter-config>
can anyone pls help me in this issue?
thanks & regards,
Ayyadurai.M

Sometimes the messages get rejected if they are not compliant with schema even before coming to the SCA Infrastructure, the rejected messages for the database adapter will be stored in the following location....
Let's say if your composite name is TestDBPolling, and if the messages for that composite are rejected, they will be stored under the following location...
C:\Oracle\Middleware\home_11gPS2\user_projects\domains\domain1\rejmsgs\soa_server1\TestDBPolling
This is on my local machine...
Let me know whether that helped you...
Thanks,
N

Similar Messages

  • OSB DB Adapter Polling Issue

    Hello Everybody,
    Requirement
    I am doing DB Adapter polling in OSB.I have a db adapter which polls order table whenever there is a record with status='N'.The OSB component is on single node of Weblogic Server.
    1.The db adapter picks the order data with status='N' in the proxy service
    2.It transforms to webservice xsd
    3.Invokes a webservice.
    4.The webservice returns acknowledgement number.
    5.The order table should be updated with status 'Z' and attribute1=acknowledgement number
    OSB Service Design
    1.Proxy service calls business service to poll the order table
    2.Converts the payload to the xsd format required by target
    3.Invokes the webservice on target
    4.Receives acknowledgement number
    5.calls a plsql procedure which updates all the records within this batch with the acknowledgement number and status='Z'
    My configurations in db adapter
    Logical delete option in db adapter.
    Unread Value :'N'
    Read Value : 'A'
    Polling frequency : 300 seconds
    no of databse rows per XML document : 10
    Database rows per transaction : 10
    Issue
    1.My process after getting the acknowledgement number it updates the status with Z and attribute1=acknowledgement number.At the of this transaction I am seeing that the status is being updated by
    the adapter to 'A' based on read value.I want the read value only to be updated initially but as soon as my OSB process picks it for further processing it should not update again.How can i prevent
    the status from getting updated to 'A'.
    2.I have 40 records in order table.Per the database rows per transaction it should process 10 records at a time and for each batch of 10 i should get one acknowledgement number.Instead i see that
    all the 40 records are updated with the same acknowledgement number.Kindly help as to how I can resolve this situation.
    Thanks & Regards,
    Radha

    Hi Arik,
    I tried setting the property(idempotent) in jca file of the polling adapter and it gave me below error.Kindly help
    <adapter-config name="EBS_FETCHDATA" adapter="Database Adapter" wsdlLocation="EBS_FETCHDATA.wsdl" xmlns="http://platform.integration.oracle/blocks/adapter/fw/metadata">
    <connection-factory location="eis/DB/newebs" UIConnectionName="EBS" adapterRef=""/>
    <endpoint-activation portType="EBS_FETCHDATA_ptt" operation="receive">
    <activation-spec className="oracle.tip.adapter.db.DBActivationSpec">
    <property name="DescriptorName" value="EBS_FETCHDATA.XxcmfOtmOrderHdrIfaceTmp"/>
    <property name="QueryName" value="EBS_FETCHDATASelect"/>
    <property name="MappingsMetaDataURL" value="EBS_FETCHDATA-or-mappings.xml"/>
    <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
    <property name="MarkReadColumn" value="OTM_INTERFACE_STATUS"/>
    <property name="MarkReadValue" value="A"/>
    <property name="MarkUnreadValue" value="N"/>
    <property name="PollingInterval" value="60"/>
    <property name="MaxRaiseSize" value="10"/>
    <property name="MaxTransactionSize" value="300"/>
    <property name="NumberOfThreads" value="1"/>
    <property name="ReturnSingleResultSet" value="false"/>
    <property name="idempotent" value="false"/>
    </activation-spec>
    </endpoint-activation>
    </adapter-config>
    ---------------------ERROR---------------
    Invalid JCA transport endpoint configuration, exception: javax.resource.ResourceException: BINDING.JCA-12532 Cannot set JCA WSDL Property. Error while setting JCA WSDL Property. Property setIdempotent is not defined for oracle.tip.adapter.db.DBActivationSpec Please verify the spelling of the property.
    Thanks,
    Radha

  • XI adapter polling issue & JDBC  / DB2 driver connection timeout properties

    Hello Group,
    We have a long running issue with our XI 7.0 system running on iseries. (V5R3) The issue occuring is that our XI adapters stop polling and the only resolution is to restart the J2EE engine or to resart the adapter framework services.
    We have had several OSS messages open on this subject for over a year and are going round in circles with the a number of different SAP consultants.
    The one topic that we keep coming back to is that we are being asked to set DB2 driver connection timeout properties. We are using the toolbox driver and have upated to the latest JTopen driver, but have not managed to find any inofrmation on how to set the timeout parameter. Does anyone know where the timeout parameter set?
    Has anyone experienced polling issue like this before and how did you resolve?
    SAP referred to the SAP note 1078420 - XI/PI JDBC Adapter: Setting JDBC driver properties for DB which is for Oracle, but this will give an idea of what timeout parameters SAP are asking about.
    Extract of the note is below:-
    Symptom
    This note gives an option to set JDBC driver properties while acquiring a DB connection. When connecting to DB using JDBC adapter there are instances
    where DB connection take a long time to establish connection. Some times call made to Driver will hang permanently. Setting driver properties would resolve this problem.
    More Terms
    Connection timeout, time out, query timeout
    Cause and Prerequisites
    Solution
    In the advanced mode table section of sender channel and receiver channel configurations, we can set driver properties for each DB connection. Any
    such property would have to contain prefix 'driver:'(with out quotes) For example, for Oracle Database JDBC thin driver 10.2.0.3 version, the
    property oracle.jdbc.ReadTimeout helps to set read timeout while reading from the socket. Also for setting login time out in Oracle, we use
    oracle.net.CONNECT_TIMEOUT. To set these two properties use as follows:
    driver:oracle.jdbc.ReadTimeout 1000
    driver:oracle.net.CONNECT_TIMEOUT 1000
    (The TimeOut Driver properties like ReadTimeout and CONNECT_TIMEOUT are in milliseconds)
    Refer to your DB documentation/ JDBC driver documentation on this. Please note that properties can vary from each driver version. For instance, some
    of properties of Oracle JDBC thin Driver 10.2.0.3 properties may not be present in older version drivers. Please contact DB vendor for the complete
    list of driver properties. In addition to above, we also provide another parameter for query time out.
    sqlquerytimeout (prefix 'driver:' is not required) is the parameter that is to be used for SQL query time out. This is case-sensitive and should be
    configured as positive integer value in seconds(greater than 0).
    Any help on this would be much appreciated.
    With regards,
    Steven

    Hello,
    I am not talking about the XI timeouts. But the timeouts which can be used to get the connection timeouts for DB2/AS400 databases.
    So please provide that information.
    THanks,
    soorya

  • DB Adapter Polling Issues - causing  DB Locks

    Hi Experts,
    I am working on project in SOA Suite 11.1.1.6 environment.
    In my project I have used DB Polling which has following settings
    <property name="DescriptorName" value="XXXXXXXXXXX"/>
    <property name="QueryName" value="XXXXXXXXXXXXXXXXXXXXX"/>
    <property name="MappingsMetaDataURL" value="XXXXXXXXXXXXXXXXXXXX.xml"/>
    <property name="PollingStrategy" value="LogicalDeletePollingStrategy"/>
    <property name="MarkReadColumn" value="PROCESS_FLAG"/>
    <property name="MarkReadValue" value="P"/>
    <property name="MarkUnreadValue" value="Y"/>
    <property name="PollingInterval" value="20"/>
    <property name="MaxRaiseSize" value="1"/>
    <property name="MaxTransactionSize" value="10"/>
    <property name="NumberOfThreads" value="1"/>
    <property name="ReturnSingleResultSet" value="false"/>
    The problem is when I update 25 records, the last 5 records are not getting processed and its just stuck there. It just shows DB Adapter Instance in the Composite Instance and the record is locked.
    I am using Multi DataSource configuration with 3 Load Balancing Database Instances on SOA Clustered Environment. I have DISTRIBUTED POLLED flag checked in the DB Poller Adapter
    If I update records less than 20, the polling frequency then its working fine. If I update more than 20 then its causing issue of locks.
    Thanks in Advance

    Hi All,
    Issue resolved by setting the <property name="NumberOfThreads" value="1"/> value to 10
    Thanks

  • DB Adapter Polling Issue

    Hi All,
    I am working on a scenario something like this:
    I am polling an Oracle table and when certain flag is 'Y', I am selecting the record(s) and calling an external service. Then depending on the response from the external service, again updating the the same table which I am polling.
    As I have clustered environment, I am using distributed polling and polling strategy is logical delete. But it seems DB adapter is keeping some lock on the table for distributed polling, that's why I am not able to update the polled table.
    Please provide me some solution how to overcome the iisue.
    Thanks,
    Maitrayee

    Hi Ram,
    DbAdapter is transactional and it should not delete failed records...
    Ref docs here...
    http://docs.oracle.com/cd/E28280_01/integration.1111/e10231/adptr_db.htm#BABCIICF
    Cheers,
    Vlad

  • File Adapter Polling issue(Is there critical value of File size )?

    Hi
    I use File adapter as the Activation to initialize a BPEL process instance .The source data is a kind of Delimited file format.On my PC, when the file size is less than 4M ,everything works fine ,But when the size increased. The BPEL process will not initialize the instance.When the source data is XML data , the "critical value " is about 12M. The error msg is below.
    <2005-08-08 12:48:26,209> <INFO> <default.collaxa.cube.activation> <File Adapter::Inbound> Processing file : D:\Temp\WOSSystemIntegration\InBoundFiles\LOADPLAN_DATA_200508041708.xml
    <2005-08-08 12:48:29,455> <INFO> <default.collaxa.cube.activation> <FileAdapter::Inbound> Sending message to Adapter Framework for posting to BPEL engine: { file=D:\Temp\WOSSystemIntegration\InBoundFiles\LOADPLAN_DATA_200508041708.xml
    <2005-08-08 12:48:40,197> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
    ogError> Error while invoking bean "cube delivery": Delivery callback message se
    rialization failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    <2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::l
    ogError> Error while invoking bean "delivery": Delivery callback message seriali
    zation failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    <2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound> [Read_ptt::Read(loadPlanCollection)] - JCA Activation Agent was
    unable to perform delivery of inbound message to BPEL Process 'bpel://localhost/
    default/P2E_WOS_LP~1.0/' due to: Delivery callback message serialization failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    <2005-08-08 12:48:40,245> <ERROR> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound>
    com.oracle.bpel.client.ServerException: Delivery callback message serialization
    failed.
    An attempt to serialize the delivery callback messages for conversation "LocalGU
    ID:d0b7ccf8e4242850:134b07e:10594606738:-7ffc", message "d0b7ccf8e4242850:134b07
    e:10594606738:-7ffb" to binary format has failed. The exception reported is:
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialPostAnyType(D
    eliveryHandler.java:328)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.initialPost(Delivery
    Handler.java:219)
    at com.collaxa.cube.engine.delivery.DeliveryHandler.post(DeliveryHandler
    .java:83)
    at com.collaxa.cube.ejb.impl.DeliveryBean.post(DeliveryBean.java:181)
    at IDeliveryBean_StatelessSessionBeanWrapper22.post(IDeliveryBean_Statel
    essSessionBeanWrapper22.java:861)
    at com.oracle.bpel.client.delivery.DeliveryService.post(DeliveryService.
    java:161)
    at oracle.tip.adapter.fw.AdapterFrameworkListenerBase$DeliveryServiceMon
    itor.send(AdapterFrameworkListenerBase.java:2340)
    at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.executeDeliverySer
    viceSend(AdapterFrameworkListenerBase.java:478)
    at oracle.tip.adapter.fw.AdapterFrameworkListenerBase.deliveryServiceSen
    d(AdapterFrameworkListenerBase.java:535)
    at oracle.tip.adapter.fw.jca.AdapterFrameworkListenerImpl.performSingleA
    ctivation(AdapterFrameworkListenerImpl.java:699)
    at oracle.tip.adapter.fw.jca.AdapterFrameworkListenerImpl.onMessage(Adap
    terFrameworkListenerImpl.java:567)
    at oracle.tip.adapter.fw.jca.messageinflow.MessageEndpointImpl.onMessage
    (MessageEndpointImpl.java:121)
    at oracle.tip.adapter.file.inbound.ProcessWork.publishMessage(ProcessWor
    k.java:651)
    at oracle.tip.adapter.file.inbound.ProcessWork.doTranslation(ProcessWork
    .java:456)
    at oracle.tip.adapter.file.inbound.ProcessWork.processMessages(ProcessWo
    rk.java:200)
    at oracle.tip.adapter.file.inbound.ProcessWork.run(ProcessWork.java:139)
    at oracle.tip.adapter.fw.jca.work.WorkerJob.go(WorkerJob.java:51)
    at oracle.tip.adapter.fw.common.ThreadPool.run(ThreadPool.java:267)
    at java.lang.Thread.run(Thread.java:534)
    <2005-08-08 12:48:40,245> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Failed to send message {D:\Temp\WOSSystemIntegration\InBoundFiles\LOA
    DPLAN_DATA_200508041708.xml} to Adapter Framework.
    <2005-08-08 12:48:40,245> <WARN> <default.collaxa.cube.activation> <AdapterFrame
    work::Inbound> [Read_ptt::Read(loadPlanCollection)] - onReject: Sending invalid
    inbound message to Exception Handler: file://D:/Temp/WOSSystemIntegration/Reject
    edMessages
    <2005-08-08 12:49:44,617> <FATAL> <default.collaxa.cube.activation> <AdapterFram
    ework::Inbound> [Read_ptt::Read(loadPlanCollection)] - Resource Adapter requeste
    d Process shutdown
    <2005-08-08 12:49:48,676> <INFO> <default.collaxa.cube.activation> <AdapterFrame
    work::Inbound> Adapter Framework instance: OraBPEL - performing endpointDeactiva
    tion for portType=Read_ptt, operation=Read
    <2005-08-08 12:49:48,676> <INFO> <default.collaxa.cube.activation> <File Adapter
    ::Inbound> Endpoint De-activation called in adapter for endpoint : D:\Temp\WOSSy
    stemIntegration\InBoundFiles
    <2005-08-08 12:49:49,042> <INFO> <default.collaxa.cube.activation> <AdapterFrame
    work::Inbound> JCAActivationAgent::onStateChanged State is changed for process '
    bpel://localhost/default/P2E_WOS_LP~1.0/', state=OFF
    how can i solve this problem?can i predeploy some parameter? Is there some critical value of File size for the processing of File Adapter ?

    Hi,
    There is no specific parameters to specify the maximum file size to be read in. It is just limited by the heap size of the JVM running the BPEL engine.
    If you have enough RAM on your machine you can change the current heap size from 512Mbyte to 1Go by editing the startorabpel.bat file
    and modifying the line :
    set MEM_ARGS=-Xms512m -Xmx512m -Xmn300m -XX:MaxPermSize=80m
    to
    set MEM_ARGS=-Xms512m -Xmx1024m -Xmn300m -XX:MaxPermSize=80m
    But only do it if you have at least 1.5 Gb of RAM on your machine, otherwise ot will keep spawing and you will have very bad performance.
    Speaking about performance, do you really need to have a BPEL payload of 4 to 12 Mb ?
    Will the BPEL process really need to access it ? if so, the best solution would be using batching techniques to cut you file in pieces and process it piece by peice.
    FB.

  • File adapter polling frequency is not consistent in SOA 10g!

    Friends,
    I have used file adapter for polling files in a service in SOA 10G env. with polling frequency 3600 secs. However, i have noticed file polling is not happening at 60 mins interval, instead some times files getting polled in less than 30 mins but again after sometime its polling correctly in 60 mins interval. I am not sure what could be the reason but i need a solution urgently. Please help!

    Could be the managed servers in the cluster are not in sync.
    I faced DB JCA adapter sync issues because of Oracle soa suite bug.
    You could check whether any sync issues are there with File adapters.

  • Instances created before db adapter poll completes.

    Hi,
    We have been seeing a couple of instances where these instances seem to have been created before the database adapter could finish off it's polling cycle.
    The DB Adapter in our case does a logical delete and updates a column with 'Y', the timestamp of which is updated in another column of the same table.The instance when it gets created goes and updates another timestamp in the same table.
    The problem is that in some cases the timestamp of instance is greater than the timestamp of database adapter leading to other issues.
    Can anyone explain what is happening here and any possible resolution for the same.
    Thanks,
    Shishir

    Hi Shishir,
    If I understand your scenario correctly then below happens:
    DB Adapter polls a table and picks up the records for processing. After picking up it internally updates a particular column (logical delete) as configured in Adapter configuration. Then in BPEL Adapter process there is a step where you update another column in same table (timestamp). And when you see Adapter process instance in BPEL console, you observed that BPEL process instance creation timestamp > update database column timestamp for the processed record.
    Is this your problem? If yes then its a normal behavior.
    When the BPEL Adapter process is instantiated then its in memory and is only dehydrated when transaction is committed, in other words the in memory BPEL instance will be persisted to BPEL internal database when the process is finished or if it encounters explicit checkpoint or wait kind of activities. And when this BPEL process is dehydrated that is the process instance creation time which you see on BPEL Console.
    Please let me know if this clarifies your problem or otherwise explain me further if I understood it wrong.
    Thanks.
    Regards,
    Ankit A.
    http://fusionmusings.blogspot.com
    Edited by: AnkitAggarwal on Apr 14, 2010 2:00 AM

  • DB adapter polls all the records regardless of the MaxTransactionSize

    Hi All,
    I have a requirement that I need to poll only 10 records per minutes from DB2 database, regardless of how many ever records in the database at the time of the polling. I used the DB polling with custom sql, to fetch only first 10 records, as well as MaxTransactionSize set to 10 and PollingInterval to 60 (sec), PollingStrategy as LogicalDeletePollingStrategy. But when I test it out, if I have 100 records in the database, it updated all 100 records with the MarkReadValue and gave me all 100 records. I tried with disabling the SkipLocking as well, but doesn't seem to work. I also tried using the throttling in DB adapter in the composite.xml, but though the composites are showing up one by one based on the throttling time interval, in the database, it updated all the records right away, which is unacceptable as per business logic. Can someone please guide me how I can implement this? Thanks in advance.
    Note: I am using SOA 11.1.1.5. In 10.1.3.4, we have implemented this and it is working well, but can't make it to work in 11.1.1.5.
    Hruthayah

    Thanks for responding, Narsing.
    Please Note that MaxRaiseSize property doesn't behave the same in Database Adapter as it does in File Adapter Polling...
    MaxTransactionSize = Database Rows Per Transaction
    MaxRaiseSize = Database Rows Per XML Document
    In Database Adapter, MaxRaiseSize means the maximum number of records it can get in an XML Document...Yes, I do understand that, and that is why since I want one record per each instance, I have MaxRaiseSize set to 1.
    in the steps of configuring DB Adapter, you can select the 'Do Synchronous Post to BPEL' option in the 'Operation Type' screen in the adapter configuration wizard. This will generate an empty response message type for output variable. In the BPEL process add the reply activity at the end of the process by selecting output variable and also add the reply activities in the end of catch and catch all blocks in the exception handling.I had done what you have suggested. But I have seen two issue.
    1. Although only one instance is being showing up for the first time in EM, in database, all the records are being marked as "Reserved". (which is unacceptable as per the business requirement)
    2. Next instances are showing up right after first one is done. (meaning, all the instances are showing up one by one without waiting for the polling interval)
    Is this because of the DB2 database? I even tried updating the "PoolingService-or-mappings.xml" file to include the custom sql so that it will exactly fetch first 10 records.
    <query name="EOneEvents" xsi:type="read-all-query">
    <timeout>0</timeout>
    +<call xsi:type="sql-call">+
    +<sql>SELECT E1GS2A, E1VALU, E1UKID, E1ACTN, E1AA20, E1GPSP, E1LL, E1GS1A, E1GS1B, E1HBST1, E1HBST2, E1HBST3, E1HBST4, E1HBST5, E1CRTU, E1CRTJ, E1CRTT, E1WRKSTNID, E1HBOPID, E1UPMB, E1UPMJ, E1UPMT, E1JOBN, E1PID FROM F57MTE01 WHERE ((E1GS2A = 'LOT') AND (E1GPSP = '0')) ORDER BY E1CRTJ, E1CRTT ASC fetch first 3 rows only</sql>+
    +</call>+
    <reference-class>PollingService.F57mte01</reference-class>
    <cache-usage>primary-key</cache-usage>
    <lock-mode>none</lock-mode>
    <container xsi:type="list-container-policy">
    <collection-type>java.util.Vector</collection-type>
    </container>
    </query>
    </queries>
    I would appreciate if you can guide me if I am doing something wrong here.
    Hruthayah

  • File Adapter polls all the files from the directory when deployed again

    Hi,
    File Adapter polls all the files from the inbound directory irrespective of the timestamp when deployed again.
    For ex. when the BPEL process with file adapter is deployed, it starts polling the directory based on the timestamp as and when the directory is written with the files. I did not opt for deleting the files after read by the File Adapter.
    But, when BPEL process is modified and deployed again, this time, the file adapter picks up all the files in the inbound directory and doesn't consider the timestamp.
    My guess is that it should not pick all the files but based on timestamp only.
    I guess I can observe the same behavior if I bounce the Application Server also
    Do I have an option to achieve this?
    Thanks,
    Sasi Bhushan.

    try this:
    1- create a File object for the directory. (look at isDirectory() )
    2- create a File[] that represents the files in that directory. (.listFiles())
    3- if (file[x].isDirectory()) {recursive method call;}
    4- else {
    process file;
    If you want more help--do some work on it, and come back with specific questions relating to specific lines in your code and specific error messages you've been receiving.

  • PI 7.1 adapter module issue

    I deoplyed my module and worked fine. now i changed some code by adding parameter to module
    strModuleKey = moduleContext.getContextData("module.key");
    I changed the related things in my communication channel(gave parameters)
    Now, i get below error while executing...
    java.lang.ClassCastException: class com.sap.aii.af.sdk.xi.mo.MessageContext:library:com.sap.aii.af.sdk.libcom.sap.engine.boot.loader.ResourceMultiParentClassLoader428c6e04alive incompatible with interface com.sap.engine.interfaces.messaging.api.Message:interface:com.sap.aii.af.ms.ifccom.sap.engine.boot.loader.ResourceMultiParentClassLoader2dd7e4d6alive
    Followed the below url but in vain..
    PI JAVA ADAPTER MODULE PROBLEM
    Incompatible with interface - Exception in Adapter Module
    Issue on developing Adapter Module
    Also if you are using PI 7.1 refer to the blog:
    /people/stefan.grube/blog/2008/12/11/adjust-your-pi-70-adapter-modules-for-pi-71-in-15-minutes
    Please let me know if u have any other suggestions other than this...
    Thanks
    Prabhakar

    Hi Venkat,
    Yes, you cannot add custom modules to soap adapter.
    Please refer below documentation for the same..!!
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/44/8c4756224a6fb5e10000000a155369/content.htm
    http://help.sap.com/saphelp_nwpi71/helpdata/EN/69/a6fb3fea9df028e10000000a1550b0/frameset.htm
    Regards,
    Swetha.

  • DB adapter polling in OSB

    1. In a clustered environemnt, we need to use "Distributed polling" in DB adapter to make sure the multiple cluster instances are not polling for the database at the sametime. If "Distributed polling" can achieve that, what is the need to have singleton property set for the DB adapter in the composite.xml
    2. For achieving DB adapter polling in osb, we need to create the adapter in bpel and then export them to osb project. In such OSB project, where do we set the singleton property ?

    Thanka Ananth.
    I assume active-passive cluster setup means,
    there will be a cluster with only one osb or bpel managed server (active cluster)
    There wil be another cluster with only one osb or bpel managed server (passive cluster).
    so when there is some data inserted into the database, there will be only one managed server (available on active cluster) will be available to poll for the recored. Passive man server does not poll for this record. I assume this is the default behaviour. If such is the case, then what is the use of setting this singleton property ?

  • MDP to HDMI adapter causing issues while connecting Macbook air late 2013 edition to Projector. Projector shows grains on the display.

    MDP to HDMI adapter causing issues while connecting Macbook air late 2013 edition to Projector. Projector shows grains on the display.

    Sounds like you may have been in extended display mode. If so, all you had to do was drag a window to the projector display. Or, if you wanted mirrored mode, in display preferences select check mirror display.

  • FIle adapter polling at a particular time

    Hi,
    I want to pull a file say  at 12.00 am  always from a FTP server.
    Is there any scheduler in XI where in I can start the adapter polling without manually activating the file adapter at 12.00 am
    Thanks,
    Sachin

    HI,
    As of now File Adapter doesnot support this. Refer SAP Note 821267 Question No 18.
    There is some workaround is there. Using BPM etc..
    Regards,
    Moorthy

  • BPEL: invalid namespace error with DB adapter polling and java embedding

    Hello
    I'm using bpel 10.1.3.1.0, and I'm experiencing the following problem: I'm am not able to use the SetTitle() function in a process which polls for records using the db adapter.
    Steps to reproduce the problem:
    - I create a very simple bpel process which poll for records in a table.
    - I deploy it, write manually a record in the polled table and the process start.
    - I can see the record picked up through the visual flow in the console
    - everything looks ok and the process ends correctly
    - now I add a java embedding activities just after the receive
    - I set the instance title like this: setTitle("Go");
    - redeploy, write a record in the polled table and the process start.
    - but the process ends in error with the following message "XMLDOMException has been thrown. invalid namespace for prefix xmlns"
    And there is no way to make it work. Consider:
    If I put the same java embedding activity in another process, for example a simple asynchronous process which just copy the input to the output, and I run from the console, the instance title is set as I want ("Go")
    If I remove the three lines from the polling process
    <bpelx:exec name="Java_Embedding_1" language="java" version="1.3">
    <![CDATA[setTitle("Go");]]>
    </bpelx:exec>
    then the process is executed correctly again. I add them again and then namespace error.
    Whatever statement I put in the java embedding activity (for example a string concatenation or even just a comment I have the same result: invalid namespace for prefix xmlns.
    Does anybody has a suggestion to evercome the problem? I need to set the title because its a mess to find out which instance processed a specific record.
    Thanks by
    Paolo

    I made a lot of further tests, and I can say the problem is related only to the database adapter polling mechanism.
    If I create an asynchronous process, with any kind of database activity (for example select) I can set the title normally.
    If I create a process which start with database table polling, then I cannot use the java embedding.
    try this:
    - create BPEL empty project
    - drop a database adapter service and follow the wizard:
    - select a connection (I tried both oracle or sqlserver connection)
    - select "poll for new or changed record"
    - select any table empty or with few record inside (1 or 2)
    - press next 4 times
    - chose delete record after read (press next)
    - chose order by "no ordering" in polling options (press next 2 times)
    - now drop a receive activity on the process, and connect with the polling partner link
    - drop a java embedding and write any valid java statement
    - deploy; if the table is empty, write a recod in the table
    - the process is instantiated, but the it fails in the --> receive <-- activity with "invalid namespace" error

Maybe you are looking for