ORA-30625 sys.xmltype

every time when I run function GET_PURCHASEORDER_VALUE Oracle rises error ora-30625 in line*. I work in Oracle release 9.0.1.3.0. what shuld I do? help me. please.
create or replace function GET_PURCHASEORDER_VALUE(PURCHASEORDER in sys.XMLTYPE)
return number is
LINEITEMS sys.XMLTYPE;
LINEITEM sys.XMLTYPE;
COST number;
QUANTITY number;
TOTAL number := 0;
I binary_integer := 1;
begin
LINEITEMS := PURCHASEORDER.extract('//LineItem'); *
loop
LINEITEM := LINEITEMS.extract('/LineItem['||I||']');
exit when LINEITEM is null;
COST := LINEITEM.extract('/LineItem/Part/@UnitPrice').getNumberVal();
QUANTITY := LINEITEM.extract('/LineItem/Part/@Quantity').getNumberVal();
TOTAL := TOTAL + (COST * QUANTITY );
I := I + 1;
end loop;
return TOTAL;
end GET_PURCHASEORDER_VALUE;
ORA-30625 method dispatch on NULL SELF argument is disallowed

9.1.0.3 has limited XPATH support. Can you upgrade to 9.2.0.2?
Can you try extractValue instead of extract?

Similar Messages

  • ORA-21700 error using sys.xmlType in Oracle 9.2

    I'm working on an application which uses the XMLType column in some of its database tables. When we started, we were using Oracle 9.0.1, and this test code works (which emulates how we have to, in some occasions, populate the XMLType column).
    However, we installed Oracle 9.2.0.3 on the same machine and created database instances using this version of Oracle. We didn't upgrade the original 9.0.1 installation (which still exists side-by-side). When we run this code, we get the following exception...
    java.sql.SQLException: ORA-21700: object does not exist or is marked for delete
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:180)
    at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:208)
    at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:543)
    at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1451)
    at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteFetch(TTC7Protocol.java:862)
    at oracle.jdbc.driver.OracleStatement.executeNonQuery(OracleStatement.java:1846)
    at oracle.jdbc.driver.OracleStatement.doExecuteOther(OracleStatement.java:1771)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2361)
    at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:422)
    at com.edh.oracle.TransactionTester.testClob(TransactionTester.java:134)
    at com.edh.oracle.TransactionTester.main(TransactionTester.java:251)
    This exception occurs after we've written the data to a Clob and are attempting to call createXML to update the column.
    Is there anything additional I need to do to get this working in Oracle 9.2 again? Thanks.
    Code is:
    * TransactionTester.java
    * Created on 11 October 2002, 14:08
    package com.edh.oracle;
    import java.sql.Connection;
    import java.sql.DriverManager;
    import java.sql.SQLException;
    import java.sql.Statement;
    import java.sql.PreparedStatement;
    import java.sql.ResultSet;
    * @author ehillman
    public class TransactionTester {
    private static String ORACLE_URL = "jdbc:oracle:thin:@wallaby:7012:CT2";
    /** Creates a new instance of TransactionTester */
    public TransactionTester() throws SQLException {
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    private void createTables(Connection conn) throws SQLException {
    String createText = "create table SillyData (XML_VALUE XMLTYPE, XML_STORAGE CLOB)";
    Statement stmt = conn.createStatement();
    stmt.execute(createText);
    System.out.println("Tables created");
    private void dropTables(Connection conn) throws SQLException {
    String dropText = "drop table SillyData ";
    Statement stmt = conn.createStatement();
    stmt.execute(dropText);
    System.out.println("Tables dropped");
    private void testClob() throws SQLException, java.io.FileNotFoundException,
    java.io.IOException {
    System.out.println("testClob - START");
    Connection conn = DriverManager.getConnection(ORACLE_URL,
    "ehillman", "ehillman");
    System.out.println("connection received");
    createTables(conn);
    try {
    System.out.println("Loading MyFn.xml");
    java.io.FileReader inputReader = new java.io.FileReader(
    "C:\\Documents and Settings\\ehillman\\.netbeans\\edh test\\oracle jdbc\\com\\edh\\oracle\\MyFn.xml");
    conn.setAutoCommit(false);
    Statement stmt2 = conn.createStatement();
    stmt2.execute("insert into SillyData (XML_STORAGE) values (EMPTY_CLOB())");
    System.out.println("empty row inserted");
    stmt2 = conn.createStatement();
    ResultSet rs = stmt2.executeQuery("select XML_STORAGE from SillyData for update");
    System.out.println("Empty CLOB retireved");
    rs.next();
    java.sql.Clob clobValue = rs.getClob(1);
    oracle.sql.CLOB oraClob = (oracle.sql.CLOB) clobValue;
    System.out.println("casted");
    java.io.Writer writer = oraClob.getCharacterOutputStream();
    char[] buffer = new char[ oraClob.getChunkSize() ];
    for (int charsRead = inputReader.read(buffer); charsRead > -1; charsRead = inputReader.read(buffer)) {
    writer.write(buffer, 0, charsRead);
    writer.close();
    System.out.println("data written to Clob");
    PreparedStatement pState = conn.prepareStatement(
    "update SillyData set XML_VALUE = sys.XMLType.createXML(?)");
    pState.setClob(1, clobValue);
    int result = pState.executeUpdate();
    System.out.println("executeQuery returned " + result);
    } finally {
    dropTables(conn);
    conn.close();
    System.out.println("connection closed");
    System.out.println("testClob - END");
    * @param args the command line arguments
    public static void main(String[] args) {
    try {
    TransactionTester tst = new TransactionTester();
    tst.testClob();
    } catch (Exception ex) {
    ex.printStackTrace();

    I've found this....
    http://download-west.oracle.com/docs/cd/B10501_01/appdev.920/a96620/xdb05obj.htm#1032058
    Does this mean that, for a table to use an XMLType column, it has to have a single schema definition for every row in the table?
    This won't fit for what we're doing.... that is, our table stores XML data for each row, but they are all different types of XML... they don't have the same structure,they don't use the same schema.
    Please let me know if I'm missing something

  • Ora-30625/xmltype

    Hi!
    I got this error; ORA-30625: method dispatch on NULL SELF argument is disallowed,
    when I tried to do next:
    declare
    xml_lukio xmltype;     
    s1_k1 varchar2(60);
    select v.lukio_doc into xml_lukio
    from vp_lukiopohja v
    where koulutus=1;
    s1_k1:=xml_lukio.extract('/valintapisteytys/arvosanat/sarake1/kentta1/text()').getstringval();
    And this is what lukio_doc includes:
    <valintapisteytys xmlns="http://vp_skeemat/vp_skeema.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://vp_skeemat/vp_skeema.xsd
    http://vp_skeemat/vp_skeema.xsd">
    <arvosanat>
    <sarake1>
    <kentta1>Yo-todistus</kentta1>
    <kentta2>Lukion päättötodistus</kentta2>
    <kentta3>Lukion päättötodistuksen keskiarvo</kentta3>
    </sarake1>
    </arvosanat>
    </valintapisteytys>
    This worked earlier, when it did not include xml schema.
    So what's wrong?

    s1_k1:=xml_lukio.extract('/valintapisteytys/arvosanat/sarake1/kentta1/text()').getstringval();
    1. extract returns an XMLType. You are then invoking getStringVal on the XMLType returned by extract. If extract returns null you will get the error you are reported.
    2. Your Schema uses a lot of namespaces.
    <valintapisteytys xmlns="http://vp_skeemat/vp_skeema.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://vp_skeemat/vp_skeema.xsd
    http://vp_skeemat/vp_skeema.xsd">
    You need to pass these namespaces as a third argument to extract...
    s1_k1:=xml_lukio.extract
    ('/valintapisteytys/arvosanat/sarake1/kentta1/text()',xmlns="http://vp_skeemat/vp_skeema.xsd"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://vp_skeemat/vp_skeema.xsd
    http://vp_skeemat/vp_skeema.xsd"').getstringval();

  • Ctxsys.context index creation :ORA-01031: insufficient privileges on sys.XMLType

    Hi,
    in the following enviroment:
    Oracle9i Enterprise Edition Release 9.0.1.1.1 - Production
    With the Partitioning option
    JServer Release 9.0.1.1.1 - Production
    On an MS 2K box
    I experience the following problem:
    if I create a table
    create table test(c type);
    where type is varchar2 o clob I then succesfully issue this
    command:
    create index test_ctx on test(c) indextype is ctxsys.context;
    but if type is sys.XMLType I get :
    ORA-01031: insufficient privileges.
    Any suggestion
    Thanks
    Alex

    Under user sys as sysdba the following happens:
    SQL> create table test(c XMLType);
    Table created.
    SQL> create index test_ctx on test(c) indextype is
    ctxsys.context;
    create index test_ctx on test(c) indextype is ctxsys.context
    ERROR at line 1:
    ORA-29855: error occurred in the execution of ODCIINDEXCREATE
    routine
    ORA-20000: Oracle Text error:
    DRG-50857: oracle error in drixtab.create_index_tables
    ORA-00955: name is already used by an existing object
    ORA-06512: at "CTXSYS.DRUE", line 157
    ORA-06512: at "CTXSYS.TEXTINDEXMETHODS", line 176

  • Want to insert a XSL file's data into a column of type SYS.XMLTYPE??

    Hello Friends
    I want to insert a XSL file's data into a column of a table of type SYS.XMLTYPE. Following is the XSL which i want to add into a table please help in.....
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <xsl:stylesheet version="1.0"
         xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
         xmlns:fn="http://www.w3.org/2005/xpath-functions">
         <xsl:output method="html" encoding="UTF-8" />
         <xsl:template match="clinical_study">
         <xsl:variable name="status">
              <xsl:apply-templates select='overall_status' />
         </xsl:variable>
    <html>
    <head>
    <title>Summary</title>
    <link href="merckcancer.css" rel="stylesheet" type="text/css" />
    </head>
    <body>
         <div id="trialtop" class="trialtop">
              <div id="trialtophead" class="trialtophead">
                   <H1>Summary</H1>
              </div>
    <!-- start of trial body-->
         <div id="trialmiddle" class="trialmiddle">
                             <span class="trialtitle1"><xsl:apply-templates select='brief_title'/></span>
                   <span class="tealbold">Official Title: </span><xsl:apply-templates select='official_title' />
                   <span class="tealbold" title="ClinicalTrials.gov Identifier">NCT Id: </span><xsl:apply-templates select='//nct_id'/>
    <span class="tealbold">Conditions: </span><xsl:for-each select="//condition[position()!=last()]"><xsl:value-of select="normalize-space(.)" /><xsl:text>, </xsl:text></xsl:for-each>
    <xsl:for-each select="//condition[position()=last()]"><xsl:value-of select="normalize-space(.)" /></xsl:for-each>
    <span class="tealbold">Phase: </span><xsl:apply-templates select='phase' />
    <span class="tealbold">Status: </span><xsl:value-of select="$status" />
    <span class="tealbold">Interventions: </span><xsl:for-each select="//intervention[position()!=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /><xsl:text>, </xsl:text></xsl:for-each><xsl:for-each select="//intervention[position()=last()]"><xsl:value-of select="normalize-space(intervention_type)" />: <xsl:value-of select="normalize-space(intervention_name)" /></xsl:for-each>
    <xsl:apply-templates select='eligibility'><xsl:with-param name="type">short</xsl:with-param></xsl:apply-templates>
    </div><!-- end of middle -->
    </div><!-- end of top-->                         
    <div id="detail" class="detail">
         <div id="detailtophead" class="detailtophead">
              <H1>Details</H1>
         </div>
    <!-- end of detailtop-->
    <!-- start of detail body-->
    <div id="detailmiddle" class="detailmiddle">
    <span class="trialtitle2">Trial Description:</span>
         <span class="trialtitle4"><xsl:apply-templates select='brief_summary/textblock' /></span>
         <span class="trialtitle1">Eligibility: </span>
              <xsl:apply-templates select='eligibility'><xsl:with-param name="type">long</xsl:with-param></xsl:apply-templates>
    </div><!--end of detail middle-->
    </div><!-- end of detail top-->
    <div id="enroll" class="enroll">
    <div id="enrolltophead" class="enrolltophead">
    <H1>Enrollment</H1>
    </div>
    <!-- end of enroll top head-->
    <!-- start of enroll body-->
    <div id="enrollmiddle" class="enrollmiddle">
    <xsl:choose>
                                       <xsl:when test="$status = 'Recruiting'">
         This study has participating centers in a number of locations.
         To take the next step in learning more about participating in this clinical study please call one of these trial contacts.<p/>
         The trial contacts will know this study as <span class="tealbold"><xsl:apply-templates select='//org_study_id'/></span>
         or may know the study under the ClinicalTrials.gov identifier <span class="tealbold"><xsl:apply-templates select='//nct_id'/></span>.<p/>
         <p/>
                                       <xsl:apply-templates select='overall_contact'/>
                                       <xsl:for-each select="location">
                                            <xsl:call-template name='location'/><p/>
                                       </xsl:for-each>
                                       </xsl:when>
                                       <xsl:otherwise>
         This study is not currently Recruiting, it is <xsl:value-of select="$status" />.
                                       </xsl:otherwise>
                                       </xsl:choose>
    </div><!--end of enroll middle-->
    </div><!-- end of enroll -->
    <div id="credit" class="credit">
    <div id="credittophead" class="credittophead">
    <H1>Credits</H1>
    </div>
    <!-- end of credit top head-->
    <!-- start of credit body-->
    <div id="creditmiddle" class="creditmiddle">
                                  Information about this trial has been gathered from ClinicalTrials.gov. Please see
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=http://ClinicalTrials.gov
                                       </xsl:attribute>
                                       ClinicalTrials.gov
                                  </a> for more complete information.<p/>
                                  <xsl:apply-templates select='required_header/download_date'/><p/>
                                  <a>
                                       <xsl:attribute name="href" >
                                            /ctcpub/redirect.jsp?redirectURL=<xsl:apply-templates select='required_header/url'/>
                                       </xsl:attribute>
                                       <xsl:apply-templates select='required_header/link_text'/>
                                  </a> <p/>
                                  This trial data was last updated on <xsl:apply-templates select='//lastchanged_date'/><p/>
    </div><!--end of credit body-->
    </div><!--end of credit-->
    </body>
    </html>
    </xsl:template>
    <xsl:template match="brief_title">
              <span class="trialtitle"><xsl:value-of select="normalize-space(.)" /></span>
         </xsl:template>
         <xsl:template match="official_title">
              <span class="tealbold">Official Title: </span>     <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="phase">
              <span class="tealbold">Phase: </span> <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="overall_status">
              <xsl:value-of select="normalize-space(.)" />
         </xsl:template>
         <xsl:template match="eligibility">
              <xsl:param name="type" />
              <xsl:choose>
                   <xsl:when test="$type = 'short'">
                        <span class="tealbold">Eligibility: </span> <xsl:call-template name="ages">
                             <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                             <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                        </xsl:call-template>, <xsl:apply-templates select='gender' />
                   </xsl:when>
                   <xsl:when test="$type = 'long'">
                        <span class="trialtitle">Eligibility: </span>
                             <span class="tealbold">Age: </span> <xsl:call-template name="ages">
                                       <xsl:with-param name="min"><xsl:value-of select="normalize-space(minimum_age)" /></xsl:with-param>
                                       <xsl:with-param name="max"><xsl:value-of select="normalize-space(maximum_age)" /></xsl:with-param>
                                  </xsl:call-template>
                             <span class="tealbold">Genders Eligible for Study: </span> <xsl:apply-templates select='gender' />
                             <xsl:text>
                             </xsl:text>
                             <span class="tealbold">Eligibility Criteria: </span>
    <xsl:apply-templates select='criteria/textblock' />
                   </xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="gender">
              <xsl:choose>
                   <xsl:when test=". = 'Both'">Male or Female</xsl:when>
                   <xsl:otherwise>
                        <xsl:value-of select="normalize-space(.)" />
                   </xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="overall_contact">
         <span class="trialtitle">Central Contact: </span>
              <xsl:apply-templates select='./first_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./middle_name' /><xsl:text> </xsl:text>
              <xsl:apply-templates select='./last_name' />
              <xsl:apply-templates select='./phone' />
              <xsl:apply-templates select='./email' />
         </xsl:template>
         <xsl:template name="ages">
              <xsl:param name="min" />
              <xsl:param name="max" />
              <xsl:choose>
                   <xsl:when test="($min != '') and ($max != '')">Between <xsl:value-of select="$min" /> and <xsl:value-of select="$max" /></xsl:when>
                   <xsl:when test="($min != '') and ($max = '')"><xsl:value-of select="$min" /> and Above</xsl:when>
                   <xsl:when test="($min = '') and ($max != '')">Under <xsl:value-of select="$max" /></xsl:when>
                   <xsl:otherwise></xsl:otherwise>
              </xsl:choose>
         </xsl:template>
         <xsl:template match="brief_summary/textblock">
              <span class="trialtitle">Trial Description: </span> <xsl:call-template name="substitute">
    <xsl:with-param name="string" select="." />
    </xsl:call-template>
         </xsl:template>
         <xsl:template name="location">
              <span class="trialtitle"><xsl:apply-templates select='.//country' /><xsl:apply-templates select='.//state' /></span>
              <xsl:apply-templates select='./facility/name' /><xsl:apply-templates select='.//city' /><xsl:apply-templates select='.//zip' /><xsl:apply-templates select='.//status' />
              <xsl:apply-templates select='./contact' />
         </xsl:template>
         <xsl:template match="contact">
              <span class="tealbold">Site Contact: </span>
              <xsl:apply-templates select='first_name' />
              <xsl:apply-templates select='middle_name' />
              <xsl:apply-templates select='last_name' />
              <xsl:apply-templates select='phone' />
              <xsl:apply-templates select='email' />
         </xsl:template>
         <xsl:template match="criteria/textblock">
              <xsl:call-template name="substitute">
         <xsl:with-param name="string" select="." />
         </xsl:call-template>     
    </xsl:template>     
         <xsl:template match="facility/name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="country"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="city">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="zip">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="state">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="status">, <xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="first_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="middle_name"><xsl:value-of select="normalize-space(.)" />&#160;</xsl:template>     
         <xsl:template match="last_name"><xsl:value-of select="normalize-space(.)" /></xsl:template>     
         <xsl:template match="phone">Phone: <xsl:value-of select="normalize-space(.)" />
    </xsl:template>     
         <xsl:template match="email"><xsl:if test='. != ""'>EMail: <xsl:value-of select="normalize-space(.)" />
    </xsl:if></xsl:template>     
    <xsl:template name="substitute">
    <xsl:param name="string" />
    <xsl:param name="from" select="'&#xA;'" />
    <xsl:param name="to">
    </xsl:param>
    <xsl:choose>
    <xsl:when test="contains($string, $from)">
    <xsl:value-of select="substring-before($string, $from)" />
    <xsl:copy-of select="$to" />
    <xsl:call-template name="substitute">
    <xsl:with-param name="string"
    select="substring-after($string, $from)" />
    <xsl:with-param name="from" select="$from" />
    <xsl:with-param name="to" select="$to" />
    </xsl:call-template>
    </xsl:when>
    <xsl:otherwise>
    <xsl:value-of select="$string" />
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Please do as early as possible..
    thanks in advance

    Hi I tried with below querry but iam getting an error message?
    SQL> Insert into temp_clob_tab
    2 SELECT XMLELEMENT("soap:Envelope",
    3 XMLATTRIBUTES ('http://www.w3.org/2001/XMLSchema-instance' as "xmlns:xsi",
    4 'http://www.w3.org/2001/XMLSchema' as "xmlns:xsd",
    5 'http://schemas.xmlsoap.org/soap/envelope/' as "xmlns:soap"),
    6 XMLELEMENT("soap:Body"),XMLELEMENT("AddListing",
    7 XMLATTRIBUTES ('http://www.christielites.com' as "xmlns" )),
    8 XMLELEMENT ( "SCOMCODE",a.SCOMCODE), XMLELEMENT ( "SLOCCODE",SLOCCODE),
    9 XMLELEMENT ( "DSTART",DSTART),XMLELEMENT ( "DEND",DEND),XMLELEMENT ( "SECODE",SECODE),
    10 XMLELEMENT ( "IAVAIL",IAVAIL),XMLELEMENT ("IOWNED",IOWNED),XMLELEMENT ("SPOSTTRANS",SPOSTTRANS))
    11 from LiteExchangeAvailablity a;
    SELECT XMLELEMENT("soap:Envelope",
    ERROR at line 2:
    ORA-00932: inconsistent datatypes: expected CLOB got -

  • Importing XML data into sys.XMLType  - encoding problem

    Hi,
    I'm using "modplsql Gateway" to upload XML file with encoding "windows-1250" with some regional characters in database table.
    The table definition:
    CREATE TABLE NAHRAJ_DATA (
    NAME VARCHAR(128) UNIQUE NOT NULL,
    MIME_TYPE VARCHAR(128),
    DOC_SIZE NUMBER,
    DAD_CHARSET VARCHAR(128),
    LAST_UPDATED DATE,
    CONTENT_TYPE VARCHAR(128),
    CONTENT LONG RAW,
    BLOB_CONTENT BLOB
    The file was uploaded correct.
    My database have
    NLS_CHARACTERSET EE8MSWIN1250
    NLS_NCHAR_CHARACTERSET AL16UTF16
    After upload, I convert data from hex(blob) to dec and with function chr() to char. BLOB -> CLOB.
    Next I create sys.XMLType from CLOB. With this progression works all in order.
    In other system where are
    NLS_CHARACTERSET AL32UTF8
    NLS_NCHAR_CHARACTERSET AL16UTF16
    BLOB_CONTENT column(table NAHRAJ_DATA) starts with "FF FE FF FE" in HEX before my XML data. Exactly convert is OK, bud if I can create sys.XMLType I get this
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2 Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    I haven't any idea what's wrong.
    Whats mean the HEX code in BLOB_CONTENT column after upload?
    Thangs
    Lukas

    Please post your question in XMLDB forum

  • Importing XML data into sys.XMLType

    Hi,
    I'm using "modplsql Gateway" to upload XML file with encoding "windows-1250" with some regional characters in database table.
    The table definition:
    CREATE TABLE NAHRAJ_DATA (
    NAME VARCHAR(128) UNIQUE NOT NULL,
    MIME_TYPE VARCHAR(128),
    DOC_SIZE NUMBER,
    DAD_CHARSET VARCHAR(128),
    LAST_UPDATED DATE,
    CONTENT_TYPE VARCHAR(128),
    CONTENT LONG RAW,
    BLOB_CONTENT BLOB
    The file was uploaded correct.
    My database have
    NLS_CHARACTERSET EE8MSWIN1250
    NLS_NCHAR_CHARACTERSET AL16UTF16
    After upload, I convert data from hex(blob) to dec and with function chr() to char. BLOB -> CLOB.
    Next I create sys.XMLType from CLOB. With this progression works all in order.
    In other system where are
    NLS_CHARACTERSET AL32UTF8
    NLS_NCHAR_CHARACTERSET AL16UTF16
    BLOB_CONTENT column(table NAHRAJ_DATA) starts with "FF FE FF FE" in HEX before my XML data. Exactly convert is OK, bud if I can create sys.XMLType I get this
    ORA-31011: XML parsing failed ORA-19202: Error occurred in XML processing
    LPX-00200: could not convert from encoding UTF-8 to UCS2 Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 0
    ORA-06512: at line 1
    I haven't any idea what's wrong.
    Whats mean the HEX code in BLOB_CONTENT column after upload?
    Thangs
    Lukas

    Please post your question in XMLDB forum

  • ORA-30625 error

    I am trying to run a procedure in a package and I keep getting this error
    ERROR at line 1:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "IXSEMF01.EMF_INTERFACE_PKG", line 7
    Here is my package body:
    PACKAGE BODY EMF_INTERFACE_PKG
    IS
    PROCEDURE EMF_LOG_XML_PROC (wefXmlData IN XMLType)
    IS
    eventId VARCHAR(1024);
    BEGIN
    eventId := wefXmlData.extract('//ManagementEvent/text()').getStringVal();
    INSERT INTO IXSEMF01.EVENT_STORE(EVENT_ID, EVENT_XML)
    VALUES (eventId, wefXmlData);
    END EMF_LOG_XML_PROC;
    END EMF_INTERFACE_PKG;
    This is what I am calling:
    call EMF_INTERFACE_PKG.EMF_LOG_XML_PROC(XMLType('<ManagementEvent xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" ReportTime="2007-12-04T10:34:00.000-05:00" xmlns="http://docs.oasis-open.org/wsdm/muws1-2.xsd">
    <muws1:EventId>wef://SOASuite/BPEL?eventId=12345</muws1:EventId>
    <muws1:SourceComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:SourceComponent>
    <muws1:ReporterComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:ReporterComponent>
    <muws2:Situation xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd">
    <muws2:SituationCategory>
    <muws2:CreateSituation/>
    </muws2:SituationCategory>
    <muws2:SuccessDisposition>Successful</muws2:SuccessDisposition>
    <muws2:Priority>1</muws2:Priority>
    <muws2:Severity>1</muws2:Severity>
    <muws2:Message>Tihs is a test message</muws2:Message>
    <muws2:SubstitutableMsg MsgId="T1" MsgIdType="wef://SOASuite/BPEL/log"/>
    </muws2:Situation>
    <alticor:ExtendedData xmlns:alticor="http://www.alticor.com/extensions" profile="PurchaseOrderKey"/>
    </ManagementEvent>'))
    Message was edited by:
    IT Intern

    Does the following return the error when setting l_data or making the call to your procedure?
    declare
      l_data    XMLTYPE;
    begin
      l_data := XMLType('<ManagementEvent xmlns:muws1="http://docs.oasis-open.org/wsdm/muws1-2.xsd" ReportTime="2007-12-04T10:34:00.000-05:00" xmlns="http://docs.oasis-open.org/wsdm/muws1-2.xsd">
    <muws1:EventId>wef://SOASuite/BPEL?eventId=12345</muws1:EventId>
    <muws1:SourceComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:SourceComponent>
    <muws1:ReporterComponent>
    <muws1:ResourceId>wef://SOASuite/sandbox/BPEL/emf/raiseEventBPEL?instanceId=123456</muws1:ResourceId>
    <muws1:ComponentAddress>
    <alticor:ManagementURL xmlns:alticor="http://www.alticor.com/extensions">http://lnax30f:8888/BPELConsole</alticor:ManagementURL>
    </muws1:ComponentAddress>
    </muws1:ReporterComponent>
    <muws2:Situation xmlns:muws2="http://docs.oasis-open.org/wsdm/muws2-2.xsd">
    <muws2:SituationCategory>
    <muws2:CreateSituation/>
    </muws2:SituationCategory>
    <muws2:SuccessDisposition>Successful</muws2:SuccessDisposition>
    <muws2:Priority>1</muws2:Priority>
    <muws2:Severity>1</muws2:Severity>
    <muws2:Message>Tihs is a test message</muws2:Message>
    <muws2:SubstitutableMsg MsgId="T1" MsgIdType="wef://SOASuite/BPEL/log"/>
    </muws2:Situation>
    <alticor:ExtendedData xmlns:alticor="http://www.alticor.com/extensions" profile="PurchaseOrderKey"/>
    </ManagementEvent>');
       EMF_INTERFACE_PKG.EMF_LOG_XML_PROC(l_data);
    end;

  • Web Service help - ORA-30625: method dispatch on NULL SELF errors

    Hi All
    I could do with some assistance getting Web service's up & running on my application
    I've been following this guide but altering to fit in with our internal web services... the Internet police here at work have youtube blocked off so unable to test end to end using the OTN tutorial
    I've created a web service named PASSWORDGEN with the results stored in the collection PASSWORDRESULT
    On my page I've created the process that invokes the webservice PASSWORDGEN which is set to run on load - before header - seq #10
    then created the pl/sql anonymous block process which is set to run on load - before header - seq #20
    I've used the pl/sql example given in the tutorial but substituted their references to collections with my named collection .
    declare
    l_clob clob;
    l_xml xmltype;
    l_val clob;
    begin
    for c1 in (select clob001
    from apex_collections
    where collection_name = 'PASSWORDRESULT'
    ) loop
    l_clob := c1.clob001;
    exit;
    end loop;
    l_xml := xmltype.createxml(l_clob);
    l_val := dbms_xmlgen.convert(l_xml.extract('/methodResponse/params/param/value/string/text()').getclobval(),1);
    apex_collection.update_member_attribute(
    p_collection_name => 'PASSWORDRESULT',
    p_seq => '1',
    p_clob_number => '1',
    p_clob_value => l_val );
    end;
    if I try to run the page at this point I get the error ORA-30625: method dispatch on NULL SELF argument is disallowed
    what I think is happening, from what I've read up on, is that the collection is empty?
    so I'm trying to find out if the web service is not populating the collection correctly or have I made a mistake in the above syntax & trying to reference the collection incorrectly.
    Is there a way I can query the collection using TOAD?
    Edited by: Mr JD on 21-Jul-2010 08:38

    ok so found the collection but when I invoke the web service the collection record is not populated. I've tested the webservice & a result is returned but for some reason when I either run the test or run the page which invokes the web service as a page render process the collection is still not populated.....
    what I'm I missing here as the setup of the web service is pretty straight forward & testing the web service does produce a result within the test window

  • Sys.XMLType.createxml  unable to insert in 9i through sqlplus

    I am trying to insert xmltype (sys.XMLType.createxml()) data through sqlplus in oracle.
    i am getting error as literal string too long.
    setting long as 1000000
    i am able to read and display the contents.
    But still NOT able to INSERT. The data is around 47784 charaters.
    any clues or any useful links.
    the query that i am using
    insert into sometable values("",sys.XMLType.createxml('string of around 48000 chars'));
    error that i recieve
    ORA-01704: string literal too long

    I am trying to insert xmltype (sys.XMLType.createxml()) data through sqlplus in oracle.
    i am getting error as literal string too long.
    setting long as 1000000
    i am able to read and display the contents.
    But still NOT able to INSERT. The data is around 47784 charaters.
    any clues or any useful links.
    the query that i am using
    insert into sometable values("",sys.XMLType.createxml('string of around 48000 chars'));
    error that i recieve
    ORA-01704: string literal too long

  • Sys.XMLType.createxml unable to insert through sqlplus

    I am trying to insert xmltype (sys.XMLType.createxml()) data through sqlplus in oracle.
    i am getting error as literal string too long.
    setting long as 1000000
    i am able to read and display the contents.
    But still NOT able to INSERT. The data is around 47784 charaters.
    any clues or any useful links.
    the query that i am using
    insert into sometable values("",sys.XMLType.createxml('string of around 48000 chars'));
    error that i recieve
    ORA-01704: string literal too long

    Actually the limit is approx 32K bytes for a SQL*PLUS literal...
    If your XML is schema based 9iR2 allows you to upload the XML direct to the database and store in tables you define using FTP or WebDAV.
    If the content is not schema based and you can ftp the file to the local file system of the machine running the server you can do something like this using the bfile mechanism.
    Note this is a 9iR2 example, that takes care of converting the character set of the file into the character set of the database...
    set echo on
    create or replace function getContent(file bfile,
                              charset varchar2 default 'WE8MSWIN1252'
    return CLOB deterministic
    is
      charContent     CLOB;
      targetFile      bfile;
      dest_offset     number :=  1;
      src_offset      number := 1;
      lang_context    number := 0;
      conv_warning    number := 0;
      begin
        targetFile := file;
        DBMS_LOB.createTemporary(charContent,true,DBMS_LOB.SESSION);
        DBMS_LOB.fileopen(targetFile, DBMS_LOB.file_readonly);
        DBMS_LOB.loadClobfromFile
           charContent,
           targetFile,
           DBMS_LOB.getLength(targetFile),
           dest_offset,
           src_offset,
           nls_charset_id(charset),
           lang_context,
           conv_warning
        DBMS_LOB.fileclose(targetFile);
        return charContent;
    end;
    show errors
    create or replace function getFileContent(file bfile,
                               charset varchar2 default 'WE8MSWIN1252'
    return CLOB deterministic
    is
    begin
        return getContent(file,charset);
    end;
    show errors
    create or replace function getDocument(filename varchar2,
                               charset varchar2 default 'WE8MSWIN1252'
    return CLOB deterministic
    is
       file            bfile := bfilename('DIR',filename);
    begin
      return getFileContent(file,charset);
    end;
    show errors
    create or replace function getXML(filename varchar2,
                          charset varchar2 default 'WE8MSWIN1252'
    return XMLTYPE deterministic
    is
      DOC clob;
      XML xmltype;
    begin
      DOC := getDocument(filename,charset);
      XML := xmltype(DOC);
      dbms_lob.freeTemporary(DOC);
      return XML;
    end;
    show errors
    drop directory DIR
    create directory DIR as '/tmp/xmlDir'
    commit
    insert into some table values ("",getXML('Filename.xml'));The above example assumes that the file in the directory '/tmp/xmlDir';

  • ORA-01704 inserting xmltype.

    HI.
    How can I do to make this insert works? I am getting Error SQL: ORA-01704: literal de cadena demasiado largo
    01704. 00000 -  "string literal too long"
    *Cause:    The string literal is longer than 4000 characters.
    *Action:   Use a string literal of at most 4000 characters.
               Longer values may only be entered using bind variables.
    Insert into BF_MOTORPAGOS.BF_MTP_FRA_TEMPLATEBODY (FTB_TEMPLATEBODYID,FTB_TEMPLATEREFID,FTB_TYPEFORMATID,FTB_TYPESTRUCTUREID,FTB_STRUCTUREBODY,FTB_STRUCTUREBODYXML,FTB_STATE) values ('4','2','2','7',sys.xmltype('<?xml version="1.0" encoding="ISO-8859-15"?>
    <root>
      <mapping name="estructura de encabezados" lineainicio="01" lote="05" transaccion="06" lotefin="08" lineafinal="09" nit="NitEmpresaPrincipal" identificador="NumIdCliente" fecha="fechacreacion" AGREEMENT="83" TEMPLATEREFERENCE="2" TYPEFORMAT="2"/>
      <code value="01" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="NitEmpresaPrincipal" inicio="3" fin="12" longitud="10" type="integer" requerido="1"/>
        <item name="NitEmpresaAdicional" inicio="13" fin="22" longitud="10" type="integer" requerido="0"/>
        <item name="CodEntidadFinancieraOrigen" inicio="23" fin="25" longitud="3" type="string" requerido="0"/>
        <item name="fechacreacion" inicio="26" fin="33" longitud="8" type="date" requerido="1"/>
        <item name="horagrabacion" inicio="34" fin="37" longitud="4" type="string" requerido="1"/>
        <item name="ModificadorArchivo" inicio="38" fin="38" longitud="1" type="string" requerido="1"/>
        <item name="reservado" inicio="39" fin="220" longitud="182" type="string" requerido="0"/>
      </code>
      <code value="05" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="CodServicio" inicio="3" fin="15" longitud="13" type="integer" requerido="1"/>
        <item name="NumLote" inicio="16" fin="19" longitud="4" type="integer" requerido="1"/>
        <item name="DescripcionServicio" inicio="20" fin="34" longitud="15" type="string" requerido="1"/>
        <item name="reservado" inicio="35" fin="220" longitud="186" type="string" requerido="0"/>
      </code>
      <code value="06" longitud="220" interrumpe="0">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="RefUsuario" inicio="3" fin="50" longitud="48" type="integer" requerido="1"/>
        <item name="RefSecUsuario" inicio="51" fin="80" longitud="30" type="string" requerido="0"/>
        <item name="PeriodosFacturados" inicio="81" fin="82" longitud="2" type="integer" requerido="0"/>
        <item name="Ciclo" inicio="83" fin="85" longitud="3" type="string" requerido="0"/>
        <item name="ValorServicioPrincipal" inicio="86" fin="99" longitud="14" type="integer" requerido="1"/>
        <item name="CodServFactAd" inicio="100" fin="112" longitud="13" type="string" requerido="0"/>
        <item name="VlrServAd" inicio="113" fin="126" longitud="14" type="decimal" requerido="0"/>
        <item name="fechaven" inicio="127" fin="134" longitud="8" type="date" requerido="1"/>
        <item name="idefr" inicio="135" fin="142" longitud="8" type="integer" requerido="0"/>
        <item name="NumCtaClienteReceptor" inicio="143" fin="159" longitud="17" type="string" requerido="1"/>
        <item name="TipoCtaClienteReceptor" inicio="160" fin="161" longitud="2" type="integer" requerido="0"/>
        <item name="NumIdCliente" inicio="162" fin="171" longitud="10" type="string" requerido="0"/>
        <item name="NomClteReceptor" inicio="172" fin="193" longitud="22" type="string" requerido="0"/>
        <item name="CodEntidadFinancieraOrigen" inicio="194" fin="196" longitud="3" type="integer" requerido="0"/>
        <item name="reservado" inicio="197" fin="220" longitud="24" type="string" requerido="0"/>
      </code>
      <code value="08" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="TotalRegLote" inicio="3" fin="11" longitud="9" type="integer" requerido="1"/>
        <item name="ValorServicioPrincipal" inicio="12" fin="29" longitud="18" type="decimal" requerido="1"/>
        <item name="ValorServicioAdicional" inicio="30" fin="47" longitud="18" type="decimal" requerido="0"/>
        <item name="NLote" inicio="48" fin="51" longitud="4" type="integer" requerido="1"/>
        <item name="reservado" inicio="52" fin="220" longitud="169" type="string" requerido="0"/>
      </code>
      <code value="09" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="TotalRegDetalle" inicio="3" fin="11" longitud="9" type="integer" requerido="1"/>
        <item name="TotalValorServicioPrincipal" inicio="12" fin="29" longitud="18" type="decimal" requerido="1"/>
        <item name="TotalValorServicioAdicional" inicio="30" fin="47" longitud="18" type="decimal" requerido="0"/>
        <item name="reservado" inicio="48" fin="220" longitud="173" type="string" requerido="0"/>
      </code>
    </root>')
        ,sys.xmltype('<?xml version="1.0" encoding="ISO-8859-15"?>
    <root>
      <mapping name="estructura de encabezados" lineainicio="01" lote="05" transaccion="06" lotefin="08" lineafinal="09" nit="NitEmpresaPrincipal" identificador="NumIdCliente" fecha="fechacreacion" AGREEMENT="2" TEMPLATEREFERENCE="2" TYPEFORMAT="2"/>
      <code value="01" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="NitEmpresaPrincipal" inicio="3" fin="12" longitud="10" type="integer" requerido="1"/>
        <item name="NitEmpresaAdicional" inicio="13" fin="22" longitud="10" type="integer" requerido="0"/>
        <item name="CodEntidadFinancieraOrigen" inicio="23" fin="25" longitud="3" type="string" requerido="0"/>
        <item name="fechacreacion" inicio="26" fin="33" longitud="8" type="date" requerido="1"/>
        <item name="horagrabacion" inicio="34" fin="37" longitud="4" type="string" requerido="1"/>
        <item name="ModificadorArchivo" inicio="38" fin="38" longitud="1" type="string" requerido="1"/>
        <item name="reservado" inicio="39" fin="220" longitud="182" type="string" requerido="0"/>
      </code>
      <code value="05" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="CodServicio" inicio="3" fin="15" longitud="13" type="integer" requerido="1"/>
        <item name="NumLote" inicio="16" fin="19" longitud="4" type="integer" requerido="1"/>
        <item name="DescripcionServicio" inicio="20" fin="34" longitud="15" type="string" requerido="1"/>
        <item name="reservado" inicio="35" fin="220" longitud="186" type="string" requerido="0"/>
      </code>
      <code value="06" longitud="220" interrumpe="0">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="RefUsuario" inicio="3" fin="50" longitud="48" type="integer" requerido="1"/>
        <item name="RefSecUsuario" inicio="51" fin="80" longitud="30" type="string" requerido="0"/>
        <item name="PeriodosFacturados" inicio="81" fin="82" longitud="2" type="integer" requerido="0"/>
        <item name="Ciclo" inicio="83" fin="85" longitud="3" type="string" requerido="0"/>
        <item name="ValorServicioPrincipal" inicio="86" fin="99" longitud="14" type="integer" requerido="1"/>
        <item name="CodServFactAd" inicio="100" fin="112" longitud="13" type="string" requerido="0"/>
        <item name="VlrServAd" inicio="113" fin="126" longitud="14" type="decimal" requerido="0"/>
        <item name="fechaven" inicio="127" fin="134" longitud="8" type="date" requerido="1"/>
        <item name="idefr" inicio="135" fin="142" longitud="8" type="integer" requerido="0"/>
        <item name="NumCtaClienteReceptor" inicio="143" fin="159" longitud="17" type="string" requerido="1"/>
        <item name="TipoCtaClienteReceptor" inicio="160" fin="161" longitud="2" type="integer" requerido="0"/>
        <item name="NumIdCliente" inicio="162" fin="171" longitud="10" type="string" requerido="0"/>
        <item name="NomClteReceptor" inicio="172" fin="193" longitud="22" type="string" requerido="0"/>
        <item name="CodEntidadFinancieraOrigen" inicio="194" fin="196" longitud="3" type="integer" requerido="0"/>
        <item name="reservado" inicio="197" fin="220" longitud="24" type="string" requerido="0"/>
      </code>
      <code value="08" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="TotalRegLote" inicio="3" fin="11" longitud="9" type="integer" requerido="1"/>
        <item name="ValorServicioPrincipal" inicio="12" fin="29" longitud="18" type="decimal" requerido="1"/>
        <item name="ValorServicioAdicional" inicio="30" fin="47" longitud="18" type="decimal" requerido="0"/>
        <item name="NLote" inicio="48" fin="51" longitud="4" type="integer" requerido="1"/>
        <item name="reservado" inicio="52" fin="220" longitud="169" type="string" requerido="0"/>
      </code>
      <code value="09" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="TotalRegDetalle" inicio="3" fin="11" longitud="9" type="integer" requerido="1"/>
        <item name="TotalValorServicioPrincipal" inicio="12" fin="29" longitud="18" type="decimal" requerido="1"/>
        <item name="TotalValorServicioAdicional" inicio="30" fin="47" longitud="18" type="decimal" requerido="0"/>
        <item name="reservado" inicio="48" fin="220" longitud="173" type="string" requerido="0"/>
      </code>
    </root>'),'1');

    You can either :
    1- enclose the INSERT statement in an anonymous PL/SQL block and use XMLType variables to pass XML content to the INSERT. You'll be able to use string literal up to 32767 bytes, it should be sufficient for this case.
    2- split the XML string into multiple CLOB chunks of max. 4000 bytes, e.g.
    xmltype(
    to_clob('<?xml version="1.0" encoding="ISO-8859-15"?>
    <root>
      <mapping name="estructura de encabezados" lineainicio="01" lote="05" transaccion="06" lotefin="08" lineafinal="09" nit="NitEmpresaPrincipal" identificador="NumIdCliente" fecha="fechacreacion" AGREEMENT="83" TEMPLATEREFERENCE="2" TYPEFORMAT="2"/>
      <code value="01" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="NitEmpresaPrincipal" inicio="3" fin="12" longitud="10" type="integer" requerido="1"/>
        <item name="NitEmpresaAdicional" inicio="13" fin="22" longitud="10" type="integer" requerido="0"/>
        <item name="CodEntidadFinancieraOrigen" inicio="23" fin="25" longitud="3" type="string" requerido="0"/>
        <item name="fechacreacion" inicio="26" fin="33" longitud="8" type="date" requerido="1"/>
        <item name="horagrabacion" inicio="34" fin="37" longitud="4" type="string" requerido="1"/>
        <item name="ModificadorArchivo" inicio="38" fin="38" longitud="1" type="string" requerido="1"/>
        <item name="reservado" inicio="39" fin="220" longitud="182" type="string" requerido="0"/>
      </code>
      <code value="05" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="CodServicio" inicio="3" fin="15" longitud="13" type="integer" requerido="1"/>
        <item name="NumLote" inicio="16" fin="19" longitud="4" type="integer" requerido="1"/>
        <item name="DescripcionServicio" inicio="20" fin="34" longitud="15" type="string" requerido="1"/>
        <item name="reservado" inicio="35" fin="220" longitud="186" type="string" requerido="0"/>
      </code>
      <code value="06" longitud="220" interrumpe="0">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="RefUsuario" inicio="3" fin="50" longitud="48" type="integer" requerido="1"/>
        <item name="RefSecUsuario" inicio="51" fin="80" longitud="30" type="string" requerido="0"/>
        <item name="PeriodosFacturados" inicio="81" fin="82" longitud="2" type="integer" requerido="0"/>
        <item name="Ciclo" inicio="83" fin="85" longitud="3" type="string" requerido="0"/>
        <item name="ValorServicioPrincipal" inicio="86" fin="99" longitud="14" type="integer" requerido="1"/>
        <item name="CodServFactAd" inicio="100" fin="112" longitud="13" type="string" requerido="0"/>
        <item name="VlrServAd" inicio="113" fin="126" longitud="14" type="decimal" requerido="0"/>
        <item name="fechaven" inicio="127" fin="134" longitud="8" type="date" requerido="1"/>
        <item name="idefr" inicio="135" fin="142" longitud="8" type="integer" requerido="0"/>
        <item name="NumCtaClienteReceptor" inicio="143" fin="159" longitud="17" type="string" requerido="1"/>
        <item name="TipoCtaClienteReceptor" inicio="160" fin="161" longitud="2" type="integer" requerido="0"/>
        <item name="NumIdCliente" inicio="162" fin="171" longitud="10" type="string" requerido="0"/>
        <item name="NomClteReceptor" inicio="172" fin="193" longitud="22" type="string" requerido="0"/>
        <item name="CodEntidadFinancieraOrigen" inicio="194" fin="196" longitud="3" type="integer" requerido="0"/>
        <item name="reservado" inicio="197" fin="220" longitud="24" type="string" requerido="0"/>
      </code>
      <code value="08" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="TotalRegLote" inicio="3" fin="11" longitud="9" type="integer" requerido="1"/>
        <item name="ValorServicioPrincipal" inicio="12" fin="29" longitud="18" type="decimal" requerido="1"/>
        <item name="ValorServicioAdicional" inicio="30" fin="47" longitud="18" type="decimal" requerido="0"/>
        <item name="NLote" inicio="48" fin="51" longitud="4" type="integer" requerido="1"/>
        <item name="reservado" inicio="52" fin="220" longitud="169" type="string" requerido="0"/>
      </code>') || to_clob('
      <code value="09" longitud="220" interrumpe="1">
        <item name="TipoRegistro" inicio="1" fin="2" longitud="2" type="string" requerido="1"/>
        <item name="TotalRegDetalle" inicio="3" fin="11" longitud="9" type="integer" requerido="1"/>
        <item name="TotalValorServicioPrincipal" inicio="12" fin="29" longitud="18" type="decimal" requerido="1"/>
        <item name="TotalValorServicioAdicional" inicio="30" fin="47" longitud="18" type="decimal" requerido="0"/>
        <item name="reservado" inicio="48" fin="220" longitud="173" type="string" requerido="0"/>
      </code>
    </root>')
    3- use external files :
    xmltype(bfilename('XML_DIR', 'FTB_STRUCTUREBODY.xml'), nls_charset_id('WE8ISO8859P15'))
    Option #3 would be my choice most of the time to insert large XML content.

  • ORA-30625: method dispatch on NULL SELF error

    Can Someone help me? I'm new to oracle. I'm writing a procedure to copy a file from my hard drive to oracle. I am getting an error: ORA-30625: method dispatch on NULL SELF argument is disallowed. So I just broke the code down to this little piece. I still get the same error. I created a directory called INPUT_FILE and the file test.jpg is in that directory. What am I missing?
    1 Declare
    2 imag ordsys.ordimage;
    3 ctx raw(4000) :=null;
    4 BEGIN
    5 imag.setsource('FILE' , 'INPUT_FILE', 'test.jpg');
    6 imag.import(ctx);
    7* end;
    SQL> /
    Declare
    ERROR at line 1:
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at line 5
    null

    There is a sample code for importing an image from an external file into the database in the section 2.2.8 of the interMedia User's Guide:
    http://otn.oracle.com/doc/oracle8i_816/inter.816/a67299/mm_uses.htm#601053
    Basically, you have to have a table in which you store the image in the database first.

  • Conversion/Type Cast of sys.XMLType to NUMBER and VARCHAR2

    How do we typecast or convert a variable of the type sys.XMLType to NUMBER and VARCHAR2?
    For e.g. I have a variable :-
    v_STATE sys.XMLType
    I want to convert it to either of the type NUMBER or VARCHAR2.

    How do we typecast or convert a variable of the type sys.XMLType to NUMBER and VARCHAR2?
    Your question is too vague to give a relevant answer.
    Typecasting doesn't make sense in this situation, XMLType is an opaque datatype, it's not like converting VARCHAR2 to NUMBER (or vice versa).
    Do you mean serializing the XML document, or extracting atomic node values, or something else ?
    Depending on your requirement, you may want to look for XMLSerialize() or XMLCast() functions.
    And on a side note, don't always expect people to search for your previous threads to find some useful information, such as a db version...

  • ORA-30625

    Hi,
    I have created custom insert button in my form and i have written following code on CUSTOM PL/SQL EVENT handler
    onINSERT(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    onSuccess(
    p_block_name => p_block_name ,
    p_object_name => p_object_name,
    p_instance => p_instance ,
    p_event_type => p_event_type ,
    p_user_args => p_user_args ,
    p_session => p_session);
    When i click on Insert button, i am able to save the record but also i get following error.
    ERROR:
    ORA-30625: method dispatch on NULL SELF argument is disallowed.
    ORA-06512: at "PORTAL30.WWA_AAP_MODULE"
    Has anyone comeacross this problem?
    Thank you
    Shobha
    null

    I'm getting nearly the same errors running
    on portal 3.0.9.
    When trying to direct a successful form submission to calling page using
    call('','p_back_url');
    I get this in apache error log...
    ORA-30625: method dispatch on NULL SELF argument is disallowed
    ORA-06512: at "PORTALCR.WWA_APP_MODULE", line 42
    ORA-06512: at "PORTALCR.WWA_APP_MODULE", line 820
    ORA-06501: PL/SQL: program error
    ORA-06512: at line 8
    This worked in 3.0.6.
    The inserts and deletes work fine, I'm just not getting back to the calling page.
    Cheers,

Maybe you are looking for

  • Mapi over HTTP issue

    Hi all! Hope somebody can help me out. In my test lab, where I`m experimenting with Exchange 2013 SP1 and Outlook 2013 SP1 I came across very annoying thing. Let me explain a little bit more about config that worked. Outlook 2013 connected to Exchang

  • Bad to import servlets?

    I am developing an application that makes use of several servlets. However, there are a few methods in one of the servlets that I would like to use at different points from the application. This method does db checks so, I don't want to duplicate the

  • The videos I want to watch stop and start? How can i fix the problem?

    whenever I watch a video it never just plays through. It starts then stops and appears to be buffering? nothing plays straight though.

  • Missing album

    Is it possible to locate and restore a missing event and/or album? I was cleaning out useless photos and after about an hour of work (which included time spent emailing old treasures to friends and family), I got a message telling me that there was a

  • Does anyone screen freeze and have white lines going through it

    My screen seems to freeze and have white lines going through it like its defective. It happen about 6 times already today.