X:parse returning [#document: null]

the following code is outputting [#document: null]
     <c:import var="sampleXML" url="../common/sample.xml" />
     <x:parse xml="${sampleXML}" var="parsedXML" />
yet, if it c:out the variable sampleXML, it spits out the xml I have in the sample.xml file. any thoughts why this might be happening?
thanks.

ya, it's valid, and im just using <c:out value="${parsedXML}" />
it's weird though. on my local i copy and pasted whats done here:
http://www.java2s.com/Code/Java/JSTL/JSTLparseXMLdocument.htm
and it still doesn't work, which would lead me to believe that it must be some config on my server? any thoughts?

Similar Messages

  • DOM Document = null

    I am trying to build a DOM document. The code I wrote (taken from examples) always returns a null.
    There is no exception, everything seems OK but the document is null. It is unusable.
    My JVM : 1.4.2-03-b02 on Windows
    Same behavior on 1.4.2-08 on Linux
    I can't manage to find my mistake.
    Any clue ?
    Thanks in advance
    AF
    Here is the code
    package org.home.test.xerces;
    import java.io.File;
    import javax.xml.parsers.DocumentBuilder;
    import javax.xml.parsers.DocumentBuilderFactory;
    import org.w3c.dom.Document;
    public class Builder {
         public static void main(String[] args) {
              Document xmlDoc=null;
              try {
              DocumentBuilderFactory dbFactory = DocumentBuilderFactory.newInstance();
              dbFactory.setValidating(false);
              dbFactory.setNamespaceAware(false);
              DocumentBuilder docBuilder = dbFactory.newDocumentBuilder();
              xmlDoc = docBuilder.parse(new File("E:\\arnold\\test.xml") );
              System.out.println("Document builder : " + docBuilder);
              System.out.println("Document implementation : " + xmlDoc.getImplementation());
              System.out.println("Document : " + xmlDoc);
              catch (Exception e) {
                   System.out.println("Exception : " + e);
    Result in the console is:
    Document builder : org.apache.xerces.jaxp.DocumentBuilderImpl@1cb25f1
    Document implementation : org.apache.xerces.dom.DOMImplementationImpl@e3b895
    Document : [#document: null]

    The returned Document isn't null. If it was, you'd just get "null" without the "[#document" part. Don't assume that a given implementation of Document will have a toString that spits back the XML.
    Try printing out the doc's root element, or the names of the children.
    You might also look into jdom. I know it has some prettyprint methods.

  • Could not parse mapping document from resource

    HI All,
    I'm using hibernate3.2.2 I wrote the following code to contact the database but the system tells the error on it. My code is
    Dealer.java:
    package com.mapping;
    public class Dealer {
         private int id;
         private String name;
         private int did;
         public int getDid() {
              return did;
         public void setDid(int did) {
              this.did = did;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
    Product.java
    ------------------package com.mapping;
    public class Product {
         private int id;
         private int did;
         private String name;
         private double price;
         public int getDid() {
              return did;
         public void setDid(int did) {
              this.did = did;
         public int getId() {
              return id;
         public void setId(int id) {
              this.id = id;
         public String getName() {
              return name;
         public void setName(String name) {
              this.name = name;
         public double getPrice() {
              return price;
         public void setPrice(double price) {
              this.price = price;
    JoinExample.java
    package com.mapping;
    import java.util.Iterator;
    import org.hibernate.Query;
    import org.hibernate.Session;
    import org.hibernate.SessionFactory;
    import org.hibernate.cfg.Configuration;
    import com.HibernateSessionFactory;
    public class JoinExample {
         public static void main(String args[]){
              Session session=null;
              try{
                   session = HibernateSessionFactory.getInstance().getCurrentSession();
                   session.beginTransaction();
                   String sql_query = "from Product p inner join p.dealer as d";
                        Query query = session.createQuery(sql_query);
                        Iterator ite = query.list().iterator();
                        System.out.println("Dealer Name\t"+"Product Name\t"+"Price");
                        while ( ite.hasNext() ) {
                        Object[] pair = (Object[]) ite.next();
                        Product pro = (Product) pair[0];
                        Dealer dea = (Dealer) pair[1];
                        System.out.print(pro.getName());
                        System.out.print("\t"+dea.getName());
                        System.out.print("\t\t"+pro.getPrice());
                        System.out.println();
                        session.close();
              }catch(Exception e){
                   e.printStackTrace();
    Dealer.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE hibernate-mapping PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
    "http://hibernate.sourceforge.net/
    hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="com.mapping.Dealer" table="dealer">
    <id name="id" type="java.lang.Integer" column="id">
    <generator class="increment"/>
    </id>
    <property name="name" type="java.lang.String" column="name"/>
    <property name="did" type="java.lang.Integer" column="did"/>
    <bag name="product" inverse="true" cascade="all,delete-orphan">
              <key column="did"/>
    <one-to-many class="com.mapping.Product"/>
    </bag>
    </class>
    </hibernate-mapping>
    Product.xml
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-mapping
    PUBLIC "-//Hibernate/Hibernate Mapping DTD//EN"
    "http://hibernate.sourceforge.net/
    hibernate-mapping-3.0.dtd">
    <hibernate-mapping>
    <class name="com.mapping.Product" table="product">
    <id name="id" type="java.lang.Integer" column="id">
    <generator class="increment"/>
    </id>
    <property name="name" type="java.lang.String" column="name"/>
    <property name="did" type="java.lang.Integer" column="did"/>
    <property name="price" type="java.lang.Double" column="price"/>
    <many-to-one name="dealer" class="com.mapping.Dealer" column="did" insert="false" update="false"/>
    </class>
    </hibernate-mapping>
    hibernate.cfg.xml
    <?xml version='1.0' encoding='utf-8'?>
    <!DOCTYPE hibernate-configuration PUBLIC
    "-//Hibernate/Hibernate Configuration DTD//EN"
    "http://hibernate.sourceforge.net/hibernate-configuration-3.0.dtd">
    <hibernate-configuration>
    <session-factory>
    <property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>
    <property name="hibernate.connection.url">jdbc:mysql://localhost/hibernate</property>
    <property name="hibernate.connection.username">root</property>
    <property name="hibernate.connection.password"></property>
    <property name="hibernate.connection.pool_size">10</property>
    <property name="show_sql">true</property>
    <property name="dialect">org.hibernate.dialect.MySQLDialect</property>
    <property name="hibernate.hbm2ddl.auto">update</property>
    <!-- Mapping files -->
    <mapping resource="com/mapping/Dealer.hbm.xml"/>
    <mapping resource="com/mapping/Product.hbm.xml"/>
    </session-factory>
    </hibernate-configuration>
    it throws the following example:
    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    %%%% Error Creating HibernateSessionFactory %%%%
    org.hibernate.InvalidMappingException: Could not parse mapping document from resource com/mapping/Dealer.hbm.xml
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:575)
         at org.hibernate.cfg.Configuration.parseMappingElement(Configuration.java:1593)
         at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1561)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1540)
         at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1514)
         at org.hibernate.cfg.Configuration.configure(Configuration.java:1434)
         at com.HibernateSessionFactory.initSessionFactory(HibernateSessionFactory.java:39)
         at com.HibernateSessionFactory.getInstance(HibernateSessionFactory.java:23)
         at com.mapping.JoinExample.main(JoinExample.java:19)
    Caused by: org.hibernate.InvalidMappingException: Could not parse mapping document from input stream
         at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:514)
         at org.hibernate.cfg.Configuration.addResource(Configuration.java:572)
         ... 8 more
    Caused by: org.dom4j.DocumentException: hibernate.sourceforge.net Nested exception: hibernate.sourceforge.net
         at org.dom4j.io.SAXReader.read(SAXReader.java:484)
         at org.hibernate.cfg.Configuration.addInputStream(Configuration.java:505)
         ... 9 more
    org.hibernate.HibernateException: Could not initialize the Hibernate configuration
         at com.HibernateSessionFactory.initSessionFactory(HibernateSessionFactory.java:56)
         at com.HibernateSessionFactory.getInstance(HibernateSessionFactory.java:23)
         at com.mapping.JoinExample.main(JoinExample.java:19)
    regards,
    Maheshwaran Devaraj

    I also faced same problem when i wrote my first hibernate mapping file, this error will accur because of bad xml parser design, the parser developer did not even validate and remove blank lines from xml before parsing it, becuse of that if there is first blank line in your xml mapping file then we will get "The processing instruction target matching "[xX][mM][lL]" is not allowed" error.
    Solution: Just check is there any blank line at the begining of your hibernate mapping file if so remove that then it will works fine.

  • Could not parse XMBMessage due to Can't parse the document

    *Dear all,*
    *i have a SOAP to RFC Scenario. XML Validation by Adapter is turned on in SenderAgreement.*
    *XSD Files are placed in the correct directory. Incoming requests are validated. However,*
    *it seems that responses produce an error in the soap adapter.*
    *This is the error message i am getting:*
    +SOAP:Fault>+
             +<faultcode>SOAP:Server</faultcode>+
             +<faultstring>Server Error</faultstring>+
             +<detail>+
                +<s:SystemError xmlns:s="http://sap.com/xi/WebService/xi2.0">+
                   +<context>XIAdapter</context>+
                   +<code>ADAPTER.JAVA_EXCEPTION</code>+
                   +<text>com.sap.engine.interfaces.messaging.api.exception.MessagingException: com.sap.engine.interfaces.messaging.api.exception.MessagingException: Could not parse XMBMessage due to Can't parse the document+
    +     at com.sap.aii.adapter.soap.ejb.XISOAPAdapterBean.process(XISOAPAdapterBean.java:1173)+
    +     at sun.reflect.GeneratedMethodAccessor678.invoke(Unknown Source)+
    +     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)+
    +     at java.lang.reflect.Method.invoke(Method.java:592)....+
    *In SXMB_MONI my response includes the following passages*
    +- <!--  ************************************+
      -->
      +<Trace level="3" type="T">Pipeline Service = PLSRV_XML_VALIDATION_RS_OUT</Trace>+
      +<Trace level="3" type="T">Skip Inbound Validation =</Trace>+
      +<Trace level="3" type="T">Skip Outbound Validation =</Trace>+
      +<Trace level="3" type="T">Area = XML_VALIDATION_OUT</Trace>+
      +<Trace level="1" type="T">Reading sender agreement</Trace>+
      +<Trace level="3" type="T">Validation Mode = Validation by Adapter</Trace>+
      +<Trace level="1" type="T">Outbound validation of response takes place</Trace>+
      +<Trace level="3" type="T">Interface Name = SI_xxx_xxx_xxx_Sync_Outbound</Trace>+
      +<Trace level="3" type="T">Interface Namespace = http://xxx.de/xxx</Trace>+
      +<Trace level="3" type="T">Software Component Version = D390B9E10A6B11DF8C15C7540A484C06</Trace>+
      +<Trace level="2" type="T">Java Validation Service Call</Trace>+
      +<Trace level="1" type="T">System error occurred during XML validation</Trace>+
      +<Trace level="1" type="E">CL_XMS_PLSRV_VALIDATION~ENTER_PLSRV</Trace>+
      +</Trace>+
      +<Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />+
    +- <!--  ************************************+
      -->
      +<Trace level="3" type="T">Persisting message Status = 023</Trace>+
      +<Trace level="3" type="T">Message version 009</Trace>+
      +<Trace level="3" type="T">Pipeline CENTRAL</Trace>+
      +</SAP:Trace>+
    *I see the following error message:*
      +<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>+
    +- <!--  Aufruf eines Adapters+
      -->
    - <SAP:Error SOAP:mustUnderstand="1" xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/">
      <SAP:Category>XIServer</SAP:Category>
      <SAP:Code area="XML_VALIDATION_OUT">CX_XMS_SYSERR_VALIDATION</SAP:Code>
      <SAP:P1>Schema xxx.response.xsd not found in J:\usr\sap\xxx\SYS\global\xi\runtime_server\validation\schema\00000000000000000000000000000000\ u00D3u00B9u00E1 k u00DFŒ u00C7T HL \SI_xxx_xxx_xxx_Sync_Outbound\urnsap-comdocumentsaprfc~functions\xxx.response.xsd (J:\usr\sap\xxx\SYS\global\xi\runtime_server\validation\schema)</SAP:P1>
      <SAP:P2 />
      <SAP:P3 />
      <SAP:P4 />
      <SAP:AdditionalText>not used at the moment.</SAP:AdditionalText>
      <SAP:Stack>System error occurred during XML validation</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    There seems to be an error in the adapter trying to validate the response. Does anyone has a clue as to why ?

    Since i cannot get i running, i helped myself using a java mapping, that i packaged into a jar
    along with the xsd files. See code below:
    import com.sap.aii.*;
    import java.io.File;
    import java.io.FileInputStream;
    import java.io.FileNotFoundException;
    import java.io.FileOutputStream;
    import java.io.IOException;
    import java.io.InputStream;
    import java.io.BufferedReader;
    import java.io.OutputStream;
    import java.io.OutputStreamWriter;
    import java.io.UnsupportedEncodingException;
    import java.io.InputStreamReader;
    import java.io.Reader;
    import javax.xml.transform.sax.SAXResult;
    import javax.xml.transform.sax.SAXSource;
    import javax.xml.transform.stream.StreamSource;
    import javax.xml.validation.Schema;
    import javax.xml.validation.SchemaFactory;
    import javax.xml.validation.Validator;
    import org.xml.sax.InputSource;
    import org.xml.sax.SAXException;
    @SuppressWarnings("unused")
    public class CustomValidator extends AbstractTransformation {
         public void transform(TransformationInput arg0, TransformationOutput arg1)
                   throws StreamTransformationException {
              Validator validator;
              InputStreamReader insr;
              String inputPayloadString;
              try {
                   // Trace
                   getTrace().addInfo("com.xxx.pi.mapping.validation.CustomValidator called");
                   InputStream inputPayloadStream = arg0.getInputPayload()
                             .getInputStream();
                   insr = new InputStreamReader(inputPayloadStream);
                   InputHeader inpHeader = arg0.getInputHeader();          
                   String intfName = inpHeader.getInterface();
                   getTrace().addInfo("Interface Name is :" + intfName);
                   String xsdName = "";
                   if (intfName
                             .equalsIgnoreCase("SI_xxx_Sync_Outbound")) {
                        xsdName = "Z_xxx.xsd";
                   if (intfName.equalsIgnoreCase("SI_xxx")) {
                        xsdName = "Z_xxx.xsd";
                   if (intfName
                             .equalsIgnoreCase("SI_xxx_Sync_Outbound")) {
                        xsdName = "Z_xxx.xsd";
                   if (intfName
                             .equalsIgnoreCase("SI_xxxx_Sync_Outbound")) {
                        xsdName = "Z_xxx.xsd";
                   getTrace().addInfo("Using schema: " + xsdName);
                   if (xsdName.equals(""))
                        throw new StreamTransformationException("Schema für "
                                  + intfName + " nicht gefunden.");
                   BufferedReader reader = new BufferedReader(new InputStreamReader(
                             getClass().getResourceAsStream(
                                       "/com/xxx/pi/mapping/xsd/" + xsdName)));
                   // prepare document validator:
                   String schemaLang = "http://www.w3.org/2001/XMLSchema";
                   SchemaFactory jaxp = SchemaFactory.newInstance(schemaLang);
                   Schema schema = jaxp.newSchema(new StreamSource(reader));
                   validator = schema.newValidator();
              } catch (SAXException saxe) {
                   throw new StreamTransformationException(saxe.getMessage());
              // validate
              try {
                   SAXSource source = new SAXSource(new InputSource(insr));
                   validator.validate(source);
              } catch (Exception e) {
                   getTrace().addInfo(e.getMessage());
                   String trace = e.getMessage();
                   throw new StreamTransformationException(trace, e.getCause());
              // Write the response
              try {
                   inputPayloadString = convertStreamToString(arg0.getInputPayload()
                             .getInputStream());
                   arg1.getOutputPayload().getOutputStream()
                             .write(inputPayloadString.getBytes("UTF-8"));
                   getTrace().addInfo("Schema Validierung erfolgreich !");
              } catch (Exception e) {
                   throw new StreamTransformationException(e.getMessage());
         // helper to convert to String
         private static String convertStreamToString(InputStream in) {
              StringBuffer sb = new StringBuffer();
              try {
                   InputStreamReader isr = new InputStreamReader(in);
                   BufferedReader reader = new BufferedReader(isr);
                   String line;
                   while ((line = reader.readLine()) != null) {
                        sb.append(line);
              catch (Exception exception) {
              return sb.toString();

  • Soap Receiver adpater: HTTP 20 OK, canu2019t parse the document

    Hi Everyone,
    The scenario is SAP ECC -> PI -> server (third party remote server).
    Here the PI has to post the message (payload) which is coming from the SAP ECC to the third party remote server.
    We have the soap receiver adapter to send the payload to the remote client system.
    When we do the end-to-end testing, in RWB the soap receiver adapter is throwing an error
    HTTP 20 OK, canu2019t parse the document
    Any idea what might the error or any configuration we missed out.
    Thanks,
    Lalitkumar.

    Hi Stefan,
    You mentioned that PI will be waiting response ,
    The Web service has to respond an empty SOAP envelope, but it does not return anything.
    Itu2019s fine if it is waiting for the response.
    But when we logon to the server using different link (that the portal of the server) to which we submit the payload, none of the invoices is seen whenever we submit.
    just a basic question, can we use the soap receiver adapter to post the invoices to external server (async scenario)
    i had tried with the HTTP receiver adapter too, with that also facing the same problem.
    kindly reply to that thread also...
    [unable to post the payload|successfully configured http receiver adapter, unable to post the payload;
    Thanks,
    Lalitkumar.

  • Flash can not parse this document CS5

    I am working with one of my students that is creating an animation in Flash CS5 he has only worked in Flash CS5 not any other version he saved one day and when he returned the next to work on his file he can not open his file and keeps receiving the error message that "Flash can not parse this document." Is there anyway to save his work or is it gone? There is not a CS4 version to work with this file only CS5

    You're all very unlucky to get this problem. I don't know why you guys got the error when transitioning from Flash CS4 to CS5. My transition went perfectly fine, and the game I was developing went through perfectly clean.
    Sorry about your problems
    dikuno <><
    P.S. By the way, that file that was mentioned "textLayout_1.0.0.595.swz", is created whenever you put in TLF text that is edited at runtime via ActionScript and use Runtime Shared Library (RSL) preloading. Did you leave all your text boxes be, or convert them all to TLF?
    P.P.S.S. I was very lucky that I didn't lose my project when I transitioned, as my current game is actually due in around a week. Hoepfully none of your projects that you lost are due in a week.
    P.P.P.S.S.S. Imagine if this happened to Alan Becker while he was working on Animator vs. Animation II (it took him five months).
    P.P.P.P.S.S.S.S. I feel especially sorry for the guy who spent three months on his online multiplayer real-time game. Must be a real shame to lose all your work after all those late nights and sore backs...
    P.P.P.P.P.S.S.S.S.S. If you don't know what Animator vs. Animation is, you should watch the animations. You can find them on YouTube - just look up "Animator vs. Animation" and "Animator vs. Animation 2".
    P.P.P.P.P.P.S.S.S.S.S.S. Sorry about all the PostScripts.

  • Closing an Open Goods Return Document

    Hi to all
    We also experienced returning goods that were already paid and were invoiced through A/P reserve invoice (same case with Avelino Fidel - thread on AP Reserve Invoice posted last Apr. 19). In our case, not all items were returned and withholding tax was applied in the original AP reserve invoice.   Refund was given by the supplier.
    Original A/P Reserve Invoice - Journal Entry
    Þ     Dr. u2013 Goods Received Not yet Invoiced          10,000
    Þ     Cr. u2013 Supplier                                                          9,900
    Þ     Cr. u2013 Withholding Tax Payable                                    100
    Original Goods Receipt PO - Journal Entry
    Þ     Dr. u2013 u2013 Supplies, Materials and Parts            10,000
    Þ     Cr. u2013 Goods Received Not yet Invoiced                    10,000
    Original Outgoing Payment - Journal Entry
    Þ     Dr. u2013 BP                               9,900
    Þ     Cr. u2013 Bank                                         9,900
    In order to transact the returns in SAP, we tried using Goods Return without base document instead of A/P Credit Memo in order to incorporate the tax withheld.  (in A/P Credit Memo, tax withheld cannot be applied when there's no base document).  Journal entry is as follows:
    Þ     Dr. u2013 Goods Received Not yet Invoiced                    5,000
    Þ     Cr. u2013 Supplies, Materials and Parts                                     5,000
    After Goods Return, we used Bank Reconcilation to close the Goods Return with the following entries:
    Þ     Cr. u2013 Goods Received Not yet Invoiced                                 5,000
    Þ     Dr. u2013 Supplier                                                        4,950
    Þ     Dr. u2013 Withholding Tax Payable                                    50
    Þ     Cr. u2013 Supplier                                                                      4,950
    Þ     Dr. u2013 Bank                                                            4,950 ( refund from supplier )
    When I checked the Goods Return status using Banking -> Bank Statements & Reconciliations, the ap credit memo is no longer in the list. However, when I checked its status using Purchasing A/P -> Goods Return, the document status is still open.  Then we tried I tried closing the document through DATA >> CLOSE but an error message appeared: No matching records found u2018G/L Accountsu2019 (OACT) (ODBC-2028)
    How can we change the status of the Goods Return Document to closed ?  Shouldn't it be automatically closed after doing the bank reconciliation?
    Thanks in advance.
    Luche

    Hi Luche
    In SAP Business One 2007 there are some new features for closing documents without having to pass them on to the Invoice/Credit Memo. In the case of purchasing documents you can now close the Goods Receipt PO and the Goods Return documents. In order for the system to account for the income or loss as a result of the document not being passed on to a payable document, it looks for the account number marked as Goods Clearing Account in the account determination. If this account number is not filled in you will get the error you saw.
    Hope this helps
    Kind regards
    Peter Juby

  • How can I parse the document in WebI using sdk?

    I wanna to parse the document in WebIntelligence using sdk. My question is :
    1) By which sdk, I can parse the document.  'Report Application Server SDK' ?
    2) I wanna to parse the 'Self-Defined SQL' and 'Query' components of the document. Can the sdk support this request ?
    My enviroment is  BO XI Release 2.
    Thanks all.

    Hi shao,
    1) By which sdk, I can parse the document. 'Report Application Server SDK' ?
    'Report Application Server SDK' is For Crystal reports so for WebIntelligence or DesktopIntelligence Report it is  "Report Engine SDK".
    Apart from this if you want to do more on these reports "BusinessObjects Enterprise SDK" can be used.
    You can get more information on below link for XI R2.
    http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm
    For question 2,
    I am not sure about it but Report Engine SDK provides classes and interface of Data Providers.
    i.e. Building and Editing Data Providers   and  Working with Recordsets.
    Also you can have look on
    Report Engine SDK's
    Interface "Query"
    Hope these helps you.
    Thanks,
    Praveen.

  • Receiver SOAP channel error-- Cant parse the document; HTTP 200 OK

    Hi All,
    I am facing below error in SOAP receiver communication channel
    SOAP: Error occurred: com.sap.engine.interfaces.messaging.api.exception.MessagingException: java.io.IOException: Cant parse the document; HTTP 200 OK
    If I use "Do Not se SOAP Envelop" in receiver communication channel then it shows successfully delivered in message monitoring but never reached to target application. And if I uncheck "Do Not se SOAP Envelop" then the error is as I mentioned above.
    Both ways it not working foe me.
    Please advice.
    Thanks
    Shivi

    Hi
    I had a similar issue recent times and I have enablede the xpi inspector to check the logs of the request and the response  sent and received...
    Based on that you can check whether your payload is able to sent to receiver in proper format or any other issues..
    Also try to check the payload format using the SOAPUI whether the ws is working fine for that or not.
    HTH
    Rajesh

  • How to ignore white space when parse xml document using xerces 2.4.0

    When I run the program with the xml given below the following error comes.
    Problem parsing the file.java.lang.NullPointerExceptionjava.lang.NullPointerExce
    ption
    at SchemaTest.main(SchemaTest.java:25)
    ============================================================
    My expectation is "RECEIPT". Pls send me the solution.
    import org.apache.xerces.parsers.DOMParser;
    import org.xml.sax.InputSource;
    import java.io.*;
    import org.xml.sax.ErrorHandler;
    import org.w3c.dom.*;
    public class SchemaTest {
    public static void main (String args[])
    try
    FileInputStream is = new FileInputStream(new File("C:\\ADL\\imsmanifest.xml"));
    InputSource in = new InputSource(is);
    DOMParser parser = new DOMParser();
    //parser.setFeature("http://xml.org/sax/features/validation", false);
    //parser.setProperty("http://apache.org/xml/properties/schema/external-noNamespaceSchemaLocation", "memory.xsd");
    //ErrorHandler errors = new ErrorHandler();
    //parser.setErrorHandler(errors);
    parser.parse(in);
    Document manifest = parser.getDocument();
    manifest.normalize();
    NodeList nl = manifest.getElementsByTagName("organization");
    System.out.println((((nl.item(0)).getChildNodes()).item(0)).getFirstChild().getNodeValue());
    catch (Exception e)
    System.out.print("Problem parsing the file."+e.toString());
    e.printStackTrace();
    <?xml version = '1.0'?>
    <organizations default="detail">
    <organization identifier="detail" isvisible="true">
    <title>RECEIPT</title>
    <item identifier="S100000" identifierref="R100000" isvisible="true">
    <title>Basic Module</title>
    <item identifier="S100001" identifierref="R100001" isvisible="true">
    <title>Objectives</title>
    <metadata/>
    </item>
    </item>
    <metadata/>
    </organization>
    </organizations>
    Is there a white space problem? How do I get rid from this problem.

    ok now i really wrote the whole code, a bit scrolling in the API is to hard?
                DocumentBuilderFactory dbf = new DocumentBuilderFactory();
                DocumentBuilder db = dbf.newDocumentBuilder();
                dbf.setNamespaceAware(true); //or set false
                Document d = db.parse(inputstream);

  • Split sales return document line items by price

    Hi,
      I need to dynamically split line items in a sales return document based on certain conditions. The added line items would have the same material and details of the first line item but would be different only on return price.
    I tried to add lines to xvbap in USEREXIT_MOVE_FIELD_TO_VBEP(in MV45AFZZ. Note that xvbap is not populated at userexit_move_field_to_vbap)but this approach does not produce the desired results. I have also tried it at userexit_save_document_prepare and at userexit_check_vbap but it's not possible to modify xvbap correctly in these exits.
    Do you know of a way to handle this?
    Regards,
    Aravind

    Hi Aravind ,
    first thing is Clear and refresh XVBAP table and add ur own data , i think in this case XVBAP will take the new data.
    Regards
    Prabhu

  • Credit for returns document

    Hi,
    During returns process, we create returns sales order type ZRE which is thereby blocked for billing. Now when we remove the block from VA02 and then prepare the credit note RE via VF01, it gets created irrespective of the returns delivery and Post goods receipt.
    Now my client's requirement is that they want to create the credit note with reference to the Sales returns document only but they want the Post goods receipt to be made mandatory so that with out creating returns delivery and posting the goods receipt credit note does not get created.
    Please help me.

    Dear Pavi ranjan,
    If the business needs RE to be created with reference to the RETURNS ORDER , but it has to check for the PGR, then
    its better to make the copy control from ORDER to DELIVERY and make RE a delivery related billing.
    So that Credit memo wont be created without the PGR.
    Now if the RE is created based on the return order and CREDIT NOTE RE should not be created without PGR, then it means that business doesnt want order related billing at all.
    Please discuss with the business on this and revert back.
    Thanks & Regards,
    Hegal K Charles

  • Return document picking wrong main and sub transaction @ FPL9

    Hi Mates,
    I need a help to find out the reason why return document is referring with wrong main and sub in our current client.
    Issue: when unpaid returns are posting with reference to payment document return document is posting by using main and sub transaction with previous cleared items.
    Ex:      2000200 Invoice document -  Main Transaction 0100 sub 0002
               3000300 Payment run document - Main Transaction 0610 sub 0010
    When return is posting with reference to 3000300 return document is referring 0100 and 0010, and new return document is updating with Billing and invoice text.
    Usually if return document is posted that should be refere the payment document 0610 and 0010 main & sub and invoice document 2000200 should be open.
    This is happening for all the main and sub cases and return document is referring with cleared items, in some cases it's posting currectly.
    I have validated at return lot specific level, posting type=cancel payment.
    some of business users are posted using posting type = new receiveble derived from payment.
    Second case we found many issues with refeernce wrong sub, but even 1st case also system is showing same.
    Kindly suggest.

    Hi Bogdan,
    Thanks for the reply.
    When SD invoices are transferred to FICA, the system checks whether entries maintained for account determination:
    1. Maintain Account Assignment Data Relevant to Transactions
    2. Derive Main/Sub Transaction from SD information
    3. Derive Document Type from SD Billing Document Data
    Thanks,
    Kumar

  • Trigger idoc for returns document using transaction O3O_RT01, O3O_RT02.

    Hi All,
    There is an requirement to trigger an IDOC with the details of returns documents.
    I am building a custom IDOC for this purpose. But the problem is i need to trigger the IDOC when i click on 'RETURN' button in the transactions O3O_RT01, O3O_RT02.
    Kdly help in as to is there any BADI or exit or and event available  to trigger a code when i click on that button, else  let me know how to go about it.

  • Could not parse mapping document form resource

    What is meaning of this error
    Could not parse mapping document from resource user.hbm.xml
    log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment).
    log4j:WARN Please initialize the log4j system properly.
    Exception in thread "main" java.lang.NullPointerException
         at UserClient.main(UserClient.java:39)

    I also faced same problem when i wrote my first hibernate mapping file, this error will accur because of bad xml parser design, the parser developer did not even validate and remove blank lines from xml before parsing it, becuse of that if there is first blank line in your xml mapping file then we will get "The processing instruction target matching "[xX][mM][lL]" is not allowed" error.
    Solution: Just check is there any blank line at the begining of your hibernate mapping file if so remove that then it will works fine.

Maybe you are looking for

  • Error in tabstrip control progtram while in Background job scheduling

    Hi ABAPer's, I need some help...I developed one tabstriip control program with 3 tabs. while excute it in foregroung it is executing nice..but while i am job scheduling the same program in background it was getting error's like ......... Control Fram

  • How do I get possession of an iCloud email address?

    At some point in the not too distant past, I remember having to create an iCloud email address.  It will be associated with my apple ID, but I cant use it.  I know noone else has it because the email server gives a bounceback. How do I get in touch w

  • How to use shared variables with native c programs

    Hello What is the way to use shared variables with native c programs? I have a c/c++ program that uses the NIDAQmx C-API to perform measurements. Now I want to communicate to a LabVIEW program via shared variables. Is there a C-API for shared variabl

  • Photoshop CS4 has stopped working--importing video frames to layers

    Whenever I get the part of the video selected that I want and hit okay I get a message saying: "Adobe Photoshop CS4 has stopped working" How can I fix this? Thanks

  • Display problems after update

    I recently updated- on balance things went ok- How ever for some odd reason something is causing KDE (3.5) to behave oddly- I used to have a app in the kde control panel that'd let me fine tune settings  (fonts and display size for instance)- I see t