Problem in Dequeuing from AQ Adapter

I Have Problem in Dequeuing
my BPEL Process is able enqueue the message to B2B but it is not able to Dequeue the same message from the Queue. Interesting point some times My process is able to Dequeue the message and some time it is not able to Dequeue the message from Queue(b2b) Please someone help in the process
Thanks
Kumar

Hi Kumar,
From your last question I figure, do you still have a problem or not? Since you first state that by upgrading your problem seemed to be solved.
But first do a query on aq$ip_qtab (order by enq_time desc) and check msg_state and consumer.
Do you see your message with msg_state "READY'? If you dequeue the message will get status "PROCESSED" and after a short while it is removed by the queue-monitor.
From this you should be able to find out if either:
1. your message is not dequeued at all
2. your message is dequeued but it does not lead into a process-instance.
Also you use Integration B2B (I conclude from your queue). If you provide a document-routing id in the Document Definition paramters, B2B will enqueue the message with a consumername equal to the document-routing-id. If you don't then the default consumername will be B2BUSER. You have to take that into account when defining your AQ-adapter (fill in the proper value in the consumer-name).
If the problem is of the second kind then you should see something in the domain-log and/or rejected-messages folder. Maybe you specifid a xsd on the payload attribute of the ip-mesage-type object and the message does not conform to the xsd?
Regards,
Martien

