Deserialization Problem with JDOM Document

HI,
I am using weblogic7.0 and i have created my own class which implements serializable. I set the object of this class in the ObjectMessage and send it across. Sometime i have to send some vector,sometimes string and sometime a XML document. So i can set these type of objects in my custom serializable object and send it. For sending XML , either i can send it as a string or as u said as Document object. But i want to do send it as a Document object. So i have created a an object of "org.jdom.Document" which implement serializable and setting this object into my custom object and sending this custom object in the objectmessage. But then weblogic throws some exceptions which has to do with deserialization.I am printing the exception below. (without the object of org.jdom.Document this custom object reaches safely and happily:))........can you or anybody tell me what could be the reason..
weblogic.jms.common.JMSException: Error deserializing object
at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
----------- Linked Exception -----------
weblogic.jms.common.JMSException: Error deserializing object
at weblogic.jms.common.ObjectMessageImpl.getObject(ObjectMessageImpl.java:140)
at com.sds.kb.cm.CMMDBReceiver.onMessage(CMMDBReceiver.java:143)
at weblogic.ejb20.internal.MDListener.execute(MDListener.java:356)
at weblogic.ejb20.internal.MDListener.transactionalOnMessage(MDListener.java:290)
at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:271)
at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:2303)
at weblogic.jms.client.JMSSession.execute(JMSSession.java:2226)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:153)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:134)
any help would be apprciated..
Akhil

Are you sure that your object gets serialized in the first place? You could use the writeObject method (explained in Javadoc for java.io.Serializable) to snoop the process.
I am actually surprised you can serialize a DOM document.
/Sebastian

