String to XML conversion without fatal error?

Can one of you tell me how to convert the folowing string to XML without fatal error?
String s1 = "<?xml version="1.0" encoding="UTF-6.0"?> <Main> <sub> 12345 </sub> </Main>".

First, you can't have double quotes (") in a string like that, you need to do (\") instead. If you wrote the below line and saved the file as a file_name.xml It should work fine.
import java.io.*;
public class yourclass{
     public static void writeXML(){
          try{
               File xmlOut = new File("file_name.xml");
               BufferedWriter xmlWriter = new BufferedWriter(new FileWriter(xmlOut));
               String s1 = "<?xml version=\"1.0\" encoding=\"UTF-6.0\"?> <Main> <sub> 12345 </sub> </Main>";
               // you can concatenate the strings using a + 
               // the \n will create a new line in the file
               String s2 = "<?xml version=\"1.0\" encoding=\"UTF-6.0\"?>" + "\n" +  "<Main> <sub> 12345 </sub> </Main>";
               xmlWriter.write(s1);
               xmlWriter.close();
          }catch(Exception ex){
               ex.printStackTrace();
}There are a few other ways to do this, the one above is sloppy. One is XStream to convert xml to Java objects and back again. http://xstream.codehaus.org/tutorial.html

Similar Messages

  • String to XML conversion using XSLT

    Hi all,
    I have a scenario when my source input XML is in the form of a string which needs to be transformed into an XML target fields.
    I am using XSLT mapping to do that and its working but unfortunately, input XML contain xml declaration <?xml version='1.0'?>. Because of which it fails.
    I need to remove this. Can any body please suggest how to do this?
    Any help will be appriciated.
    Regards
    -Kulwant

    Hi,
    Refer these links
    XI/PI: Convert Flat File to Deeply Nested XML Structures Using Only Graphical Mapping
    Regards,
    Surya

  • Fatal error while testing in MM in IR

    Hi,
    i am getting fatal error like below while pasting payload in Message mapping test tab in src (payload i have taken from sxmb_moni) in payload
    Please give some idea what could be the cause or some inputs to solve this issue.
    Start of test
    Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) com.sap.aii.utilxi.misc.api.BaseRuntimeException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:157) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:832) Root Cause: com.sap.engine.lib.xml.parser.NestedSAXParserException: Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)(:main:, row=1, col=8) -> com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2128) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2776) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2832) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:231) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) at javax.xml.parsers.SAXParser.parse(Unknown Source) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:832) -
    at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:144) at javax.xml.parsers.SAXParser.parse(Unknown Source) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:832) Caused by: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8) at com.sap.engine.lib.xml.parser.XMLParser.scanPI(XMLParser.java:2128) at com.sap.engine.lib.xml.parser.XMLParser.scanProlog(XMLParser.java:2776) at com.sap.engine.lib.xml.parser.XMLParser.scanDocument(XMLParser.java:2832) at com.sap.engine.lib.xml.parser.XMLParser.parse0(XMLParser.java:231) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parseAndCatchException(AbstractXMLParser.java:145) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:160) at com.sap.engine.lib.xml.parser.AbstractXMLParser.parse(AbstractXMLParser.java:261) at com.sap.engine.lib.xml.parser.Parser.parseWithoutSchemaValidationProcessing(Parser.java:280) at com.sap.engine.lib.xml.parser.Parser.parse(Parser.java:342) at com.sap.engine.lib.xml.parser.SAXParser.parse(SAXParser.java:125) at javax.xml.parsers.SAXParser.parse(Unknown Source) at com.sap.aii.mappingtool.tf3.rt.xparser.MTSaxHandler.run(MTSaxHandler.java:155) at com.sap.aii.mappingtool.tf3.rt.xparser.XParser.run(XParser.java:73) at java.lang.Thread.run(Thread.java:832) Fatal Error: com.sap.engine.lib.xml.parser.ParserException: XML Declaration not allowed here.(:main:, row:1, col:8)
    Edited by: ruban R on Apr 24, 2008 11:05 PM

    HI,
    I did not find view source after right clicking payload.
    I went to sxmb_moni
    then i selected my message then i got Display XML message versions window..in that I went to Inbound Message(central).
    then i went to payloads
    under neath payloads there is Main document (application/XML) menu
    after clicking that i copied the content from window 2(ie bottom window)
    then i pasted in Message mapping testing button.
    is it right?
    Thanks
    PS: I am using SAP PI 7.0

  • Error deserializing arguments, xml tag without a recognized type

    I am trying to run a webservice created using Weblogic Workshop 8.1sp2 that communicates
    with an ejb control. When I test in debug mode, I get the above error, specifically:
    <detail>
    <jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
    com.bea.wlw.runtime.core.request.RequestValidationException: Error deserializing
    arguments.
    Encountered an xml tag without a recognized type: the type must be declared with
    an xsi:type attribute.
    Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered an xml tag with
    out a recognized type: the type must be declared with an xsi:type attribute.
    </detail>
    I am passing a Request object to the jws method (to the ejb) that has a Collection
    as an instance member. This Collection references objects of another type, Param
    (code for both objects below). Before passing the object, I convert the Collection
    to an array of objects. When I call the operation via a java client, I get the
    above message.
    In Workshop, I've included the Request and Param classes as the parameter xml
    and the soap style is rpc. I've tested the ejb by itself and it is working fine.
    Request.java:
    import java.util.*;
    public class Request implements java.io.Serializable
    protected Collection params=null;
    public Collection getParams()
    { return params; }
    public void setParams(Collection data)
    { params=data; }
    Param.java:
    public class Param implements java.io.Serializable
    private String name=null;
    private Object value=null;
    public String getName()
    { return name; }
    public void setName(String data)
    { name = data; }
    public Object getValue()
    { return value; }
    public void setValue(Object data)
    { value=data; }
    Here's the code from the jws:
    public class MyWS implements com.bea.jws.WebService
    * @common:control
    private control.PSEjbControl psEJB;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:parameter-xml
    * include-java-types="mypackage.Request mypackage.Param"
    * @jws:protocol soap-style="rpc"
    public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
    System.out.println("arg0 : " + arg0);
    psEJB.addData(arg0);
    *Note: in the server console, arg0 comes through as null when called from my client.
    Here's the bit from my client:
    import weblogic.jws.proxies.*;
    import org.openuri.www.encodedTypes.Request;
    import org.openuri.www.encodedTypes.Param;
    public void go(String wsdl) throws Exception {
    MyWSSoap mw = null;
    mw = new MyWS_Impl().getMyWSSoap();
    Request req = new Request();
    Collection reqColl = new ArrayList();
    Param param1 = new Param();
    param1.setName("NAME");
    param1.setValue("Joe Tester");
    Param param2 = new Param();
    param2.setName("ADDRESS");
    param2.setValue("345 Test Drive");
    reqColl.add(param1);
    reqColl.add(param2);
    Object[] obs = reqColl.toArray();
    req.setParams(obs);
    mw.addData(req);
    Not sure if this enough to go by. Please let me know if you need more information.
    Any help is really appreciated. Thanks.

    Hi Keith,
    My only suggestion is to factor out the java.util.Collection (see the
    docs here [1]) with either primitive types or XMLBeans [2].
    Sorry, not much help. You might also ask your question in the workshop
    [3] newsgroup.
    Bruce
    [1]
    http://e-docs.bea.com/workshop/docs81/doc/en/integration/reference/refJavaClassConversion.html
    [2]
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/xmlbeans/conXMLBeansSupportBuiltInSchemaTypes.html
    [3]
    http://newsgroups.bea.com/cgi-bin/dnewsweb?cmd=xover&group=weblogic.developer.interest.workshop
    Keith wrote:
    >
    Hi Bruce, thanks for the reply. I set the operation for document-style soap and
    still get the deserialization exception as mentioned in my original note. Below
    is the wsdl. Note: in my original note, the problematic operation was addData()
    which is now named addBusinessLocation(). As always, your help is greatly appreciated.
    Keith
    <?xml version="1.0" encoding="utf-8"?>
    <!-- @editor-info:link autogen="true" source="PublicServiceWS.jws" -->
    <definitions xmlns="http://schemas.xmlsoap.org/wsdl/" xmlns:conv="http://www.openuri.org/2002/04/soap/conversation/"
    xmlns:cw="http://www.openuri.org/2002/04/wsdl/conversation/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/"
    xmlns:jms="http://www.openuri.org/2002/04/wsdl/jms/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/"
    xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:s0="http://www.openuri.org/"
    xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
    targetNamespace="http://www.openuri.org/">
    <types>
    <s:schema elementFormDefault="qualified" targetNamespace="http://www.openuri.org/"
    xmlns:s="http://www.w3.org/2001/XMLSchema" xmlns:ope="http://www.openuri.org/">
    <s:element name="addBusinessLocation">
    <s:complexType>
    <s:sequence>
    <s:element name="arg0" type="ope:Request" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="addBusinessLocationResponse">
    <s:complexType>
    <s:sequence/>
    </s:complexType>
    </s:element>
    <s:element name="getBusinessLocation">
    <s:complexType>
    <s:sequence/>
    </s:complexType>
    </s:element>
    <s:element name="getBusinessLocationResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="getBusinessLocationResult" type="ope:Response" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="Response" nillable="true" type="ope:Response"/>
    <s:element name="repeat">
    <s:complexType>
    <s:sequence>
    <s:element name="in" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="repeatResponse">
    <s:complexType>
    <s:sequence>
    <s:element name="repeatResult" type="s:string" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    </s:element>
    <s:element name="string" nillable="true" type="s:string"/>
    <s:complexType name="Request">
    <s:sequence>
    <s:element name="Params" type="ope:Collection" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Collection">
    <s:sequence>
    <s:element name="item" type="s:anyType" nillable="true" minOccurs="0"
    maxOccurs="unbounded"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Param">
    <s:sequence>
    <s:element name="Name" type="s:string" minOccurs="0"/>
    <s:element name="Value" type="s:anyType" minOccurs="0"/>
    </s:sequence>
    </s:complexType>
    <s:complexType name="Response">
    <s:complexContent>
    <s:extension base="ope:Request">
    <s:sequence/>
    </s:extension>
    </s:complexContent>
    </s:complexType>
    </s:schema>
    </types>
    <message name="addBusinessLocationSoapIn">
    <part name="parameters" element="s0:addBusinessLocation"/>
    </message>
    <message name="addBusinessLocationSoapOut">
    <part name="parameters" element="s0:addBusinessLocationResponse"/>
    </message>
    <message name="getBusinessLocationSoapIn">
    <part name="parameters" element="s0:getBusinessLocation"/>
    </message>
    <message name="getBusinessLocationSoapOut">
    <part name="parameters" element="s0:getBusinessLocationResponse"/>
    </message>
    <message name="repeatSoapIn">
    <part name="parameters" element="s0:repeat"/>
    </message>
    <message name="repeatSoapOut">
    <part name="parameters" element="s0:repeatResponse"/>
    </message>
    <message name="getBusinessLocationHttpGetIn"/>
    <message name="getBusinessLocationHttpGetOut">
    <part name="Body" element="s0:Response"/>
    </message>
    <message name="repeatHttpGetIn">
    <part name="in" type="s:string"/>
    </message>
    <message name="repeatHttpGetOut">
    <part name="Body" element="s0:string"/>
    </message>
    <message name="getBusinessLocationHttpPostIn"/>
    <message name="getBusinessLocationHttpPostOut">
    <part name="Body" element="s0:Response"/>
    </message>
    <message name="repeatHttpPostIn">
    <part name="in" type="s:string"/>
    </message>
    <message name="repeatHttpPostOut">
    <part name="Body" element="s0:string"/>
    </message>
    <portType name="PublicServiceWSSoap">
    <operation name="addBusinessLocation">
    <input message="s0:addBusinessLocationSoapIn"/>
    <output message="s0:addBusinessLocationSoapOut"/>
    </operation>
    <operation name="getBusinessLocation">
    <input message="s0:getBusinessLocationSoapIn"/>
    <output message="s0:getBusinessLocationSoapOut"/>
    </operation>
    <operation name="repeat">
    <input message="s0:repeatSoapIn"/>
    <output message="s0:repeatSoapOut"/>
    </operation>
    </portType>
    <portType name="PublicServiceWSHttpGet">
    <operation name="getBusinessLocation">
    <input message="s0:getBusinessLocationHttpGetIn"/>
    <output message="s0:getBusinessLocationHttpGetOut"/>
    </operation>
    <operation name="repeat">
    <input message="s0:repeatHttpGetIn"/>
    <output message="s0:repeatHttpGetOut"/>
    </operation>
    </portType>
    <portType name="PublicServiceWSHttpPost">
    <operation name="getBusinessLocation">
    <input message="s0:getBusinessLocationHttpPostIn"/>
    <output message="s0:getBusinessLocationHttpPostOut"/>
    </operation>
    <operation name="repeat">
    <input message="s0:repeatHttpPostIn"/>
    <output message="s0:repeatHttpPostOut"/>
    </operation>
    </portType>
    <binding name="PublicServiceWSSoap" type="s0:PublicServiceWSSoap">
    <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document"/>
    <operation name="addBusinessLocation">
    <soap:operation soapAction="http://www.openuri.org/addBusinessLocation"
    style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="getBusinessLocation">
    <soap:operation soapAction="http://www.openuri.org/getBusinessLocation"
    style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    <operation name="repeat">
    <soap:operation soapAction="http://www.openuri.org/repeat" style="document"/>
    <input>
    <soap:body use="literal"/>
    </input>
    <output>
    <soap:body use="literal"/>
    </output>
    </operation>
    </binding>
    <binding name="PublicServiceWSHttpGet" type="s0:PublicServiceWSHttpGet">
    <http:binding verb="GET"/>
    <operation name="getBusinessLocation">
    <http:operation location="/getBusinessLocation"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="repeat">
    <http:operation location="/repeat"/>
    <input>
    <http:urlEncoded/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    </binding>
    <binding name="PublicServiceWSHttpPost" type="s0:PublicServiceWSHttpPost">
    <http:binding verb="POST"/>
    <operation name="getBusinessLocation">
    <http:operation location="/getBusinessLocation"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    <operation name="repeat">
    <http:operation location="/repeat"/>
    <input>
    <mime:content type="application/x-www-form-urlencoded"/>
    </input>
    <output>
    <mime:mimeXml part="Body"/>
    </output>
    </operation>
    </binding>
    <service name="PublicServiceWS">
    <port name="PublicServiceWSSoap" binding="s0:PublicServiceWSSoap">
    <soap:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
    </port>
    <port name="PublicServiceWSHttpGet" binding="s0:PublicServiceWSHttpGet">
    <http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
    </port>
    <port name="PublicServiceWSHttpPost" binding="s0:PublicServiceWSHttpPost">
    <http:address location="http://localhost:8010/WebService/PublicServiceWS.jws"/>
    </port>
    </service>
    </definitions>
    Bruce Stephens <[email protected]> wrote:
    Hi Keith,
    As a quick test, you might try changing the protocol style to use
    doc/lit (@jws:protocol soap-style="document") to see if this provides
    another view on the real issue.
    Could you post the generated WSDL?
    Thanks,
    Bruce
    Keith wrote:
    I am trying to run a webservice created using Weblogic Workshop 8.1sp2that communicates
    with an ejb control. When I test in debug mode, I get the above error,specifically:
    <detail>
    <jwErr:jwErrorDetail xmlns:jwErr="http://www.bea.com/2002/04/jwErrorDetail/">
    com.bea.wlw.runtime.core.request.RequestValidationException: Errordeserializing
    arguments.
    Encountered an xml tag without a recognized type: the type must bedeclared with
    an xsi:type attribute.
    Caused by: com.bea.xml.marshal.XmlEncodingException: Encountered anxml tag with
    out a recognized type: the type must be declared with an xsi:type attribute.
    </detail>
    I am passing a Request object to the jws method (to the ejb) that hasa Collection
    as an instance member. This Collection references objects of anothertype, Param
    (code for both objects below). Before passing the object, I convertthe Collection
    to an array of objects. When I call the operation via a java client,I get the
    above message.
    In Workshop, I've included the Request and Param classes as the parameterxml
    and the soap style is rpc. I've tested the ejb by itself and it isworking fine.
    Request.java:
    import java.util.*;
    public class Request implements java.io.Serializable
    protected Collection params=null;
    public Collection getParams()
    { return params; }
    public void setParams(Collection data)
    { params=data; }
    Param.java:
    public class Param implements java.io.Serializable
    private String name=null;
    private Object value=null;
    public String getName()
    { return name; }
    public void setName(String data)
    { name = data; }
    public Object getValue()
    { return value; }
    public void setValue(Object data)
    { value=data; }
    Here's the code from the jws:
    public class MyWS implements com.bea.jws.WebService
    * @common:control
    private control.PSEjbControl psEJB;
    static final long serialVersionUID = 1L;
    * @common:operation
    * @jws:parameter-xml
    * include-java-types="mypackage.Request mypackage.Param"
    * @jws:protocol soap-style="rpc"
    public void addData(mypackage.Request arg0) throws java.rmi.RemoteException
    System.out.println("arg0 : " + arg0);
    psEJB.addData(arg0);
    *Note: in the server console, arg0 comes through as null when calledfrom my client.
    Here's the bit from my client:
    import weblogic.jws.proxies.*;
    import org.openuri.www.encodedTypes.Request;
    import org.openuri.www.encodedTypes.Param;
    public void go(String wsdl) throws Exception {
    MyWSSoap mw = null;
    mw = new MyWS_Impl().getMyWSSoap();
    Request req = new Request();
    Collection reqColl = new ArrayList();
    Param param1 = new Param();
    param1.setName("NAME");
    param1.setValue("Joe Tester");
    Param param2 = new Param();
    param2.setName("ADDRESS");
    param2.setValue("345 Test Drive");
    reqColl.add(param1);
    reqColl.add(param2);
    Object[] obs = reqColl.toArray();
    req.setParams(obs);
    mw.addData(req);
    Not sure if this enough to go by. Please let me know if you need moreinformation.
    Any help is really appreciated. Thanks.

  • XML-32009: (Fatal Error) Failed to parse the input schema.

    I am attempting to generate the Java classes for the attached XLM schema (JMdict_e.xsd) using the following command:
    oracle.xml.jaxb.orajaxb -schema JMdict_e.xsd -targetPkg generated
    which results in the error "XML-32009: (Fatal Error) Failed to parse the input schema."
    I created the schema from a DTD file (http://www.csse.monash.edu.au/~jwb/jmdict_dtd_h.html) following the instructions in the example http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28394/adx_j_sproc.htm#CIHICCJB
    I am using version xdk_nt_10_1_0_2_0_production.
    Can anyone help me with this please? Thanks.
    JMdict_e.xsd
    <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="dial" type="xs:string"/>
    <xs:element name="example" type="xs:string"/>
    <xs:element name="upd_date" type="xs:string"/>
    <xs:element name="ke_pri" type="xs:string"/>
    <xs:element name="re_nokanji" type="xs:string"/>
    <xs:element name="xref" type="xs:string"/>
    <xs:element name="etym" type="xs:string"/>
    <xs:element name="re_inf" type="xs:string"/>
    <xs:element name="k_ele">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="keb"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="ke_inf"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="ke_pri"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="links">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="link_tag"/>
    <xs:element ref="link_desc"/>
    <xs:element ref="link_uri"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="lsource">
    <xs:complexType>
    <xs:simpleContent>
    <xs:extension base="xs:string">
    <xs:attribute name="lang" fixed="eng"/>
    <xs:attribute name="ls_type" use="optional" type="xs:string"/>
    <xs:attribute name="ls_wasei" use="optional" type="xs:string"/>
    </xs:extension>
    </xs:simpleContent>
    </xs:complexType>
    </xs:element>
    <xs:element name="ent_seq" type="xs:string"/>
    <xs:element name="info">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="links"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="bibl"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="etym"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="audit"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="s_inf" type="xs:string"/>
    <xs:element name="link_uri" type="xs:string"/>
    <xs:element name="bib_txt" type="xs:string"/>
    <xs:element name="link_tag" type="xs:string"/>
    <xs:element name="bibl">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" ref="bib_tag"/>
    <xs:element minOccurs="0" ref="bib_txt"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="upd_detl" type="xs:string"/>
    <xs:element name="ant" type="xs:string"/>
    <xs:element name="ke_inf" type="xs:string"/>
    <xs:element name="audit">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="upd_date"/>
    <xs:element ref="upd_detl"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="pos" type="xs:string"/>
    <xs:element name="pri" type="xs:string"/>
    <xs:element name="r_ele">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="reb"/>
    <xs:element minOccurs="0" ref="re_nokanji"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="re_restr"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="re_inf"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="re_pri"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="bib_tag" type="xs:string"/>
    <xs:element name="re_restr" type="xs:string"/>
    <xs:element name="stagk" type="xs:string"/>
    <xs:element name="sense">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="stagk"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="stagr"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="pos"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="xref"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="ant"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="field"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="misc"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="s_inf"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="lsource"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="dial"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="gloss"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="example"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="keb" type="xs:string"/>
    <xs:element name="field" type="xs:string"/>
    <xs:element name="link_desc" type="xs:string"/>
    <xs:element name="reb" type="xs:string"/>
    <xs:element name="entry">
    <xs:complexType>
    <xs:sequence>
    <xs:element ref="ent_seq"/>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="k_ele"/>
    <xs:element maxOccurs="unbounded" ref="r_ele"/>
    <xs:element minOccurs="0" ref="info"/>
    <xs:element maxOccurs="unbounded" ref="sense"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    <xs:element name="stagr" type="xs:string"/>
    <xs:element name="re_pri" type="xs:string"/>
    <xs:element name="gloss">
    <xs:complexType mixed="true">
    <xs:choice minOccurs="0" maxOccurs="unbounded">
    <xs:element ref="pri"/>
    </xs:choice>
    <xs:attribute name="lang" fixed="eng"/>
    <xs:attribute name="g_gend" use="optional" type="xs:string"/>
    </xs:complexType>
    </xs:element>
    <xs:element name="misc" type="xs:string"/>
    <xs:element name="JMdict">
    <xs:complexType>
    <xs:sequence>
    <xs:element minOccurs="0" maxOccurs="unbounded" ref="entry"/>
    </xs:sequence>
    </xs:complexType>
    </xs:element>
    </xs:schema>

    @Bhaskar (and @user11922800): You have to update the db10g/xdk to a version at least of 10.1.0.4. There were major bug fixes including XML-32009 error (bug number 3375952).
    http://www.eygle.com/case/bug10104.htm
    I've even tried the op's listing with my more to-date xdk without encountering any problem and it is compiled just fine.
    ps: I am sure that was the hasty typo in dvohra16 post. The namespace in the op (/2001/) is correct. Encoding is still capable of resulting in some problems (I've had encounted if I recall), but that is not the problem for the issue raised in this thread.

  • Fatal Error and NullPointerException in Oracle XML Transformer

    Hi,
    I'm building a dom tree in memory with oracle xml parser. Then I transform the dom document into a string to send xml to the client. But I get an fatal error on calling transform.
    I don't know what could be the problem, because apache and weblogic parser works, an when I create a dom document with org.w3c.dom elements and statements then the xml document can't be invalid,
    because the document implementation would throw an exception if wrong nodes or something like this should be inserted...
    I'm using oracle xml parser 9.2.0.4 for java, bea weblogic 7.0 and win2k.
    Thanks for help.
    XSL-1900: (Fatal Error) An internal error condition occurred.
    javax.xml.transform.TransformerException: XSL-1900: (Fatal Error) An internal error condition occurred.
    at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:681)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:309)
    java.lang.NullPointerException
    at oracle.xml.parser.v2.XSLSAXPrintDriver.printAttributes(XSLSAXPrintDriver.java:394)
    at oracle.xml.parser.v2.XSLSAXPrintDriver.startElement(XSLSAXPrintDriver.java:322)
    at oracle.xml.parser.v2.XMLElement.reportSAXEvents(XMLElement.java:993)
    at oracle.xml.parser.v2.XMLNode.reportChildSAXEvents(XMLNode.java:1014)
    at oracle.xml.parser.v2.XMLDocument.reportSAXEvents(XMLDocument.java:942)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:294)

    Hi,
    I'm having that problem to:
    I'm getting the following exception
    javax.xml.transform.TransformerException: XSL-1900: (Fatal Error) An internal error condition occurred.
         at oracle.xml.jaxp.JXTransformer.reportException(JXTransformer.java:723)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:340)
         at com.ac.mqif.control.Handler.handleLong(Handler.java:835)
         at com.ac.mqif.control.Handler.run(Handler.java:951)
    Caused by: java.lang.NullPointerException
         at oracle.xml.parser.v2.XPathStep.getSelectedNodes(XPathStep.java:380)
         at oracle.xml.parser.v2.PathExpr.getValue(XSLNodeSetExpr.java:483)
         at oracle.xml.parser.v2.XSLExprBase.getStringValue(XSLExprBase.java:363)
         at oracle.xml.parser.v2.XSLValueOf.processAction(XSLValueOf.java:99)
         at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:367)
         at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:199)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:214)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:207)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:207)
         at oracle.xml.parser.v2.XSLApplyTemplates.processAction(XSLApplyTemplates.java:120)
         at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:367)
         at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:199)
         at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:471)
         at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:448)
         at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:246)
         at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:327)
         ... 2 more
    when using a stylesheet which has a template match condition of more than 1600 characters.
    The second thing is that the Oracle XML transformer is
    NOT threadsafe. I was using several threads using different templates to transform an incoming XML simultaneously but was ALWAYS getting internal XSL errors
    and Nullpointer Exceptions. I solved this by synchronizing the transformation, but I don't like it.
    I'm using the following versions on Windows XP:
    Oracle IDE: 9.0.3.10.35
    Business Components Version: 9.0.3.10.7
    SCM Support Version: 9.0.3.9.4
    Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28)
    Thanx,
    Ellcrys

  • Conversion of string into XML object

    Hi
    I am having some problems with conversion of string (containing XML data) into Flex XML object and binding it later to UI elements to output/maintain this data.
    Binding of XML structure to UI elements works perfectly fine if I will do following:
    1)      Hardcode XML object within Flex file
    2)      Read xml file from repository (xml file inside the Flex project)
    3)      Use HTTP request to retrieve XML data
    Unfortunately none of the above scenarios suits my solution.
    I am developing a prototype application for processing Flex forms inside SAP system. I have decided to make data bindings using XML structure stored in Data Base. When rendering form inside web browser based application I am retrieving corresponding XML schema (empty for new forms and populated for saved forms) and pass it to Flex form as a string type import parameter. Data is being passed correctly (I can display it on TextArea control for instance) but after conversion to XML and binding to DataGrid I am not getting any results.
    I am converting string (containing XML) to XML object in following way:
    Private var xml_obj:XML = new XML(string_xml );
    I am catching any potential errors but conversion is going well. After conversion I am not getting any results after binding it to DataGrid control and I am not able to access any of the nodes using AS code either. At the same time variable xml_obj is not empty (not null).
    Any help would be much appreciated.
    Regards
    Michael

    David
    First of all sorry for not stating it clearly but I am using Flex 3 for this development (at the moment it is the only choice when embedding Flex objects inside SAP applications).
    You must have missed the bit where I am describing how this XML data finds its way inside Flex. I am passing it to Flex as String type parameter during rendering (directly from DB where it is stored).
    Now, following code works perfect (XML is embedded inside Flex project):
                    <mx:XML id="form_data" source="../assets/example_xml_data.xml"/>
                    <mx:Script>
                                    <![CDATA[
                                                    import mx.collections.XMLListCollection;
                                                    import mx.controls.Alert;
                                                    [Bindable]
                                                    public var XML_list:XMLListCollection;
                                                    private function setParameters():void
                                                                   XML_list = new XMLListCollection(form_data.*);             
                                    ]]>
                    </mx:Script>
                    <mx:DataGrid id="myDataGrid" dataProvider="{XML_list}">
                                    <mx:columns>
                                                    <mx:DataGridColumn dataField="COMMON" headerText="Popular name"/>
                                                    <mx:DataGridColumn dataField="BOTANICAL" headerText="Botanical name"/>
                                                    <mx:DataGridColumn dataField="ZONE" headerText="Zone"/>
                                                    <mx:DataGridColumn dataField="LIGHT" headerText="Light"/>                                                                                                                                               
                                                    <mx:DataGridColumn dataField="PRICE" headerText="Price"/>                                               
                                                    <mx:DataGridColumn dataField="AVAILABILITY" headerText="Availability"/>                                    
                                    </mx:columns>               
                    </mx:DataGrid>
    But following code does not work (XML passed to Flex form as String input parameter):
    import sap.FlashIsland;
    import mx.controls.Alert;
    import mx.collections.XMLListCollection;
    [Bindable]
    public var xml_data:String;
    private var form_data:XML;
    [Bindable]
    private var XML_list:XMLListCollection;
    private function initApp():void
                    FlashIsland.register(this);
    private function setParameters():void
                    try
                                    form_data=new XML(xml_data);
                    catch (error:Error)
                                    Alert.show(error.toString());
                      XML_list = new XMLListCollection(form_data.*);           
    XML string does find its way inside Flex form. I can display content of variable xml_data in TextArea and all looks fine. Conversion to XML (variable form_data) goes well (no error)
    Please helpJ
    Regards
    Michael

  • [Fatal Error] :1:1: Content is not allowed in prolog. ..XML READ ERROR

    Hi I am developing an application where it will read xml elements from the http site (http://www.w3schools.com/Xml/note.xml) and display in my program using DOM. while executing its giving CONTENT IS NOT ALLOWED IN PROGRAM below error. but when i am use coded xml in program itself as comment as shown in program its giving correct value. I need to read from http not from coded xml in the program. its immediate please help me out.
    [Fatal Error] :1:1: Content is not allowed in prolog.
    org.xml.sax.SAXParseException: Content is not allowed in prolog.
    at com.sun.org.apache.xerces.internal.parsers.DOMParser.parse(Unknown Source)
    at com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderImpl.parse(Unknown Source)
    at SimpleXML1.main(SimpleXML1.java:34)
    import javax.xml.parsers.*;
    import org.xml.sax.InputSource;
    import org.w3c.dom.*;
    import java.io.*;
    public class SimpleXML1 {
    public static void main(String arg[]) {
    String xmlRecords = "http://www.w3schools.com/Xml/note.xml";
    /* String xmlRecords =
    " <note>" +
    " <to>John</to>" +
    " <from>Manager</from>" +
    " <heading>XML Program</heading>" +
    " <body>Simple XML</body>" +
    "</note>";*/
    try {
    DocumentBuilderFactory dbf =
    DocumentBuilderFactory.newInstance();
    DocumentBuilder db = dbf.newDocumentBuilder();
    InputSource is = new InputSource();
    is.setCharacterStream(new StringReader(xmlRecords));
    Document doc = db.parse(is);
    NodeList nodes = doc.getElementsByTagName("note");
    for (int i = 0; i < nodes.getLength(); i++) {
    Element element = (Element) nodes.item(i);
    NodeList from = element.getElementsByTagName("from");
    Element line = (Element) from.item(0);
    Node child1 = line.getFirstChild();
    CharacterData cd = (CharacterData) child1;
    System.out.println(cd.getData());
    catch (Exception e) {
    e.printStackTrace();
    }

    chrisacess wrote:String xmlRecords = "http://www.w3schools.com/Xml/note.xml";
    /* snip */
    is.setCharacterStream(new StringReader(xmlRecords));
    Is that really how you're trying to read the online XML document? Because I don't see anything that makes a connection to the site. All you're doing is trying to parse the string "http://www.w3schools.com/Xml/note.xml" is if it were XML.
    ps, That "Content not allowed in prolog" error message is worse than useless IMO. They might as well say "It didn't work" for all the good does.

  • WTF does this mean and why won't my illustrator CS5 load without this appearing??   Exit Code: 6 -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 5 error(s), 4 warning(s) WARNING: LocalizeFile:Local

    WTF does this mean and why won't my illustrator CS5 load without this appearing??
    Exit Code: 6
    -------------------------------------- Summary --------------------------------------
    - 0 fatal error(s), 5 error(s), 4 warning(s)
    WARNING: LocalizeFile:Localized string not found for locale 'en_GB' try fetching for en_US
    WARNING: LocalizeFile:Localized string not found for locale 'en_GB' try fetching for en_US
    WARNING: LocalizeFile:Localized string not found for locale 'en_GB' try fetching for en_US
    WARNING: LocalizeFile:Localized string not found for locale 'en_GB' try fetching for en_US
    ERROR: 92 Unable to copy file from "/private/tmp/.tempdirYoCObExG/Assets1/Application/Cool Extras.localized/en_GB/Sample Files/Sample Art/Crowd.ai" to "/Applications/Adobe Illustrator CS5/Cool Extras.localized/en_GB/Sample Files/Sample Art/Crowd.ai" Error 0
    ERROR: 92 Command ARKCopyFileCommand failed.
    ERROR: The following payload errors were found during install:
    ERROR:  - Adobe Illustrator CS5_AdobeIllustrator15en_GBLanguagePack: Install failed
    ERROR:  - Adobe Illustrator CS5: Failed due to Language Pack installation failure
    AND HOW DO I FIX THE PROBLEM???????

    Exit Code 6 and Exit Code 7 indicate that the installation finished with errors. However, the exit codes themselves do not indicate the type of error that occurred.
    Please refer to :
    Errors "Exit Code: 6," "Exit Code: 7" | CS5, CS5.5
    Error "Exit 6" or "Exit 7" | Install log | Read, write, system file errors | CS5, CS5.5
    Regards
    Rajshree

  • Installing JDeveloper on OSX : Fatal Error (during string substitutions)

    Following the instructions from: http://download.oracle.com/docs/cd/E12839_01/install.1111/e13666/ojdig.htm#BDCFFEJC
    and read about all the post in this forum, I am still not able to install JDeveloper 11.1.1.3 or 11.1.1.2
    MacOSX 10.6.5 with Java 1.6.0_22
    I did the steps as mentioned in the installation guide (make sure 64-bit is on top of the list in the java preferences tool + made the link)
    The installer has no problems finding java, but displays a "Fatal Error etc..." at 52%: the action going on then is "Performing String Substitutions"
    The log file looks as follows:
    2010-11-23 22:08:12,639 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,676 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,678 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,679 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,681 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.extra" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,681 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.saml2.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,682 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.coherence.integration" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,683 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.toplinkgrid" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,684 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.quickstart" feature-version="10.3.2.0"/>
    2010-11-23 22:08:12,685 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin" feature-version="2.5.0.0"/>
    2010-11-23 22:08:12,686 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.launch" feature-version="2.5.0.0"/>
    2010-11-23 22:08:12,687 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.L10N" feature-version="2.5.0.0"/>
    2010-11-23 22:08:12,688 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config-security" feature-version="1.0.0.0"/>
    2010-11-23 22:08:12,689 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config" feature-version="7.0.0.0"/>
    2010-11-23 22:08:12,690 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.launch" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,690 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.L10N" feature-version="7.0.0.0"/>
    2010-11-23 22:08:12,693 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.pubsub" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,716 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.sca" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,718 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.dotnet" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,720 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.xquery" feature-version="10.3.3.0"/>
    2010-11-23 22:08:12,722 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.gpr" feature-version="3.0.1.0"/>
    2010-11-23 22:08:12,723 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall" feature-version="6.2.0.0"/>
    2010-11-23 22:08:12,723 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.launch" feature-version="6.0.0.0"/>
    2010-11-23 22:08:12,724 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.L10N" feature-version="6.2.0.0"/>
    2010-11-23 22:08:12,726 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client" feature-version="3.2.1.0"/>
    2010-11-23 22:08:12,726 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client.L10N" feature-version="3.2.0.0"/>
    2010-11-23 22:08:12,728 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.ocm" feature-version="1.0.0.0"/>
    2010-11-23 22:08:12,729 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.paf" feature-version="1.1.0.0"/>
    2010-11-23 22:08:12,729 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.clone" feature-version="1.1.0.0"/>
    2010-11-23 22:08:13,005 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,005 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.client.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,007 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,008 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.L10N" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,009 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.extra" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,010 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.saml2.modules" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,011 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.coherence.integration" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,011 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.toplinkgrid" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,015 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.quickstart" feature-version="10.3.2.0"/>
    2010-11-23 22:08:13,015 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin" feature-version="2.5.0.0"/>
    2010-11-23 22:08:13,017 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.launch" feature-version="2.5.0.0"/>
    2010-11-23 22:08:13,017 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.common-plugin.L10N" feature-version="2.5.0.0"/>
    2010-11-23 22:08:13,039 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config-security" feature-version="1.0.0.0"/>
    2010-11-23 22:08:13,040 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config" feature-version="7.0.0.0"/>
    2010-11-23 22:08:13,040 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.launch" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,041 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.cie.config.L10N" feature-version="7.0.0.0"/>
    2010-11-23 22:08:13,046 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.pubsub" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,047 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.sca" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,048 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.dotnet" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,050 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.xquery" feature-version="10.3.3.0"/>
    2010-11-23 22:08:13,052 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.gpr" feature-version="3.0.1.0"/>
    2010-11-23 22:08:13,052 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall" feature-version="6.2.0.0"/>
    2010-11-23 22:08:13,053 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.launch" feature-version="6.0.0.0"/>
    2010-11-23 22:08:13,054 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.uninstall.L10N" feature-version="6.2.0.0"/>
    2010-11-23 22:08:13,055 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client" feature-version="3.2.1.0"/>
    2010-11-23 22:08:13,066 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.patch-client.L10N" feature-version="3.2.0.0"/>
    2010-11-23 22:08:13,067 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.oracle.ocm" feature-version="1.0.0.0"/>
    2010-11-23 22:08:13,068 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.paf" feature-version="1.1.0.0"/>
    2010-11-23 22:08:13,069 WARN [getArchivesFromTree] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="com.bea.cie.clone" feature-version="1.1.0.0"/>
    2010-11-23 22:08:13,139 WARN [readCachedArchiveInfo] com.bea.plateng.wizard.installer.silent.tasks.ReadCachedArchiveInfoTask - Unable to read archive.bea from /var/folders/gQ/gQeTMB+nFpaLMIYi6zkEp++++TI/-Tmp-/
    2010-11-23 22:08:54,427 WARN [WizardController] com.bea.plateng.wizard.installer.gui.tasks.InstallSelectionSummaryTask - No JVMTargets selected for installation
    2010-11-23 22:09:17,095 WARN [Thread-5] com.bea.cie.gpr.internal.feature.FeatureCatalogImpl - Unable to locate feature corresponding to feature reference: <xml-fragment feature="weblogic.server.modules.pubsub" feature-version="10.3.3.0"/>
    2010-11-23 22:11:06,516 ERROR [stringSubst_gui] com.bea.plateng.wizard.WizardController - Uncaught Exception
    java.lang.IllegalArgumentException: http://java.sun.com/xml/jaxp/properties/schemaLanguage
         at org.apache.xerces.jaxp.DocumentBuilderFactoryImpl.setAttribute(DocumentBuilderFactoryImpl.java:118)
         at com.bea.plateng.common.util.StringsubsEngine.isValid(StringsubsEngine.java:1043)
         at com.bea.plateng.wizard.installer.helpers.StringsubsHelper.execute(StringsubsHelper.java:143)
         at com.bea.plateng.wizard.installer.helpers.StringsubsHelper.execute(StringsubsHelper.java:85)
         at com.bea.plateng.wizard.installer.helpers.StringsubsHelper.execute(StringsubsHelper.java:73)
         at com.bea.plateng.wizard.installer.gui.tasks.ProgressStringSubstTask.execute(ProgressStringSubstTask.java:150)
         at com.bea.plateng.wizard.gui.tasks.AbstractGUITask.run(AbstractGUITask.java:42)
         at java.lang.Thread.run(Thread.java:680)
    2010-11-23 22:12:01,325 WARN [WizardController] com.bea.plateng.wizard.installer.cleanup.tasks.CleanupShortcutsTask - No shortcuts to cleanup??
    2010-11-23 22:12:01,326 WARN [WizardController] com.bea.plateng.wizard.installer.cleanup.tasks.CleanupWinRegistryTask - No winregs to cleanup??
    Thanks in advance for some hints ...

    Official reply from Oracle via CS:
    "MacOSx 10.6.5 with Java 1.6.0_22 is not supported for JDeveloper version 11.1.1.2 and later. This has not been certified yet."

  • Org.xml.sax.SAXParseException: Line 1, Column 1 : XML-0108: (Fatal Error)

    Hi ,
    I am using SAX parser in a java code , which compiles and parses an xml correctly in the local JVM.
    But the same code in OC4J(10g) - version 9.0.4.2 throws the following exception when traced the error stack.
    08/04/04 17:48:40 Loading file workingday.xml from directory ========================== :::java.io.BufferedInputStream@bd4e3c
    08/04/04 17:48:40 Read the xml into instream => STEP II
    08/04/04 17:48:40 Read the xml into instream => STEP II
    08/04/04 17:48:40 adding to the bankholiday list
    org.xml.sax.SAXParseException: <Line 1, Column 1>: XML-0108: (Fatal Error) Start of root element expected.
    08/04/04 17:48:40 at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:226)
    08/04/04 17:48:40 at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:162)
    08/04/04 17:48:40 at oracle.xml.parser.v2.NonValidatingParser.parseRootElement(NonValidatingParser.java:305)
    08/04/04 17:48:40 at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:267)
    08/04/04 17:48:40 at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:149)
    08/04/04 17:48:40 at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:286)
    08/04/04 17:48:40 at oracle.xml.jaxp.JXSAXParser.parse(JXSAXParser.java:224)
    Though I have imported the following JDK parsers in the code , the Oracle's SAX parser is taking other inside the application server and throwing the above error for an xml , which is absolutely alright.
    import javax.xml.parsers.ParserConfigurationException;
    import javax.xml.parsers.SAXParser;
    import javax.xml.parsers.SAXParserFactory;
    Please let me know why this happens? Is it a known bug in the OC4J 9.0.4.2?
    Thanks and Regards
    Antara

    hi Antara
    about "... Though I have imported the following JDK parsers in the code , the Oracle's SAX parser is taking other inside the application server ..."
    If you have used the SAXParserFactory.newSAXParser() method to get a parser, the documentation for this method says "Creates a new instance of a SAXParser using the currently configured factory parameters.".
    So you might get a different parser in a different environment.
    regards
    Jan Vervecken

  • Conversion of xml string to xml file

    To convert xml string to xml file in java i used
    Document XMLDoc=DocumentBuilderFactory.newInstance().newDocumentBuilder().parse(new InputSource(new StringReader("<root><main>Title</main></root&g t;")));
    But it is showing an error as InputSource cannot be resolved
    How to rectify this

    I assume you mean there is a compiler error? (It helps if you explain your problem instead of just giving a vague description of it.) It sounds like you have to import InputSource. You do know about the import statements that go at the beginning of a Java class, don't you?

  • Getting XML-32000: (Fatal Error) when using xml.jar of jaxb in jdeveloper 9

    Hi,
    I am trying to use jaxb in jdeveloper 9 to create java objects from an xsd. Any help would be really appreciated.
    I tested the below example with jdeveloper10 and it worked fine as jaxb was introduced in jdeveloper 10 by providing xml.jar.
    I need to use jdeveloper 9 in my project and jdeveloper 9 doesn't have xml.jar. I copied the xml.jar and xmlparserv2.jar from jdeveloper 10 to jdeveloper9. Created a build script to generate the java files for test.xsd.
    The build script works in jdeveloper 10 but gives the following error in jdeveloper 9:
    XML-32000: (Fatal Error) error in Building the Schema
    The test.s simple and is as follows :
    <?xml version="1.0" encoding="windows-1252"?>
    <schema xmlns="http://www.w3.org/2001/XMLSchema"
    targetNamespace="http://www.example.org"
    elementFormDefault="qualified" >
    <element name="exampleElement">
    <annotation>
    <documentation>A sample element</documentation>
    </annotation>
    </element>
    </schema>
    Below is the ant script to generate the jva files from the xsd:
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <project default="generate">
    <target name="init">
    <tstamp/>
    </target>
    <path id="build.path">
    <pathelement location="C:\JDeveloper9\jdevbin\lib\xmlparserv2forstudio.jar"/>
    <pathelement location="C:\JDeveloper9\jdevbin\lib\xml.jar"/>
    </path>
    <target name="generate" depends="init">
    <java fork="yes" classname="oracle.xml.jaxb.orajaxb"
    description="generate java code from xml schema"
    classpathref="build.path">
    <arg value="-schema"/>
    <arg value="test.xsd"/>
    <arg value="-outputDir"/>
    Please let me know where I am doing wrong
    Thanks,
    SR
    Edited by: user2188619 on Aug 29, 2008 8:20 AM

    You can not simply swap arround jar files from jdev 10 to jdev 9. You then are also using an entirly different jdk and there probably are some dependencies on it. Will it work if you try to run ant from outside jdev and using a 1.5 jdk?
    Andre

  • Mapping error in FCC to XML conversion

    hiii friends,
    im donig a simple fcc to xml conversion
    my Sender msg type is like
    TXT_mt
          records                             1.1   
                row                             1.n
                    id                             1
                    Name                       1
                    address                   1
    My receiver msg type like
    Xml_mt
          records                             1.1   
                row                             1.n
                    id                             1
                    Name                       1
                    address                   1
    msg mapping like
    records--->records
    id--->id
    Name-->Name
    address-->address
    **Im getting a mapping error like**
    <SAP:Error xmlns:SAP="http://sap.com/xi/XI/Message/30" xmlns:SOAP="http://schemas.xmlsoap.org/soap/envelope/" SOAP:mustUnderstand="">
      <SAP:Category>Application</SAP:Category>
      <SAP:Code area="MAPPING">EXCEPTION_DURING_EXECUTE</SAP:Code>
      <SAP:P1>com/sap/xi/tf/_pepsi_fcc_file_mm_</SAP:P1>
      <SAP:P2>com.sap.aii.utilxi.misc.api.BaseRuntimeException</SAP:P2>
      <SAP:P3>RuntimeException in Message-Mapping transformatio~</SAP:P3>
      <SAP:P4 />
      <SAP:AdditionalText />
      <SAP:ApplicationFaultMessage namespace="" />
      <SAP:Stack>During the application mapping com/sap/xi/tf/_pepsi_fcc_file_mm_ a com.sap.aii.utilxi.misc.api.BaseRuntimeException was thrown: RuntimeException in Message-Mapping transformatio~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
      </SAP:Error>
    I ve checked my adapeters they r green.
    Could u tell me the problem here and how to solve it???
    Regards
    Balaji

    Hii Volker,
    I have tried to understand the trace msg,. i got one interesting error message i hope it will tell the exact problem im facing,,,
    <Trace level="1" type="T">RuntimeException during appliction Java mapping com/sap/xi/tf/_pepsi_fcc_file_mm_</Trace>
      <Trace level="1" type="T">com.sap.aii.utilxi.misc.api.BaseRuntimeException: RuntimeException in Message-Mapping transformation: Cannot produce target element /ns:xml_mt/record/row. Check xml instance is valid for source xsd and target-field mapping fulfills requirements of target xsd at com.sap.aii.mappingtool.tf3.AMappingProgram
    My Sender CC  contains the following FCC parameters
    Document Name -
    > txt_mt
    Recordset Name -
    > records
    recordset Structure -
    >  row, *
    row.fieldNames -
    > id, Names,address
    row.fieldSeparator -
    > , (comma)
    row.endSeparator--- >  'nl'
    row.processConfiguration  -
    > FromConfiguration
    my TXT_in.txt contain
    100,balaji,chennai
    200,raj,orissa
    300,charakrat,bangalore
    Regards,
    Balaji
    Edited by: Balaji Pichaimuthu on Jul 1, 2009 3:44 PM

  • Seeburger EDI Text to EDI XML conversion failure should throw an error

    Hi,
    I am expecting an error message to be thrown when EDI Text to EDI XML conversion fails at Message splitter of Seeburger module. I am getting the following error in the log.
    "2012-01-19T01:46:08.032-0800 ERROR [Error:ID=2150;LEVEL=3] counter value (41) of incoming field (UNB.UNH.UNT:0074) doesnt match the calculated value (39).
    DESCRIPTION: Either the counter value is not filled in the source file or the counter field value is wrong. "
    But my expectation is that the channel should show some error in Adapter Engine monitoring itself. As shown below, it is just showing some warning that because of above error, it is not creating the attachment. Now I am expecting the the following warning to be an error rather than just warning. Please let me know if any idea on the same.
    19.01.2012 01:46:08 Information SEEBURGER/MESSAGESPLITTER: Trying to establish CCI Connection to Message Splitter Adapter
    19.01.2012 01:46:08 Information SEEBURGER/MESSAGESPLITTER: Creating CCI Interaction
    19.01.2012 01:46:08 Warning SEEBURGER/MESSAGESPLITTER: There is no attachment to split. So there is nothing to do.
    19.01.2012 01:46:08 Information SEEBURGER/MESSAGESPLITTER: Finished splitting!
    BR,
    Aman

    Thanks you all for your inputs..
    I got the solution for the same.
    I need to set the mapping program name specifically rather than AUTO for bic mappingName parameter. This has turned my communication channel status in RWB into Red for errors.
    Closing this thread ...
    Regards,
    Aman

Maybe you are looking for