XSQL error

We are developing with Oracle XSQL Servlets (1.0.2.0) on Linux.
We are getting the following error consistently (probably at the following lines of code:
<xsl:if test="TITEMSRL = 1">
<div class="css<xsl:value-of select='{$cid}'/>">
</xsl:if>
XSQL-018: Unexpected Error Occurred during processing.
The error is repeated when run under the same condition.
ANY SUGGESTION OR HELP?
Oracle XSQL Servlet Page Processor 1.0.2.0 (Production)
XSQL-018: Unexpected Error Occurred processing stylesheet slide3new.xsl
java.lang.NullPointerException:
at oracle.xml.parser.v2.XSLValueOf.processAction(XSLValueOf.java:71)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:107)
at oracle.xml.parser.v2.XSLCondition.processAction(XSLCondition.java:141)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:107)
at oracle.xml.parser.v2.XSLForEach.processAction(XSLForEach.java:138)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:107)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:147)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:107)
at oracle.xml.parser.v2.XSLResultElement.processAction(XSLResultElement.java:147)
at oracle.xml.parser.v2.XSLNode.processChildren(XSLNode.java:107)
at oracle.xml.parser.v2.XSLTemplate.processAction(XSLTemplate.java:293)
at oracle.xml.parser.v2.XSLStylesheet.execute(XSLStylesheet.java:576)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:118)
at oracle.xml.parser.v2.XSLProcessor.processXSL(XSLProcessor.java:355)
at oracle.xml.xsql.XSQLStylesheetProcessor.processToWriter(XSQLStylesheetProcessor.java:117)
at oracle.xml.xsql.XSQLPageProcessor.process(XSQLPageProcessor.java:257)
at oracle.xml.xsql.XSQLServlet.doGet(XSQLServlet.java:60)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
at org.apache.tomcat.core.ServletWrapper.handleRequest(ServletWrapper.java:503)
at org.apache.tomcat.core.ContextManager.service(ContextManager.java:559)
at org.apache.tomcat.service.http.HttpConnectionHandler.processConnection(HttpConnectionHandler.java:160)
at org.apache.tomcat.service.TcpConnectionThread.run(SimpleTcpEndpoint.java:338)
at java.lang.Thread.run(Thread.java:475)
null

Your syntax is not valid.
I don't see how a stylesheet would even
parse correctly if you use:
<xsl:if test="TITEMSRL = 1">
<div class="css<xsl:value-of select='{$cid}'/>">
</xsl:if>
since it's illegal to have a < character inside an attribute value.
should be simply:
<xsl:if test="TITEMSRL = 1">
<div class="css{$cid}">
</xsl:if>
null

