DBMS_XSLPROCESSOR. FREESTYLESHEET, freeing not? ORA-31011

Hi Chaps,

Could do with a second pair of eyes on this one.

I have a problem with this piece of code under which is a test case artificial to demonstrate a problem elsewhere.

This seems to be a problem on 9.2.0.7.

It will also depend on OS limits on open files.
DECLARE
      p_XMLData  CLOB :=
'<MessageData><DataItem Name="Price"><DataField Current="ca747a56-b2d9-43e6-b0f3-8d4ee379e76a" Old="" Name="PriceGuid" DataType="System.Guid" /><DataField Current="ef1e0f12-6b09-406c-811e-92389df39c27" Old="" Name="InstrumentGuid" DataType="System.Guid" /><DataField Current="31.07.2008 00:00:00.000" Old="" Name="AsOfDate" DataType="System.DateTime" /><DataField Current="True" Old="" Name="IsRor" DataType="System.Boolean" /><DataField Current="1024.46454240" Old="" Name="Nav" DataType="System.Decimal" /><DataField Current="0.03200000" Old="" Name="Ror" DataType="System.Decimal" /><DataField Current="40" Old="" Name="QualityID" DataType="System.UnsignedByte" /><DataField Current="" Old="" Name="Note" DataType="System.String" /><DataField Current="False" Old="" Name="IsDeleted" DataType="System.Boolean" /><DataField Current="False" Old="" Name="IsPropagated" DataType="System.Boolean" /><DataField Current="PCS Replication" Old="" Name="CreatedBy" DataType="System.String" /><DataField Current="04.08.2008 08:54:35.287" Old="" Name="CreatedTime" DataType="System.DateTime" /><DataField Current="04.08.2008 06:54:35.287" Old="" Name="CreatedTimeUTC" DataType="System.DateTime" /><DataField Current="dhilbert" Old="" Name="UpdatedBy" DataType="System.String" /><DataField Current="04.08.2008 17:07:14.637" Old="" Name="UpdatedTime" DataType="System.DateTime" /><DataField Current="04.08.2008 15:07:14.637" Old="" Name="UpdatedTimeUTC" DataType="System.DateTime" /><DataField Current="5" Old="" Name="InputTypeID" DataType="System.UnsignedByte" /><DataField Current="" Old="" Name="ReconciliationGuid" DataType="System.Guid" /><DataField Current="" Old="" Name="CounterPartyAccountID" DataType="System.String" /><DataField Current="2" Old="" Name="Brands" DataType="System.String" /><DataField Current="" Old="" Name="PitaID" DataType="System.String" /><DataField Current="" Old="" Name="FirstID" DataType="System.String" /><DataField Current="shs25655" Old="" Name="ShortID" DataType="System.String" /></DataItem></MessageData>';
      p_XSLData  CLOB := 
'<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:variable name="lcletters">abcdefghijklmnopqrstuvwxyz</xsl:variable>
<xsl:variable name="ucletters">ABCDEFGHIJKLMNOPQRSTUVWXYZ</xsl:variable>
    <xsl:output indent="yes" method="xml"/>
    <xsl:template match="DataItem">
        <xsl:element name="{translate(@Name,$lcletters,$ucletters)}">
            <xsl:for-each select="DataField">
                <xsl:element name="{translate(@Name,$lcletters,$ucletters)}">
                    <xsl:value-of select="@Current"/>
                </xsl:element>
            </xsl:for-each>
        </xsl:element>
        <xsl:apply-templates/>
    </xsl:template>
</xsl:stylesheet>';
      v_XMLParser               DBMS_XMLPARSER.Parser;
      v_XMLDOMDocument          DBMS_XMLDOM.domdocument;
      v_XSLDOMDocument          DBMS_XMLDOM.domdocument;
      v_XSLSytlesheet           DBMS_XSLPROCESSOR.stylesheet;
      v_OutputDOMDocumentFrag   DBMS_XMLDOM.domdocumentfragment;
      v_OutputNode              DBMS_XMLDOM.domnode;
      v_XSLProcessor            DBMS_XSLPROCESSOR.processor;
      v_TransformedXMLData      CLOB := empty_clob();
      l1 pls_integer;
   BEGIN
      DBMS_LOB.CREATETEMPORARY(v_TransformedXMLData,FALSE,DBMS_LOB.CALL);
      FOR i in 1 .. 10000
      LOOP
         -- Get the new xml parser instance
         v_XMLParser := DBMS_XMLPARSER.newParser;
         -- Parse the XML document
         DBMS_XMLPARSER.parseClob( v_XMLParser, p_XMLData );
         -- Get the XML's DOM document
         v_XMLDOMDocument := DBMS_XMLPARSER.getDocument( v_XMLParser );
         -- Parse the XSL document
         DBMS_XMLPARSER.parseClob( v_XMLParser, p_XSLData );
         -- Get the XSL's DOM document
         v_XSLDOMDocument := DBMS_XMLPARSER.getDocument( v_XMLParser );
         -- Get the stylesheet
