Marshaling problem in creation of xml thru JAXB

Hi java gurus,
I am trying to create an XML which will has the data of database using JAXB. I am able to generate JAXB classes, but its giving some error the stack trace is like this
java.lang.NoSuchMethodError: com.sun.xml.bind.marshaller.XMLWriter.setXmlDecl(Z)V
     at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:223)
     at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:238)
     at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.createWriter(MarshallerImpl.java:233)
     at org.bas.dss.common.vo.bii.impl.runtime.MarshallerImpl.marshal(MarshallerImpl.java:126)
     at javax.xml.bind.helpers.AbstractMarshallerImpl.marshal(AbstractMarshallerImpl.java:66)
     at org.bas.dss.common.dao.MetaDAO.createInstInformation(MetaDAO.java:627)
     at org.bas.core.fidownload.DownloadActionHandler.getInstInfoXMLData(DownloadActionHandler.java:163)
     at org.bas.core.fidownload.DownloadActionHandler.performPreDownloadAction(DownloadActionHandler.java:74)
     at org.bas.core.fidownload.DownloadAction.perform(DownloadAction.java:129)
     at org.bas.core.fidownload.DownloadAction.execute(DownloadAction.java:79)
the method is like this,
valueObject = getInstInformation (registrationId, appVersionId);
System.out.println("MetaDAO-->valueObject:"+valueObject); //here i am gettingthe object
context = JAXBContext.newInstance("org.bas.dss.common.vo.bii");
System.out.println("MetaDAO-->context:"+context); //here i am getting the context
sumissionInfoMarshaller = context.createMarshaller();
System.out.println("MetaDAO-->sumissionInfoMarshaller:"+sumissionInfoMarshaller); //here also i am getting some object type
sumissionInfoMarshaller.setProperty(
Marshaller.JAXB_FORMATTED_OUTPUT,Boolean.TRUE);
System.out.println("MetaDAO-->MetaDAO-->");
sumissionInfoMarshaller.marshal (valueObject, streamToWrite); // the problem is coming here.
anyone can suggest what will be the problem, and tell me how can i resolve this issue,
thanks in advance,
varma

Pl post this question to SDK Forum