Similar Messages

  • XSQL error when trying to insert record

    hi,
    I encounter a problem using INSERT statement in xsql:query action. If I try to use INSERT statement in my xsql page like this:
    <xsql:ze_action bean="TaskentryIn">
    <xsql:query>
    INSERT
    Grundtab( Datum,Startzeit,Endzeit)
    VALUES
    ('{@date}',{'@begin}','{@ende}')
    </xsql:query>
    </xsql:ze_action>
    I always get this xsql-error:
    Statement.executeQuery - No result sets were produced by 'INSERT...'
    So far so good, I think this shouldn't be an error rather a warning.
    But this is not my primary problem.
    Anyway the record is inserted in the DB. But since I call the above <xsql:query>, from within my own action handler, I call a sendRedirect() to my next page after the <xsql:query> tag was processed.
    After sendRedirect(), when I am on my next page, I check the DB for the inserted records, and it shows up that the insert was made two times, so I have two identically records in my DB.
    If I am not sendRedirect() to the next xsql page, then the insert is only made once. So I assume that there is a problem if an xsql-error occurs and afterwards a sendRedirect().
    I am using the same way to make my SELECT statements and I dont have any trouble with them. Only when I use INSERT.
    Any adive or help is appreciated.
    Peter

    <xsql:query> is only for queries.
    Use <xsql:dml> for a DML statement.

  • XSQL ERROR with bind-params in ref-cursor-function

    Hi Steve
    I always get the error
    ORA-01006 bind variable does not exist
    when using a bind variable in a <xsql:ref-cursor-function> action element.
    when I replace the bind variable with a @ - parameter substitution, all works fine.
    My configuration:
    XSQL 1.0.4.1 on Win200Pro ,Apache + Jserv + DB from ORA 8.1.7 installation
    My Source
    <xsql:ref-cursor-function
    dbconn="ekat"
    eblike="%"
    list="a0"
    bind-params="eblike"
    include-schema="no"
    null-indicator="no"
    id-attribute=""
    fetch-size="500"
    >
    {@dbconn}o.ekatkategcv.open_cv_ebh ('{@list}', :1)
    </xsql:ref-cursor-function>
    ( dbconn selects my schema, not changed often, which contains package ekatkategcv with
    function open_cv_ebh returning a cursor)
    Any fix would be appreciated to avoid reparsing on each call.
    BTW, is it right, that a ref-cursor funtion is reparsed whenever the content of
    a parameter used with @ changes?
    Best regards
    H.Buschmann ([email protected])
    null

    I have tried it using ? instead of :1, this method works fine.
    I haven't tried the name method (:bindvar) yet.
    Until now, I only used xsl:query and xsql:ref-cursor-function, so I didn't check
    the other action handlers with bind variables like :1
    null

  • XSQL-007 and list of XSQL error codes.

    I have a situation where I need to replay a request if I cannot acquire a database connection, and to not replay a request otherwise. Is the XSQL-007 code the only code that deals with database connections?
    XSQL-007: Cannot acquire a database connection to process page.
    Do you have a published list of XSQL codes? Is there a method in java code to generate the full list of XSQL codes? For example to get a list of database error codes, one can in PL/SQL use:
    set serveroutput on size 2000
    begin
    for i in 1..9999 loop
    dbms_output.put_line ( sqlerrm(-i) ) ;
    end loop ;
    end ;
    Steve.

    There's not a way to loop through the errors in Java. Here's the list.
    XSQL-001: Cannot locate requested XSQL file. Check the name.
    XSQL-002: Cannot acquire database connection from pool: {0}
    XSQL-003: Failed to find 'XSQLConfig.xml' file in server CLASSPATH.
    XSQL-004: Could not acquire a database connection named: {0}
    XSQL-005: XSQL page is not well-formed.
    XSQL-006: XSLT stylesheet is not well-formed: {0}
    XSQL-007: Cannot acquire a database connection to process page.
    XSQL-008: Cannot find XSLT Stylesheet: {0}
    XSQL-009: Missing arguments on command line
    XSQL-010: Error creating: {0}\nUsing standard output.
    XSQL-011: Error processing XSLT stylesheet: {0}
    XSQL-012: Cannot Read XSQL Page
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQL-014: Resulting page is an empty document or had multiple document elements.
    XSQL-015: Error inserting XML Document
    XSQL-016: Error parsing posted XML Document
    XSQL-017: Unexpected Error Occurred
    XSQL-018: Unexpected Error Occurred processing stylesheet {0}
    XSQL-019: Unexpected Error Occurred reading stylesheet {0}
    XSQL-020: XSQLConfig.xml file is not well-formed.
    XSQL-021: Serializer {0} is not defined in XSQLConfig.xml
    XSQL-022: Cannot load serializer class {0}
    XSQL-023: Class {0} is not an XSQL Serializer
    XSQL-024: Attempted to get response Writer after getting OutputStream
    XSQL-025: Attempted to get response OutputStream after getting Writer

  • XSQL Error. Missing class: oracle.xdb.XMLType XML

    I am using OC4J and XSQL to publish information and most of the normal stuff runs fine. When I try to run the following query, I get errors. I copied the following example from XML developer's kit manual and work fine in SQL*Plus.
    =============================
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    select XmlElement("DepartmentList",
    XmlAgg(
    XmlElement("Department",
    XmlAttributes(deptno as "Id"),
    XmlForest(dname as "Name"),
    (select XmlElement("Employees",
    XmlAgg(
    XmlElement("Employee",
    XmlAttributes(empno as "Id"),
    XmlForest(ename as "Name",
    sal as "Salary",
    job as "Job")
    from emp e
    where e.deptno = d.deptno
    ) as result
    from dept d
    order by dname
    </xsql:query>
    ====================
    Following is the header portion of the errors shown.
    XML-25017: Unexpected Error Occurred
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.xdb.XMLType
    Dependent class: oracle.xml.sql.core.OracleXMLConvert
    Loader: oracle.xml:10.1.0_2
    Code-Source: /C:/oracle/oc4j_1013/lib/xsu12.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\oc4j_1013\j2ee\home\oc4j.jar
    The missing class is available from the following locations:
    1. Code-Source: /C:/oracle/oc4j_1013/j2ee/home/applications/xsql/xsql/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in C:\oracle\oc4j_1013\j2ee\home\applications\xsql\xsql\WEB-INF\lib)
    This code-source is available in loader xsql.web.xsql:0.0.0.
    I tried to search several forums but was unable to find any solution to resolve this issue. Any help is appreciated.
    Thanks,

    I am using OC4J and XSQL to publish information and most of the normal stuff runs fine. When I try to run the following query, I get errors. I copied the following example from XML developer's kit manual and work fine in SQL*Plus.
    =============================
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql">
    select XmlElement("DepartmentList",
    XmlAgg(
    XmlElement("Department",
    XmlAttributes(deptno as "Id"),
    XmlForest(dname as "Name"),
    (select XmlElement("Employees",
    XmlAgg(
    XmlElement("Employee",
    XmlAttributes(empno as "Id"),
    XmlForest(ename as "Name",
    sal as "Salary",
    job as "Job")
    from emp e
    where e.deptno = d.deptno
    ) as result
    from dept d
    order by dname
    </xsql:query>
    ====================
    Following is the header portion of the errors shown.
    XML-25017: Unexpected Error Occurred
    oracle.classloader.util.AnnotatedNoClassDefFoundError:
    Missing class: oracle.xdb.XMLType
    Dependent class: oracle.xml.sql.core.OracleXMLConvert
    Loader: oracle.xml:10.1.0_2
    Code-Source: /C:/oracle/oc4j_1013/lib/xsu12.jar
    Configuration: <code-source> (ignore manifest Class-Path) in META-INF/boot.xml in C:\oracle\oc4j_1013\j2ee\home\oc4j.jar
    The missing class is available from the following locations:
    1. Code-Source: /C:/oracle/oc4j_1013/j2ee/home/applications/xsql/xsql/WEB-INF/lib/xdb.jar (from WEB-INF/lib/ directory in C:\oracle\oc4j_1013\j2ee\home\applications\xsql\xsql\WEB-INF\lib)
    This code-source is available in loader xsql.web.xsql:0.0.0.
    I tried to search several forums but was unable to find any solution to resolve this issue. Any help is appreciated.
    Thanks,

  • Error when try to call a pl/sql procedure from the .xsql file

    I tried to call a pl/sql procedure like this:
    <?xml version="1.0"?>
    <page connection="omtest5" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa>
    sampleowaxml.testone
    </xsql:include-owa>
    </page>
    but I got the following error message:
    <?xml version="1.0" ?>
    - <page>
    - <xsql-error action="xsql:include-owa">
    <statement>declare buf htp.htbuf_arr; param_names owa.vc_arr; param_values owa.vc_arr; rows integer := 32767; outclob CLOB;begin param_names(1) := 'HTTP_COOKIE'; param_values(1) := ''; param_names(2) := 'SERVER_NAME'; param_values(2) := 'mxfang-nt.us.oracle.com'; param_names(3) := 'SERVER_PORT'; param_values(3) := '80'; param_names(4) := 'SCRIPT_NAME'; param_values(4) := '/servlets/oracle.xml.xsql.XSQLServlet'; param_names(5) := 'PATH_INFO'; param_values(5) := '/xsql/test/myproject.xsql'; param_names(6) := 'HTTP_USER_AGENT'; param_values(6) := 'Mozilla/4.0 (compatible; MSIE 5.01; Windows NT)'; owa.init_cgi_env(6,param_names,param_values); sampleowaxml.testone owa.get_page(buf,rows); dbms_lob.createtemporary(outclob,true,dbms_lob.session); for i in 1..rows loop dbms_lob.writeappend(outclob,length(buf(i)),buf(i)); end loop; ? := outclob; ? := DBMS_LOB.INSTR(outclob,CHR(10)&#0124; &#0124;CHR(10));end;</statement>
    <message>ORA-06550: line 3, column 3: PLS-00103: Encountered the symbol "OWA" when expecting one of the following: := . ( @ % ; The symbol ":=" was substituted for "OWA" to continue.</message>
    </xsql-error>
    - <xsql-error action="xsql:include-owa">
    <message />
    </xsql-error>
    </page>
    This error message is very similiar to the message that Shanthir posted on Jan, 21. I did run the dbmslob.sql, but it doesn't help. Anybody has ideas how to solve it?
    I used the PL/SQL web toolkit provided by OAS4.0.8.1. I believe oracle web agent is replaced by this toolkit.
    Thanks,
    Min
    null

    Hi,
    Glad that somebody else too got this problem. Well, as I had mentioned in my previous posting too, I think there are some procedures in the package, dbms_lob, like the writeappend, createtemporary etc.. which is not found in my dbms_lob.sql file, I am using 8.0.5, but I found these procedures in the 8i, I think it is becos of that.
    By the way if anybody got this solution and got any workaround, please help me too.
    I am still waiting for the solution to that.
    Shanthi

  • Error when trying to run a procedure from the .xsql file

    Here is the error message pasted below.
    - <test>
    - <xsql-error action="xsql:include-owa">
    <statement>declare buf htp.htbuf_arr; param_names owa.vc_arr; param_values owa.vc_arr; rows integer := 32767; outclob CLOB;begin param_names(1) := 'HTTP_COOKIE'; param_values(1) := ''; param_names(2) := 'SERVER_NAME'; param_values(2) := 'shanthi.ijs.com'; param_names(3) := 'SERVER_PORT'; param_values(3) := '8080'; param_names(4) := 'SCRIPT_NAME'; param_values(4) := '/xsql/test/myex.xsql'; param_names(5) := 'PATH_INFO'; param_values(5) := ''; param_names(6) := 'HTTP_USER_AGENT'; param_values(6) := 'Mozilla/4.0 (compatible; MSIE 5.0; Windows NT; DigExt)'; owa.init_cgi_env(6,param_names,param_values); scott.get_date; owa.get_page(buf,rows); dbms_lob.createtemporary(outclob,true,dbms_lob.session); for i in 1..rows loop dbms_lob.writeappend(outclob,length(buf(i)),buf(i)); end loop; ? := outclob; ? := DBMS_LOB.INSTR(outclob,CHR(10)&#0124; &#0124;CHR(10));end;</statement>
    <message>ORA-06550: line 3, column 75: PLS-00302: component 'SESSION' must be declared ORA-06550: line 3, column 28: PL/SQL: Statement ignored ORA-06550: line 3, column 120: PLS-00302: component 'WRITEAPPEND' must be declared ORA-06550: line 3, column 111: PL/SQL: Statement ignored</message>
    </xsql-error>
    <xsql-error action="xsql:include-owa" />
    </test>
    My .xsql file is:
    <test connection="system" xmlns:xsql="urn:oracle-xsql">
    <xsql:include-owa>
    scott.get_date;
    </xsql:include-owa>
    </test>
    Any help in this regard is greatly appreciated.
    Shanthi
    null

    I tried this way:
    <?xml version="1.0"?>
    <datapage connection="system" xmlns:xsql="urn:oracle-xsql">
    <xsql:dml>
    begin
    get_rec;
    end;
    </xsql:dml>
    </datapage>
    Here it doesn't give any error, Why is it that it works here but not with <xsql:include-owa>, ofcourse I need to get a proper output from the procedure yet. Looks like the procedure doesn't support "out" variable, should I specifically use a function ?
    Anyhelp will be appreciated.
    Shanthi

  • Xsql-007 Error

    Oracle 9.0.1 on Solaris 9, SPARC hardware. XDK is the one that came on the CD with the original install.
    Had XSQL queries working fine, then had to change the nodename of the machine when we got a domain.
    Now all DB queries return "XSQL-007: Cannot acquire a database connection to process page.
    Io exception: The Network Adapter could not establish the connection"
    Apparently the Servlet doesn't get it's DB connection from Localhost, but from the nodename defined in /etc/nodename.
    Anybody know how to redirect from the old nodename to Localhost or the new nodename? Also, does anybody know where all the XSQL error messages are documented? I've searched OTN, no luck.
    Thanks,
    Ben

    Thanks for your reply!
    You got me on the right track! TNSNAMES.ORA had the correct hostname, but I still had the wrong hostname in $ORACLE_HOME/network/admin/listener.ora.
    What had me confused was the fact that Windows SQLPlus clients could connect just fine but the server couldn't find it's own database.
    Thank you!!!
    Regards,
    -Ben

  • XSQL-022 error

    Hi,
    I try to create a pdf with the xsql -servlet (v1.0.4) and FOP 0.14.
    When I don't use the serializer="FOP" in my <?xml-stylesheet?> processing instruction, I get an XML-file with <fo-root> as the root-element. Looks fine.
    When I include the serializer="FOP" in my <?xml-stylesheet?> processing instruction i get the following error:
    "XSQL-022: cannot load serializer class oracle.xml.xsql.serializers.XSQLFOPSerializer"
    I have used a default installation of the xsql-servlet in c:\xsql, Java in c:\jdk1.3, Apaches FOP in c:\xml\fop. The file xsql-wtg.bat is changed to this configuration.
    Everything else is working fine, so what is wrong with the set-up.
    Steve,
    if you read this I also have a request: could you publish all xsql-error messages on OTN? Your book only lists xsql-errors up to XSQL-017, the xsql-servlet documentation doesn't describe the errors at all.
    Thanks to all,
    Bart

    Did you uncomment the line in the xsql-wtg.bat that includes the:
    .\xsql\lib\xsqlserializers.jar
    FOP_HOME\fopXXX.jar
    FOP_HOME\lib\w3c.jar
    in your classpath?
    I'll post the error messages.

  • XSQL arbitrary adhoc query - misleading error

    Newbie question: How can I allow arbitrary adhoc queries without getting misleading errors? (I am aware this can be a security hazard)
    Trying
    CREATE table test5(tla varchar2(3), description varchar2(80), primary key (tla))
    on the following .xsql page
    <?xml version="1.0"?>
    <xsql:query connection="demo" xmlns:xsql="urn:oracle-xsql"
    null-indicator="yes"
    allow-client-style="yes">
    {@query}
    </xsql:query>
    yields a
    <?xml version="1.0" ?>
    <ERROR>oracle.xml.sql.OracleXMLSQLException: ORA-01009: missing mandatory parameter</ERROR>
    Note that despite the error the test5 database is actually created and usable in SQLPlus.
    Retrying the same xsql query a little later confirms this and yields
    <?xml version="1.0" ?>
    - <xsql-error code="955" action="xsql:query">
    <statement>create table test5(tla varchar2(3), description varchar2(80), primary key (tla))</statement>
    <message>ORA-00955: name is already used by an existing object</message>
    </xsql-error>
    Any ideas on how to avoid the misleading error message?
    Otherwise XSQL works nicely.
    Thanks.
    null

    <xsql:query> expects a query to be done.
    Use <xsql:dml> if you want other kinds of DML/DDL statements to be done.

  • ORA-00600: Internal Error when running XSQl Script

    Hi,
    when running a xsql script with JDeveloper 3.1
    the following message appears:
    <?xml version="1.0" ?>
    - <!-- IRON.xsql Return the results of a table
    -->
    - <xsql-error action="xsql:query">
    <statement>select ename,job,sal from emp where
    ename='ALLEN'</statement>
    <message>ORA-00600: Interner Fehlercode, Argumente: [ttcgcshnd-
    1], [0], [], [], [], [], [], []</message>
    </xsql-error>
    Does anybody knows, what's wrong ?
    Regards
    Andy

    looks like bug #1725012, fixed in either 9.0.1 or 8.1.7.2
    (these are RDBMS versions).

  • XSQL and insert

    This may sound like a dumb question but I can't figure out how to associate the xml doc with the xsql doc to do an insert. Here are my files:
    XSQL - filename custins.xsql
    <?xml version="1.0" ?>
    <xsql:insert-request table="CUSTOMERS_OV" connection="dev7" xmlns:xsql="urn:oracle-xsql"/>
    XML - No file name, genned on the fly in javascript
    <?xml version='1.0'?>
    <ROWSET><ROW>
    <CUST_NO>1</CUST_NO>
    </ROW></ROWSET>
    I call custins.xsql as a submit from a form. The xml is dynamically created and I pass it as a parameter, i.e.
    http://localhost:7070/custins.xsql?docxml=<?xml version='1.0'?><...etc>
    What I get when I do this is:
    <?xml version="1.0" ?>
    <xsql-status action="xsql:insert-request" result="No posted document to process" />
    Can anyone tell what I'm doing wrong?
    Thanks,
    Lewis
    null

    Got it figured out. I was using method="get" while debugging and xsql expects it to be post.
    Now I'm getting:
    <?xml version="1.0" ?>
    - <xsql-error action="xsql:insert-request">
    <message>Exception ' The XML element tag 'DocXml' does not match the name of any of the columns/attributes of the target database object.' encountered during processing ROW element 0All prior XML row changes were rolled back. in the XML document.</message>
    </xsql-error>
    Which I'm assuming means that it wants to parse out the parameters instead of me making an xml doc. The problem with that is my data resides in 3 frames, across 7 forms. How do I handle this?
    I'll post this question with a new topic.
    null

  • Node doesn't belong to the current document and Invalid UTF8 encoding errors

    Hi
    I'm creating a XSQL page that calls a PL/SQL procedure:
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="sgvrt">
    <xsql:include-owa>xml_indicadores_epm;</xsql:include-owa>
    </page>
    When I run the page I get:
    Node doesn't belong to the current document.
    if I use "<include-xml>" I get the following error:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <page>
    <xsql-error action="xsql:include-xml">
    <message>Invalid UTF8 encoding.</message>
    </xsql-error>
    </page>
    The XML page generated is well formed and it sends "test/xml; charset="ISO-8859-1" myme type. I test it in IE and it runs fine. I wrote a simple procedure that generates a simple one tag XML file and I still get the same errors.

    Thanks for the reply
    We've tried using the encoding attribute (encoding="ISO-8859-1") but it generates the same errors. We're using XSQL that comes with 9iAS 1.0.2.2.2a. We also tried with XSQL that comes with Oracle 9.2.0. It seems that the parser is not detecting if the XML document has a different encoding than UTF8.

  • Standard Error Page

    Is there a way to create an XSQL error page?
    I'd like to throw all errors to a single page (with nice, scary colours).

    Hi,
    I came across this post on xsql error message handling for fatal errors.
    Has this been resolved in any particular release??
    From what I can tell, there appears to be no way to detect any db connection problems like say an "invalid connection" or a "timed out" connection etc.
    For example a page such as follows
    <?xml version="1.0" encoding="UTF-8"?>
    <page connection="some_invalid_connection" xmlns:xsql="urn:oracle-xsql">
    <xsql:query>
    SELECT
    sysdate
    FROM
    dual
    </xsql:query>
    </page>
    results in a error page such as
    Oracle XSQL Servlet Page Processor 9.0.1.1.0A (Production)
    XSQL-004: Could not acquire a database connection named:some_invalid_connection
    XSQL-007: Cannot acquire a database connection to process page.
    I would like a way to trap this error elegantly and do something useful with it, as opposed to it being spit out as html.
    Database connectivity problems are very critical to handle properly. I am not sure how to it, other than writing java/jdbc code and trapping the exception. I would like to avoid this if I can.
    Any help is appreciated.
    - Manish
    Currently fatal errors like this cannot have their error page overridden. Request noted for a future release.
    Would your "cute" page in general be a static html file? Another xsql page?
    null

  • Invalid UTF8 encoding when including XML page in XSQL

    Hello
    I'm creating an XSQL page that includes an XML page generated using PSP
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="sgvrt">
    <xsql:include-xml href="http://epdesccs.pdvsa.com:7777/pls/sgvrt/xml_indicadores_epm"/>
    </page>
    I'm not using <xsql:include-owa> because I get another error "Node not in document". When I run the XSQL I get:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <page>
    <xsql-error action="xsql:include-xml">
    <message>Invalid UTF8 encoding.</message>
    </xsql-error>
    </page>
    The page that is being generated by the PSP is:
    <?xml version="1.0" standalone="no" encoding="ISO-8859-1"?>
    <indicadores_gestion_epm xmlns:ind="urn:intesa-ind">
    <fecha>Junio 2001</fecha>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>48,21</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Aqo Actual (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>22,48</ind:real_valor><ind:unidad_medida>$/BPE</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Promedio (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>19,98</ind:real_valor><ind:unidad_medida>$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables de Crudo (GD)</ind:descripcion><ind:plan_valor>647</ind:plan_valor><ind:real_valor>2</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>4</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>5</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion Disponible Promedio de Crudo (GD)</ind:descripcion><ind:plan_valor>362,8</ind:plan_valor><ind:real_valor>1401,66</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Capacidad de Produccisn de Crudo</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Crudo (GD)</ind:descripcion><ind:plan_valor>1750</ind:plan_valor><ind:real_valor>1750</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (Conv.)</ind:descripcion><ind:plan_valor>0</ind:plan_valor><ind:real_valor>,01</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>102,53</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Disponibilidad de Gas (Acumulado)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MMPCD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion de Crudo Entregada a RSC Promedio</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>3,15</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    </indicadores_gestion_epm>
    So the two pages have encoding="ISO-8859-1" so why is the XML Parser sending an <message>Invalid UTF8 encoding.</message>.

    Hello
    I'm creating an XSQL page that includes an XML page generated using PSP
    <?xml version="1.0" encoding="ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="sgvrt">
    <xsql:include-xml href="http://epdesccs.pdvsa.com:7777/pls/sgvrt/xml_indicadores_epm"/>
    </page>
    I'm not using <xsql:include-owa> because I get another error "Node not in document". When I run the XSQL I get:
    <?xml version="1.0" encoding="ISO-8859-1" ?>
    <page>
    <xsql-error action="xsql:include-xml">
    <message>Invalid UTF8 encoding.</message>
    </xsql-error>
    </page>
    The page that is being generated by the PSP is:
    <?xml version="1.0" standalone="no" encoding="ISO-8859-1"?>
    <indicadores_gestion_epm xmlns:ind="urn:intesa-ind">
    <fecha>Junio 2001</fecha>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>48,21</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacisn de Potencial por Perforacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/Bl</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Aqo Actual (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>22,48</ind:real_valor><ind:unidad_medida>$/BPE</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Exploracion Promedio (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>19,98</ind:real_valor><ind:unidad_medida>$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables de Crudo (GD)</ind:descripcion><ind:plan_valor>647</ind:plan_valor><ind:real_valor>2</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Incorporacion de Reservas Probadas y Probables Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>4</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Gas (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>5</ind:real_valor><ind:unidad_medida>MMMPC</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion Disponible Promedio de Crudo (GD)</ind:descripcion><ind:plan_valor>362,8</ind:plan_valor><ind:real_valor>1401,66</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Capacidad de Produccisn de Crudo</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Contribuciones a las Reservas Probadas de Crudo (GD)</ind:descripcion><ind:plan_valor>1750</ind:plan_valor><ind:real_valor>1750</ind:real_valor><ind:unidad_medida>MMBLs</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (Conv.)</ind:descripcion><ind:plan_valor>0</ind:plan_valor><ind:real_valor>,01</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo Unitario de Operacisn (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>102,53</ind:real_valor><ind:unidad_medida>$/BL</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Disponibilidad de Gas (Acumulado)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MMPCD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Produccion de Crudo Entregada a RSC Promedio</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>MBD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (Conv.)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>3,15</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    <ind:indicador><ind:descripcion>Costo de Generacion de Potenc. RA/RC (GD)</ind:descripcion><ind:plan_valor>N/D</ind:plan_valor><ind:real_valor>0</ind:real_valor><ind:unidad_medida>M$/BD</ind:unidad_medida></ind:indicador>
    </indicadores_gestion_epm>
    So the two pages have encoding="ISO-8859-1" so why is the XML Parser sending an <message>Invalid UTF8 encoding.</message>.

Maybe you are looking for