--Comment out this line BELOW
         v_XSLSytlesheet := DBMS_XSLPROCESSOR.newstylesheet( v_XSLDOMDocument, '' );
--Comment out this line ABOVE
         -- Get the new xsl processor instance
         v_XSLProcessor := DBMS_XSLPROCESSOR.newProcessor;
         -- Apply stylesheet to DOM document
         v_OutputDOMDocumentFrag := DBMS_XSLPROCESSOR.processxsl( v_XSLProcessor,
                                                                  v_XSLSytlesheet,
                                                                  v_XMLDOMDocument );
         v_OutputNode := DBMS_XMLDOM.makenode( v_OutputDOMDocumentFrag );
         -- Write the transformed output to the CLOB
         --
         DBMS_XMLDOM.writetoCLOB( v_OutputNode, v_TransformedXMLData );
         --
         DBMS_XMLDOM.FREENODE(v_outputnode);
         --
         DBMS_XMLDOM.FREEDOCFRAG(v_OutputDOMDocumentFrag);
         --
         DBMS_XSLPROCESSOR.FREESTYLESHEET(v_XSLSytlesheet);
         --
         DBMS_XSLPROCESSOR.FREEPROCESSOR(v_xslprocessor);
         --
         DBMS_XMLDOM.FREEDOCUMENT(v_xmldomdocument);
         --
         DBMS_XMLDOM.FREEDOCUMENT(v_xsldomdocument);
         --
         DBMS_XMLPARSER.FREEPARSER(v_xmlparser);
         --
      END LOOP;
   END;
/
On my 9.2.0.7 database this success an ORA-31011 with a large number of loops.
Then, the session cannot continue due to issues of "too many open file:
"ORA-27041: could not open the file.
Error of HP - UX: 24: too many open files
"Additional information: 3"

If I comment the line
v_XSLSytlesheet := DBMS_XSLPROCESSOR.newstylesheet( v_XSLDOMDocument, '' );
then there is no error.

The conclusion is that something is not freed up - the stylesheet or an object-dependent.
But it seems to me that everything is cleaned.

Can anyone otherwise reproduce on 9.2.0.7 or spot something obvious about cleaning?

See you soon,.
Dominic

Published by: dombrooks on October 1st, 2008 12:14

Published by: dombrooks on October 1st, 2008 12:14
removed erroneous call to DBMS_LOB. FREETEMPORARY

In principle, you hit a limit at the level of the nucleus (HP - UX). You were not allowed to open new processes fork. There are some kernel parameters that control the maximum amount of sessions by machine and unix user. Search on Internet of the "unauthorized to the fork" and you will find problems with, for example, "nfile" etc. settings...

Tags: Database

