XML transform and ORA-06502:

When i update a limited set ( 1 row) of data with the statement in example 1 the statement works fine. When i delete the where clause i get ORA-06502: numeric or value error: character string buffer too small.
How can i make the statement work for a large amount of data.
example 1:
update udo.udo_cursus_beschrijvingen cbg
SET cbg.tekst = cbg.tekst.transform(XMLType(
'<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="url[(starts-with(child::text(),''www.''))]">
<url>http://<xsl:value-of select="."/></url>
</xsl:template>
<xsl:template match="@*|*|text()|processing-instruction()">
<xsl:copy>
<xsl:apply-templates select="@*|*|text()|processing-instruction()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
')).getStringVal()
where cbg.id = 1672;

Sergio - I'm surprised that a hundred rows causes the Display As Text (based on LOV, save/does not save the state) to blow out. I'd expect no problems up to 5000 rows or so. I'd like to see an example of your case. The limitation on select lists is usually related to either the size of an individual report column (4000 max) or the size of a report row (32K max) in which a select-list lov is used. The total size of the HTML returned counts towards these limits. The problem for select-list items on a page is that large select lists mean lots of HTML on the page making the page heavy and burdening the network.
Scott

Similar Messages

  • XML transform and upload without overwriting additional variables

    I have a set of working scripts where a user calls into one application to enter their contact number. People needing to reach that first user call the second application which reads the string value entered by the first user and dials out to them. This works via a simple xml transform and upload for the first script, and an xml get in the second.
    I've been requested to do this for 40 additional people.
    I made one template with a different %variable% for each user. Via a PIN, the correct variable is transformed and a singular doc is uploaded. The problem is that this uploaded doc erases the last person's transformation and reverts it back to %variable%.
    Essentially I'm trying to avoid creating 40 different transformed xml uploads. Anybody have a clever idea? If it involves XSL please give a specific exmample; I'm not versed in that.

    Hi
    Firstly, Sam raises a very good point. This sort of thing would be much better dealt with by using a proper DB so you can independenly edit records for each user.
    However if we assume this is a low-throughput system with infrequent changes and you are happy to take the chance of two concurrent changes occurring and one being lost...
    What I do with XML mostly is read it, parse it with the built-in steps. When it  comes to writing them, you can just read the whole doc, convert it to a string, and then use DO steps with Java code to edit the XML directly once read from the repo.
    Basicallly as you need to maintain the existing data, you need to either:
    1) read each bit of data into an array and then write that back into your template along with the new data
    2) read each bit of data into an array and then write them all back by building up the XML manually with java
    3) read the whole current XML from the repo, then do a quick find/replace in it using a regex and write it back
    Aaron

  • Problem with XML in APEX ORA-06502

    i, I have a problem with XML generation, I developed an application in APEX, and in a html page I have this process:
    declare
    l_XML varchar2(32767);
    begin
    select xmlElement
    "iva",
    xmlElement("numeroRuc",J.RUC),
    xmlElement("razonSocial", J.RAZON_SOCIAL),
    xmlElement("idRepre", J.ID_REPRE),
    xmlElement("rucContador", J.RUC_CONTADOR),
    xmlElement("anio", J.ANIO),
    xmlElement("mes", J.MES),
    xmlElement
    "compras",
    select xmlAgg
    xmlElement
    "detalleCompra",
    --xmlAttributes(K.ID_COMPRA as "COMPRA"),
    xmlForest
    K.COD_SUSTENTO as "codSustento",
    K.TPLD_PROV as "tpldProv",
    K.ID_PROV as "idProv",
    K.TIPO_COMPROBANTE as "tipoComprobante",
    to_char(K.FECHA_REGISTRO, 'DD/MM/YYYY') as "fechaRegistro",
    K.ESTABLECIMIENTO as "establecimiento",
    K.PUNTO_EMISION as "puntoEmision",
    K.SECUENCIAL as "secuencial",
    to_char(K.FECHA_EMISION, 'DD/MM/YYYY') as "fechaEmision",
    K.AUTORIZACION as "autorizacion",
    to_char(K.BASE_NO_GRA_IVA, 9999999999.99) as "baseNoGraIva",
    to_char(K.BASE_IMPONIBLE, 9999999999.99) as "baseImponible",
    to_char(K.BASE_IMP_GRAV, 9999999999.99) as "baseImpGrav",
    to_char(K.MONTO_ICE, 9999999999.99) as "montoIce",
    to_char(K.MONTO_IVA, 9999999999.99) as "montoIva",
    to_char(K.VALOR_RET_BIENES, 9999999999.99) as "valorRetBienes",
    to_char(K.VALOR_RET_SERVICIOS, 9999999999.99) as "valorRetServicios",
    to_char(K.VALOR_RET_SERV_100, 9999999999.99) as "valorRetServ100"
    xmlElement
    "air",
    select xmlAgg
    xmlElement
    "detalleAir",
    xmlForest
    P.COD_RET_AIR as "codRetAir",
    to_char(P.BASE_IMP_AIR, 9999999999.99) as "baseImpAir",
    to_char(P.PORCENTAJE_AIR, 999.99) as "porcentajeAir",
    to_char(P.VAL_RET_AIR, 9999999999.99) as "valRetAir"
    from ANEXO_COMPRAS P
    where P.ID_COMPRA = K.ID_COMPRA
    AND P.ID_INFORMANTE_XML = K.ID_INFORMANTE_XML
    xmlElement("estabRetencion1", K.ESTAB_RETENCION_1),
    xmlElement("ptoEmiRetencion1", K.PTO_EMI_RETENCION_1),
    xmlElement("secRetencion1", K.SEC_RETENCION_1),
    xmlElement("autRetencion1", K.AUT_RETENCION_1),
    xmlElement("fechaEmiRet1", to_char(K.FECHA_EMI_RET_1,'DD/MM/YYYY')),
    xmlElement("docModificado", K.DOC_MODIFICADO),
    xmlElement("estabModificado", K.ESTAB_MODIFICADO),
    xmlElement("ptoEmiModificado", K.PTO_EMI_MODIFICADO),
    xmlElement("secModificado", K.SEC_MODIFICADO),
    xmlElement("autModificado", K.AUT_MODIFICADO)
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    AND K.ID BETWEEN 1 AND 25
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    declare
    l_XML CLOB;
    begin
    --Oculta XML
    sys.htp.init;
    wwv_flow.g_page_text_generated := true;
    wwv_flow.g_unrecoverable_error := true;
    --select XML
    select xmlElement
    from SRI_COMPRAS K
    WHERE K.ID IS NOT NULL
    AND K.ID_INFORMANTE_XML = J.ID_INFORMANTE
    ).getClobVal()
    into l_XML
    from ANEXO_INFORMANTE J
    where J.ID_INFORMANTE =:P3_MES
    and J.RUC =:P3_ID_RUC
    and J.ANIO =:P3_ANIO
    and J.MES =:P3_MES;
    --HTML
    sys.owa_util.mime_header('text/xml',FALSE);
    sys.htp.p('Content-Length: ' || length(l_XML));
    sys.owa_util.http_header_close;
    sys.htp.print(l_XML);
    end;
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+

    JohannaCevallos07 wrote:
    Now my table has more than 900 rows and only when I specifically selected 25 rows of the table "ANEXO_COMPRAS" in the where ( AND K.ID BETWEEN 1 AND 25) the XML is generated.+
    I think that the problem may be the data type declared "varchar2", but I was trying with the data type "CLOB" and the error is the same.+
    The error generated is ORA-06502: PL/SQL: numeric or value error+_
    Please I need your help. I don`t know how to resolve this problem, how to use the data type "CLOB" for the XML can be generate+The likeliest explanation for this is that length of the XML exceeds 32K, which is the maximum size that <tt>htp.p</tt> can output. A CLOB can store much more than this, so it's necessary to buffer the output as shown in +{message:id=4497571}+
    Help us to help you. When you have a problem include as much relevant information as possible upfront. This should include:
    <li>Full APEX version
    <li>Full DB/version/edition/host OS
    <li>Web server architecture (EPG, OHS or APEX listener/host OS)
    <li>Browser(s) and version(s) used
    <li>Theme
    <li>Template(s)
    <li>Region/item type(s) (making particular distinction as to whether a "report" is a standard report, an interactive report, or in fact an "updateable report" (i.e. a tabular form)
    And always post code wrapped in <tt>\...\</tt> tags, as described in the FAQ.
    Thanks

  • XML export returns ORA-06502: PL/SQL: numeric or value error

    We have an application which enables users to download an XML file containing all 198 columns of HR data for a selected group of employees. This had been working under APEX 2.2 but under APEX 3.0 it now fails with ORA-06502: PL/SQL: numeric or value error. I began eliminating columns in my SELECT until I got to about 124 columns, at which point it started working again. So this doesn't appear to be related to the 100 report column limit. Is this a 3.0 bug or was a new limit put in place for 3.0?

    Hi Scott,
    can you remember what the problem was in this case!?
    I got a similar problem right now.
    If my query contains more than approx. 7 rows, I get a "sqlerrm:ORA-06502: PL/SQL: numeric or value error" error.
    Less and equal than 7 rows it works fine and I get a nice formatted xls (xml) file.
    Thanks for your help.
    Johnny

  • Many report columns (70+) and ORA-06502 (Small char buffer)

    Hello!
    I have a big problem with my few tables and Oracle APEX. I have 2 big tables with 75 and 108 columns and If i try to translate a column headings in report (tabular form) that appear a ORA-06502 Error (Small char buffer). If i don't change column order and headings that all ok.
    I thought that it beacuse of incorrect columns datatype but if i set column heading in report to "None" or if i set to null part of column heading (30-40%) that all be ok with report.
    This problem not appear with other more small tables
    This is message from debug mode:     
    Debug Screenshot

    TexasApexDeveloper wrote:
    You are running into an issue of having too many columns on a report.. Is there any way to reduce the # of columns you are trying to report on/display?
    Thank you,
    Tony Miller
    Ruckersville, VAYes, i can split my big tables to 2 parts, but it not best way for our application...
    There is no other problem solution?
    Thank you for fast reply.

  • ORA-20001 and ORA-06502

    Hi all,
    after 6 months, my production application starts to show the same error on the report:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    The error occurs in the same type of page (form based on a table where i added a report with details) and if i change the column with Display As LOV (not save the state) with standard Report Column all works fine and if change again to Display As LOV (not save the state) dosn't work.
    At the moment i changed all query of the report to don't use the Display As LOV (not save the state) in the report, but why the application now get this error?
    Thanks,
    Sergio

    Sergio - I'm surprised that a hundred rows causes the Display As Text (based on LOV, save/does not save the state) to blow out. I'd expect no problems up to 5000 rows or so. I'd like to see an example of your case. The limitation on select lists is usually related to either the size of an individual report column (4000 max) or the size of a report row (32K max) in which a select-list lov is used. The total size of the HTML returned counts towards these limits. The problem for select-list items on a page is that large select lists mean lots of HTML on the page making the page heavy and burdening the network.
    Scott

  • CSV to XML transformation and posting to JMS queue

    Hi,
    I am new to JMS and do not know exactly whether this is correct place to post my query.
    I have one CSV file tgat contains approx 5000 rows. first row contain column heading and data of this row is to be used as tags in XML files. I wish to create approx 4999 XMLs out of this CSV each containing seperate row of record along with first row of CSV as tags. After creating these XMLs, I wish to post these to one JMS topic / queue.
    I can not do XML file writing from PL-SQL (I could have created seperate XMLs using PL_SQL) duw to some server related issues.
    Can somebody guide me how to do this?
    Is it possbile to direclty post XMLs to JMS topic / queue thorugh Pl-SQL file writing?
    Please fwd me sample code also.

    Hi,
    I am new to JMS and do not know exactly whether this is correct place to post my query.
    I have one CSV file tgat contains approx 5000 rows. first row contain column heading and data of this row is to be used as tags in XML files. I wish to create approx 4999 XMLs out of this CSV each containing seperate row of record along with first row of CSV as tags. After creating these XMLs, I wish to post these to one JMS topic / queue.
    I can not do XML file writing from PL-SQL (I could have created seperate XMLs using PL_SQL) duw to some server related issues.
    Can somebody guide me how to do this?
    Is it possbile to direclty post XMLs to JMS topic / queue thorugh Pl-SQL file writing?
    Please fwd me sample code also.

  • XML Transformation using XSLT

    Hi,
    I have a scenario where I need to perform an XML to XML transformation and I need to do this using XSLT mapping.
    I am using XMLSpy.
    Could somebody help me on this issue?Any weblogs that can help me on this?
    regards,
    Prashanth

    Hi Prashanth,
    You can do the xsl transformation in XMLSpy itself.First create your source xml file in XMLSpy by selecting file type as xml.After that create your xslt program file by selecting file type as xslt.
    Then you can use the xslt program for transformation of source xml into target xml by choosing menu XSL/XQuery->XSL Transformation.
    sample xsl code for an example:
    source xml structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <header>
              <detail>
    Detail1
    </detail>
              <detail>
    Detail2
    </detail>
         </header>
         <header>
              <detail>
    Detail3
    </detail>
         </header>
    </root>
    xsl program:
    <xsl:stylesheet version = '1.0'
         xmlns:xsl='http://www.w3.org/1999/XSL/Transform'>
    <xsl:template match="/">
         <root>
         <xsl:for-each select="//header">
               <idoc>
                <xsl:for-each select="detail">
                    <detail>
                          <xsl:value-of select="."/>
                       </detail>
                       </xsl:for-each>
                   </idoc>
              </xsl:for-each>
         </root>
    </xsl:template>
    </xsl:stylesheet>
    target xml structure:
    <?xml version="1.0" encoding="UTF-8"?>
    <root>
         <idoc>
              <detail>
    Detail1
    </detail>
              <detail>
    Detail2
    </detail>
         </idoc>
         <idoc>
              <detail>
    Detail3
    </detail>
         </idoc>
    </root>
    Hope this would help.
    Rgds
    Sudhakar.

  • Ora-06502: variable length too long on report query xml schema download

    on shared components/report queries/edit report query/
    and downloading my queries in xml schema format (radio button).
    Get
    ORA-06502: PL/SQL: numeric or value error: raw variable length too long
    when i click the download button.
    EDIT:
    i want to add that i recently changed several columns in the database from 150 to 3000 chars long.
    Edited by: Manny Rodriguez on Oct 11, 2011 7:19 AM

    "4000 bytes is the ultimate maximum. you can say 4000 *characters* , but it'll always be limited to 4000 *bytes* . "
    http://asktom.oracle.com/pls/apex/f?p=100:11:0::::P11_QUESTION_ID:1224836384599#201073000346459201\
    "The maximum length of the column is determined by the national character set definition. Width specifications of character data type NVARCHAR2 refer to the number of characters. The maximum column size allowed is 4000 bytes."
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/sql_elements001.htm#SQLRF50976
    By the way, you're treating your numbers as STRINGS, remove the quotes around your zero's.

  • DBMS_XMLSCHEMA.COPYEVOLVE failing with ORA-06502 ORA-30942 and ORA-30944

    Hi all,
    We have a procedure we're testing to evolve XML schemas. Fairly simple and straightforward, and on our development box (Win Server 2003) it works fine. However on our test server (Solaris) we get this -
    tdm@TDMRSTG>Alter session set RECYCLEBIN=off
    2 ;
    Session altered.
    Elapsed: 00:00:00.00
    tdm@TDMRSTG>
    1 begin
    2 tdm_maintenance_pkg.EVOLVE_SCHEMA(
    3 'http://uk-LONDBS006:8080/public/TDM/xsd/TDM_Computation_1_2_3.xsd',
    4 'XMLDIR',
    5 'evolveTDM_Computation_1.xsd'
    6 );
    7* end;
    tdm@TDMRSTG>/
    begin
    ERROR at line 1:
    ORA-30944: Error during rollback for XML schema 'http://uk-LONDBS006:8080/public/TDM/xsd/TDM_Computa
    "TDM"."TDM_COMPUTATION" column 'XML'
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    ORA-30942: XML Schema Evolution error for schema 'http://uk-LONDBS006:8080/public/TDM/xsd/TDM_Comput
    "TDM"."TDM_COMPUTATION" column 'XML'
    ORA-06502: PL/SQL: numeric or value error
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    ORA-06512: at "XDB.DBMS_XMLSCHEMA_INT", line 113
    ORA-06512: at "XDB.DBMS_XMLSCHEMA", line 210
    ORA-06512: at "TDM.TDM_MAINTENANCE_PKG", line 47
    ORA-06512: at line 2
    Elapsed: 00:01:43.03
    tdm@TDMRSTG>
    Here's the listing of the procedure -
    PROCEDURE evolve_schema ( p_oldSchema IN VARCHAR2
    , p_directory IN VARCHAR2
    , p_newSchema IN VARCHAR2 )
    IS
    BEGIN
    DBMS_XMLSCHEMA.COPYEVOLVE(
    xdb$string_list_t(p_oldSchema),
    XMLSequenceType(xmltype(getXml(p_Directory,p_newSchema)) )
    END;
    We're all pretty new to all of this, so any help would be grately appreciated.
    Regards
    Geoff.

    Hello
    You are selecting 8000 characters from position 4001, not 4000 characters from position 4001....
      FUNCTION substr(lob_loc IN BLOB,
                      amount  IN INTEGER := 32767,
                      offset  IN INTEGER := 1)dbms_lob.substr(billing_inventory,4000,1),dbms_lob.substr(billing_inventory,8000,4001)
    You need to modify the 2nd substr in each select statement to be
    dbms_lob.substr(billing_inventory,4000,1),dbms_lob.substr(billing_inventory,4001,4000)
    HTH
    David
    Edited by: David Tyler on Jun 27, 2011 1:16 PM

  • XML publisher report using dbms_xmlgen (ORA-06502)

    Dear All,
    I have written the below code to generate xml output in Oracle Apps. The code is working fine for less records. But when CLOB size is more than 32k, then
    it giving the ORA-06502 error as fnd_file.put_line(fnd_file.output,v_result) can only write 32k at a time.
    Can anyone let me know how to handle this? Any help on this would be highly appreciated.
    PROCEDURE MAIN ( errbuf OUT VARCHAR2
    ,retcode OUT NUMBER
    ) IS
    TYPE g_query_ref IS REF CURSOR;
    v_query_ref g_query_ref;
    v_handle dbms_xmlgen.ctxhandle;
    v_result clob;
    BEGIN
    OPEN v_query_ref FOR
    SELECT invoice_num,
    description,
    customer_no,
    customer_name
    FROM XX_INVOICE_DETAILS;
    v_handle := dbms_xmlgen.newContext(v_query_ref);
    DBMS_XMLGEN.SETROWTAG (v_handle , 'INVOICE');
    v_result := dbms_xmlgen.getXML(v_handle);
    fnd_file.put_line(fnd_file.output,v_result);
    EXCEPTION
    when others then
    errbuf := sqlerrm;
    retcode := sqlcode;
    fnd_file.put_line(fnd_file.log,’sqlerrm ‘||sqlerrm);
    END MAIN;
    Thanks in Advance.
    Regards,
    Astik

    What you need to do is to chop your CLOB up into smaller strings, something like:
    l_size := DBMS_LOB.getlength (l_clob);
    IF (NVL (l_size, 0) = 0) THEN
    raise_application_error (-20001, 'CLOB is NULL');
    END IF;
    l_offset := 1;
    -- Loop
    WHILE (l_offset <= l_size) LOOP
    l_char := DBMS_LOB.SUBSTR (l_clob,1,l_offset);
    IF (l_char = CHR (10)) THEN
    FND_FILE.NEW_LINE(FND_FILE.output, 1);
    ELSE
    FND_FILE.PUT(FND_FILE.output, l_char);
    END IF;
    -- Increment Offset.
    l_offset:= l_offset+1;
    END LOOP;
    FND_FILE.NEW_LINE(fnd_file.output, 1);

  • Ora-06502:pl/sql and ora-06512 at sys.owa_util errors

    Greetings -
    I have just installed APEX 2.2 in my 9.2.0.7 database and am going through the exercises in the "2 Day+ Application Express Developer's Guide." I was making good progress, until I got to Chapter 5, How to Control Form Layout. I created the script "ht_emp", as instructed. Everything in the script works, except for the "create or replace trigger bi_ht_emp" part. It fails with the following errors:
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "SYS.OWA_UTIL", lone 328 ORA-06512: at "SYS.HTP", line 862 ORA-06512: at "SYS.HTP", line 977 ORA-06512: at "SYS.HTP", line 995 ORA-06512: at "FLOWS_020200.WWV_FLOW_SW_API", line 428 ORA-01003: no statement parsed. I have confirmed that nls_length_semantics = BYTE
    Any suggestions?
    Thanks in advance - Gail

    Scott -
    Here's the part of the script that chokes --
    CREATE OR REPLACE TRIGGER bi_ht_emp
    BEFORE INSERT ON ht_emp
    FOR EACH ROW
    BEGIN
    SELECT ht_emp_seq.nextval
    INTO :new.emp_id
    FROM DUAL;
    :new.rec_create_date := SYSDATE;
    END;
    Thanks fro helping -
    Gail

  • Fatal Error and NullPointerException in Oracle XML Transformer

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

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

  • 4.0 ORA-06502 and ORA-01722 in different languages

    Hi!
    After 4.0 installation on my XE-database there are some errors - dependig on which language is actual.
    german language is actual:
    home > administration > dashboard:
    every report results ORA-01722
    english language is actual:
    home:
    report about top applications results
    ORA-06502: PL/SQL: numeric or value error ORA-06512: at "APEX_040000.WWV_FLOW_4000_UI", line 731 ORA-06502: PL/SQL: numeric or value error: character to number conversion error
    Is there any idea about what is wrong?
    Kind regards,
    Andrea

    Hi Andrea,
    I see similar errors on my instance. I updated to 4.0.1 and saw some of them disappear, but a few of them are still there. Even reinstalling 4.0.1 from scratch did not change anything about this.
    Apparently the de-translation has some gaps, e.g. the title for the worspace administration is
    "Workspace &COMPANY verwalten." where &COMPANY should be the workspacename, or the confirmation message when deleting an application, which says "Anwendung &F4000_P20_FLOW_ID wurde gelöscht.". Both messages appear with the correct substitution value as soon as I switch the language to English.
    What made me wonder at first wass that both dashboards for "Top Applications" and "Top Users" worked in German, but threw erros in the English version. Without changing anything in my system they "started" working later, so I guess there was a problem with the proper initialization for those reports.
    I still have a complete set of ORA-01722 in the German version of the activity dashboard, which works better in English:
    Top Users, Top Applications and Top Pages say "Report contains no data", which is better than ORA-01722. Recent Logins shows correct results, Recent errors gives me the 01722-errors I produced before.
    Does anyone else have these problems? Or does anyone have a solution for them?

  • XML transformation using XSLT and Resin 2.1.11

    I have the following problem:
    I'm using a servlet to transform the xml files in my web-app to html. The servlet caches the ones transformed results. For each request it checks if there exists a cached result and if the result is based on the most actual xml file version (checking the "lastModified" method of java.io.File that represents the requested file).
    This servlet works fine and without any errors.
    My web-app also has some other servlets that use the xml transformation to generate a fragment of html code (the menu structure of my "normal" servlets is defined in one xml file for all other files and servlets).
    After invoking these servlets (those that use the xml transformation to create their menu) the first described servlet (transformation of requested xml files) is not working "fine" any longer. All it results is the generated header and footer of the page (hard-coded in the XSL file). The complete content is lost.
    Any ideas how to solve this problem?
    Thanks in advance,
    Thof

    1. The cache:
    The Hashtable is a field of my servlet called XMLTransformerServlet. The cache is not removed or deleted and none of its items is removed or deleted.
    As I said: Caching works fine, wonderful, perfectly...
    That's definitively not the problem.
    2. Thread safety:
    I've made all my servlet methods thread safe (just checked this...)
    3. About the "anonymous" other servlet type that uses xml transformations:
    Some of my servlets use a (thread safe) method to generate a fragment of html code that will show a simple menu structure. Therefore my web-app uses a file called menu.xml - by that way there's only one menu to maintain what makes sure that all my pages get the same menu structure (finally also the xsl file I'm using for "normal" xml transformation imports/includes and interprets this menu.xml).
    The (thread safe) method has transforms the menu.xml file using a special xsl file (menu.xsl) and outputs the result to a StringWriter. From this StringWriter I obtain the code-fragment that will be returned by the method.
    Before I saw the class StringWriter the first time I've used a temporary file to output the transformation result. Next I red in the file and returned its content.
    Finally - this method is working fine and it's always returning the expected data.
    4. The problem:
    Sorry for repeating this all the time...
    What I'm processing:
    &#160;- requesting some xml files -> XMLTransformerServlet is invoked and works fine:
    &#160;&#160;&#160;-> doGet checks the resource (if resource doesn't exist HTTP404 will be responded)
    &#160;&#160;&#160;-> doGet checks the caching state for this resource
    &#160;&#160;&#160;&#160;&#160;&#160;a) resource is in cache and no newer version of the File exists -> return cached element
    &#160;&#160;&#160;&#160;&#160;&#160;b) resource is in cache but a newer version exists in the file system -> recache and return newly cached element
    &#160;&#160;&#160;&#160;&#160;&#160;c) resource is not in cache -> cache the resource and return the newly cached element
    &#160;- requesting one of the other servlets (those that use xml transformation for menu generation)
    &#160;&#160;&#160;-> servlets invoked work fine
    &#160;- requesting a xml file:
    &#160;&#160;&#160;a) current version in cache -> return cached element
    &#160;&#160;&#160;b) no current version in cache -> transform the xml file and cache it
    This last transformation of the requested xml file fails.
    It is not failing in the sense of "throwing an exception"... it seems to work 100% fine and results a String that could be responded to the browser.
    But stupidly it is not working fine...
    Maybe (as you wrote) this is a bug (maybe in Resins xml transformation api).
    Just thought someone else might have made a similar experience...

Maybe you are looking for

  • Seagate Ex-HD with IMac - How to connect 2nd Firewire Device

    I just bought a new Seagate ExternalFree Agent HD to use with my IMac on a Firewire 400 but was wondering if I keep the HD connected what can I do to connect another device (video camera) at the same time with another firewire? I thought my IMac had

  • IPod Mini Compatibility with USB 1.1 (Please help!)

    Hello. I'm turning 21 in a few days and am away at college... my parents, while divorced, decided to join forces to buy me a really nice gift for my 21st birthday... a brand new iPod Mini. My mom attempted to get me a Nano, she tells me, but they wer

  • New powerbookg4 fails to aol through a pc network

    HELP! i have tried almost everything in vain. i bought a powerbook g4, it has jaguar runnin on it, and i've learned a good bit about it. its my first mac. my parents have a network setup that uses aol. the network set up is a wireless one so im tryin

  • Problem while drill down

    Hi I have  a query which is based  on the sales and which has the following characteristics i.e  drill down is based on  Region,Area,Territory, customer and material wise sales.. Intially we have to show up to customer where as material would be a fr

  • Proxy Message Flow

    Hello everyone, I am new to OSB and proxy services. I have some questions: 1. In proxy message flow, what is the difference between Pipeline node and routing node? 2. How to call more than one backend? Any help is appreciated. Thanks