XML parsing problems with Oracle XML parser for PL/SQL

I am using the Oracle XML parser for PL/SQL to transform XML into HTML usign XSL. The parser gives me sporadic errors trying to parse various XML documents. For the same XML source, the XMLPARSER will parse without errors one day and the next day will give me errors such as "invalid char in text", "Expected ';'.", or even Java null pointer exceptions.
I have verified that the XML sources are well formed, so I am pretty certain that the problems I am having are bugs in the XMLPARSER.
Is there going to be a XML parser for PL/SQL version 2 that will fix these bugs? If so, when??? If not, is there anything else I could do to fix these problems?
Thanks!

You can use the latest version.

Similar Messages

  • Problem with oracle.xml.jaxp.JXXMLFilter in FOP

    Hi,
    I am gettting Null Pointer Exception while converting xml into PDF using FOP.Even thoug i have set System properties i am getting oracle.xml.jaxp.JXXMLFilter only instead of org.apache.xalan.processor.TransformerFactoryImpl.
    Here is the code block to set System Proprties.
    String key = "oracle.xml.transform.TransformerFactory";
    String value = "org.apache.xalan.processor.TransformerFactoryImpl";
         Properties props = System.getProperties();
         props.put(key, value);
    System.setProperties(props);
    Please help me to overcome this.
    Thanks
    Srinivas

    Hi,
    You do not have JServer installed most likely. Are you running Oracle 8.1.5 or above? If so, is it JAva enabled?
    Murali

  • My problems with Oracle Schema Processor for C++ :(

    Dear ;) Oracle XML team and others,
    the followings are really inconvenient with the C++ schema processor:
    -it doesn't even support the Candidate
    Recommendation (OK, the Java version does
    support it, and you can use XSU and upgrade your schemas later when the C++ will also
    support it.)
    -you cannot put comments in the schema, just after the <xsd:schema> element.
    -it's checking the attribute use="required"
    when an attribute is declared in a
    complexType, but it doesn't check
    when an attribute is referenced or, which could be much more useful, when an
    attributegroup is referenced, and it contains
    use attributes. (I tried XMLSpy and it was correct. But I need an API or a C++ tool.)
    I'm really awaiting this schema processor to be updated (maybe on April 14 the W3C Schema recommendation ;))
    -it supports "import" but I had problems with "include" (this looked like a bug, but after I'd posted it, noone replied :(. Maybe because the C++ processor is kind of "obsolete")
    Will the C++ version be updated? (When?)
    I cannot use Java because I try to integrate with a C++ application. I was looking for
    other products, but I only found XSV, Java XSD processors and built-in tools. It's quite sad that there isn't a C++ implementation available. :( Can anyone help me?
    Tamas
    null

    Originally posted by Tamas >Marcinkovics ([email protected]):
    Dear ;) Oracle XML team and others,
    -you cannot put comments in the schema, just >after the <xsd:schema> element.I tried the following:
    <?xml version="1.0"?>
    <schema
    xmlns = "http://www.w3.org/1999/XMLSchema"
    targetNamespace = "http://www.CarDealers.com/">
    <!-- this should fail -->
    <element name="Car">
    </element>
    </schema>
    and it works!
    Can you provide some examples?
    Thx!
    null

  • Linked Folder Problem with Oracle Enterprise Pack for Eclipse

    I need to migrate an Eclipse/Tomcat dynamic web project to Oracle Enterprise Pack for Eclipse/WebLogic.
    The Eclipse/Tomcat shares JavaScript files with other projects by using an linked folder /JS under WebContent. It works fine. But the migrated version in Oracle Enterprise Pack for Eclipse shows warning: "Resouce WebContent/WEB-INF/JS/Common.js not found." (Common.js is a JavaScript file in the folder /JS). The linked folder is under WebContent, not WebContent/WEB-INF. For some unknown reason, the mapping is not correct. I deleted and re-created the linked folder, it was still the same. I then delete the lined folder and created a real folder and copied the files into under WebContent/JS folder, it solved the problem.
    I want to use linked folder because I do not want to maintain multiple copies of the same set of files. Please help to solve this mapping problem with linked folders.
    Thank you,
    Jerry

    Thanks -- I tried Kosta's suggestion (which I had tried before) but still the same error.
    I realized that on my development install (the rest of my team has a year+ old install) that I installed weblogic 12c version 12.1.3 (they have weblogic 12c 12.1.1).  12.1.3 requires jdk 1.8, correct?  I started eclipse w/ jdk 1.8 & no more error.  I added jdk 1.7 (jdk 1.7.0_45) as the default Java compiler in my Eclipse STS (sts 3.6.4; luna 4.4.2). 
    When I added a weblogic server instance to eclipse, 12.1.3 would not accept the jdk 1 compiler - it needed java 1.8.  So ... I specified that.
    I haven't tried it yet but -- is it ok to compile the code w/ jdk 1.7.0_45 and deploy it to weblogic 12.1.3 that uses jdk 1.8.0_40?
    Thanks,
    Bill

  • Logon problem with Oracle AS Adapter for SAP R/3

    Dear All
    I am getting below error, when trying to test the SAP Adapter. As seems from the message, its a credential problem, but the same user id/password works fine when using SAP Logon Gui Front-end client.
    Any help/pointers highly appreciated.
    com.sap.mw.jco.JCO$Exception: (103) RFC_ERROR_LOGON_FAILURE: Name or password is incorrect (repeat logon)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.nativeConnect(Native Method)
    at com.sap.mw.jco.rfc.MiddlewareRFC$Client.connect(Unknown Source)
    at com.sap.mw.jco.JCO$Client.connect(Unknown Source)
    at com.sap.mw.jco.JCO$Pool.initPool(Unknown Source)
    at com.sap.mw.jco.JCO$PoolManager.getClient(Unknown Source)
    at com.sap.mw.jco.JCO$PoolManager.getClient(Unknown Source)
    at com.sap.mw.jco.JCO.getClient(Unknown Source)
    at com.SAPTest.Main.main(Main.java:35)
    Releasing connection
    Further inputs/thoughts,
    1. This must be a very basic, can it be because my user id/password does not have sufficient privilege?
    2. I am using adapters_10131_win32.zip downloaded from Oracle, installed only SAP Adapter and then trying to connect using Adapter Application Explorer.
    Regards.

    Thank you veyr much Manoj for your reply. I just tried it now buit no fruits.
    I wonder if it can really be due to privileges given to my account, which allows to connect thru SAP Front-end but does not allow to connect by any other means. I can not think of any other possible reason.

  • UIX XML-BC4J: Problem with UIX XML decimal validation

    We have a messageTextInput field with the decimal validater:
    <bc4j:messageTextInput id="ValPunteggio" attrName="ValPunteggio" name="ValPunteggio" prompt="Valore" >
         <onSubmitValidater>
              <decimal/>
         </onSubmitValidater>
    </bc4j:messageTextInput>
    But while client-side validation permit to enter a number with the character ',' as decimal separator, the server returns a JBO-25009 Error "attempting to create a oracle.jbo.domain.Number with value 10,4".

    It's a known NLS bug that'll be fixed in 9.0.3.
    There's no good workaround; you're forced to use the "period"
    as the decimal separator so that the server-side code doesn't
    choke.

  • Can't convert oracle.xml.parser.DTD to oracle.xml.parser.v2.DTD.

    I am getting the following Error while trying
    to compile the SampleMain.java file(Generating an XML document from a given Employee.dtd).
    I have set my classpath to use xmlparser.jar.
    D:\XMls>javac SampleMain.java
    SampleMain.java:65: Can't convert oracle.xml.parser.DTD to oracle.xml.parser.v2.DTD.
    main(java.l
    ang.String[]).
    generator.generate(dtd, doctype_name);

    Would you check the java parser version you are using? If using java parser V2, the normal lib name is xmlparserv2.jar.
    null

  • Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?

    Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?

    Has anyone had a opf parse error with container.xml missing, when it is actually present plz ?

  • Problems with reading XML files with ISO-8859-1 encoding

    Hi!
    I try to read a RSS file. The script below works with XML files with UTF-8 encoding but not ISO-8859-1. How to fix so it work with booth?
    Here's the code:
    import java.io.File;
    import javax.xml.parsers.*;
    import org.w3c.dom.*;
    import java.net.*;
    * @author gustav
    public class RSSDocument {
        /** Creates a new instance of RSSDocument */
        public RSSDocument(String inurl) {
            String url = new String(inurl);
            try{
                DocumentBuilder builder = DocumentBuilderFactory.newInstance().newDocumentBuilder();
                Document doc = builder.parse(url);
                NodeList nodes = doc.getElementsByTagName("item");
                for (int i = 0; i < nodes.getLength(); i++) {
                    Element element = (Element) nodes.item(i);
                    NodeList title = element.getElementsByTagName("title");
                    Element line = (Element) title.item(0);
                    System.out.println("Title: " + getCharacterDataFromElement(line));
                    NodeList des = element.getElementsByTagName("description");
                    line = (Element) des.item(0);
                    System.out.println("Des: " + getCharacterDataFromElement(line));
            } catch (Exception e) {
                e.printStackTrace();
        public String getCharacterDataFromElement(Element e) {
            Node child = e.getFirstChild();
            if (child instanceof CharacterData) {
                CharacterData cd = (CharacterData) child;
                return cd.getData();
            return "?";
    }And here's the error message:
    org.xml.sax.SAXParseException: Teckenkonverteringsfel: "Malformed UTF-8 char -- is an XML encoding declaration missing?" (radnumret kan vara f�r l�gt).
        at org.apache.crimson.parser.InputEntity.fatal(InputEntity.java:1100)
        at org.apache.crimson.parser.InputEntity.fillbuf(InputEntity.java:1072)
        at org.apache.crimson.parser.InputEntity.isXmlDeclOrTextDeclPrefix(InputEntity.java:914)
        at org.apache.crimson.parser.Parser2.maybeXmlDecl(Parser2.java:1183)
        at org.apache.crimson.parser.Parser2.parseInternal(Parser2.java:653)
        at org.apache.crimson.parser.Parser2.parse(Parser2.java:337)
        at org.apache.crimson.parser.XMLReaderImpl.parse(XMLReaderImpl.java:448)
        at org.apache.crimson.jaxp.DocumentBuilderImpl.parse(DocumentBuilderImpl.java:185)
        at javax.xml.parsers.DocumentBuilder.parse(DocumentBuilder.java:124)
        at getrss.RSSDocument.<init>(RSSDocument.java:25)
        at getrss.Main.main(Main.java:25)

    I read files from the web, but there is a XML tag
    with the encoding attribute in the RSS file.If you are quite sure that you have an encoding attribute set to ISO-8859-1 then I expect that your RSS file has non-ISO-8859-1 character though I thought all bytes -128 to 127 were valid ISO-8859-1 characters!
    Many years ago I had a problem with an XML file with invalid characters. I wrote a simple filter (using FilterInputStream) that made sure that all the byes it processed were ASCII. My problem turned out to be characters with value zero which the Microsoft XML parser failed to process. It put the parser in an infinite loop!
    In the filter, as each byte is read you could write out the Hex value. That way you should be able to find the offending character(s).

  • Problem with loading XML file from directory.

    Hello everyone.
    *1)* I have directory defined by DBA. I have read, write privileges. I can read file from this directory using UTL_FILE, I can create file in this directory using UTL_FILE. I tried many times and it does not seem to be any problems.
    *2)* I have very simple XML table (with just one column of xmltype). I can insert into this column using:
    insert into temp_xml values (
    Xmltype ('<something></something>')
    *3)* When executing
    insert into temp_xml values (
    Xmltype (
    bfilename('XML_LOCATION', 'sample.xml'),
    nls_charset_id('AL16UTF8')
    I'm receiving an error:
    Error report:
    SQL Error: ORA-22288: file or LOB operation FILEOPEN failed
    ORA-06512: at "SYS.DBMS_LOB", line 523
    ORA-06512: at "SYS.XMLTYPE", line 287
    ORA-06512: at line 1
    22288. 00000 - "file or LOB operation %s failed\n%s"
    *Cause:    The operation attempted on the file or LOB failed.
    *Action:   See the next error message in the error stack for more detailed
    information. Also, verify that the file or LOB exists and that
    the necessary privileges are set for the specified operation. If
    the error still persists, report the error to the DBA.
    *4)* Previously I was receiving more descriptive errors like permission denied, file not exists etc. This time there is no clear description apart from "file or LOB operation %s failed\n%s". I'm sure I can access this file in this directory (I used UTL_FILE to dbms_output the content).
    Any help would be greatly appreciated.
    Regards
    Marcin Jankowski

    Hi Marcin,
    Welcome to the forums.
    One very important thing with Oracle XML : please always give your database version, all four digits (e.g. 10.2.0.4).
    Does the directory resides on the same machine as the database? Which OS?
    Does any of the following work ?
    DECLARE
       v_lob   CLOB;
       v_file  BFILE;
    BEGIN
       v_file := BFILENAME('XML_LOCATION','sample.xml');
       DBMS_LOB.createtemporary(v_lob, true);
       DBMS_LOB.fileopen(v_file);
       DBMS_LOB.loadfromfile(v_lob, v_file, DBMS_LOB.getlength(v_file));
       INSERT INTO temp_xml VALUES( xmltype(v_lob) );
       DBMS_LOB.fileclose(v_file);
       DBMS_LOB.freetemporary(v_lob);
    END;
    DECLARE
       v_lob   CLOB;
    BEGIN
       v_lob := DBMS_XSLPROCESSOR.read2clob('XML_LOCATION', 'sample.xml', nls_charset_id('AL16UTF8'));
       INSERT INTO temp_xml VALUES( xmltype(v_lob) );
    END;
    /

  • Problem with generating xml and nested cursor (ora-600)

    I have a problem with generating xml (with dbms_xmlquery or xmlgen) and nested cursors.
    When I execute the following command, I get a ORA-600 error:
    select dbms_xmlquery.getxml('select mst_id
    , mst_source
    , cursor(select per.*
    , cursor(select ftm_fdf_number
    , ftm_value
    from t_feature_master
    where ftm_mstr_id = pers_master_id ) as features
    from t_person per
    where pers_master_id = mst_id ) as persons
    from f_master
    where mst_id = 3059435')
    from dual;
    <?xml version = '1.0'?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: ORA-00600: internal error code, arguments: [kokbnp2], [1731], [], [], [], [], [], []
    </ERROR>
    The problem is the second cursor (t_feature_master).
    I want to generate this:
    <master>
    <..>
    <persons>
    <..>
    <features>
    <..>
    </features>
    </persons>
    <persons>
    <..>
    <features>
    <..>
    </features>
    </persons>
    </master>
    If i execute the select-statement in sql-plus, then I get the next result.
    MST_ID MST_SOURCE PERSONS
    3059435 GG CURSOR STATEMENT : 3
    CURSOR STATEMENT : 3
    PERS_MASTER_ID PERS_TITLE PERS_INITI PERS_FIRSTNAME PERS_MIDDL PERS_LASTNAME
    3059435 W. Name
    CURSOR STATEMENT : 15
    FTM_FDF_NUMBER FTM_VALUE
    1 [email protected]
    10 ....
    I use Oracle 8.1.7.4 with Oracle XDK v9.2.0.5.0.
    Is this a bug and do somebody know a workaround?

    Very simple...Drop all type objects and nested tables and create them again. You will get no error. I'll explain the reason later.

  • Problem with the XML in Word 2007 (Word Template)

    Hi Experts,
    i am new on CRM 2007 and i have a problem with the XML Structure of the Word Template.
    First i built a Web Service Design Tool. Then i saw on the Testpage, that it works.
    So i started the Document Templates and created a new Template. Object Type was BUS2000126 - CRM Business Activity. Web Service was my created and tested Web Service Tool.
    As i opened the Word 2007 with the XML-Structure, i recognized, that there was something wrong.
    The Responce on my Testpage from the Web Service Tool had the following structure:
    response (test.types.p1.CrmostZlaWord5ReadResponse)
       Output (test.types.p1.CrmostZla010RoszlaWord5001)
            ZlaWord5 (test.types.p1.CrmostZla010Rosbtorder)
                Administrativeheaderoforder (test.types.p1.CrmostZla010Rosbtorderhea001)
                     Partiesinvolvedofheader (test.types.p1.CrmostZla010Rosbtheaderpa001)
                         Allpartiesinvolved (test.types.p1.CrmostZla010Rosbtpartnera002[]) Displaying 3 elements of 3
                              element1 (test.types.p1.CrmostZla010Rosbtpartnera002)
                                   Btpartneraddress (test.types.p1.CrmostZla010Rosbtpartnera001)
    My Problem is now, that the XML-Structure got not that point "element1".
    Instead of "element1" there is the point "item" in my XML-Structure in Word 2007.
    I guess that is the Problem why i am not getting the fields of the Btpartneraddress filled in my Word.
    Can anyone help me? Or put me in the right direction that i can change the XML?
    Thanks for your help
    André

    Hi andré, I guess the issue is coming from the fact that you selected "AllPartiesInvolved" and that may contain any numbers of entries. So when you test your webservice, you put a key and then get a result for that key, and in that case you might get "element1" until "element3" for example if there was 3 partners involved in you activity.
    But, when you design your template, you don't have a key at that moment, so in the Web Service structure, you have "items" which stands for all the possible entries you might retrieve at runtime. I guess you could use an index in your template to specify which item you need, but this is quite hasardeous, so i would be you, I would not design my web service to use "AllPartiesInvolved" but rather a specific Partner type like contact person for instance.
    Regards,
    Xavier

  • Problem with castor xml mapping

    Hi,
    we have following problem with castor xml mapping.
    How to use references in the collections(Hashmap or vector)?
    WE have a method called getAttribute map which will return a hashmap consist different type of objects. We want to keep only the
    references of objects if that object occurs more than once,instead of keeping the whole object
    Following is the the xml mapping file.
    <mapping>
    <class name="com.opvista.ndtool.core.mos.ManagedObject" identity="Id" auto-complete="false" verify-constructable="false">
    <map-to xml="ManagedObject"/>
    <field name="Id" get-method="getId" set-method="setId" type="string">
    <bind-xml name="Id" node="attribute"/>
    </field>
    <field name="AttributeMap" type="org.exolab.castor.mapping.MapItem" collection="map" get-method="getAttributeMap">
    <bind-xml name="AttributeMap" node="element">
         <class name="org.exolab.castor.mapping.MapItem">
    <field name="key" type="java.lang.Object">
         <bind-xml name="key" node="attribute"/>
    </field>
    <field name="value" type="java.lang.Object">
         <bind-xml name="value" node="element" reference="true"/>
         </field>
    </class>
         </bind-xml>
    </field>
    </class>
    </mapping>
    we are using reference=true for the values. But it will throw below exception.
    Unable to resolve ID for instance of class 'java.lang.String' due to the following error: Unable to resolve ClassDescriptor.
         at org.exolab.castor.xml.Marshaller.getObjectID(Marshaller.java:1988)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1628)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1831)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1814)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:1825)
         at org.exolab.castor.xml.Marshaller.marshal(Marshaller.java:821)
    Please help us to overcome from this problem?
    Thanks,
    Dileep

    for your ref here is what i think the basic mapping file would look like
    <class name="Person">
    <map-to xml="person"/>
    <field name="name" type="string">
    <bind-xml name="name" node="attribute" />
    </field>
    <field name="age" type="string">
    <bind-xml name="age" node="attribute" />
    </field>
    </class>
    <class name="MetaPerson">
    <map-to xml="person"/>
    <field name="dependents" type="string">
    <bind-xml name="dependents" node="attribute" />
    </field>
    <field name="presentAdd" type="string">
    <bind-xml name="present_add " node="attribute" />
    </field>
    <field name="permanentAdd" type="string">
    <bind-xml name="permanent_add " node="attribute" />
    </field>
    </class>
    however i am still not clear as to how i can use the metaperson object in the person class as well as in the mapping file.
    hope this gives a better idea abt my problem statement.
    Please help me out

  • First time with Oracle XML database

    Hi!
    I'm a beginner with XML and with Oracle XML database so i need same help. I've read the documentation (example for XML Oracle).
    What do i need to write XML files from an oracle database and the other way to read XML files into the database?
    Or does anyone know how i can get information about this?
    Thank's for help!
    With best regards
    Nicole

    Nicole,
    One quick way to get xml out of the database is to use the dbms_xmlgen.getXML package.
    i.e. in sqlplus
    set long 4000
    select dbms_xmlgen.getxml('select * from emp') from dual;
    or
    set long 4000
    select dbms_xmlgen.getxml('select column_name from owner.tablename') from dual;
    HTH

  • Problem with web.xml

    Hello,
    I have a big problem with web.xml.
    i can run the servlet demos with the default web.xml, but when i try to user a costum web.xml files, i receive a 404 page not found on a link.
    i have some dificulty to post here. but can somebody help my with my web.xml files?
    thanks for your help.
    have a nice day!

    Be careful with the place of your files and folders. It's possible that you've just mentioned the cause of your problem.
    My web.xml is
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <!DOCTYPE web-app
    PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.3//EN"
    "http://java.sun.com/dtd/web-app_2_3.dtd">
    <web-app>
    <display-name>gco</display-name>
    <description>gco webapplicaties</description>
    <servlet>
    <servlet-name>MopoController</servlet-name>
    <servlet-class>org.gertcuppens.controller.MopoController</servlet-class>
    </servlet>
    <servlet-mapping>
    <servlet-name>MopoController</servlet-name>
    <url-pattern>/MOPO</url-pattern>
    </servlet-mapping>
    </web-app>
    When I want to call my web application locally, I use the URL http://localhost:8080/gco/MOPO.
    The http://localhost:8080 calls Tomcat. With /gco, Tomcat knows it should look for a folder gco inside the webapps folder. This one should contain a WEB-INF/web.xml folder for further instructions.
    With /MOPO Tomcat knows, having read the web.xml files of all webapps folders at start, it should look for a servlet with the name MopoController. And this MopoController points to the class org.gertcuppens.controller.MopoController. So, Tomcat knows where to find everything.
    Try to see whether your Tomcat can find everything inside the folders using your web.xml file.

Maybe you are looking for