Issue of xml parser on WAS

this is regarding using oracle xml parser on WAS. we are facing the same issue as was posted on this forum
xmlparserv2.jar cause IBM WebSphere v5.1 down.
what i need to know is has there been any other issue even after implementing those solution? plz do reply
Best Regadrs

the error that we get on the server is : -
SystemErr R java.lang.IncompatibleClassChangeError\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.dom4j.tree.AbstractElement.setAttributes(AbstractElement.java:505)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.dom4j.io.SAXContentHandler.addAttributes(SAXContentHandler.java:916)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.dom4j.io.SAXContentHandler.startElement(SAXContentHandler.java:249)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl.scanStartElement(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.impl.XMLNSDocumentScannerImpl$NSContentDispatcher.scanRootElementHook(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.dom4j.io.SAXReader.read(SAXReader.java:465)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1168)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.hibernate.cfg.Configuration.configure(Configuration.java:1112)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.hibernate.cfg.Configuration.configure(Configuration.java:1098)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at org.imf.dmfs.dal.util.dao.HibernateUtil.<clinit>(HibernateUtil.java:34)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at java.lang.J9VMInternals.initializeImpl(Native Method)\par
12/8/09 10:23:07:181 PKT 000086e2 SystemErr R at java.lang.J9VMInternals.initialize(J9VMInternals.java:196)\par
2. the applications is being depl in WAR.
3. ClassLoader Policy : parent last
deleting META-INF/services folder in oracle parser jar file has no effect.
PLZ HELP ME OUT

Similar Messages

  • Options for XML parsing in WAS 6.20 ABAP and higher

    Hello Experts,
       What options are available to me for working with XML documents in SAP R/3 4.7? I am working on SAP WAS 6.20 ABAP and was wondering which tools/techniques I can use for parsing XML files?
       I am developing an ABAP program and primarily need to be able to parse XML documents. I need to be able to traverse up and down their data structures (trees/nodes/elements/etc.).
       In SAP R/3 4.6 I used to use the iXML library but it seems that there are many advanced and powerful features included in SAP WAS 6.20 ABAP and up.
       Could someone please give me a summary of and their opinions on some these "newer" options?
    Thanks,
    - Vik.

    Hi Vik,
       There are two ways you can parse/interpret XML documents in ABAP -
       1. iXML - Which you have already used in 46 release. It wasn't easy to use set of functions but still it was possible to parse documents using iXML library. In WAS 6.20 you can now use class CL_XML_DOCUMENT which is much more easier to use than iXML library. It is bilt on top of iXML using the same DOM model.
      2. XSLT - Useing XSLT_TOOLS or XSLT transaction you can create XSLT programs to transform XML to ABAP data objects and then work with ABAP data objects. In this case you have the option of using some other tool like XMLSPY to write the XSLT and then copy that to SAP.
    From your post it looks like you will probably have to traverse the tree in unpridictable way, probably DOM based parsing using CL_XML_DOCUMENT is more suitable for you.
    Cheers,
    Sanjeev

  • Issue with XML parsing

    Hey guys,
    Issue goes like this : I've got an XML which has a name space reference as shown below :
    <root>
         <node1>
            <*ns*:node2>test_data</ns:node2>
        </node1>
    </root>
    -- I'm using the functions in the XSL processor package to access the data under node2 :
      l_db_n :=
             DBMS_XSLPROCESSOR.selectSingleNode(l_n,
                                            'node1'                                       
             DBMS_XSLPROCESSOR.valueof (l_db_n,
                                        'node2/text()' ,
                                       l_node_value , 'xmlns:ns2="http://some-url.com"');the code fails if I include the namespace reference as shown above, can someone tell me where I'm going wrong ?
    Or if this is not the way to specify a namespace reference, pls let me know how to do it, help much appreciated.
    Thanks
    Edited by: user11382544 on Dec 17, 2009 11:47 PM

    Here's an example of extracting data from XML that has namespaces in it...
    SQL> ed
    Wrote file afiedt.buf
      1  WITH t as (select XMLTYPE('
      2  <RECSET xmlns:aa="http://www.w3.org">
      3    <aa:REC>
      4      <aa:COUNTRY>1</aa:COUNTRY>
      5      <aa:POINT>1800</aa:POINT>
      6      <aa:USER_INFO>
      7        <aa:USER_ID>1</aa:USER_ID>
      8        <aa:TARGET>28</aa:TARGET>
      9        <aa:STATE>6</aa:STATE>
    10        <aa:TASK>12</aa:TASK>
    11      </aa:USER_INFO>
    12      <aa:USER_INFO>
    13        <aa:USER_ID>5</aa:USER_ID>
    14        <aa:TARGET>19</aa:TARGET>
    15        <aa:STATE>1</aa:STATE>
    16        <aa:TASK>90</aa:TASK>
    17      </aa:USER_INFO>
    18    </aa:REC>
    19    <aa:REC>
    20      <aa:COUNTRY>2</aa:COUNTRY>
    21      <aa:POINT>2400</aa:POINT>
    22      <aa:USER_INFO>
    23        <aa:USER_ID>3</aa:USER_ID>
    24        <aa:TARGET>14</aa:TARGET>
    25        <aa:STATE>7</aa:STATE>
    26        <aa:TASK>5</aa:TASK>
    27      </aa:USER_INFO>
    28    </aa:REC>
    29  </RECSET>') as xml from dual)
    30  -- END OF TEST DATA
    31  select x.country, x.point, y.user_id, y.target, y.state, y.task
    32  from t
    33      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
    34                '/RECSET/aa:REC'
    35                PASSING t.xml
    36                COLUMNS country NUMBER PATH '/aa:REC/aa:COUNTRY'
    37                       ,point   NUMBER PATH '/aa:REC/aa:POINT'
    38                       ,user_info XMLTYPE PATH '/aa:REC/*'
    39               ) x
    40      ,XMLTABLE(XMLNAMESPACES('http://www.w3.org' as "aa"),
    41                '/aa:USER_INFO'
    42                PASSING x.user_info
    43                COLUMNS user_id NUMBER PATH '/aa:USER_INFO/aa:USER_ID'
    44                       ,target  NUMBER PATH '/aa:USER_INFO/aa:TARGET'
    45                       ,state   NUMBER PATH '/aa:USER_INFO/aa:STATE'
    46                       ,task    NUMBER PATH '/aa:USER_INFO/aa:TASK'
    47*              ) y
    SQL> /
       COUNTRY      POINT    USER_ID     TARGET      STATE       TASK
             1       1800          1         28          6         12
             1       1800          5         19          1         90
             2       2400          3         14          7          5
    SQL>

  • XML Parser for PL/SQL and related issues

    I need to have further information about some of the following
    issues and XML features and make a determination useful for
    evaluation and recommendation:
    ISSUES
    1) Is there a maximum size for an XML document to provide data
    for PL/SQL(or SQL) across tables, provided that no CLOB are used?
    2) How about from Oracle to an XML document ?
    3) Is there a ratio between XML document size and main memory and
    SGA size. What are Oracle's recommendations /
    4) Can the Oracle Application Server run on a DHCP NT server when
    using XML parsing ? Is it NT Service Pack 3 and 4 compatible ?
    5) How parsers can interact with one another or related tools ?
    For example, how the XML parser for c/c++ could be useful when
    using Pro*C/C++ (programmer 2000) or OCI interfaces ? In other
    words, what is the business logic in using these tools ?
    null

    Anthony D. Noriega (guest) wrote:
    : I need to have further information about some of the following
    : issues and XML features and make a determination useful for
    : evaluation and recommendation:
    : ISSUES
    : 1) Is there a maximum size for an XML document to provide data
    : for PL/SQL(or SQL) across tables, provided that no CLOB are
    used?
    The limit should be what can be inserted into an object view.
    : 2) How about from Oracle to an XML document ?
    The limit should be what can be retrieved from an object view.
    : 3) Is there a ratio between XML document size and main memory
    :and SGA size. What are Oracle's recommendations /
    Not directly due to the relationship between XML metadata and
    data not being constrained.
    : 4) Can the Oracle Application Server run on a DHCP NT server
    : when using XML parsing ?
    If it can run a JavaVM with the correct permissions there are no
    other special requirements.
    :Is it NT Service Pack 3 and 4 compatible ?
    No special requirements here.
    : 5) How parsers can interact with one another or related tools ?
    : For example, how the XML parser for c/c++ could be useful when
    : using Pro*C/C++ (programmer 2000) or OCI interfaces ? In
    other
    : words, what is the business logic in using these tools ?
    Not really sure of your question. The XML components are useful
    in any application where I am processing documents or data with
    an XML structure. The choice to use XML can be based on quite a
    range of requirements due to its declarative syntax and open
    standards. If you give me a specific application, I can perhaps
    be more helpful.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    null

  • XML Parsing for one xml tag value we have issues

    Hi All
    We are getting XML file from External System using XML parser to decode and update Oracle Tables.
    It's working ok for all fields for one field it's working i.e we are not getting any Value
    l_n dbms_xmldom.DOMNode;
    v_service_level VARCHAR2(240);
    Begin
    l_clob := p_clob;
    BEGIN
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are needed.
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc), '/response');
    -- Loop through the list and create a new record
    FOR rec IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
    l_n := dbms_xmldom.item(l_nl, rec);
    -- assign values to the elements of the collection.
    dbms_xslprocessor.valueOf(l_n,'awb/text()', v_awb);
    dbms_xslprocessor.valueOf(l_n,'carrier/text()', v_carrier);
    dbms_xslprocessor.valueOf(l_n,'pieces/text()', v_pieces);
    dbms_xslprocessor.valueOf(l_n,'weight/text()', v_weight);
    dbms_xslprocessor.valueOf(l_n,'weight_uom/text()', v_weight_uom);
    dbms_xslprocessor.valueOf(l_n,'price/text()', v_price);
    dbms_xslprocessor.valueOf(l_n,'code_currency/text()', v_code_currency);
    dbms_xslprocessor.valueOf(l_n,'date_pickup/text()', v_date_pickup);
    dbms_xslprocessor.valueOf(l_n,'account/text()', v_account);
    dbms_xslprocessor.valueOf(l_n,'reference/text()', v_reference);
    dbms_xslprocessor.valueOf(l_n,'instruction/text()', v_instruction);
    dbms_xslprocessor.valueOf(l_n,'delivery_condition/text()', v_freight_terms);
    dbms_xslprocessor.valueOf(l_n,'service_level/text()', v_service_level);
    end;
    for v_service_level we are having issues though external system is sending value but we are not getting any value
    If any fix for this it will be of great help
    Thanks
    Kamalakar.G

    Thanks for the details.
    The following works for me :
    DECLARE
    l_clob clob := '<?xml version="1.0" encoding="UTF-8" ?>
    <response>
    <status>OK</status>
    <code_shipment>9387073</code_shipment>
    <reference>22263480</reference>
    <awb>GE466503605NL</awb>
    <carrier>TNT</carrier>
    <service_level>STANDARD</service_level>
    <pieces>1</pieces>
    <weight>0.32</weight>
    <weight_uom>kg</weight_uom>
    <delivery_condition>CPT</delivery_condition>
    <price>4.92</price>
    <code_currency>EUR</code_currency>
    <date_delivery>17-Feb-2011</date_delivery>
    <time_delivery>13:41</time_delivery>
    <accepted_by>HEEZEN</accepted_by>
    <date_pickup>29-Mar-2011</date_pickup>
    <status_shipment>PLAN</status_shipment>
    <tracking_url>
    <form ACTION="http://www.tnt.com/webtracker/tracking.do?respLang=en&amp;respCountry=US&amp;genericSiteIdent=" target="_new" METHOD="POST">
    <input name="cons" type="hidden" value="GE466503605NL" />
    <INPUT TYPE="hidden" NAME="page" VALUE="0" />
    <INPUT TYPE="hidden" NAME="resplang" VALUE="EN" />
    <INPUT TYPE="hidden" NAME="plazakey" VALUE="" />
    <INPUT TYPE="hidden" NAME="SaformName" VALUE="TRACKER__Finput_html" />
    <INPUT type="submit" name="track" value="Track" />
    </form>
    </tracking_url>
    <date_scan />
    <time_scan />
    <type1 />
    <type2 />
    <scan_location1 />
    <scan_location2 />
    <scan_text />
    <scanned_by />
    <shipment_package>
    <sequence>1</sequence>
    <awb />
    <date_delivery>17-Feb-2011</date_delivery>
    <time_delivery>13:41</time_delivery>
    <accepted_by>HEEZEN</accepted_by>
    <reference />
    </shipment_package>
    </response>';
    l_n dbms_xmldom.DOMNode;
    l_nl dbms_xmldom.DOMNodeList;
    l_parser dbms_xmlparser.Parser;
    l_doc dbms_xmldom.DOMDocument;
    v_awb VARCHAR2(240);
    v_carrier VARCHAR2(240);
    v_pieces VARCHAR2(240);
    v_weight VARCHAR2(240);
    v_weight_uom VARCHAR2(240);
    v_price VARCHAR2(240);
    v_code_currency VARCHAR2(240);
    v_date_pickup VARCHAR2(240);
    v_account VARCHAR2(240);
    v_reference VARCHAR2(240);
    v_instruction VARCHAR2(240);
    v_freight_terms VARCHAR2(240);
    v_service_level VARCHAR2(240);
    BEGIN
    -- Create a parser.
    l_parser := dbms_xmlparser.newParser;
    -- Parse the document and create a new DOM document.
    dbms_xmlparser.parseClob(l_parser, l_clob);
    l_doc := dbms_xmlparser.getDocument(l_parser);
    -- Free resources associated with the CLOB and Parser now they are needed.
    dbms_xmlparser.freeParser(l_parser);
    -- Get a list of all the nodes in the document
    l_nl := dbms_xslprocessor.selectNodes(dbms_xmldom.makeNode(l_doc), '/response');
    -- Loop through the list and create a new record
    FOR rec IN 0 .. dbms_xmldom.getLength(l_nl) - 1 LOOP
      l_n := dbms_xmldom.item(l_nl, rec);
      -- assign values to the elements of the collection.
      dbms_xslprocessor.valueOf(l_n,'awb/text()', v_awb);
      dbms_xslprocessor.valueOf(l_n,'carrier/text()', v_carrier);
      dbms_xslprocessor.valueOf(l_n,'pieces/text()', v_pieces);
      dbms_xslprocessor.valueOf(l_n,'weight/text()', v_weight);
      dbms_xslprocessor.valueOf(l_n,'weight_uom/text()', v_weight_uom);
      dbms_xslprocessor.valueOf(l_n,'price/text()', v_price);
      dbms_xslprocessor.valueOf(l_n,'code_currency/text()', v_code_currency);
      dbms_xslprocessor.valueOf(l_n,'date_pickup/text()', v_date_pickup);
      dbms_xslprocessor.valueOf(l_n,'account/text()', v_account);
      dbms_xslprocessor.valueOf(l_n,'reference/text()', v_reference);
      dbms_xslprocessor.valueOf(l_n,'instruction/text()', v_instruction);
      dbms_xslprocessor.valueOf(l_n,'delivery_condition/text()', v_freight_terms);
      dbms_xslprocessor.valueOf(l_n,'service_level/text()', v_service_level);
      dbms_output.put_line(v_awb);
      dbms_output.put_line(v_carrier);
      dbms_output.put_line(v_pieces );
      dbms_output.put_line(v_weight);
      dbms_output.put_line(v_weight_uom);
      dbms_output.put_line(v_price);
      dbms_output.put_line(v_code_currency);
      dbms_output.put_line(v_date_pickup);
      dbms_output.put_line(v_account);
      dbms_output.put_line(v_reference);
      dbms_output.put_line(v_instruction);
      dbms_output.put_line(v_freight_terms);
      dbms_output.put_line(v_service_level);
    END LOOP;
    END;
    /

  • XML Parse issues when using Network Data Model LOD with Springframework 3

    Hello,
    I am having issues with using using NDM in conjuction with Spring 3. The problem is that there is a dependency on the ConfigManager class in that it has to use Oracle's xml parser from xmlparserv2.jar, and this parser seems to have a history of problems with parsing Spring schemas.
    My setup is as follows:
    Spring Version: 3.0.1
    Oracle: 11GR2 and corresponding spatial libraries
    Note that when using the xerces parser, there is no issue here. It only while using Oracle's specific parser which appears to be hard-coded into the ConfigManager. Spring fortunately offers a workaround, where I can force it to use a specific parser when loading the spring configuration as follows:
    -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl But this is an extra deployment task we'd rather not have. Note that this issue has been brought up before in relation to OC4J. See the following link:
    How to change the defaut xmlparser on OC4J Standalone 10.1.3.4 for Spring 3
    My question is, is there any other way to configure LOD where it won't have the dependency on the oracle parser?
    Also, fyi, here is the exception that is occurring as well as the header for my spring file.
    org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException:
    Line 11 in XML document from URL [file:/C:/projects/lrs_network_domain/service/target/classes/META-INF/spring.xml] is invalid;
    nested exception is oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:396)
         [snip]
         ... 31 more
    Caused by: oracle.xml.parser.schema.XSDException: Duplicated definition for: 'identifiedType'
         at oracle.xml.parser.v2.XMLError.flushErrorHandler(XMLError.java:425)
         at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:287)
         at oracle.xml.parser.v2.NonValidatingParser.parseDocument(NonValidatingParser.java:331)
         at oracle.xml.parser.v2.XMLParser.parse(XMLParser.java:222)
         at oracle.xml.jaxp.JXDocumentBuilder.parse(JXDocumentBuilder.java:155)
         at org.springframework.beans.factory.xml.DefaultDocumentLoader.loadDocument(DefaultDocumentLoader.java:75)
         at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:388)Here is my the header for my spring configuration file:
    <?xml version="1.0" encoding="UTF-8"?>
    <beans xmlns="http://www.springframework.org/schema/beans"
           xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
           xmlns:aop="http://www.springframework.org/schema/aop"
           xmlns:tx="http://www.springframework.org/schema/tx"
           xmlns:context="http://www.springframework.org/schema/context"
           xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd
           http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop.xsd
           http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx.xsd
           http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd">Thanks, Tom

    I ran into this exact issue while trying to get hibernate and spring working with an oracle XMLType column, and found a better solution than to use JVM arguments as you mentioned.
    Why is it happening?
    The xmlparserv2.jar uses the JAR Services API (Service Provider Mechanism) to change the default javax.xml classes used for the SAXParserFactory, DocumentBuilderFactory and TransformerFactory.
    How did it happen?
    The javax.xml.parsers.FactoryFinder looks for custom implementations by checking for, in this order, environment variables, %JAVA_HOME%/lib/jaxp.properties, then for config files under META-INF/services on the classpath, before using the default implementations included with the JDK (com.sun.org.*).
    Inside xmlparserv2.jar exists a META-INF/services directory, which the javax.xml.parsers.FactoryFinder class picks up and uses:
    META-INF/services/javax.xml.parsers.DocumentBuilderFactory (which defines oracle.xml.jaxp.JXDocumentBuilderFactory as the default)
    META-INF/services/javax.xml.parsers.SAXParserFactory (which defines oracle.xml.jaxp.JXSAXParserFactory as the default)
    META-INF/services/javax.xml.transform.TransformerFactory (which defines oracle.xml.jaxp.JXSAXTransformerFactory as the default)
    Solution?
    Switch all 3 back, otherwise you'll see weird errors.  javax.xml.parsers.* fix the visible errors, while the javax.xml.transform.* fixes more subtle XML parsing (in my case, with apache commons configuration reading/writing).
    QUICK SOLUTION to solve the application server startup errors:
    JVM Arguments (not great)
    To override the changes made by xmlparserv2.jar, add the following JVM properties to your application server startup arguments.  The java.xml.parsers.FactoryFinder logic will check environment variables first.
    -Djavax.xml.parsers.SAXParserFactory=com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl -Djavax.xml.transform.TransformerFactory=com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl
    However, if you run test cases using @RunWith(SpringJUnit4ClassRunner.class) or similar, you will still experience the error.
    BETTER SOLUTION to the application server startup errors AND test case errors:
    Option 1: Use JVM arguments for the app server and @BeforeClass statements for your test cases.
    System.setProperty("javax.xml.parsers.DocumentBuilderFactory","com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl");
    System.setProperty("javax.xml.parsers.SAXParserFactory","com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl");
    System.setProperty("javax.xml.transform.TransformerFactory","com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl");
    If you have a lot of test cases, this becomes painful.
    Option 2: Create your own Service Provider definition files in the compile/runtime classpath for your project, which will override those included in xmlparserv2.jar.
    In a maven spring project, override the xmlparserv2.jar settings by creating the following files in the %PROJECT_HOME%/src/main/resources directory:
    %PROJECT_HOME%/src/main/resources/META-INF/services/javax.xml.parsers.DocumentBuilderFactory (which defines com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl as the default)
    %PROJECT_HOME%/src/main/resources/META-INF/services/javax.xml.parsers.SAXParserFactory (which defines com.sun.org.apache.xerces.internal.jaxp.SAXParserFactoryImpl as the default)
    %PROJECT_HOME%/src/main/resources/META-INF/services/javax.xml.transform.TransformerFactory (which defines com.sun.org.apache.xalan.internal.xsltc.trax.TransformerFactoryImpl as the default)
    These files are referenced by both the application server (no JVM arguments required), and solves any unit test issues without requiring any code changes.
    This is a snippet of my longer solution for how to get hibernate and spring to work with an oracle XMLType column, found on stackoverflow.

  • XML Parse error while loading an XML file

    HI Folks,
    I was trying to load and XML file into BODS.. The XML file is well-formed and the same when tested in other tools  is getting loaded without any issues..
    I have created a XML-File format with the corresponding XSD..
    But here in BODS it is giving - Parse error
    1) when i try to view the data of the source XML in my dataflow ..it is giving "XML Parser Failed".. and not able to show data..
    2) When I run my job i get the same pares error - with details as under..
    ---> Error here is "Unable to recognize element 'TAB' " or some time is say " Element TAB should be qualified"
    Please guide with this if you have any info..thanks
    I'm pasting the XML source file format here for your reference:--
      <?xml version="1.0" encoding="iso-8859-1" ?>
    - <asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
    - <asx:values>
    - <TAB>
    - <items>
    + <CUSTOMER_RECORD>
      <CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
      <NAME_1>ABC</NAME_1>
      <NAME_2>OFM/COMMERCIAL ACCOUNTS</NAME_2>
      <STREET_1>31 CENTER DRIVE MCS2045</STREET_1>
      <STREET_2 />
      <CITY>BETHESDA</CITY>
      <STATE_CODE>MD</STATE_CODE>
      <POSTAL_CODE>20892-2045</POSTAL_CODE>
      <COUNTRY_CODE>US</COUNTRY_CODE>
      <ORDER_BLOCK />
      <ERP_CREATE_DATE>20040610</ERP_CREATE_DATE>
      <ERP_CREATED_BY>DGUPTA</ERP_CREATED_BY>
      <ERP_MODIFY_DATE>20120201</ERP_MODIFY_DATE>
      <ERP_MODIFIED_BY>LWOHLFEI</ERP_MODIFIED_BY>
      <INDUSTRY_CODE>0103</INDUSTRY_CODE>
      <ACCOUNT_GROUP_ID>0001</ACCOUNT_GROUP_ID>
      <SALES_NOTE />
      <ADDRESS_NOTE />
      <CUSTOMER_CLASSIFICATION_CODE>02</CUSTOMER_CLASSIFICATION_CODE>
      <GLN_NUMBER />
      <PREVIOUS_ACCT_NO />
      <ACCOUNT_TYPE />
      <GAG />
      <SDI_ID />
      <HOSP_ID />
      <HIN />
      <DUNS />
      <PO_BOX />
      <POB_CITY />
      <POB_ZIP />
      <PHONE_NUMBER>77777</PHONE_NUMBER>
      <EMAIL_DOMAIN />
      <REQUESTER />
      <ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
      </CUSTOMER_RECORD>
    - <SALES_ORG_DATA>
    + <item>
      <CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
      <SALES_ORG>0130</SALES_ORG>
      <CUSTOMER_GROUP>03</CUSTOMER_GROUP>
      <ORDER_BLOCK_CODE />
      <ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
      </item>
    + <item>
      <CUSTOMER_NUMBER>1111111111</CUSTOMER_NUMBER>
      <SALES_ORG>0120</SALES_ORG>
      <CUSTOMER_GROUP>11</CUSTOMER_GROUP>
      <ORDER_BLOCK_CODE />
      <ERP_SOURCE_SYSTEM>ECC</ERP_SOURCE_SYSTEM>
      </item>
      </SALES_ORG_DATA>
      </items>
      </TAB>
      </asx:values>
      </asx:abap>

    Pierre,
    Depending on the object "myLastFile", the method openDlg might not even exist (if the myLastFile object is not a File object, for instance). And I do not see any need for the myLastFile anyhow, as you are presenting a dialog to select a file to open. I recommend using the global ChooseFile( ) method instead. This will give you a filename as string in full path notation, or null when no file was selected in the dialog. I am not sure what your ExtendScript documentation states about the return value for ChooseFile, but if that differs from what I am telling you here, the documentation is wrong. So, if you replace the first lines of your code with the following it should work:
    function openXMLFile ( ) {
        var filename = ChooseFile ( "Choose XML file ...", "", "*.xml", Constants.FV_ChooseSelect );
    While writing this, I see that Russ has already given you the same advice. Use the symbolic constant value I indicated to use the ChooseFile dialog to select a single file (it can also be used to select a directory or open a file - but you want to control the opening process yourself). Note that this method allows you to set a start directory for the dialog (second parameter). The ESTK autocompletion also gives you a fifth parameter "helplink" which is undocumented and can safely be ignored.
    Good luck
    Jang

  • Internal Exception: oracle.xml.parser.v2.XMLParseException xsi:type "toplin

    i am using toplink 10.1.3.0.0 with oracle app server 10.1.2.2, i am using change field optimistic locking and generating the project xml,
    application runs great locally in the jdeveloper, but when it is deployed on app server getting following error
    here are the headers from both my project.xml as well as session xml..
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>PROJ</opm:name>
    <opm:class-mapping-descriptors>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="4.5" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="server-session">
    <name>PROJSession</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log">
    <log-level>finer</log-level>
    </logging>
    <primary-project xsi:type="xml">PROJ.xml</primary-project>
    <login xsi:type="database-login">
    <platform-class>oracle.toplink.platform.database.oracle.OraclePlatform</platform-class>
    <user-name></user-name>
    any help/idea appreciated...
    Exception [TOPLINK-9005] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.SessionLoaderException
    Exception Description: An exception was thrown while loading the <project-xml> file [PROJ.xml].
    Internal Exception: Exception [TOPLINK-25004] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.exceptions.XMLMarshalException
    Exception Description: An error occurred unmarshalling the document
    Internal Exception: Exception [TOPLINK-27101] (Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)): oracle.toplink.platform.xml.XMLPlatformException
    Exception Description: An error occurred while parsing the document.
    Internal Exception: oracle.xml.parser.v2.XMLParseException: xsi:type "toplink:changed-field-locking-policy" not resolved to a type definition
    at oracle.toplink.exceptions.SessionLoaderException.failedToLoadProjectXml(SessionLoaderException.java:74)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.loadProjectConfig(TopLinkSessionsFactory.java:316)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.createSession(TopLinkSessionsFactory.java:241)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildServerSessionConfig(TopLinkSessionsFactory.java:215)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildSession(TopLinkSessionsFactory.java:168)
    at oracle.toplink.tools.sessionconfiguration.TopLinkSessionsFactory.buildTopLinkSessions(TopLinkSessionsFactory.java:124)
    at oracle.toplink.tools.sessionconfiguration.XMLSessionConfigLoader.load(XMLSessionConfigLoader.java:103)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:367)
    at oracle.toplink.tools.sessionmanagement.SessionManager.getSession(SessionManager.java:334)
    at myProjectPackage.common.data.toplink.ToplinkDataManagerPeer.<init>(ToplinkDataManagerPeer.java:41)
    at myProjectPackage.common.data.DataManagerFactory.getDataManagerInstance(DataManagerFactory.java:40)
    at myProjectPackage.common.servlet.NYSDOTFilter.getDataManager(NYSDOTFilter.java:964)
    at myProjectPackage.common.servlet.NYSDOTFilter.doFilter(NYSDOTFilter.java:144)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
    at myProjectPackage.caf.servlet.NYSDOTCAFFilter.doFilter(NYSDOTCAFFilter.java:90)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
    at myProjectPackage.common.servlet.NYSDOTLoginFilter.doFilter(NYSDOTLoginFilter.java:95)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:669)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:340)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:830)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:228)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:133)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:192)
    at java.lang.Thread.run(Thread.java:570)

    first thanks for your reply,
    i already figured that out and deployed it using 10.1.3.1 jars
    my question
    1) if it is a bug , how come it works fine with jdeveloper (
    i would appreciate if you could provide any info about it.
    2) i dont want to sound sarcastic , but 10.1.3.1 has of optimistic locking and the recommended solution i found was to use descriptor.getQueryManager().setUpdateCallCacheSize(0);
    looks like 10.1.3.1 fixed one bug and introduced other one which was working fine earlier...
    is there any other way of fixing optimistic locking issue other than using the
    descriptor.getQueryManager().setUpdateCallCacheSize(0);
    where i can find the latest/greatest (up to date patched version of toplink)
    thanks again for your help

  • What is the best solution for xml parsing?

    Hi. I've got a huge problem with the XML xtra. When I was
    running my application the memory usage started to grow up
    and up...I've only parse the XML once on the beggining, so I
    thought that maybe it was a problem with the garbage
    colector, etc...after a loooong time, I've realized that
    every time that I access some node to get some information, the
    movie uses more and more memory. I've read in the groups that
    the XML xtra is known for memory leaks issues, so I've
    did what they suggested and changed to the dom-lingo cast
    (the one from shocknet)...The problem is that now when I'm
    parsing the XML it takes like 50 seconds (with the XML xtra
    it was like 2 secs) something that I think it would be too slow
    for the end-user... I don't know if there's a faster (and
    free) alternative...
    I'm using Director MX and my XML file it's about 550 kb
    Thanks.

    It's reported tht the main memory leak has been fixed as of
    10.1, a more
    mino r node reference related leak can be worked around
    http://www.killingmoon.com/director/bugs/xml_parser/
    A workaround some used before the xtra beng made usable was
    to call on
    the Flash XML object available via in the flash xtra, here's
    an article.
    "Reading XML Into Director MX 2004 With a Simple Flash
    Object"
    http://director-online.com/buildArticle.php?id=1154

  • XML Parser Exception in Install of AIA 11.1.1.5 on SOA 11.1.1.5

    I am attempting to install AIA Foundation Pack on a SOA domain and continually encounter an XML parsing exception error as the installer is attempting to install WSM security policies. Here are the key details:
    AIA version = 11.1.1.5
    SOA Suite = 11.1.1.5
    WebLogic = 10.3.5
    Operating System = Fedora14 (a home lab machine but I don't think this is an OS issue)
    The error is encountered about 17 minutes into the lengthy process. Just before the error appears in the installation log, the following message appears indicating roughly what step is being performed:
    [zip] Building zip: /opt/oraclemw/aia11115/aia_instances/dev1/tmp/aia_security_policies.zip
    The core error messages are:
    [exec] SEVERE: WSM-01605 XML parser exception
    [exec] oracle.xml.parser.v2.XMLParseException: Expected 'EOF'.
    [exec] at oracle.xml.parser.v2.XMLError.flushErrors1(XMLError.java:323)
    The python modules being executed by the WLST scripting tool at the time of the failure are:
    [exec] Problem invoking WLST - Traceback (innermost last):
    [exec] File "/opt/oraclemw/aia11115/Infrastructure/Install/AID/lib/py/importpolicy.py", line 29, in ?
    [exec] File "/opt/oraclemw/oracle_common/common/wlst/wsmManage.py", line 719, in importRepository
    [exec] File "/opt/oraclemw/oracle_common/common/wlst/lib/ora_util.py", line 51, in raiseScriptingException
    [exec] OracleScriptingException: None
    Finally, the outer XML files being used as input for the deployer that seems to be running at the time are:
    /opt/oraclemw/aia11115/Infrastructure/Install/AID/AIAExecuteDriver.xml
    with references to lines 221 and 64.
    The problem occurs whether I try to use Java JDK 16.0.20 or JRockit R28.2.0 as the JRE when running the AIA installer. (The WebLogic domain is configured to use JRockit).
    Any suggestions? Is there a library conflict being picked up between different releases of XercesImpl? I would hope there isn't actually a bad XML file in the AIA artifacts or WSM (Web Service Management) policies being deployed.

    HI
    How this issue was resolved? Please explain in detail. I am facing the same issue.
    Regards
    Arun

  • XML parsing - Thanks Andrew Clarke,info you wanted to answer

    Andrew ,
    First of all thanks for responding.It was indeed very helpful of you.I have put your questions here just and have answered it
    " This is a tricky thing to do. Parsing and processing a document in the database is relatively straightforward. Allowing the user to make changes to it is slightly stickier.
    Before we can be of any help you need to give us some more info:
    Which version of the database are you using? (9i has lots more functionality)
    How are you intending to display the information to the user?
    Is your user going to be editing the XML tags or just the content?
    Are you using XML SCHEMA or DTD?
    Do you know there's an XML forum? (Check the jump to any forum drop down)
    1)I am using database :- info
    Connected to:
    Oracle8i Enterprise Edition Release 8.1.7.0.0 - Production
    With the Partitioning option
    JServer Release 8.1.7.0.0 - Production
    I hope this information is enough.Another thing i wanted to know is how to check for oracle jvm intallation.Because it is needed for oracle xdk installation.
    2) I intend to parse the xml file stored as a blob object in the backend and display the information in the front end ( Oracle forms6i) interface.
    3) The user sees only the content and can edit only the content ,issuing save command writes back this data into the xml file and saves it back to the database as the blob object.
    Yes i know XML discussion forum,but please can you guide me a little in my direction ,i thought it would be more useful to write in this forum (deals with pl/sql).Atleast a lead is enough.
    Can you please suggest some help for the questions that i have:-
    1)I don't know whether i have oracle JVM installed.The oracle xdk kit install notes say so.So how to check it and get it.Help notes say that a xdk kit for 9i version will also work with 8i version( backward compatibility ).Can you offer some advice on this whether this is possible( The xdkload utility says so.)
    2)Is it possible to,after having build a tree thro' parsing process and to go through it accessing the nodes and the values .Also is it possible to write to this tree at the particular point and have the tree saved back to xml document.This will save me a lot of job.Please feel free to help me or atleast suggest some lead points if you know if this can be done.A hyper link ,if you know,which details these steps are also enough.
    Regarding the XML schema or DTD ,please give me some more time.
    One last question(if i am not bugging you) when the xdkload utility loads the xdk pl/sql package with -dbver to 8i ,will it support all the command in it to be executed on the 8i backend.
    (http://technet.oracle.com/support/tech/xml/xdk_plsql/ softwares section)
    Andrew ,i will feel really grateful if you can help me with these issues.Anyway Thanks for taking so much efforts in giving me some tips.
    Regards
    gopal

    I hope this information is enough.Another thing i wanted to know is how to check for oracle jvm intallation.Because it is needed for oracle xdk installation.The banner that comes up when you log on shows you that you are running:
    JServer Release 8.1.7.0.0 - Production so that means Java is enabled. A good start.
    Help notes say that a xdk kit for 9i version will also work with 8i version( backward compatibility ).We are running with XDK 9i in 8173 databases without any major issues. n fact I recommend it, as there are a couple of nasty bugs in the 8i XDK that render it virtually unusable. However there is a whole bunch of functionality in the 9i XDK that relies on the XML datatype that was introduced in the 9i database.
    2) I intend to parse the xml file stored as a blob object in the backend and display the information in the front end ( Oracle forms6i) interface.
    3) The user sees only the content and can edit only the content ,issuing save command writes back this data into the xml file and saves it back to the database as the blob object.Why not store the data in tables? It is much, much easier to build Forms applications using tables than to build them using XML documents. Disassembling XML documents into tables is relatively straightforward and so is re-constituting them if you ever need to show someone the XML. In Oracle 9i r2 this is what Oracle does by default with the XML datatype.
    2)Is it possible to,after having build a tree thro' parsing process and to go through it accessing the nodes and the values .You build the tree using xmlparser.parseClob() followed by xmlparser.getDocument().
    You walk the DOM using the methods in the XMLDom package to navigate to any given node. Then you use xmldom.getNodeValue(} to retrieve the data in that node. This only works for nodes of type xmldom.text_node, so you'll need to test for that. It also fails if the node has a null value. Finally bear it mind that according to DOM principles the content of a node is a child[i] of that node.
    Given this fragment:
    <employee>
        <empno>1234</empno>
    </employee>I want to get the employee number. So:[list]
    [*]I generate a list of empno nodes using node_list := xmldom.getElementsByTagName(x_doc, 'empno');[*]I navigate to the node I want using el := xmldom.item(node_list, 1)};[*]I then navigate to the text using text_node := xmldom.getFirstChild(el);[*]I navigate to the node I want using emp_no := xmldom.getNodeValue(text_node};[list]
    There may be whizzier ways of doing it but this way is clear and it works.
    Although the documentation that comes with the XDK isn't that bad you will find some additional info in the onlineshttp://technet.oracle.com/docs/products/oracle9i/doc_library/release2/appdev.920/a96621/adx20ppl.htm#1656. have a look at the domsample.sql script. It's actually quite helpful.
    Also is it possible to write to this tree at the particular point and have the tree saved back to xml document.I haven't done this myself, but I would have thought you would write stuff using the method outlined above but using xmldom.setNodeValue. There are various WriteTo... in the xmldom package.
    Now for the bad news. None of this works with BLOBs. You have to use CLOBs, VARCHAR2s or external OS files. Sorry.
    Good luck, APC

  • XML parsing failed because ""

    Hi ,
         I am facing issue while building composite in jdeveloper.It is showing below error.Please Suggest how to proceed further.
    Error: XML parsing failed because ""
    Buildfile: C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml
    scac:
         [scac] Validating composite "C:\MR96\BPEL Services\MOOA_businesservices\AddComponent\composite.xml"
         [scac] Setting BPELC option 'classpath' to C:\Oracle\Middleware\modules\com.oracle.toplink_1.0.0.0_11-1-1-5-0.jar;C:\Oracle\Middleware\modules\org.eclipse.persistence_1.1.0.0_2-1.jar;C:\Oracle\Middleware\modules\com.bea.core.antlr.runtime_2.7.7.jar;C:\Oracle\Middleware\modules\javax.persistence_1.0.0.0_2-0-0.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xmlparserv2.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.xdk_11.1.0\xml.jar;C:\Oracle\Middleware\jdeveloper\jdev\extensions\oracle.sca.modeler.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.fabric_11.1.1\fabric-runtime.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mgmt_11.1.1\soa-infra-mgmt.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.fabriccommon_11.1.1\fabric-common.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.bpel_11.1.1\orabpel.jar;C:\Oracle\Middleware\jdeveloper\soa\modules\oracle.soa.mediator_11.1.1\mediator_client.jar;C:\Oracle\Middleware\oracle_common\modules\oracle.mds_11.1.1\mdsrt.jar;;C:\MR96\BPEL Services\MOOA_businesservices\AddComponent\SCA-INF\classes
         [scac] java.lang.NullPointerException
         [scac] at com.collaxa.cube.lang.compiler.map.bpel.BPELProcess.lookupInitiationInfo(BPELProcess.java:1010)
         [scac] at com.collaxa.cube.lang.compiler.map.bpel.BPELProcess.addOnMessage(BPELProcess.java:903)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseOnMessage(BpelParser.java:1597)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.startElement(BpelParser.java:587)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:492)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parseElement(BpelParser.java:499)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parse(BpelParser.java:455)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BpelParser.parse(BpelParser.java:402)
         [scac] at com.collaxa.cube.lang.compiler.bpel.BPELValidator.validate(BPELValidator.java:65)
         [scac] at com.collaxa.cube.lang.compiler.BPEL1Processor.validate(BPEL1Processor.java:329)
         [scac] at com.collaxa.cube.lang.compiler.BPEL1Processor.process(BPEL1Processor.java:153)
         [scac] at com.collaxa.cube.lang.compiler.CubeParserHelper.compile(CubeParserHelper.java:47)
         [scac] at oracle.fabric.bpel.bpelc.BPELComponentValidator.validate(BPELComponentValidator.java:40)
         [scac] at oracle.soa.scac.ValidateComposite.validateComponentTypeServicesReferences(ValidateComposite.java:1051)
         [scac] at oracle.soa.scac.ValidateComposite.doValidation0(ValidateComposite.java:502)
         [scac] at oracle.soa.scac.ValidateComposite.doValidation(ValidateComposite.java:481)
         [scac] at oracle.soa.scac.ValidateComposite.run0(ValidateComposite.java:206)
         [scac] at oracle.soa.scac.ValidateComposite.run(ValidateComposite.java:187)
         [scac] at oracle.soa.scac.ValidateComposite.main(ValidateComposite.java:179)
         [scac] AddComponentProcess.bpel: error: XML parsing failed because ""
    BUILD FAILED
    C:\Oracle\Middleware\jdeveloper\bin\ant-sca-compile.xml:278: Java returned: 1 Check log file : C:\MR96\BPEL Services\MOOA_businesservices\AddComponent\SCA-INF\classes\scac.log for errors
    Total time: 1 minute 27 seconds
    Thanks

    Hi,
    Please give a try to this:(Take back up before doing this)
    1. Download PATCH 11066656 .
    2. Go to your JDEV_HOME/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/
    and make a backup copy of orabpel.jar.
    3. Copy the file orabpel.jar from patch 11066656 to JDEV_HOME/jdeveloper/soa/modules/oracle.soa.bpel_11.1.1/.
    4. Restart JDeveloper.
    5. Now the project should compile without the SCAC error.
    This was fixed in 11.7 but since you are getting SCAC so asked the above action plan.
    If it did not resolves see below steps:
    =============================================================
    File will be there but a class is missing which might cause this.
    If you have same soa version 11.1.1.7.0 can you check that fabricruntime.jar from soa home and jdev home size is same?
    In soa home it will be under Oracle_SOA/soa/modules directory.
    If size is not same replace jdev fabricruntime.jar from soa home.
    Also can you confirm on:
    Please let me know whether you are able to deploy from EM or getting same error during deployment also? or from ant script.

  • XML Parser Exception on Punch Out Setup Request

    I am on the supplier side of the procurement process. Recently I was tasked with bringing on a new buying group, but we have encountered a strange issue. The buyer set up my company in their ERP system, however they are getting an error when trying to punch out to my website...which is listed below.
    Error Code: 400 Invalid XML Format In Login Response Document Unable to parse the Login Response XML.
    XMLParserException
    oracle.xml.parser.v2.XMLParseException: End tag does not match start tag 'meta'.
    at oracle.xml.parser.v2.XMLError.flushErrors1
    After some investigation, I am confident the problem resides in the buyers BrowserFormPost URL. The problem seems to be that instead of using "&amp;" for ampersand between the URL variables, it is passing in the & symbol (& is a protected character in XML), which is causing the Oracle XML parser to throw this exception. As a result, the set up request is never getting to me.
    The buyer has opened a couple of tickets now with Oracle support, but both times the ticket has been closed and the buyer has been instructed to contact the supplier (me). I don't know enough about the buyer side Oracle system to instruct them on how to fix this issue. Any help would be greatly appreciated.

    Hi Rakesh,
    You need to have an S-User ID to access SAP Notes. For your convenience, I am pasting the content of SAP Note 954035.
    Process, block and CO could not be created in GP
    Symptom
    After upgrade of SAP-EU component to version 7.0 SP8 in Guided Procedures process, block and callable object could not be created. On design time screen   appears error message:
    com.sap.engine.lib.xml.parser.ParserException: XMLParser: Bad attribute list. Expected WhiteSpace, / or >:(:main:, row:1, col:491)
    During attempt to start process through the Runtime screen you will get an error message:
    Cannot load callable object container:
    Failed to get Related Model Object for the object
    com.sap.caf.eu.gp.ui.actions.decpage.
    CDecisionPageInterfaceViewdecisionPageUsage1,relation View
    In SP9, the following message could be found:
    Failed to get Related Model Object for the object com.sap.caf.eu.gp.ui.co.exec.decision.COExecDecision
    Proceed as stated for SP8.
    Other terms
    This is WebDynpro problem caused by an inconsistency of versions.
    Solution
          1. Redeploy the SCA SAP-EU (if redeployment does not help undeploy and deploy again) components:
              o caf/eu/gp/ui/dt/comp/cons,
              o caf/eu/gp/ui/dt/comp and
              o caf/eu/gp/ui/actions  from software component SAP-EU
    or
          2. Apply the SP8 patch 1 if you upgrade to SP8. Both components mentioned below will be updated:
              o caf/eu/gp/ui/dt/comp/cons
              o caf/eu/gp/ui/dt/comp
    See if it solves your problem.
    Bye
    Ankur

  • XML-Parser-Problem ? DataBindings.cpx

    Hello,
    Ok -I just will formulate my question somewhat different: It is possible that the XML-Parser has a Problem ? Please see the stuff below.
    I just got a warning:
    Project: D:\ORAJDev101320\jdev\mywork\LoginJSF\ViewController\ViewController.jpr
    D:\ORAJDev101320\jdev\mywork\LoginJSF\ViewController\src\login\DataBindings.cpx
    Warning(11,15): <Line 11, Column 15>: XML-24521: (Fehler) Element nicht abgeschlossen: 'Application'
    for the following xml file when compiling my sampe books (chapter9) code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <Application xmlns="http://xmlns.oracle.com/adfm/application"
    version="10.1.3.40.66" id="DataBindings" SeparateXMLFiles="false"
    Package="login" ClientType="Generic">
    <pageMap>
    <page path="/home.jsp" usageId="homePageDef"/>
    </pageMap>
    <pageDefinitionUsages>
    <page id="homePageDef" path="login.pageDefs.homePageDef"/>
    </pageDefinitionUsages>
    </Application>
    After trying a little bit it turned out that the message disappears when
    the :
    Application xmlns="http://xmlns.oracle.com/adfm/application"
    is rewritten to
    Application xmlns="http://xmlns.oracle.com/adfm/Application"
    (Application with a upper first A)
    I have to point out that previously I did not by hand coding in this file.
    Is this a known issue.?
    And will/could these change do cause other/addition problems somewhere ?
    Andre
    Message was edited by:
    andreml
    null

    How about adding this tag <dataControlUsages/>? My JDev doesn't complain about your content.
    just my 2 cents
    --olaf                                                                                                                                                                                                                                               

  • B2B-50029:  B2B runtime error: oracle.xml.parser.v2.XMLParseException: Start of root element expected.

    Dear All,
    I am a beginner to Oracle B2B.
    I have created an agreement to Recieve 852, Product Activity data(POS) from one of the Trading partner. This is an inbound process.
    A  SOA composite application is created to Recieve the data and insert into perticular columns of the database table using database adapter.
    I have tested the Interface with some couple of file and it went perfect without any error. Now I have to test the interface with some other files.
    This time also I am not getting any error in Business Message, Wire message and Application message but the composite application is not picked.
    The log file shows : B2B-50029: B2B runtime error: oracle.xml.parser.v2.XMLParserException: Start of root element expected.
    Please let me know if anyone has faced this issue. it will be of great help.
    Thanks,
    Abhas Kushwaha

    Hello,
    Just a thought, When I had the similar problem, it appeared to be a BOM (Byte order mark - Wikipedia, the free encyclopedia) in the xml file, which is the very first character in the xml file, so the file was not identified to be a valid xml file. Removing the BOM from the xml file fixed my problem, however, I did not spend much time in fixing using B2B, the vendor  (sender of the file) fixed the file and started sending without BOM. So my work was easier.
    The character is not visible in all XML editors, however, it was visible in JDeveloper. I used a tool to identify and remove during testing until the vendor fixed the file, the tool is called file bom detector,http://www.bryntyounce.com/filebomdetector.htm
    Hope this helps,
    Thanks,
    Venkatesh

Maybe you are looking for

  • COA to be send to customer while saving delivery.

    Dear Friends, I have a requirement of sending the certificate of analysis (finished product)  to customer while saving delivery document. COA is the developed form (Z development) designed and that output we need to send to customer through email as

  • Do I need a converter to use IPAD in costa rica?

    I want to bring my IPAD 2 to Costa Rica.  The travel information says that Costa Rica has the same power specs as the US.  I just wanted to see if anyone knew if that was true or if there were power issues in using the IPAD in that country.

  • Where do Ii insert a CD or DVD in my new iMac Intel?

    Where do I insert a CD or DVD in my new iMac Intel OS X, version 10.7.4?

  • Query ake Long Time to execute.

    Hi All, I Have query that joins on 4 tables. The Query takes 12 minutes to execute. the sga size is 50m. Please tell me whats to do now. Thanks in advance. Prathamesh.

  • Import certificate on firefix mobile

    I'd like to use a website that requires an FBI issued .p12 certificate be imported. I know how to do this on regular firefox, but would like to use the site on my HTC Evo using firefox mobile. Can it currently be done? If not, can it be added?