Similar Questions

  • ORA-31011: analysis XML has not, someone can like me wats wrong in this code

    Hi all

    I am trying to parse an XML document, for which I wrote a code on the XML parsing.

    I'm moving to an XML document, which will be in a format, I can't change that.

    Now, I have to get values to individual items such as FROM_USERID and TO_USERID, and MESSAGE.

    Here is the code

    create or replace procedure myparsing is
    new_msg_str varchar2 (4000);
    XMLType new_msg_xml;
    v_from_user varchar2 (8);
    v_to_user varchar2 (8);
    v_msg_tmp varchar2 (4000);
    v_msg varchar2 (4000);
    payloadxml varchar2 (2000);
    Chat.objmessage_typ MyMsg;
    n number;

    getvalueat function)
    NodeList dbms_xmlDom.DOMNodeList, xPath varchar2)
    VARCHAR2 is back
    Start
    Return to dbms_xslprocessor.valueOf (dbms_xmldom.item(nodelist,2),
    XPath);
    end getvalueat;

    analysis of procedure (xmlpayload varchar2) is
    doc dbms_xmlDom.DOMDocument.
    parser dbms_xmlparser. Analyzer;
    nodeList dbms_xmlDom.DOMNodelist;
    Testdoc varchar2 (2000);
    Start
    Parser: = dbms_xmlparser.newParser;
    dbms_xmlparser.parseBuffer (parser, xmlPayload);
    doc: = dbms_xmlparser.getDocument (parser);
    dbms_xmlparser.freeParser (parser);
    nodeList: = dbms_xslprocessor.selectNodes)
    dbms_xmlDom.makeNode (doc),'/ CAT. OBJMESSAGE_TYP');
    MyMsg: = objmessage_typ (null, null, null);
    MyMsg.from_userid: = getValueAt (nodeList, 'FROM_USERID');
    MyMsg.to_userid: = getValueAt (nodeList, 'TO_USERID');
    MyMsg.message: = getValueAt (nodeList, 'MESSAGE');
    end analysis;

    Start
    payloadXml: = ' <? XML version = "1.0"? >

    < CAT > OBJMESSAGE_TYP > < FROM_USERID > abcdabcd < / FROM_USERID >

    me < TO_USERID > < / TO_USERID > < MESSAGE > HI this IS SOME

    MESSAGE < / MESSAGE > < / CAT. OBJMESSAGE_TYP > ';
    Parse (payloadXml);
    v_from_user: = mymsg.from_userid;
    v_to_user: = mymsg.to_userid;
    v_msg: = mymsg.message;
    MyMsg: = objmessage_typ (null, null, null);
    v_from_user: = ";
    v_to_user: = ";
    v_msg: = ";
    end;


    I get the error message

    SQL > start
    2 myparsing();
    3 end;
    4.
    Start
    *
    ERROR on line 1:
    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00231: invalid character 46 ('.) ') in a name a Nmtoken
    Error on line 4
    ORA-06512: at "XDB". DBMS_XMLPARSER', line 156
    ORA-06512: at "CAT. MYPARSING', line 27
    ORA-06512: at "CAT. MYPARSING', line 43
    ORA-06512: at line 2


    Can someone like me whats wrong in this code and the things I need to do

    TIA...

    It is not valid XML.

    See [spec | http://www.w3.org/TR/xml/#sec-starttags]

    Disallowed initial characters for Names include digits, diacritics, the full stop and the hyphen
    
  • ORA-31011: XML parsing failed

    Hello

    Currently I am passing the sql SELECT query * table to this API oracle returns XML data into a clob.

    I have a column in DB which, once certain error over a value that contains an unprintable character. Its not visible directly on sqlplus then I ran the query to find its value ascii() and it turns out be ASCII 4 which is EOT [end of transmission]

    dbms_xmlgen. GetXml is isn't able to manipulate and generate the XML from this table. His throw ORA-31011: failed to parse XML.

    I know that you can use regxp_replace as in the following example to remove all control characters (that is, non-printable characters):

    SELECT DBMS_XMLGEN.
            getxml (
              'select regexp_replace(empno,''[:cntrl:]'') empno, ename, job, mgr, hiredate, sal, comm, deptno  from emp')

      FROM DUAL;

    But, this also removes the feedback tab and transport, I need to keep.

    What is needed is a set of characters (for example, [: xml :]) that can be used with regexp to return all valid XML characters.])

    No idea how to remove all non - xml characters elegantly (i.e. without having to specify the ranges of hexadecimal characters, etc..)?

    You need to delete ASCII 1-8, 11,12,14-31 and 39, so I doubt that ' elegantly '.

    Here is an example of work with regexp_replace and (clumsy) beaches. There is no more an EXCEPTION with the high-end:

    DECLARE
      ostr  VARCHAR2(50);
      nstr  VARCHAR2(50);
      xstr CLOB;
    BEGIN
      FOR i IN 1..255 LOOP
      BEGIN
        ostr := chr(i);
        nstr := regexp_replace(ostr,'['||chr(1)||'-'||chr(8)||']|['||chr(11)||'-'||chr(12)||']|['||chr(14)||'-'||chr(31)||chr(39)||']','#');
        SELECT DBMS_XMLGEN.getxml ('SELECT '||i||' i, '''||nstr||''' str  FROM dual') INTO xstr  FROM dual;
        --dbms_output.put_line(xstr);
      EXCEPTION
    WHEN OTHERS THEN
      dbms_output.put_line(i);
      END;
    END LOOP;
    END;        
    
  • Err: ORA-31011: failed to parse XML

    Hello

    While inserting the XML code in the table, I faced slot problem, Pls suggest a way out of the code.
    Your help is appreciate.
    I'm using the version of Oracle - 10.2.0.2.0

    Err: ORA-31011: failed to parse XML
    ORA-19202: an error has occurred in the processing of XML
    LPX-00234: the 'xsi' namespace prefix is not declared
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 254
    ORA-06512: at line 1

    -Step 1
    CREATE TABLE EMP (EMPCODE NUMBER (8), EMPNAME VARCHAR2 (100), THE NUMBER OF EMPDEPTNO (8), NUMBER EMPSAL (34.2));
    /
    -Step 2
    BEGIN
    FOR X IN (SELECT * FROM USER_OBJECTS S WHERE ROWNUM < = 50)
    LOOP
    INSERT INTO VALUES EMP (X.OBJECT_ID, X.OBJECT_NAME, 20, X.OBJECT_ID + 10);
    END LOOP;
    COMMIT;
    END;
    /
    -Step 3
    create the table EMPXML (XMLCLOB XMLTYPE);
    /
    -Step 4
    DECLARE
    v_xmldata CLOB.
    v_tmpdata CLOB.
    v_xmltype XMLTYPE.
    BEGIN
    DBMS_LOB.CREATETEMPORARY (v_tmpdata, false);
    v_xmldata: = ' <? XML version = "1.0" encoding = "UTF-8"? > ';

    SELECT Xmlelement ("employee",

    XmlAttributes ("http://ns.oracle.com.tw/XSD/ORACLE/ESB/Message/EMF/ServiceEnvelope" xmlns: xsi = "http://www.w3.org/2001/XMLSchema-instance" AS ")
    "xmlns:ns0,"
    ' http://ns.oracle.com.tw/XSD/ORACLE/ESB/Message/EMF/ServiceEnvelope ServiceEnvelope.xsd > ' AS
    ("xsi: schemaLocation").
    XMLAGG (Xmlforest (AS Empcode "EmpID",
    EmpName AS "EmpName",.
    Empsal AS 'EmpSal'))) BY v_xmltype
    FROM Emp
    WHERE Empdeptno = 20;

    SELECT v_xmltype.getCLOBVal () IN the v_tmpdata FROM dual;

    DBMS_LOB. Append (v_xmldata, v_tmpdata);

    BEGIN
    INSERT IN EMPXML VALUES (xmltype (v_xmldata));
    EXCEPTION WHEN OTHERS THEN
    dbms_output.put_line ('Err: ' |) SQLERRM);
    END;
    END;
    /
    -Step 5
    SELECT * from empxml;
    /
    -Step 6
    DROP TABLE EMP PURGE;
    /
    -Step 7
    DROP TABLE EMPXML PURGE;
    /
    Thank you and best regards,
    Yogesh Nagle
    India

    What? Pepijn you provided the correct use of Xmlattributes and showed that your script would go without errors. What is the problem with his answer or it does not that you need it?

  • ORA-31011 when using XMLElement.getblobval)

    Hi all

    We have recently updated our server Oracle of Oracle Database 10 g Release 10.2.0.2.0 - Production of Oracle Database 10 g Release 10.2.0.5.0 - Production, and now we are getting the following error in one of our procedures in XML.

    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00230: invalid 0 (U + 0000) character in a name a Nmtoken
    Error on line 1
    ORA-06512: at "SYS." XMLTYPE", line 156

    I found 2 things, the first is that if I delete as 8 characters of XMLElement that is ITI selected fine works, so my guess is that the value is too large, but to dig deeper the problem I discovered at the end of XMLElement there is a .getBlobVal (1), so when noting that I get no error.

    no idea why this phenomenon occurs? is this something related to the nls_character_Set? I tried with others with no luck

    Thanks in advance
  • shared printer under Windows 2003, freeing not always jobs for printer

    I have a laser printer of HP Networking installed with a fixed IP address on my Win 2003 server and shared on the network.

    When I send a job to the printer from a workstation it can take up to half an hour before being sent to the printer and all watch upin the queue.

    If I turned off the printer and then turn it back on, all queue jobs start printing immediately.

    Prevents them from taken in charge by the printer?

    I changed the network switch and the cable from the printer. Everything else on the network works perfectly.

    Hello

    The question you posted would be better suited to the TechNet community. Please visit the link below to find a community that will support what ask you

    http://TechNet.Microsoft.com/en-us/ms772425

  • ORA-28575: could not open the RPC connection to the external procedure agent

    Hello world

    Could you please help me with this problem? I am trying to configure Oracle XE 11 g for external procedures, this because I need to access certain procedures in a DLL in Delphi 6.0, but even with the simplest of the dll that I do, as a sum in C, I can't pass this ORA-28575 error: could not open the RPC connection to the external procedure agent.

    It's my listener.ora:

    SID_LIST_LISTENER =
    (SID_LIST =
    (SID_DESC =
    (SID_NAME = PLSExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (= Extproc PROGRAM)
    )
    (SID_DESC =
    (SID_NAME = CLRExtProc)
    (ORACLE_HOME = C:\oraclexe\app\oracle\product\11.2.0\server)
    (= Extproc PROGRAM)
    )
    )

    LISTENER =
    (DESCRIPTION_LIST =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    (ADDRESS = (PROTOCOL = TCP)(HOST = myPC) (PORT = 1521))
    )
    )


    DEFAULT_SERVICE_LISTENER = (XE)

    and that's my tnsnames.ora:
    XE =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = TCP)(HOST = myPC) (PORT = 1521))
    (CONNECT_DATA =
    (SERVER = DEDICATED)
    (SERVICE_NAME = XE)
    )
    )

    EXTPROC_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC0))
    (CONNECT_DATA =
    (SID = PLSExtProc)
    (PRESENTATION = RO)
    )
    )

    ORACLR_CONNECTION_DATA =
    (DESCRIPTION =
    (ADDRESS_LIST =
    (ADDRESS = (PROTOCOL = CIP)(KEY = EXTPROC1))
    )
    (CONNECT_DATA =
    (SID = CLRExtProc)
    (PRESENTATION = RO)
    )
    )

    Do you know what could be the problem? I'm out of ideas and google search...

    Also, is there a difference in a call to a DLL in VB and one made in Delphi?

    Thank you and best regards,

    See the MOS NOTES:
    ORA-28575: cannot open connection to RPC if "ORA_EXTPROC_THREADED" is set in the registry [945396.1 ID]
    External procedures - troubleshooting errors ORA-28575 [70638.1 ID]

  • ORA-03135 not in alertlog?

    Oracle Version: 10.2.0.4
    OS: RedHat 5.5

    Hi all

    recently, we had a problem with a delete statement, which was triggered by a JBoss server. This statement has not finished, so I started it follow-up because I couldn't find any ora - alerts log. But curiously, I found an ora-03135 in the trace. I was wondering why this error was not in the alerts log. Y at - he of known bugs or is it the behaivior WAITED? I couldn't find anything on MOS

    BTW, I have another question about the trace file. After the error in the trace file, I see a lot of:

    WAITING #1: nam = 'db file sequential read' ela = file No. 13 = 5 block #= blocks 1341871 = 1 obj #=-1 tim = 1281712953742918

    Is it correct to say that it is the price drop? That means obj #=-1. We also have lines with obj #= 0.

    Thanks in advance

    Hello

    in your case, your session is still alive, but lost the contact to the application. This looks like a firewall. As your server process is still alive, he cancels all your changes (different case, if your server process dies). So, you should see the cancellation directly after the error.

    You will see not ora-03135 in your log file alert, since it is an error to the user. See the link above.

    HTH...

    -wiZ

  • ORA-00976 LEVEL, PRIOR or ROWNUM not allowed here in the PO_DOCUMENT_CH package

    Hello

    EBS R12.1
    OEL 5.4

    Operations of requisition and PO doing im but I got error
    ORA-00976 LEVEL,PRIOR, or ROWNUM not allowed here in Package PO_DOCUMENT_CHECKS_PVT Procedure CHECK_REQUISITIONS.
    
    Solution
    
    1. Please check HR Locations setup corresponding to location_id=XXX. For example the Country should be 'KE' instead of 'Kenya'. 
    Compare with that of location_id=YYY which is correct as per FND log. 
    
    select location_id,location_code,country 
    from hr_locations_all 
    where location_id in (142,182); 
    
    2. After changing above setup, please run the SQL again to confirm the value. 
    Note > ORA-00976 error while approving internal requisitions [968651.1 ID]
    is the same thing with my mistake. But it is specific to the country in KENYA. :(
    How can I get my FND journal so that I can see what location_id who got the error?
      1* select location_id,location_code,country from hr_locations_all
    SQL> /
    
    LOCATION_ID LOCATION_CODE COUNTRY
    ----------- ------------- --------
    censored
    
    Im selecting the table but it seems the location and country code are fine.
    
    Please help me resolve this one based on the notes above.
    
    Thanks a lot,
    
    Ms K
    
    Edited by: user_unlimited on Sep 16, 2010 10:28 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        

    Salvation;

    Please update thread when you did at the end of reading

    Respect of
    HELIOS

  • DBMS_XSLPROCESSOR. SETPARAM problem

    When I try to pass values of stylesheet with DBMS_XSLPROCESSOR global settings. SETPARAM, I get "ORA-31020: the operation is not allowed, reason: Invalid Parameter XSL or its value. Can someone give me example, please?
    Version of database Oracle XE 11 g 11.2.0.2.0

    It works for me:

    SQL> set serveroutput on
    SQL>
    SQL> DECLARE
      2
      3   p  dbms_xslprocessor.Processor;
      4   s  dbms_xslprocessor.Stylesheet;
      5
      6   xsldoc  clob := '
      7  
      8  
      9  
     10  
     11  
     12  ';
     13
     14   xmlresult varchar2(4000);
     15
     16  BEGIN
     17
     18   p := dbms_xslprocessor.newProcessor;
     19   s := dbms_xslprocessor.newStylesheet(dbms_xmldom.newDOMDocument(xsldoc), null);
     20   dbms_xslprocessor.setParam(s, 'test', '"Hello!"');
     21
     22   dbms_xslprocessor.processXSL(p, s, dbms_xmldom.newDOMDocument(''), xmlresult);
     23
     24   dbms_xslprocessor.freeStylesheet(s);
     25   dbms_xslprocessor.freeProcessor(p);
     26
     27   dbms_output.put_line(xmlresult);
     28
     29  END;
     30  /
    
    
    Hello!
    
    PL/SQL procedure successfully completed
     
    
  • Response returned by FinancialUtilService is not XML?

    Hello

    I use FinancialUtilService to create a test file in the Complutense University of MADRID.

    It works very well in that it creates the file in the Complutense University of MADRID, however, it seems that the answer is not a valid XML code.

    When I try the 'Service of Fusion Tester', I get a response that seems well, for example:

    <? XML version = "1.0" encoding = "UTF-8"? >

    " < = xmlns:env env:Envelope ' http://schemas.xmlsoap.org/SOAP/envelope/ "xmlns:wsa =" " http://www.w3.org/2005/08/addressing ">

    < env:Header >

    < wsa: action > http://xmlns.Oracle.com/apps/Financials/commonModules/shared/financialUtilService//FinancialUtilService/uploadFileToUcmResponse < / wsa: action >

    < wsa: MessageID > urn: uuid:6877448f - 8 d 10-4e83-9070-5e5935a91ee8 < / wsa: MessageID >

    < / env:Header >

    < env:Body >

    " < = xmlns:ns0 ns0:uploadFileToUcmResponse ' http://xmlns.Oracle.com/apps/Financials/commonModules/shared/financialUtilService/types/ "> "

    " < result xmlns =" http://xmlns.Oracle.com/apps/Financials/commonModules/shared/financialUtilService/types/ "> 1250389 < / result > .

    < / ns0:uploadFileToUcmResponse >

    < / env:Body >

    < / env:Envelope >


    However, I have when I call using APEX_WEB_SERVICE. MAKE_REQUEST, waiting for XMLType gave, I get the errors below:

    ORA-31011: XML parsing failed

    ORA-19202: an error has occurred in the processing of XML

    LPX-00231: 39 invalid character ("") in a name a Nmtoken

    Error on line 3

    ORA-06512: at "SYS." XMLTYPE", line 5

    ORA-06512: at "APEX_040200.WWV_FLOW_WEBSERVICES_API", line 165

    ORA-31011: XML parsing failed

    ORA-19202: an error has occurred in the processing of XML

    LPX-00210: expected ' < ' instead of 'P '.

    I tried to review the response through other methods, and I'm getting something that starts from below, which looks like it is the reason why XML parsing is a failure:

    -= _Part_9559_409058356.1416840422981

    Content-Type: application/xop + xml; Charset = UTF-8; Type = "text/xml".

    Content-Transfer-Encoding: 8 bit

    Content-ID: < d7028776-1bb2-48aa-ba61-143110a9cb38 >

    <? XML version = "1.0" encoding = "UTF-8"? >

    Any ideas how I can use APEX_WEB_SERVICE to review the answer?

    Thank you

    Peter

    Solved.

    I could not force the service to return XML, but has managed to use apex_web_service.make_rest_request instead (which accepts as a returned CLOB).

  • xsl: include not solve any HOW to load the xslt

    I can't get * < xsl: include > * to work with XMLTRANSFORM in an environment of Oracle's PL/SQL 11.2.0.3. I work exclusively within the database.

    I have a basic XSLT which includes another XSLT using xsl: include. I want to load the base as an XMLTYPE XSLT and do transform another XML document, as if the entire XSLT was a large document.

    I loaded the base (base.xslt), the extension (include_with_base.xslt) and the combination of the two (entire_thing.xslt) in the XDB catalogue. base.xslt has this statement inside the node, xsl: stylesheet, attempting to include the other xslt:
    ' * < xsl: include href="/public/include_with_base.xslt" / >. *

    I have the files stored in XDB XSLT. It verifies that they are intact:
    1. the base xslt which has the xsl: include the statement loads very well.
    Select xdburitype('/public/base.xslt').getXML (double);

    2. the extension which is the target of the reference to include it in the basic xslt support very well.
    Select xdburitype('/public/include_with_base.xslt').getXML (double);

    3. the combination of the two, where I copy - paste all the children of include_with_base.xslt xslt:stylesheet in the xslt:stylesheet of base.xslt load node also very well.
    Select xdburitype('/public/entire_thing.xslt').getXML (double);

    However, when I try to run a transformation of some xml test using base.xslt, it fails:
    Select XMLTRANSFORM(xdburitype('/public/xml_input.xml').getXML (), xdburitype('/public/base.xslt').getXML ()) FROM dual;

    When I try to run the same transformation of the same test xml using entire_thing.xslt, it works:
    Select XMLTRANSFORM(xdburitype('/public/xml_input.xml').getXML (), xdburitype('/public/entire_thing.xslt').getXML ()) FROM dual;

    When I run both XSLT transformations and transformation using altovaxml is in the same directory of drive (and I use a relative reference with no path information and not an absolute reference, as I show in the above examples), the transformation works very well.

    What can I do to run a XSLT which is essential the XMLTRANSFORM < xsl: include... / > reference in there?

    Published by: user11359697 on April 15, 2013 13:49

    Ok thank you. Now I can reproduce the problem:

    SQL> select xmltransform(
      2           xdburitype('/public/PEOPLE.xml').getXML()
      3         , xdburitype('/public/BASE.xslt').getXML()
      4         )
      5  from dual;
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00602: Invalid child element '#text' of element 'binary'.
    
    no rows selected
    

    The error is related to the way in which the resources are stored in the XML DB repository and are accessible from XSLT.
    Apparently, when the resource is interpreted as a binary stream, the language of xsl: include directive fails. I would be considered a bug.

    By default, there is no mapping predefined MIME for the 'xslt' extension so the resource ' / public/TITLES "is stored using the default" application/octet-stream"MIME type
    You can check that by questioning RESOURCE_VIEW:

    SQL> set long 50000
    SQL> set longc 50000
    SQL> set lines 200
    SQL> set pages 100
    SQL> select xmlserialize(document res)
      2  from resource_view
      3  where equals_path(res, '/public/TITLES.xslt') = 1;
    
    XMLSERIALIZE(DOCUMENTRES)
    --------------------------------------------------------------------------------------------------------------------------------------------
    
    

    To work around the problem, you need to reference resources stored with a text-based MIME type, such as the "xsl" extension (predefined in xdbconfig):

    select *
    from xmltable(
           xmlnamespaces(default 'http://xmlns.oracle.com/xdb/xdbconfig.xsd')
         , '//extension-mappings/mime-mappings/mime-mapping'
           passing dbms_xdb.cfg_get()
           columns "extension", "mime-type"
         ) ;
    

    or if you want to keep the "xslt" extension, it maps to the mimetype "text/xml".
    You can do it like this:

    SQL> exec dbms_xdb.ADDMIMEMAPPING('xslt','text/xml');
    
    PL/SQL procedure successfully completed.
    
    SQL> commit;
    
    Commit complete.
    

    Drop and reload the resource ' / public/TITLES.xslt ' in the repository and it should be OK:

    SQL> select xmltransform(
      2           xdburitype('/public/PEOPLE.xml').getXML()
      3         , xdburitype('/public/BASE.xslt').getXML()
      4         )
      5  from dual;
    
    XMLTRANSFORM(XDBURITYPE('/PUBLIC/PEOPLE.XML').GETXML(),XDBUR
    ------------------------------------------------------------
    
    
      Hello, Mrs.AliceAble
      Hello, Mr.BobBungler
    
    
  • XML Gateway Inbound invoice LPX-00103: structure of a document does not match DTD

    Hello

    We see the following error in the Transaction monitor while receiving an incoming invoice of NSOS to Oracle. Can someone advise please know how this problem can be solved?

    ORA-31011: failure ORA-19202 XML parsing: error in XML processing LPX-00103: WARNING: structure of a document does not match DTD error line 1

    Used mapping is '171_process_invoice_002 '.

    Thank you.

    Hello
    The implementation of accounts payable guide suggests the map to serve as AP_INVOICE_INBOUND. But failure with javaNullpointerException for this patch 9644960 must be applied.

    http://docs.Oracle.com/CD/E18727_01/doc.121/e12795/T434884T434889.htm#I_rx2DX78ML

    Thank you
    Adkins

  • Error: "LPX-00240: element start tag is not well formed.

    Hi all

    I get this error analysis an XML file:

    ORA-31011: XML parsing failed
    ORA-19202: an error has occurred in the processing of XML
    LPX-00240: element start tag is not well formed*.
    Error on line 18



    What could be the problem in this case?

    I'm running out of options for this solution and try...

    Thanks to you all

    ---------------------- XML FILE -----------------------------
    <? XML version = "1.0" encoding = "iso-8859-1? >
    < FormList >

    < name of the form = table 'SERVIDOES_REGLA_BASE' = 'IVBAM '. ANA_SERV_PEDIDOSPARECER' idfield = 'ID' >

    < FormField name = 'ID' label = 'ID' datatype = 'LONG' type = "TEXTFIELD" readonly = "true" visible = "false" required = "false" recordable = "true" lovemtpy = "false" multiselect = "false" / >

    < / make >

    < name of the form = table 'PEDIDO_PARECER_UPDATE' = 'IVBAM '. ANA_SERV_PEDIDOPARECER' idfield = 'ID' help = usesession "KATCHESSIBO sdf sdf 4 43 43 3 4534 54" = "true" geometryfield = "GEOMETRY" > ".

    < name culture = "FORM_ACTION_01" function = "2" help = "true" > < param name = 'CONFIRM' value = 'YES_NO"title ="confirm?"/ >

    < param name = "LANE" value = "dddd" title = "ddddd" / >

    < / Culture >

    line 18: FormField name = "NUM_ENTRADA" label = "Entry number" datatype = "STRING" type = "TEXTFIELD" visible = "false" required = "false" recordable = 'false' lov = "Sim, não" lovemtpy = "false" maxlength = "50" multiselect = "false" / >

    < / make >

    < / FormList >

    -------------------------------------------------------------------

    Please see the xml without comments as it is

    And in between

     tags please.
    
    Where does the XML reside? External file, PL/SQL variable, database column (which datatype), ... ?                                                                                                                                                                                                                                                                                                                                                                            
    
  • ORA 38818

    Community welcome message.

    What should I do to get my xsd register? Editing default db = version2 and NOT ORA$ BASE

    SELECT property_value
    FROM   database_properties
    WHERE  property_name = 'DEFAULT_EDITION';
    
    VERSION2
    
    begin
    DBMS_XMLSCHEMA.REGISTERSCHEMA(
            schemaurl => 'Common-5_0.xsd',
            schemadoc => BFILENAME ('ORCL_DATA','Common-5_0.xsd')
            );  
    end;  
    

    Error report -
    ORA-38818: illegal reference to editioned object DEMO.CoordinateType1120_T
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 37
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 65
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 136
    ORA-06512: at line 2
    38818. 00000 -  "illegal reference to editioned object %s.%s"
    *Cause:    An attempt was made to violate the rule "A noneditioned object
               may not depend on an editioned object."
    *Action:   Either make this object editioned; or do not make the illegal
               reference.
    

    The schema is displayed above the one you intend to base the XMLType on?

    If so, it will not work because the schema does not define any top-level element, only types.

    In any case, assuming that you have a useful working with schema, I suggest that you register for binary XML instead:

    dbms_xmlschema.registerSchema(
      ...
    , genTypes  => false
    , genTables => false
    , options   => dbms_xmlschema.REGISTER_BINARYXML
    

    and create the table like this:

    create table stg_aug_inline (
      id          number
    , create_date date
    , file_name   varchar2(4000 byte)
    , xmldata     xmltype
    )
    xmltype column xmldata store as securefile binary xml
    xmlschema "my_schema.xsd" element "root-element" ;
    

Maybe you are looking for

  • I can not use iPhone 6s hotspot

    I can't use iPhone 6s via hotspot to access the internet I already install iTunes and my iTunes and the iPhone are the version lasted, but when I connect iPhone via wifi without success to connect or I try to connect via buletoot USB or failure, he c

  • Product key Vista already in use?

    I have a Compaq Presario F730 Notebook PC. I bought it two years ago. Today, when I got home I got a message on my screen that said that I needed to get my vista product key. I entered and it notified me that my key was already in use. I went to the

  • Data of Downcasting DMA from U8 to U16

    Hello world I have a situation that I hope someone can shed some light on. Currently I have a FPGA design that collect data highspeed made some treatment on it and spits the results on DMA to read out and record the host TDMS files. Currently I read

  • 2 SmartBand does not work after update

    Hello! Today, I got an update for SmartBand 2 in its application. I started installation, but this process has suddenly stopped and wasn't finished. Now my band flashes with green light and is not seen by the app more so that I can't pair them up. I

  • Presario CQ20-320TU: my notebook (presario CQ20) directly turn on when I plug in the power cord without battery

    My laptop (presario CQ20-320TU) turn directly every time I plug the power cord without battery. What is the solution?