Similar Messages

  • How OSB AQ adapter dequeue from database AQ ?

    Hi,
    Could someone please tell me how OSB AQ adapter dequeues from database AQ ?
    Does it ask database frequently ? Or just hangs on database ?
    Or database AQ notifies OSB when something comes to AQ ?
    Regards,
    Cezary

    I don't have any experience with AQ adapter for OSB, but when I was working with AQ library for JMS I had the same question and found out that it was polling the database.

  • Waiting for "Dequeue" from "dequeueOperationService". Asynchronous callback

    I have created BPEL process which will take input from BPEL console client, put this message into queue using enqueue operation of AQ adaptor.Then i have recieve activity in the same BPEL process to dequeue message from the same queue.
    Process is deployed successfully. When I initiate BPEL process through BPEL console client, the message is enqueued properly into queue but when control come to recieve activity of my process i am getting error like this "Waiting for "Dequeue" from "dequeueOperationService". Asynchronous callback" .
    Can you please tell me what is the problem? How can resolve this issue to work my BPEL process fine.
    Thank you. It would be great help.

    Hello,
    I have got the same problem. I tried set-up CorrelatonSet, but I could not find solution ... Receive activity is still waiting for dequeue from AQ (and what's more - message is removed from queue by AQ adapter immediately after BPEL process is deployed. Receive acitivity hasn't information about this dequeue - it's still waiting).
    Could you pls. write more information???
    Many thanks,
    martin

  • Problem for Dequeue

    Hi All,
    I am creating Asynchronous web service using AQ Adapter. Enqueue working but dequeue (Receiving activity "waiting for dequeue asynchronous call back) why that receive activity not receiving the dequeue message but queue table dequeue working good only problem is that dequeue and receive activity. If any bodies knows give me needful.

    Hi All,
    Script for queue table
    BEGIN
    DBMS_AQADM.CREATE_QUEUE_TABLE
    QUEUE_TABLE => 'HT_XML_DEQUEUE_TABLE'
    ,QUEUE_PAYLOAD_TYPE => 'SYS.XMLTYPE'
    ,COMPATIBLE => '10.0.0'
    ,STORAGE_CLAUSE => '
    TABLESPACE ALAPDATA
    PCTUSED 40
    PCTFREE 10
    INITRANS 1
    MAXTRANS 255
    STORAGE (
    INITIAL 64K
    MINEXTENTS 1
    MAXEXTENTS 2147483645
    PCTINCREASE 0
    FREELISTS 1
    FREELIST GROUPS 1
    BUFFER_POOL DEFAULT
    ,SORT_LIST => 'ENQ_TIME'
    ,MULTIPLE_CONSUMERS => FALSE
    ,MESSAGE_GROUPING => 0
    ,COMMENT => 'HUMANTASK ASYNCHRONOUS WEB SERVICE'
    ,SECURE => FALSE
    End;
    Script for Queue
    BEGIN
    SYS.DBMS_AQADM.CREATE_QUEUE
    QUEUE_NAME => 'HT_XML_DEQUEUE'
    ,QUEUE_TABLE => 'HT_XML_DEQUEUE_TABLE'
    ,QUEUE_TYPE => SYS.DBMS_AQADM.NORMAL_QUEUE
    ,MAX_RETRIES => 5
    ,RETRY_DELAY => 0
    ,RETENTION_TIME => 0
    ,COMMENT => 'HUMANTASK ASYNCHRONOS WEB SERVICE'
    END;
    BEGIN
    SYS.DBMS_AQADM.START_QUEUE
    QUEUE_NAME => 'HT_XML_DEQUEUE'
    ,ENQUEUE => TRUE
    ,DEQUEUE => TRUE
    END;
    I Enqueue from BPEL is ok , the problem only dequeue(Oracle queue table dequeue the message) that BPELConsole receive activity waiting for "Dequeue" from "Aq_name" from asynchronous callback . After i click BPELConsole "Interaction" that Dequeue schema form display there i fill the form and click the "Post xml message" process continue but i need that receive activity don't wait automatically pick up the dequeue message and continue the BPEL process(Exception, Error not coming).I try pick activity onMessage also same like receive activity. Correlation, Adapter header also used properly. If any bodies knows please do me needful.

  • Problem facing in sender file adapter

    Hi XI gurus,
    I am facing a problem in sender file adapter communcation channel
    Is there any restriction in XI that XI picks max of 100 at a time .
    Actaully probolem here is My XI sender file adapter need to pick 2800 file from ftp.
    adapter need to file pick files ranging SAP_OUT_066581_280_INV.xml to SAP_OUT_SZ22TXN066581_2800_INV.xml
    to pick these we have given file name as u201CSAP_OUT_*_INV.xmlu201D when ever given this XI is coming with no messges.
    when ever file name is given as SAP_OUT_SZ22TXN066581_3*_INV.xml it XI has picked file from 300 to 399
    when eve tried with the options to pick all the message
    SAP_OUT_SZ22TXN066581_*_INV.xml  Failed with no messaege
    even atleast tried to pick 1000 mesaanges from 1000 to 1999
    i have given like this
    SAP_OUT_SZ22TXN066581_1*_INV.xml failed with no messages
    while trying with option xi picking file max 100 at a time
    SAP_OUT_SZ22TXN066581_1*_INV.xml
    SAP_OUT_SZ22TXN066581_11*_INV.xml
    SAP_OUT_SZ22TXN066581_12*_INV.xml
    like this I am increaing the number and picking maximum of 100 messages only
    Is there any way to auto mate this or nny file names need to be required
    waiting for your reply

    Check SAP Note 821267 - FAQ: XI 3.0 / PI 7.0/ PI 7.1 File Adapter.
    I guess point 8 might relate to your problem if the FTP adapter timeout occurs.
    check the note 849089 as well.
    Also check point 13 and 26.
    Gaurav Jain
    Points if answer is useful
    Edited by: Gaurav Jain on Jun 6, 2008 4:20 PM

  • Error while calling stored procedure from apps adapter

    Hi,
    I am calling Oracle applications standard api to create ar invoice (XX_BPEL_TEST_APPS_ADAPTER_PKG is the name of wrapper package created by adapter) from apps adapter but getting the following error:
    Exception occured when binding was invoked. Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'test_apps_adapter' failed due to: Stored procedure invocation error. Error while trying to prepare and execute the APPS.XX_BPEL_TEST_APPS_ADAPTER_PKG.AR_INVOICE_API_PUB$CREATE_SIN API. An error occurred while preparing and executing the APPS.XX_BPEL_TEST_APPS_ADAPTER_PKG.AR_INVOICE_API_PUB$CREATE_SIN API. Cause: java.sql.SQLException: ORA-06531: Reference to uninitialized collection ORA-06512: at "APPS.XX_BPEL_TEST_APPS_ADAPTER_PKG", line 199 ORA-06512: at "APPS.XX_BPEL_TEST_APPS_ADAPTER_PKG", line 909 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. This exception is considered not retriable, likely due to a modelling mistake. To classify it as retriable instead add property nonRetriableErrorCodes with value "-6531" to your deployment descriptor (i.e. weblogic-ra.xml). To auto retry a retriable fault set these composite.xml properties for this invoke: jca.retry.interval, jca.retry.count, and jca.retry.backoff. All properties are integers. ". The invoked JCA adapter raised a resource exception. Please examine the above error message carefully to determine a resolution.
    Just wondering if anyone has faced a similar problem?

    I am trying to pass parameter to test my procedure but it is giving this error : ORA-06531: Reference to uninitialized collection
    ORA-06512: at line 12
    Here is example for my test procedure:
    declare
    v_session_id_tab SESSION_ID_TAB_TYPE;
    v_service_type_tab SERVICE_TYPE_TAB_TYPE ;
    v_service_location_tab SERVICE_LOCATION_TAB_TYPE ;
    v_service_call_name_tab SERVICE_CALL_NAME_TAB_TYPE;
    v_service_call_start_time_tab SERVICE_CALL_ST_TAB_TYPE;
    v_service_call_end_time_tab SERVICE_CALL_ET_TAB_TYPE;
    v_service_call_duration_tab SERVICE_CALL_DUR_TAB_TYPE;
    v_status_tab STATUS_TAB_TYPE;
    v_notes_tab NOTES_TAB_TYPE;
    begin
    v_session_id_tab(1) := 1;
    v_service_type_tab(1) := 'db';
    v_service_location_tab(1) := 'local';
    v_service_call_name_tab(1) := 'Name of call';
    v_service_call_start_time_tab(1) := SYSDATE;
    v_service_call_end_time_tab(1) := SYSDATE;
    v_service_call_duration_tab(1) := 100;
    v_status_tab(1) := 'Z';
    v_notes_tab(1) := 'NOTES';
    BULK_INSERTS (v_session_id_tab,v_service_type_tab, v_service_location_tab,v_service_call_name_tab,v_service_call_start_time_tab,v_service_call_end_time_tab,
    v_service_call_duration_tab, v_status_tab, v_notes_tab);
    end;
    I declare all types at schema level.
    Please give your comments.
    Thank you

  • Setting the charset from an adapter module

    Hi folks,
    I'm trying to set the charset encoding of a payload using an adapter module (I know there is a TextCodepageConverterBean, but I want to set the charset for a message that hasn't one yet). The problem is probably more clear using an example.
    I output a UTF-8 flat string from my message mapping to the adapter framework (mail adapter in my case). Afterwards I want to convert this UTF-8 string to an ISO-8859 encoding with the TextCodepageConverterBean. But if I set the charset using the setContentType() function of my TextPayload object the information gets cut away. I'm using the format
    setContentType("text/plain;charset=utf-8;name=Test.txt")
    . But everything after the first semicolon is dropped. Setting the charset using the MessageTransformBean works, but I want to avoid this by all means, as I need to set the mime type from the adapter module.
    This is running on NW2004 with SP 16 and the latest patch.
    Any idea, why the MessageTransformBean works and not the setContentType call?

    This bug will be fixed with SP20.
    Regards
    Stefan

  • Error from BPE Adapter using in Async Sync scenario

    Hi,
    I'm trying to use a Asyn Sync pattern with BPM:
    1)File adapter get a file from AS400, split it several XML messages and send to XI(Async)
    2)XI get each message and forward to BPM using XI adapter
    3)BPM has to send the message to R/3 via BAPI (Sync)
    4)R/3 reply the result message to BPM(Sync)
    5)BPM has to send the result message to e-mail system if an error had occurred in BAPI call (Async)
    When I send directly from File adapter to R/3 works like a charm, but when I want use the BPM, a soap header error says to me, that cannot identify a data type that I’m using in the message sent by File adapter.
    The error that I'm getting is BPE Adapter UNKNOWN_MESSAGE in soap header.
    Regards,
    Eduardo

    I got the same problem after installing new patches.
    This is what I had to do:
    Go to SXI_CACHE
    - Choose Business Processes
    - select your Buisness Process
    If your buisness process has Return Code 99
    - Click "Repeate Activate" button
    - On the next screen, click Activate again.
    This worked for me. Good Luck!

  • Monitoring problem in async SOAP receiver adapter

    Hi!
    I have a File to SOAP asynchronous scenario.
    I want to see in monitoring (sxi_monitor) if problem occured when calling the webservice, for example when the connection is refused, or a timeout.
    In Runtime Workbrench, I can see the errors in Communication Channel Monitoring and in Message Monitoring from Component Adapter Engine.
    I have configured an alert rule for receiving alerts when an error occured, but <u>I don't receive any alert</u>. And when I go to the transaction SXI_MONITOR in my system XI, the status of the message is <u>"Processed successfully" instead of "System Error"</u>.
    Any idee of how to solve this?
    Thanks in advance,
    Laurence

    Hi,
    In this link you will find the list of the container elements.
    Declare these container elements in your Alert Category, and use them between & CONATINERELEMENT& in your alert text and these will be filled up in the run time.
    the link to your message will be added by default in the Post Processing Steps. You need not do anything special for this.
    http://help.sap.com/saphelp_nw04/helpdata/en/d0/d4b54020c6792ae10000000a155106/content.htm
    Regards
    Bhavesh

  • Problems transferring data from MacBook Pro to MacBook Pro

    I just bought a new MacBook Pro and I am having problems transferring data from my old MacBook Pro. I am using an Apple Thunderbolt to FW adapter to hook both computers and I am using the Migration Assistant. Everything looked ok until the "Transferring Your Information" screen got stuck. It says that it is "Transferring your Application folder..." And it has been stuck for at least the last two hours giving a message that says "About 3 minutes remaining..." This is starting to get ridiculously annoying. Options?

    I guess I am finding my own way as time progresses and frustration increases but these are two things that I have found so far:
    1. Transfering from one machine to another does not seem to be the most efficient way to do this so using the TimeMachine backup must be the way to go...
    HOWEVER
    2. In this process I also found another "complication" called: Legacy FaultVault - My computer is encripted and I used this now so called "Legacy FaultVault" app to do it (when it was no a Legacy!). The thing is that you can not transfer documents from your TimeMachine backup to your new Mac if the Legacy Fault Valut is active on your old machine so you first need to desactivate the encription. HOWEVER, this brought another issue...when I tried to desactivate the encription using the Legacy FaultVault screen I got a message saying that I did not have enough disk space to allow me to do that....Isn't that great??? This is a problem by itself and it seems to have some sort of solution I was reading about (not straight forward at all). What I am trying to do now is to copy the folder that contains my files and just paste them on my new machine to see if that works....it looks like my apps are on my new machine, unsure if they are working...need to test this next....
    I guess the transfer machine to machine could have sorted out the conflict eventually...after tens of hours or maybe not! Who knows....
    A very frustrated Apple fan...
    I love Apple products but this is an ISSUE...I feel like there is lack of adecuate documentation around to deal with this or the data transfering apps should be able to deal with this on a more efficient way....just saying...

  • JMS Receiver FCC Problem After Upgraded from SP19 to SP22 in XI3.0

    Hello,
    I am facing a problem in my Receiver JMS adapter in FCC just after the upgrading it from SP19 to SP22 in XI 3.0 by our basis consultant. Before that everything was working perfect in DEV.
    I am getting the below mentioned error in CC monitoring.
    > MP: Exception caught with cause com.sap.aii.messaging.adapter.trans.TransformException: Error converting Message: 'java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException''; nested exception caused by: java.lang.Exception: Exception in XML Parser (format problem?):'java.lang.NullPointerException'
    This problem is happening in other scenario too in our DEV system.
    But at the same time since we have not applied any upgrade in QA therefore same scenario is working fine.
    Regards,
    Sarvesh

    Ok Friends...
    I got the solution from SAP.. there was a problem in the SP22 for XI 3.0 which I donloaded from Service Market Place. Now I have applied the correct SP22 to my system and now it is working fine...
    I hope this may help you...
    Regards,
    Sarvesh

  • Oracle ESB 10g : Blank namespace in the SOAP Response from DB adapter

    Hi All,
    I am currently working on a ESB project to route input XML file as a parameter to a DB Function.
    This Function has a input parameter of type XMLTYPE and returns VARCHAR2 values.
    I have configured the DB Adapter to invoke this function and return the result as a SOAP response.
    The WSDL of DB adapter contains XML_DATA as input and XMLMAIN as the output result.
    The ESB project works fine as expected. But in the result from DB adapter contains a blank namespace [xmlns=""] for the XMLMAIN element .
    I hereby attach the output XML.
    Please help how to remove this blank namespace from the output.
    We are using SOA Suite 10g 10.1.3.5
    <env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
    <env:Header/>
    <env:Body xmlns="http://xmlns.oracle.com/pcbpel/adapter/db/XXWEB/XMLMISCRCPTINSERTPKG/XMLMAIN/">
    <OutputParameters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <XMLMAIN xmlns="">100</XMLMAIN>
    </OutputParameters>
    </env:Body>
    </env:Envelope>
    Thanks and Regards,
    Justin Michael Raj

    well..the problem is..the db adapter has it's own transaction..so the transactions fails or not.
    you're just not capable of checking if the transaction went ok...and return 'process completed ok' or when the transaction failed for some reason return 'the process aborted'.
    So you just need some extra steps for it to be able to return some response-message

  • OC4J 9.0.4: Problem receiving message from JMS queue

    I've created an application which puts XML files in a JMS queue and try to get it out again. The enqueing (sending) is no problem, but when I dequeue from the same queue I receive nothing and if I don't specify a wait time the programs hangs.
    If I create a QueueBrowser I can see there are messages in the queue.
    Can someone tell me what I do wrong?
    Here is the code of my dequeue action:
    public String dequeue(int qName) throws RbsSysException
            final String method = "dequeue(int qName)";
            _log.debug(method);
            QueueConnection queueConnection = null;
            try
                queueConnection = _queueConnectionFactory.createQueueConnection();
                QueueSession queueSession = queueConnection.createQueueSession(false,
                        Session.AUTO_ACKNOWLEDGE);
                QueueReceiver queueRcv = queueSession.createReceiver(getQueue(qName));
                _log.debug("queue = "+ queueRcv.getQueue().getQueueName());
                // Due to bug 3376983 in OC4J We cannot use TextMessage if it exceeds
                // 64 kb. Therefore use ObjectMessage.
                Message msg = queueRcv.receiveNoWait();
                _log.debug("msg = " + msg);
                ObjectMessage objMsg = (ObjectMessage)msg;
                //ObjectMessage objMsg = (ObjectMessage) queueRcv.receiveNoWait();
                _log.debug("objMsg = " + objMsg);
                if (objMsg != null)
                    return (String) objMsg.getObject();
                else
                    return null;
            catch (JMSException je)
                throw new RbsSysException(je);
            finally
                if (queueConnection != null)
                    try
                        queueConnection.close();
                    catch (Exception any)
                        _log.error("Error while closing QueueConnection: ", any);
        }

    Did you implement javax.jms.MessageListener and the method onMessage(Message)?
    If you use onMessage() as wel as receive (or receiveNoWait() or receive(long)), the onMessage() can be called, while the main thread is blocking on a synchronous receive, so make sure you use only one of the two methods: onMessage() or receive.
    Receive() blocks your thread until a message is published. So your program 'hangs' by design. Usually this is used when your program is waiting for a particular message. Otherwise use onMessage().
    ReceiveNoWait() checks if something is in the queue at that very moment, so if nothing is there (yet), the main thread continues.
    Hope this helps,
    Lonneke

  • OS commands from File adapter Trace logs?

    Hi All,
    I am running some UNIX OS commands from File adapter as showing in below Blog.
    Problem is that in SXMB_MONI & in Runtime workbench I can not see any Trace logs written by those UNIX OS commands.
    Even I am writing echo messages.
    Runtime Workbench says only OS command file executed.
    Please guide me where I can see OS trace if some OS command fails?
    Any transaction code even at BASIS level exist?
    Or the only other way round exist is I need to write log into some files.
    /people/daniel.graversen/blog/2008/12/11/sftp-with-pi-the-openssh-way
    I am using PI7.1.
    Regards

    I think no solution, other then writing ABAP code using RFC SXPG_COMMAND_EXECUTE and put log/trace in some table/application.

  • Re: Migration from Sysbase Adaptive Server 11.5 to Oracle 8.0.6

    I had a problem when using Oracle Migration Workbench to migrate a database from Migration from Sybase Adaptive Server 11.5 to Oracle 8.0.6 in NT environment.
    It contains only 8 tables.
    Firstly, it captured well the source database from Sybase. But It hang on every times when mapping tables in this database to Oracle.
    Is there anyone experienced with this problem?
    By the way, I would like to know that which way (tool) is the best one to migrate
    A system from Sybase Adaptive Server 11.5 to Oracle 8.0.6
    Any idea will be very appreciated?
    Thanks
    null

    Thanks very much.
    I have sent both the error.log and my repository to [email protected]
    Could you please let me know if you have any advice.
    John

Maybe you are looking for

  • GL balance reupload as of a particular date

    Hi. We need to zero all GL balances upto a certain date (31.03.2007). A certain number of entries have been done before this date but they are not complete. Hence the account balances are not correct. It is a lot of effort to do all those entries. Si

  • Bridge will not let me reject files using the quick key: option+delete

    Hi Guys, This is really starting to frustrate me. I'm trying to move quickly some large quantities of files however, for some reason all I get is a error tone when I attemp to reject a image with the quick key after selecting it, or in full screen pr

  • Error occurred during table access. See long text

    Hi Folks, WHile billing system encountered the below error mesasge CO-PA Characteristic Derivation Diagnosis Step 0053 Product AAG -> Temp2 While executing this table lookup, the system could not find an entry for the specified source values in table

  • Adding custom column to a  user matrix

    Hi all I have a little problem When i create my matrix i add columns according to how many ship to's i have from there if i have 3 ship to's three columns are created with the shipto Name as the title. My problem is The ship to itself length is > 10

  • Finder "Folder of Death"

    There is a folder on my main hard drive that kills Finder every time I try to open it. Total Finder crash & restart. I can use Terminal to view the folder's contents. The kicker is that Finder was opening the folder fine for a couple days after upgra