Conversion of an ObjectMessage to a BytesMessage

Hi All,
I have an asynchronous listener which is listening to messages on a queue. My Client program puts an ObjectMessage type into the queue but when I retrieve the message back from the queue, it's no more an instance of ObjectMessage but it's of type BytesMessage!!!! Did anyone else have this problem before? Any ideas on how to handle this?

check whether the state of queue is clean or some other message is put on the queue by some other appln or ur program i too had a similar type of prob

Similar Messages

  • Variable initialized with wrong message type

    Hi,
    I have a BPEL process variableA of Message type A as defined in the partnerlink WSDL file. This variable get initialized during operation A from the partnerlink. The WSDL has another message type B defined for another operation B.
    During runtime when operation A is called variable A gets initialized with message type A, however when operation B is invoked with mesage type B variableA gets initialized again with the content of message type B even though it's defined to be of message type A. Below are the snippets from the WSDL and BPEL process file
    WSDL file ..
    <message name="MessageTypeA">
    <part name="payload" element="mpx:MessageARequest"/>
    </message>
    <message name="MessageTypeB">
    <part name="payload" element="mpx:MessageBRequest"/>
    </message>
    <portType name="MutilPort">
    <operation name="A">
    <input message="tns:MessageTypeA"/>
    </operation>
    <operation name="BA">
    <input message="tns:MessageTypeB"/>
    </operation>
    </portType>
    Process BPEL file
    <variable name="VariableA"
    messageType="tns1:MessageTypeA"/>
    <variable name="VariableB"
    messageType="tns1:MessageTypeB"/>
    <pick name="Pick_2" createInstance="yes">
    <onMessage portType="tns1:MutilPort" operation="square"
    variable="VariableA" partnerLink="Multiplex">
    <sequence name="Sequence_1">
    <assign name="Assign_2">
    <copy>
    <from variable="VariableA" part="payload"
    query="/ns1:MessageARequest/ns1:Operand1"/>
    <to variable="ResponseVariable" part="payload"
    query="/ns1:AllOpProcessResponse/ns1:Result1"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    <onMessage portType="tns1:MutilPort" operation="addition"
    variable="VariableB" partnerLink="Multiplex">
    <sequence name="Sequence_2">
    <assign name="Assign_1">
    <copy>
    <from variable="VariableB" part="payload"
    query="/ns1:MessageBRequest/ns1:Operand5"/>
    <to variable="ResponseVariable" part="payload"
    query="/ns1:AllOpProcessResponse/ns1:Result1"/>
    </copy>
    </assign>
    </sequence>
    </onMessage>
    </pick>
    Please can anyone shed some light on why and how this can happen and where is it going wrong.
    Thanks,
    Shishir

    Looks like the destination which is used by your EG has default settings,
    particulary the RedeliveryLimit param. If it is set to -1 (default setting)
    WL will try to redeliver the message forever in case of any error. Just set
    it to something else. You can also specify an ErrorDestination and hadle
    error messages specifically in it.
    Denis.
    <Gunjan Shukla> wrote in message news:[email protected]..
    Hi,
    We are using WLI 8.1, in one of our applications I have a message broker
    channel configured to listen to rawdata type messages. A jms event
    generator is configured to publish messages, which are sent to a jms
    topic, on this channel.
    We have no control over type of messages sent by client applications, when
    some client application sends an ObjectMessage instead of BytesMessage,
    following error is thrown
    ####<Jun 1, 2006 10:47:14 AM GMT-07:00> <Error> <WLW> <P931467> <cgServer>
    <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'> <<anonymous>>
    <BEA1-004324CB0C4F26C12C0A> <000000> <Cannot publish non-BytesMessage to
    channel of type RAWDATA>
    ####<Jun 1, 2006 10:47:14 AM GMT-07:00> <Error> <WLI-Core> <P931467>
    <cgServer> <ExecuteThread: '11' for queue: 'weblogic.kernel.Default'>
    <<anonymous>> <BEA1-004324CB0C4F26C12C0A> <BEA-489048> <Not a
    BytesMessage>
    server keeps throwing this exception and fills the logs and ultimately
    server needs to be re-started.
    Can somebody point me to whether its possible to catch these exceptions in
    a process?
    Or alternatively is it possible to somehow ignore the messages with
    mismatched message type?
    Any ideas are greatly appreciated.
    Thanks and regards,
    Gunjan

  • Java JMS ObjectMessage

    Hey there
    Been struggeling all day + yesterday on how to store a pdf-message into a (Glassfish) jms queue from a Replier-class, and then to retreive it in a Requestor class.
    The scenario:
    Requestor---sends file to jms/RequestQueue-->
    Replier----processes the file-->
    Replier---sends pdffile to jms/ReplyQueue-->
    Rquestor---retreives jms/RequestQueue and sends it to a browser->
    My issue is.
    The Replier
    String fil = "C:/PDFTEST/"+pdffile+".PDF";
    File file = new File(fil);
    ObjectMessage outMessage = session.createObjectMessage();
    outMessage.setObject(file);
    outMessage.setJMSCorrelationID(message.getJMSCorrelationID());
    replyProducer.send(outMessage);Everything seems to work from Requestor send to MQ, The Replier above gets the file to process, and to store the File as a ObjectMessage in MQ...But, when the Replier gets the file from MQ it can't get it out as a java.io.File.
    ErrorCode:
    java.lang.NullPointerException
         at com.edbteamco.common.servlet.OnlineFaktura.invoiceGET(OnlineFaktura.java:273)
         at com.edbteamco.common.servlet.OnlineFaktura.doGet(OnlineFaktura.java:108)The RequestorCode:
    queueConnection.start();    
    QueueReceiver queueReceiver = queueSession.createReceiver(repQueue, "JMSCorrelationID = '" + jmsCorrelationID + "'");    
    msgReceived = (ObjectMessage) queueReceiver.receive(10000);
    response.setContentType ("application/pdf");
    response.setHeader           ("Content-Disposition", "attachment; filename=\"testfilen.txt\"");
    response.setHeader("cache-control", "no-cache");
    InputStream in = new FileInputStream((File)message.getObject()); the line **InputStream in = new FileInputStream((File)message.getObject()); ** causes the error
    Anyone up for helping?:)

    Yes, he gave me the solution, but not how to implement it. I think the documentation is not verry good when it comes to handling files through jms.
    I've now tried the following:
    InputStream is = new FileInputStream(new File(".....filelocation....."));
    long length = file.length();
    byte[] bytes = new byte[(int)length];
    int offset = 0;
    int numRead = 0;
    while (offset < bytes.length && (numRead=is.read(bytes, offset, bytes.length-offset)) >= 0)
        offset += numRead;
    BytesMessage outMessage = session.createBytesMessage();
    outMessage.setJMSCorrelationID(message.getJMSCorrelationID());
    outMessage.writeBytes(buffer);
    replyProducer.send(outMessage);And when I try to open that file up on my client, I get a nullPointerException:
    msgReceived = (BytesMessage) queueReceiver.receive(10000);
    // How to read the bytes right???
    ServletOutputStream outs = response.getOutputStream();
    while (true)
             try {
                  byte b = ((BytesMessage)message).readByte();
                  outs.write((int)b);
                  System.out.println("Byte: " + (int)b);
                  catch (MessageEOFException e) {
                       break;
    Please help
    Cincerely Paul

  • Conversion of Characteristic Values to SIDs is taking long time

    Hi Experts,
        Cube load is taking more than 7 hrs to complete for 6 million records. Max time is at Conversion of Characteristic Values to SIDs. Cube consists of 500 fields. Load is from DSO to Cube. DSO has 10 fileds with no SID flag check for activation. Remaining fields in the CUBE are pouplated looking in to other DSO's. Start and End routines are executing very fast. How to fasten Conversion of Characteristic Values to SIDs step.  I need to load 15 million records daily as part of delta. any suggestions.
    Thanks
    Sunil

    Hi Sunil,
    Go through the below link, it will be useful
    http://aq33.com/business-warehouse/Articles-05269.html
    Regards,
    Marasa.

  • 11i to r12 Conversion - help needed

    Hi
    My client is doing re-implementation of r12 and migrating from 11i to r12. I need help particularly on conversions side. The client is a SaaS company. they are considering to bring open and history transactions and applied/unapplied receipts to r12 AR.
    - how to migrate revenue scheduled open/closed invoices from 11i to r12 since rev schedules for a SaaS company is expected to be long terms. and how to make sure that rev schedules are correct upon migration to r12??
    - for partially paid invoices how to make sure that the same partially paid amount reflects in r12 upon conversion? can a negative line amount equalling to paid amount be a possible solution??
    - upon migration do the closed invoices have to be converted as open and receipts re-applied after migration in r12 or they can be brought in as-is with status closed?
    - if customer paid for an invoice using a credit card in 11i and upon migration it came to notice that the credit card is no longer used by the customer so how to re-apply the same receipt in r12 which was applied in 11i using that credit card. do we have to enable it in r12 just for closing the invoice? what could be possibilities?
    please anyone if can answer would be very helpful
    Thanks
    -MS

    It depends on the dpi. Usually 72dpi = 72 pixels per inch.
    1000/72 = 13,88888 inch
    1 inch = 25,4 mm
    13,88888 * 25,4 = 352,7777 mm
    You do the arithmatic with a calculator.
    To do the same with pictures, you can do it in any image editor. Even Preview.app :
    !http://www.wyodor.net/_Discussions/PreviewResize.png!

  • IMessage beta loose all saved conversations when I open and close a window.

    iMessage beta looses all saved conversations when I open and close a window.
    Just reporting this bug... Could not find anyother place to do it.
    Jonathan

    I thought it was doing that also. But I found that if I start a new chat with someone I was messaging before, then the old messages re-appear in the messages window.

  • Is there a way to selectively edit a conversation in iMessages instead of clearing the entire conversation? Like you can do on the iPhone for instance.

    Is there a way to selectively edit a conversation in iMessages instead of clearing the entire conversation? Like you can do on the iPhone for instance.

    Did you find an answer to your question?
    Would it also apply to Mountain Lion's Messages?
    Thanks

  • I need to delete myself from a Group Conversation.

    My idiot friends added me to a group conversation and i cannot leave it. Each time i ask them to start a new conversation and not include me they refuse. My phone has been ringing non stop for 3 days now and i need to find a way to get out of this conversation so that i can go to class, do my homework and sleep at night!!! I can turn my phone onto Airplane mode but when it is in this mode I cant receive the important phone calls and text messages that i need to answer.
    Somebody please help me.
    If there is no way to leave this conversation somebody please tell me where i can find a virus that will shut down their phones.
    Thanks
    WN

    See this Video on Freeing Up Disc Space
    http://macmost.com/what-to-do-when-your-hard-drive-is-full.html

  • In Thunderbird while trying to move conversation results to an archive folder; if some of the results are already in the folder it will not move any.

    Hi. I often use the conversation search option when archiving my emails from inbox. I find this a very useful method of finding trails where I and multiple people have responded to each other. However If I have already moved one or more of these emails into the archive folder and select all to move, Thunderbird will not move any. I then need to individually select those that need to be moved.
    Although not a major issue I use this regularly and often come across the problem. a recent fix which allows location tab to remain on in search helps but does not resolve this issue. A slightly annoying problem and I was wondering if any one else has this issue. Also is anyone looking into a solution?

    FCPx answer: At least the answer that worked for me...
    I had the same problem, as I believe many others had.
    In my case the problem was with one of OSX Mavericks' new features: APP NAP.
    It looks like this is ON by DEFAULT for ALL Applications and that FCPx, or Compressor for that matter, will not work if this is enabled on them.
    I just disabled App Napp on FCPx and now it works, again, like a charm.
    This is how you disable App Nap: http://reviews.cnet.com/8301-13727_7-57612009-263/how-to-disable-app-nap-in-os-x -mavericks/
    I hope this helps,
    Mariano

  • Import conversion data table from SAP R/3 into value mapping table in XI

    Hi:
        Somebody knows how to import a table with conversion data that are in SAP R/3 and to take it to a value mapping table in XI?
        The purpose is to use a mapping table that can change in the future. Must I use a ABAP programming that retrieve data and build the value mapping table?
        If so, how I specify in the ABAP programming the group id, the scheme, the agency and the corresponding value?
        Please, help me.
        Regards!!!

    Hi David,
    please refer to this section in the help: http://help.sap.com/saphelp_nw04/helpdata/en/2a/9d2891cc976549a9ad9f81e9b8db25/content.htm
    There is an interface for mass replication of mapping data. The steps you need to carry out to use this are:
    +Activities
    To implement a value-mapping replication scenario, proceed as follows:
           1.      Register the Java (inbound) proxies.
    To do so, call the following URLs in the following order in your Internet browser:
    ¡        http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplication&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplication&method=valueMappingReplication (for the asynchronous replication scenario)
    ¡ http://:/ProxyServer/register?ns=http://sap.com/xi/XI/System&interface=ValueMappingReplicationSynchronous&bean=localejbs/sap.com/com.sap.xi.services/ValueMappingApplicationSynchronous&method=valueMappingReplicationSynchronous (for the synchronous replication scenario)
    You only need to perform this step once (for each installation).
           2.      Application programming
    The ABAP program must perform the following tasks:
    ¡        Read the value mapping data from the external table
    ¡        Call the outbound proxy used to transfer the data to a message, which is then sent to the Integration Server
           3.      Configuration of the replication scenario in the Integration Directory
    This involves creating all the configuration objects you need to execute the scenario successfully. One special aspect of the value-mapping replication scenario is that the receiver is predefined (it must be on the Integration Server). The sender, however, is not predefined in the replication scenario and can be defined to meet your individual requirements.
    For example, you can use the shipped ABAP proxies.
    In the case of the receiver communication channel, choose the adapter type XI. Ensure that you configure a channel for the Java proxy receiver in this case.
    Enter the path prefix /MessagingSystem/receive/JPR/XI for this purpose.
    +
    Regards
    Christine

  • In Pages 5, Maverick, How do I stop automatic conversation of URLs to hyperlinks and seeing them underlined

    There used to be a preference setting in Pages.  Now it seems gone in Pages 5.   So how do I stop automatic conversation of URLs to hyperlinks and seeing them underlined in text.  Sometimes I want it, but not always.

    The preference setting to turn off links is gone. When you enter content that triggers link detection, a link character style gets applied. Right-click on the link, choose Edit Link from the menu, and then Remove.
    To prevent Pages from automatically detecting links, visit Edit > Substitutions > and deselect Smart Links.

  • Content conversion in sender file adapter problem

    Hello,
    I receive a flat file with the following structure:
    HEADER;...fields;
    ITEM;...fields;
    ITEM;...fields...;
    HEADER;...fields;
    ITEM;...fields...;
    ...etc.
    and I am converting it to xml with the same structure. The Problem by the conversion is that the result looks something like this:
    HEADER;...fields;
    ITEM;...fields;
    ITEM;...fields;
    ITEM;...fields;
    HEADER;...fields
    HEADER;...fields.
    So, all the ITEM recordsets are ordered to one HEADER structure and the other HEADER structures have no ITEMs.
    Do you have a suggestion how I can get this right?
    Thanks!!
    Best Regards,
    Mircea

    Hi,
    Can you provide with the details of FCC parameters you have used ??
    The problem might be there in the occurance..
    Regards,
    Chandra

  • File Content Conversion in Sender File Adapter

    Hi,
    I am implementing a scenario, where I need to do Content conversion in My file Adapter.My input file is as follows
    BGN00S-A200711281003ET4
    REF38381012
    DTP007D820071128
    N1P5P5MicrosoftFI58-0612397
    INSY18030XNAN
    REFZZZZ666666666
    DTP336D819970331
    NM1ILIL1AdamsMarkE34666666666
    PERIPIPHP770555-5555
    N31470 Georgia Club Drive
    N4StathamGA30666
    DMGD819571022MM7
    HD030HLTAE1D
    My data type is as below.
    <header>
         <BGN>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </BGN>
         <REF>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REF>
         <DTP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DTP>
    </header>
    <Content>
         <N1>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </N1>
         <REFAR>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REFAR>
         <DMP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DMP>
    </Content>
    My issue is, How do I set my parameter in Sender Comm channel for content conversion especially at record structure.
    I have provided the value as Header,1,Content,*
    But its not working.
    If I do provide like
    BGN_REC,,REF_REC,,DTP_REC,,N1_REC,,INS_REC,,NM1_REC,,PER_REC,,N3_REC,,N4_REC,,DMG_REC,,HD_REC,* then ,I am not getting above XML format. Please suggest or How can I modify my Data type which competes to configure in Channel
    Thanks
    Manmadha

    Hi All,
    I am sorry for the Jumbled Content. I dont know what happened.
    I should get the XML output as below.
    header>
         <BGN>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </BGN>
         <REF>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REF>
         <DTP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DTP>
    </header>
    <Content>
         <N1>
              <A></A>
              <B></B>
              <C></C>
              <D></D>
         </N1>
         <REFAR>
              <A1></A1>
              <B1></B1>
              <C1></C1>
              <D1></D1>
         </REFAR>
         <DMP>
              <A2></A2>
              <B2></B2>
              <C2></C2>
              <D2></D2>
         </DMP>
    </Content>

  • J2SE adapter PI 7.1 issue with XML to flat conversion and namespace length

    Dear reader,
    We are facing an issue with J2SE Adapter PI7.1 for a number of flows.
    The flow requirements:
    [1] Namespace length for interfaces is up to 100 characters
    [2] The XML message must be converted to Flat on the adapter channel
    Our PI system is at patch level 7 and we implement J2SE adapter on patch level 7 as well.
    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1 j2SE adapter) but no issues where found with the XML to flat conversion [2].
    Experimenting with J2SE adapter on patch level 6 we found the long namespaces [1] are supported however an issue is found with the XML to flat conversion [2] as stated in SAP note 1335527.
    An SAP Customer Message is raised on this issue however your input is highly appricated!
    With Kind Regards,
    Harald Kastelijn
    Edited by: Harald Kastelijn on Mar 6, 2010 9:17 AM
    Edited by: Harald Kastelijn on Mar 6, 2010 9:19 AM

    We found that the J2SE adapter on patch level 7 does not support long namespaces [1] (as it should since this is an PI 7.1
    j2SE adapter) but no issues where found with the XML to flat conversion [2]
    I think the restriction of namespace length still remains in design time (IR).....the same however has been extended in configuration and runtime...this SAP note has some information: https://service.sap.com/sap/support/notes/870809

  • In PDF to Excel conversion dates like 03/12/15 convert to Dec 3rd 2015 not the correct date of Mar 12th 2015 whereas date 03/13/2015 converts correctly as March 13th 2015

    In PDF to Excel conversion dates like 03/12/15 convert to Dec 3rd 2015 not the correct date of Mar 12th 2015 whereas date 03/13/2015 converts correctly as March 13th 2015

    Hi DirTech,
    Are both of these dates in the same Excel file? If they're in different files, are you choosing the same language for OCR (optical character recognition)?
    If they are in the same PDF file, how was that PDF file created? Was it created from a third-party application (rather than an Adobe application)? If it was created by a third-party application, it could be that it wasn't written to spec, and that's why you're seeing some oddities in the PDF > Excel conversion.  (See Will Adobe ExportPDF convert both text and form... | Adobe Community.)
    Best,
    Sara

Maybe you are looking for

  • How to debug when you can't recreate error consistently

    I have a simple illustrator-type application in which I draw rounded rectangles to a JPanel and then the user is able to move them around (the position and repaint is done in via the mouseDragged interface. Sometimes, the application shuts down when

  • Desk jet DJ4515 setup via mobile

    I have purchased a desk jet dj4515 and wanted to know if I can install and set the printer up using a mobile phone as I do not have a laptop or computer.

  • Tapping freezes,or is dislocated

    When I tap an icon or an entry I am either sent to another place, or receive no result at all. And, to make matters worse, I cannot access the preferences menu or on the desktop to access preferences in order to digitize because the screen is frozen.

  • Older podcasts not showing on itunes

    Our school has made about 20 podcasts. However, only the last 7 or so are showing up on itunes. All are still on the web and available for download. Does anyone have any ideas? Thanks Randy

  • NLS_LANG : AMERICAN_AMERICA.WE8ISO8859P15 or AMERICAN_AMERICA.WE8ISO8859P1?

    Hi all, We have a dedicated server for data bases ( Oracle Database 10g Enterprise Edition Release 10.2.0.4.0 on sun4u sparc SUNW,Sun-Fire-480R) and NLS_LANG= AMERICAN_AMERICA.WE8ISO8859P15 and other servers where we have different applications (one