Similar Messages

  • Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages - what the **** is going on???

    Really having problems with organising documents in pages. For example, deleting pages deletes the whole section and I cannot insert a section break as its greyed out & sending an object to background deletes several pages and trying to insert a text box autmatically creates new pages- what the **** is going on??? Is this programme really this badly thought out? I thought everything apple was supposed to be intuitive!?!?!? Help.

    You can not insert a section break into a textbox.
    You appear to have a lot of objects with wrap set, that once you take them out of the flow of text (by sending them to the background) causes the text to reflow and contract into fewer pages. Pages is almost unique in the way it forms up pages in Word Processing mode only so long as there is text on them.
    I suspect you probably have hammered away at returns, spaces and tabs as well to position things, which only works to add to the mess.
    Download the Pages09_UserGuide.pdf available under the Help menu and swot up a bit on how it works.
    You may find this a usueful resource as well:
    http://www.freeforum101.com/iworktipsntrick/
    Peter
    PS There is quite a lot of programming in OSX that is far from "intuitive". Pages is easy at one level, when using the templates, otherwise it can be quite frustrating.

  • Problems with attached documents in Mail and Docs To Go

    Hello everybody.
    I've found a problem with attached documents in Mail. In fact, if I click on attached documents with .doc (microsoft office word 97-2004) and files in .docx Office Open .xml, the iPad doesn't open them, also if I click in "Open with Docs To Go (which should support these files' format)".
    How can I do? There's an application or another way to open these files?
    Other Informations:
    Docs To Go version: 5.2.2

    Update the patch to the Sapgui.
    Regards,
    Ignacio.

  • Error, problem with saving documents, Illustrator

    I have a problem with saving documents in Adobe Illustrator (CS6): when I import to my document some jpg, tiff etc (even it isn't huge) Illustrator is crashed ("program to stop working correctly because of a problem. Windows will close the program and notify you if there is a solution available."). Next: program close.
    But when I work only with objects from AI - everything is ok - any error, I can save it.
    I have reinstalled and updated AI. And nothing changed.
    What is a problem?

    <moved from Downloading, Installing, Setting Up to Illustrator>

  • Intresting problem with JDOM and xmlns in root element.

    Hi all,
    I am trying to parse a xml file using a jdom java code.This code works fine if I remove xmlns attribute in the root element.Please tell me how to fix this issue.
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Xml
    <process name="CreateKBEntryService" targetNamespace="http://serena.com/CreateKBEntryService" suppressJoinFailure="yes" xmlns:tns="http://serena.com/CreateKBEntryService" xmlns="http://schemas.xmlsoap.org/ws/2003/03/business-process/" xmlns:bpelx="http://schemas.oracle.com/bpel/extension" xmlns:ora="http://schemas.oracle.com/xpath/extension" xmlns:nsxml0="http://localhost:8080/axis/services/CreateKBEntryService" xmlns:nsxml1="http://DefaultNamespace" xmlns:bpws="http://schemas.xmlsoap.org/ws/2003/03/business-process/">
    <partnerLinks>
              <partnerLink name="client" partnerLinkType="tns:CreateKBEntryService" myRole="CreateKBEntryServiceProvider"/>
              <partnerLink name="CreateKBEntryPartnerLink" partnerLinkType="nsxml0:CreateKBEntryLink" partnerRole="CreateKBEntryProvider"/>
         </partnerLinks>
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`
    Java:
    import java.io.*;
    import java.util.*;
    import org.jdom.Document;
    import org.jdom.Element;
    import org.jdom.input.SAXBuilder;
    public class sample1 {
    public static void main(String[] args) throws Exception {
    // create a XML parser and read the XML file
    SAXBuilder oBuilder = new SAXBuilder();
    Document oDoc = oBuilder.build(new File("file location "));
         Element root = oDoc.getRootElement();
         System.out.println(root.getName());
         String tgtns= root.getAttributeValue("targetNamespace");
         System.out.println("tgt ns "+ tgtns);
    List list= root.getChildren("partnerLinks");
         Iterator it1= list.iterator();
         System.out.println(list.size());
         while(it1.hasNext()){
              Element partnerlinks = (Element)it1.next();
              List list2= partnerlinks.getChildren("partnerLink");
              System.out.println(list2.size());
              Iterator it2= list2.iterator();
              String[][] partnerLinkval = new String [2][list2.size()];
              int i=0,j=0;
              while(it2.hasNext())
                   Element el2= (Element)it2.next();
              String ElementName = el2.getName();
              partnerLinkval[i][j]= ElementName;
              j++;
              String Attribute = el2.getAttributeValue("myRole");
              partnerLinkval[i][j]= Attribute;
              i++;
              j--;
              System.out.println("Saving in array "+el2.getName());
              System.out.println("Saving in array "+Attribute);
              System.out.println("array length"+partnerLinkval.length);
              for (int l=0;l<2;l++){
              for(int k=0;k<partnerLinkval.length;k++)
                   System.out.println(partnerLinkval[l][k]);
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    Result:
    Without Xmlns in xml file
    process
    tgt ns http://serena.com/buildserviceflow
    1
    2
    Saving in array partnerLink
    Saving in array BpelServiceFlowProvider
    Saving in array partnerLink
    Saving in array null
    array length2
    partnerLink
    BpelServiceFlowProvider
    partnerLink
    null
    Result with xmlns:
    process
    tgt ns http://serena.com/CreateKBEntryService
    0

    Hi,
    I am also having the same problem using jdom, my code works fine when there is no xmlns attribute but when i put the xmlns attribute back in doesn't work.
    Did you manage to find a way to solve this problem?

  • Problems with JDOm XPath

    Hi all.
    I have a JDOM XML document and I use JDOMXPath to apply XPath expressions on the XML document.
    I have XPath expression for which JDOMXPath does not match any node:
    //*[not(count(descendant::a) < 4)]
    [not(descendant::node()[count(descendant::a)>3])]
    [not(descendant::text()[normalize-space(string())!='']
    [not(ancestor::a)])]
    XML parser such as Saxon, MSXML, etc. correctly match this XPath on the document and find the appropriate node-set, so the XPath expression is 100% right from the XPath syntax perspective.
    But in JDOM, it does not match.
    Could anybody tell me what is the problem?
    Thank you very much for help and sorry if this is the wrong place to ask this question - this is my first post here.
    Thanks again,
    Anna

    Sorry, forgot to tell something very important:
    the XML node-set that I am trying to match is as follows:
    <ul>
    <li>Accessibility</li>
    <li>Amaya</li>
    <li>ABC</li>
    <li>CC/PP</li>
    </ul>
    The interesting moment is, that if I change the node-set to look like this:
    <ul><li>Accessibility</li><li>Amaya</li><li>ABC</li><li><a href="Mobile/CCPP/"></a></li></ul>
    i.e. without any spaces, JDOMXPath will match for the above XPath.
    Is there any problem with spaces in JDOM/JDOMXPath?
    Thanks again
    Anna

  • Problem with scanning document in PDF format to computer

    has anyone had a problem with scanning to the computer a document in pdf format from hp Photosmart 7525  e-All-in-One series wireless printer? The document appears in My Documents but when I try and open the document I get an error message that says the document cannot be opened. I can scan and open the document in TIF format. I am running Windows 7 Home Premium and I just installed the Photosmart 7525 printer. I've uninstalled and reinstalled the printer using the CD download.
    This question was solved.
    View Solution.

    Hi,
    Can you open other pdf files ? Do you have Adobe Reader in your computer ? Please download and install it on your machine then try to open file(s) again:
       http://get.adobe.com/reader/
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • Problems with attach documents in solman

    Hi Experts,
    I need to attached to my organizational business structure (in Tx SOLAR01 and SOLAR02) many templates documents of functional and technical specifications and have a problem with that.
    When I make the solar_project_admin transaction and click onto project template buttom to create a personal document the system gives me a warning message:
    "Documentation types in SAP namespace cannot be copied
    Message no. SPROJECT371
    Diagnosis
    You tried to copy documentation types in the SAP namespace into the template. This is not possible.
    System Response
    The documentation types were not copied."
    Could you please tell me how can I create my own document (SOLAR01 Y SOLAR02) to attached onto the structure?.
    Tks!
    Ignacio.

    Update the patch to the Sapgui.
    Regards,
    Ignacio.

  • Archive Link problem with redundant document names

    Hi all,
    I have a tricky problem in archive link. I would like to attach some different documents to an HR/PD Organisation unit ( objekttyp pdotype_o )
    All customizing works fine but the problem is, all documents attached to one busines object ID have the same name ( in this case objectnumber.pdf)
    I am not lucky with this issue because  the users must be able to see all documents ( via document finder ) attached to the org. unit  and all what the users get, is a list of  one or more documents with exactly the same name.
    In some cases this are about 10 different documents and this issue is a very bad solution because users have to open all attached docs to recognize which one they need.
    During the import/check in of the documents via transaction OAAD and OAWD, SAP renames the original document name.pdf  into the related object ID.pdf and there is no way to rerename it or influence this process.
    I tried to use some scan software with SAP interface but unfort. with the same result because software of this kind use the archive link interface too and cannot influence the process of check in and rename.
    Has anybody an idea ( third party software, customer development or something like this ) to prevent this problem and give me the possibility to stay with the original document names or change it after check in?
    Thank you in advance
    Rayko

    How you fix this problem?
    I'm with the same problem. Could you help me please?
    Edited by: broullon on Jul 16, 2009 5:31 PM

  • Formatting problem with JDOM

    friends,
    help me out plz..
    While creating a xml document using JDOM ,
    I am not able to get the formatted xml file.
    program output is:
    <?xml version="1.0" encoding="UTF-8"?>
    <person><name>A</name><name>B</name><name>C</name><name>D</name></person>
    I want the result as:
    <?xml version="1.0" encoding="UTF-8"?>
    <person>
         <name>A</name>
         <name>B</name>
         <name>C</name>
         <name>D</name>
    </person>
    // XMLGenerator.java
    import org.jdom.Element;
    import org.jdom.Document;
    import org.jdom.output.XMLOutputter;
    import java.io.*;
    public class XMLGenerator {
    public static void main(String[] args) throws Exception{
    Element root = new Element("employee");
    while(rs.next()) // rs .. ResultSet
    Element emp_name= new Element("name");
    emp_name.setText(rs.getString(rs.getString("name")));
    root.addContent(emp_name);
    Document doc = new Document(root);
    // serialize it into a file
    try {
    FileOutputStream out = new FileOutputStream("record.xml");
    XMLOutputter serializer = new XMLOutputter();
    serializer .setIndent(true);
    serializer.output(doc, out);
    out.flush();
    out.close();
    catch (IOException e) {
    System.err.println(e);

    try:
    XMLOutputter serializer = new XMLOutputter( " " );
    with the size of the indent you require.
    You dont really need the line: serializer.setIndent(true); if u use this constructor.
    Hope this Helps
    Sam

  • Problem with JDOM and schemas

    I'm trying to parse (and validate) an XML document with JDOM.
    My root element is declared in the schaema whixh is asociated to the document.
    But during parsing, an exception saying that my root element is not declared is thrown.
    Can someone axplain to me what can happen ?
    Thank's

    What's this element ?
    My schema is indicated by the xsi:schemeLocation attribute of my root-element .

  • Help - Problem with word documents

    Hi
    All of a sudden I am having problems with documents in my word application.  Files I have previously transderred on to my Mac from a memory stick or via email attachments are unable to be altered.  i cannot add to a downloaded document that needs to be filled in or alter a date on a letter that I send out each month.  I am not very compiter literate.
    Beryl

    Hi
    All of a sudden I am having problems with documents in my word application.  Files I have previously transderred on to my Mac from a memory stick or via email attachments are unable to be altered.  i cannot add to a downloaded document that needs to be filled in or alter a date on a letter that I send out each month.  I am not very compiter literate.
    Beryl

  • Problem with Reversed document with IDOC interface

    I have a problem when I create Idoc which will reverse a document.
    I use ACC_DOCUMENT_REVERSE, in Idoc is filled like this -
    OBJ_TYPE ( BKPFF )
    OBJ_KEY( reverse document number + company code + year)
    OBJ_SYS ( system id )
    OBJ_KEY_R ( obj_key of document which will reverse )
    PSTNG_DATE
    COMP_CODE
    REASON_REV
    I formed OBJ_KEY with one select from table bkpf, and get the last number of documents reversed with Idoc interface. The interface creates Idoc reverse document with number 929xxxxxxx. With fb08 - documents created are 92xxxxxxxx.
    The problem is when use transaction fs10n, fill customer account number, and the sums are not right. The documents which was reversed with Idoc did not entered in G/L Account Line Item.
    But if I start transaction fbl5n - customer line item, the documents reversed by Idoc is there, and the total sum is right.
    How can I resolve this problem?
    Greetings,
    Lazar Hristov

    Hi,
    I hope you have reversed the posting.Have you cancelled the downpayment invoice.
    Please cancel the first downpayment invoice and post the amount for the second downpayment.
    Now try to create the final invoice.
    Regards,
    Krishna.

  • Printing problems with Pdf documents created with Pages

    I upgraded to Acrobat 8.0 recently and for some reason when I save a Pages document to pdf, within the print options then try and print, it prints blank.
    I have created other pdf documents which print OK, so the problem lies somewhere within Pages.
    I didn't have the problem with Acrobat 7.0
    ANy ideas

    When you say "Acrobat", do you mean Adobe Acrobat Standard or Pro? Or do you mean Adobe Reader?
    If it is Adobe Acrobat, I would go to the preflight option and see what information you get there. But no, I have not had the problem myself.

  • Problems with Searching documents!

    I am having a problem with the ability to search documents in the portal, everytime I run a search I get the message no results found.
    I have done the following:
    1. Create a File system Repository
    2. Created a Crawler Profile
    3. Created an Index and assigned the crawler.
    4. Wait until it had finished and said their were 13 items.
    However when I search their are none!
    What am I doing wrong?

    Hi Phil,
    1. Check for trex server status in sys Admin--> Monitoring --> KM --> Trex Monitor
    2. Check for the documents in the Folder on which you are creating index.
    3. After you create a index, modify the parameters in sys Admin--> Monitoring --> KM --> Trex Monitor --> Edit Queue Parameters.
    4. Check the Queue status in sys Admin--> Monitoring --> KM --> Trex Monitor --> Display queues. Sometimes try to flush the index.
    5. If still not working, at times re-index the index or delete and recreate the index.
    For efficient indexing see the doc
    https://websmp102.sap-ag.de/~sapidb/011000358700000378692005E.PDF
    Hope this helps,
    thanks,
    Praveen
    PS. Dont forget to reward points

Maybe you are looking for

  • 10.5.2 wake/sleep and closed-lid problems

    As of 10.5.2 my MBP no longer works correctly in closed lid mode using a hardware setup that previously worked flawlessly. After plugging in power and video, plugging in the USB keyboard seems to wake the system, but no video. I then must open the li

  • Issue with creating receipts(using interface) for a PO with multiple lines

    Hi, We have a receipts creation program which creates creates receipts. The issue is, if the PO contains 2 lines then the program creates receipts for only 1 line.Can someone suggest a solution for the same. Issue in Detail: The program works as foll

  • One Click - two times the same event?

    Hello guys, i have a little problem... When I click on my button it seems to be that the event handler method is run two times. I cant understand why - its happening at all buttons. can anyone help me? GUI.java public void actionPerformed(ActionEvent

  • Errors in SOST for outgoing emails

    Hi All, I am coming across few errors in SOST with recipient as MAILSYS and the error text says 'No delivery to MAILSYS, invalid recipient address'. Can anybody help me to find out why the outgoing emails are not being sent. From SOST log how to find

  • Account assignment tab missing

    Hi All, We have created a project in PS. While generating Purchase Requisition thru MRP in MD51, account assignment category (Q) is coming, but the account assignment tab is missing in the purchase requisition. But when we are generating PR thru CJ20