Similar Messages

  • Creation of XML

    Till now i was working on my test server and creation of XML file seemed to be ok.
    Now i shifted to live server and suddenly XML creation is a problem. I do not have write access problem as the file is getting created and also root element is getting created. But after root nothing is going inside the file.
    I do not understand why suddenly server is behaving like this, but can anybody give clues ? Is there any settings required ?
    I am on Tomcat 5/Struts framework and using DOM to create file.
    regards
    Manisha

    i am a newbie in xml
    I want to know how to crate xml that takes value
    from the application
    Waiting for your reply
    thanking u
    take care
    byeAre you talking about saving objects to XML files?
    That can easily be done with XMLEncoder and XMLDecoder. Useful when you're too lazy to write a class to input and output to binary files... Like me :D

  • Error when reading data from XML using JAXB?

    Hi all,
    I get the error message when reading data from XML using JAXB.
    [org.xml.sax.SAXParseException: The entity name must immediately follow the '&' in the entity reference.]
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.createUnmarshalException
    (AbstractUnmarshallerImpl.java:315)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.createUnmarshalException(UnmarshallerImpl.java:481)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal0(UnmarshallerImpl.java:199)
         at com.sun.xml.internal.bind.v2.runtime.unmarshaller.UnmarshallerImpl.unmarshal(UnmarshallerImpl.java:168)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:137)
         at javax.xml.bind.helpers.AbstractUnmarshallerImpl.unmarshal(AbstractUnmarshallerImpl.java:142)
    I don't find the reason, please help!
    Thanks in advance!

    The problem is sovled.

  • Marshaller.marshal does not create complete XML tree structure

    Dear all,
    I use JAXB classes to create an XML document with data derived from SQL queries from a database.
    I have created a program that instantiates the JAXB classes and sets its values using the automatically created setter functions.
    However when I marshal the document the resulting XML document does not contain the inner structure of the elements needed to appear.
    It constructs the document from the root node down to the 4th level of child elements.
    Only if a run the 'marshal' operation giving as input parameter an inner element (from level 5 and down) I can see the XML structure within its inner structure.
    Does anybody have an idea what could be wrong ?

    Hi again,
    I tested the makedim example package with another of my dimensions and the XML file was updated correctly. When I try to process the dimension I mentioned before (from the admin console this time) an error of type System.OutOfMemoryException is thrown in the step "Create admin cache file". I guess that this error occurs when I run my custom package too but the package run to the end with status "Completed"...
    //Anders

  • Issue in Creation of XML file from ABAP data

    Hi,
    I need to create a XML file, but am not facing some issues in creation of XML file, the in the required format.
    The required format is
    -<Header1 1st field= u201CValueu201D 2nd field= u201CValueu201D>
       - <Header2 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 10 fields>
              <Header3 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
              <Header4  1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 4 fields/.>
               <Header5 1st field= u201CValueu201D 2nd field= u201CValueu201Du2026u2026. Upto 6 fields/>
          </Header2>
       </Header1>
    Iu2019m using the call transformation to convert ABAP data to XML file.
    So please anybody can help how to define XML structure in transaction XSLT_TOOL.
    And one more thing, here I need to put the condition to display the Header 3, Header 4, Header 5 values. If there is no record for a particular line item in header 3, 4 & 5, I donu2019t want to display full line items; this is only for Header 3, 4 & 5.
    Please help me in this to get it resolved.

    Hello,
    you can use CALL TRANSFORMATION id, which will create a exact "print" of the ABAP data into the XML.
    If you need to change the structure of XML, you can alter your ABAP structure to match the requirements.
    Of course you can create your own XSLT but that is not that easy to describe and nobody will do that for you around here. If you would like to start with XSLT, you´d better start the search.
    Regards Otto

  • Problem in  creation of Customer Master

    Hi gurus,
    I am facing problem in creation of customer master.
    I have created a account group zz01 copying from 0001.which has internal no. assignement for the customer.
    Now i am trying to create a customer master, at partner functions level under sales area data...  the system is asking for the no. for each partner functions.. when i tried to manually enter, the system is not taking any number nor it is letting me save the data.
    Please help me out in acertaining,  what could be the issue.
    regards
    Gupta
    [email protected]

    its due to the number ranges that is specified in the partner determination ... chech what is the number range assigned in the parner determination ,,, so once u check that u have to manually enter the number between that range only .. this should solve ur problem...
    path to check the number range is as below :
    spro-img-logistic generalbusiness partner-customers---define account groups and field selection ---    
    at this point click position button at the bottom and give ur account group .. select ur account group and click detail button .. now inside that u can see the specified number range .. dafault is 08 ( means u can specify between 400000 to 499999)..
    and some times  u may not have defined number range... check urs and create accordingly ... this should solve ur problem...
    rewards if solved ..
      thank you
    madhan

  • Problem in creation of SOAP massage

    hi
    I am using JDeveloper (version 11.0) to create the proxy classes from WSDL
    but i am getting an exception as following
    SOAPFaultException
    this exception indicate that there is some problem in creation of SOAP massage internally
    so can anyone help me to know what is the problem?
    If u want to see the code then i can display here.
    thanks in advance

    its due to the number ranges that is specified in the partner determination ... chech what is the number range assigned in the parner determination ,,, so once u check that u have to manually enter the number between that range only .. this should solve ur problem...
    path to check the number range is as below :
    spro-img-logistic generalbusiness partner-customers---define account groups and field selection ---    
    at this point click position button at the bottom and give ur account group .. select ur account group and click detail button .. now inside that u can see the specified number range .. dafault is 08 ( means u can specify between 400000 to 499999)..
    and some times  u may not have defined number range... check urs and create accordingly ... this should solve ur problem...
    rewards if solved ..
      thank you
    madhan

  • Problem in creation of STO(stock transport order)

    hi all SAP gurus,
    i am facing the problem in creation of stock transport order with ME21N code. i m getting the error msg of "Not possible to determine shipping data for material in STO "
    i have checked the stock transport order setup in customization. but not getting the clear idea to come out from this problem.
    if anybody have the idea of " how to do the customization of stock transport order setup, pls. let me explain.
    thnx in advance.
    rgrds,
    rajesh

    Hi Rajesh,
    when ur creating STO with UB doc type, then you have to maintain material in both the plants.
    Regarding the error which is comming for you, you have to check the settings at
    SPRO- IMG- MM-Purchasing-Set up stock transport order- Assign delivery type & Checking rule
    here for document type UB and your supplying plant-XXXX select nothing for Dlv type(delivery type) and chr - 01 and after this save.
    After this you create STO as you are doing and see what the system is prompting.
    For any further clarification let me know.
    Regards,
    NJ

  • Problem in creation of HUs through FM HU_REPACK and HU_POST

    Hi Experts
    This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs with single destination HU for the same material and batch into HU_REPACK and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
    Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
    0 10020000038479 S-DISP 1 EA S DISPNSARY
    1 0024632192 000004 810062 0.250 KG L0533A4172 Lactose
    1 0024632192 000004 810062 24.900 KG L0533A4172 Lactose
    Material is 810062
    Batch is L0533A4172
    Can you please assist me how to acheive single line item HU when we are trying to repack the data for same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    Hi Sailaja,
    I have similar requirements like this before with HU_PACKING_AND_UNPACKING FM. It was a tough debugging before I came up with the right solution. Unfortunately, I was not able to document that code..
    But here is what I have been doing.
    Youre on track with the solution below, never use BDC as it will only limit the Handling units that you wish to put into.
    The function modules that starts with V5_ plays important role as you need to initialize the global variables and table of this function group with values before calling HU_PACKING_AND_UNPACKING FM
    Debug inside the Function module, and look for the FM that returns SY-SUBRC <> 0 then set a breakpoint.
    Restart the program then debug inside that FM again (and I do not want to go further on the details, I give you the presumption of literacy)
    You will find some items that has no value, try to initialize everything by utilizing the FM for this function group V51S.
    Happy Debugging.

  • Problem in Creation of Handling Units through HU_REPACK and HU_POST FM

    Hi Experts
            This is regarding the problem in creation of HUs with function modules HU_REPACK and HU_POST.
    I am sending two Unique Sources HUs  with single destination HU for the same material and batch into HU_REPACK  and it shows that it is successfully repacked and soon as the HU_REPACK function module passess I have called HU_POST without any parameters except messages..As the data will be picked up auomatically from the internal memory as these function module are related same function group.
      Even the HU_POST FM passes successfully and also it creates a Transfer order but the problem is that THe HU is created with the MULTIPLE LINE ITEMS for the same material and Batch which should not be done at all .
    Please find the example of the HU created in the system
        0     10020000038479     S-DISP     1     EA          S DISPNSARY
        1     0024632192 000004     810062     0.250     KG     L0533A4172     Lactose
        1     0024632192 000004     810062     24.900     KG     L0533A4172     Lactose
    Material is 810062
    Batch    is L0533A4172
    Can you please assist me how to acheive single line item HU  when we are trying to repack the data for  same material and batch as it does while you create the HU through Manual processing i.e HU02 etc

    *

  • Problem in  creation of any purchasing doc  against plant 0001

    Hi MM Experts,
    I am facing problem in creation of any purchasing doc (i.e: PR or PO) against plant 0001.This is available in the system and assigned to company code. I can create Material master with this plant 0001 and copy to create new plant. But Can't create any pur doc? also in plant list in pur doc showing the rest of the plant except plant 0001.
    I m working on ECC 6.0.
    Regards,

    Dear Sairam/Steve,
    I got solution for my problem. The problem is that address number not maintained for 0001 plant.This solution available from the following note. please go thro...
    Note 433997 introduced a new logic for the F4 help for plants.
    solution proposed in note 433997 :
    To maintain the address number of a plant subsequently, startTransaction OX10 for the affected plant ('Change plants') view. Click the 'Address' pushbutton (envelope) or (shiftF5). In the subsequent screen ('Change address'), press Enter or click the 'Copy' pushbutton and save using the 'Save' pushbutton (disk) or (CtrlS).
    Then the plant should have an address number and should also be displayed in the search help.
    Thank you all
    Regards,

  • Problem in creation of order relevant - intercompany invoice

    Dear all ,
    I am facing problem in creation of intercompany invoice which is sales order relevant . Please tell which settings is required to resolve this as all the settings has been made.
    Send ur email id so that the problem can be described if required....
    Thanks .........

    Hi,
    while creating inter company sales order give the delivering plant in the overview screen. so that enables the system and tells that that is inter company sales order . u can verify whether the system takes which sales order whether it is standard order or inter company? by going to the conditions in the item overview in that u can find the "pi01" or "pi02" and select the delivery details there u can find the delivering plant which is supplying plant and the shipping point of the supplying plant..
    in case of doubt u can mail me at [email protected]
    Reward if Helpful..
    Regards,
    Praveen Kumar.D

  • Problems with creation of catalogue XPGrpwise and temporary

    Problems with creation of catalogue XPGrpwise and temporary files.
    I use GroupWise 8.01 and WinXP (SP2), OpenOffice 3.1.
    Why at opening files in Library, temporary files are not created in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\XPGrpwise, and created in catalogue C:\Documents and Settings\Jon Smith\My Documents. That causes problems. How to change a situation that worked as it is necessary.
    Catalogue XPGrpWise is created and leaves duly in catalogue C:\Documents and Settings\Jon Smith\Local Settings\Temp\.

    Cvetaev,
    It appears that in the past few days you have not received a response to your
    posting. That concerns us, and has triggered this automated reply.
    Has your problem been resolved? If not, you might try one of the following options:
    - Visit http://support.novell.com and search the knowledgebase and/or check all
    the other self support options and support programs available.
    - You could also try posting your message again. Make sure it is posted in the
    correct newsgroup. (http://forums.novell.com)
    Be sure to read the forum FAQ about what to expect in the way of responses:
    http://forums.novell.com/faq.php
    If this is a reply to a duplicate posting, please ignore and accept our apologies
    and rest assured we will issue a stern reprimand to our posting bot.
    Good luck!
    Your Novell Product Support Forums Team
    http://support.novell.com/forums/

  • Problems with reports and XML-publisher - No XML

    Hi!
    I'm having a problem with Apps and XML-publisher. I made a report file, which queries some views. When executing in reports, I get all the data I expect.
    Now, when I upload the reportfile to Apps and let it generate XML, my xml-file is empty (well, almost empty)
    <?xml version="1.0" ?>
    <!-- Generated by Oracle Reports version 6.0.8.27.0 -->
    <T03501684>
    <LIST_G_PERSOON>
    <LIST_G_PERSOON />
    </T03501684>
    Anyone who can shed any light upon this problem?

    OK, finally solved the problem... A good night's sleep always helps ;).
    After just trying each queried table one after an other, I found the problem:
    The difference between Oracle Apps (Dutch locale) and the reports builder (English) is the language... And our functional people have changed some names, but the Dutch ones, leaving the english names in place and one of the tables I query has language specific data, which is also appears in a where clause.

  • Problem in attaching a xml file in Email Notification

    Hi,
    I am new to BPEL. I am using 10.1.3.4 Jdev. Facing a problem in attaching a xml file in Email Notification process. I do not get any email when ever the attachment is a xml. Whereas when the attachment is a pdf, i get the pdf in the mail. I have put the mime type as text/xml. Used ora:doc() to read the xml. Dont know what i am missing. Please help me out. Thanks.
    Edited by: friendsforever on Oct 6, 2010 1:05 AM

    actually i want that when a user open my website register form then he must attached their resume in it
    so i want to know how can i make a field of attaching.
    please reply
    I am waiting for your reply

Maybe you are looking for

  • The Report Server page comes up on local server, but the page does not open from clients

    Hello, The Report Server Page opens up just fine on the local server, but page does not open up from desktops and client PCs.   SSRS is installed on a Windows Server 2008 R2 server and with SQL Server 2008 R2 SP2 Clients are using IE 11 and they see:

  • Can't get stored maps on E71 to work, and E71 alwa...

    Hi everyone. I have two questions about my new E71. 1) How can I get my phone to use the stored maps I have on it (from the Nokia Maps loader) without using any data? I've searched and can't figure out how. I've opened up Nokia maps and let it search

  • Can you place an image in a div tag and then add type over top of it?

    I told someone in class lastweek that I wanted to be able to place type over an image. They said you can just add the image into the div tag as a background image, which will allow you to then type over it if you like. How is this done? I have tried

  • Data Merge from Multiple image folders

    I'm on a MAC running CS3 and trying import several thousand images via DataMerge that are all housed in different folders. It is very difficult to move all the images to a single folder where the Tab Delimited File lives, which I understand is how I'

  • IBot Bursting email to unlicensed users.

    Hello - I'd like to setup a BI Answers report to burst to several users that are not licensed for OBIEE. The report requires a direct database request. From what I can tell it appears that the recipient of the report must be authorized to execute dir