XML queries (EXISTSNODE, CONTAINS) giving inconsitance results

Hi,
I am querying data from a table that has xmltype datatype and getting inconsistant results with two different approaches. I would like to have the top 500 records for a "REGION". My first query uses CONTAINS with "HASPTH" and the second query uses the condition EXISTSNODE with XPATH value. The table has both the indexes CTXSYS.CTXXPATH and CTXSYS.CONTEXT
Can somebody help me to understand why I am getting inconsistant results?
The sample xmltype data would be like:
<REC>
<CUSTID>14590</CUSTID>
<LNAME>McDonald</LNAME>
<FNAME>Warren</FNAME>
<REGION>Orlando</REGION>
</REC>
Here my 1st query with CONTAINS and "HASPATH"
SELECT /*+ FIRST_ROWS */ a.xmldata.CUSTID TAG1, a.xmldata.LNAME TAG2,
a.xmldata.FNAME TAG3
FROM CR_XML a WHERE
CONTAINS(sys_nc_rowinfo$,'(haspath (//REGION = "Orlando)"))',1)>0 and
rownum <501 order by 1
2nd query with EXISTSNODE:
SELECT /*+ FIRST_ROWS */ a.xmldata.CUSTID TAG1, a.xmldata.LNAME TAG2,
a.xmldata.FNAME TAG3
FROM CR_XML a WHERE
EXISTSNODE (sys_nc_rowinfo$,'/REC[REGION="Orlando"]')=1 and
rownum <501 order by 1
Thanks,
Ravi

Thanks. I had seen the note that the problem didn't happen if he didn't use a DataSource connection, but had taken that to be just more data about the problem, rather than his solution. I am surprised that you would have to use a deprecated class (or am I wrong about that?) in order to use XSU with object types. Was this issue perhaps really a version compatibility issue among XSU,JDBC driver and JDK? I'd like to find a way to use XSU to produce XML from an object view using a data source connection, but am stuck currently at the same spot the original poster was. Can you help with that,please?

Similar Messages

  • Goto link query is not giving exact results

    Hi Folks
    I am having issue with GOTO query.
    My main query gives details of Employee seperation in particular year.
    For this query i have goto query.
    When i am checking the details of goto query ,it is giving incorrect results.
    Your help is appreciated.
    Thanks & Regards,
    Hari Reddy

    Hi Hari,
        Check in RSBBS, whether you specified the receiver query correctly...
    Check the link:
    [http://help.sap.com/saphelp_nw04/helpdata/en/99/08629bd3e41d418530c6849df303c9/content.htm]
        Hope this helps you.
    Regards,
    Yokesh.

  • OMBRETRIEVE is giving incorrect results

    Hi my fellow OMBPLUS developers.
    I have written an tcl script to retrieve the TARGET_LOAD_ORDERING property (a checkbox) from a number of mappings in my OWB repository. The commands which returns True or False is:
    OMBRETRIEVE MAPPING '$Mapping Name' GET PROPERTIES (TARGET_LOAD_ORDERING)
    The results are fine for around 90% of the mappings but I am finding cases where the following error is returned for some mappings:
    OMB02918: Property TARGET_LOAD_ORDERING of <Mapping Name> does not exist: MMM1034: Property TARGET_LOAD_ORDERING does not exist.
    When looking at the mappings that are throwing this error I can see via OWB that the mappings do have the Target Load Order checked. Simply unchecking/checking this and commiting the change to the repository then fixes the issue and the OMBRETIEVE commands retuns the correct result. Does anybody know why this issue is happening?
    Any help would be most appreciated.
    Regards
    Mitesh

    Re: OMBRETRIEVE is giving incorrect results
    Posted: 23.02.2012 00:30 in response to: mi**** in response to: mi****           
    Click to edit this message...      Edit      Click to report abuse...           Click to reply to this thread      Reply
    Hi,
    Enable the “Use Target Load Ordering” configuration option in the mapping configuration.
    http://www.oracle.com/technetwork/developer-tools/warehouse/owb-feature-management-licensing-344706.pdf
    BR,
    IM

  • XML report is not giving heading while running from application.

    Hi Everybody,
    We are facing one issue in xml.
    XML report is not giving heading while running from application.
    Pls suggest.
    Regards
    Sreehari.
    Edited by: user1762471 on Sep 27, 2010 10:48 PM

    What application you mean?

  • Find out queries which contain user-exit variable

    Hello.
    I want to get a list of BEX queries, which contain my user-exit variable, defined in ZXRSRU01. Could anybody tell me how I can achieve this?

    Hello, Konstantin.
    You can use differnet methods to do this.
    Method №1.
    You can open one (any) query, that uses your variable in Metadata repository (active objects). If you don't know such  query - you can create it.
    In the description of your query you can find which variable is used by this query.
    Open your variable.
    There you can find all queries, that uses you variable.
    Method №2.
    Open SE11.  Choose table RSZELTDIR.
    Determine ELTUID of your variable (OBJVERS='A',MAPNAME=Variable ID).
    Open SE11.  Choose table RSZELTXREF.
    Select ALL SELTUID with OBJVERS='A', TELTUID=ELTUID (see above), LAYTP=VAR
    Open SE11.  Choose table RSZELTDIR.
    Select all MAPNAME with OBJVERS='A', ELTUID=lists of SELTUID (see above)
    You can take texts from table RSZELTTXT.
    Best regards,
    Alexander Kuzmich

  • Binding XML return queries to an XSLT search results page

    --____XXIVGLQPKHJTRVXLDKBM____
    Content-Type: text/plain; charset=iso-8859-15
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline; modification-date="Thu, 24 Jan
    2007 16:47:17
    -0700"
    Hi,
    I found a web service I'd love to use on my web site at this
    site here: =
    http://www.localcallingguide.com/xmlquery.php
    It's a web service that allows a user to enter an area code,
    a prefix and =
    it will return a bunch of companies in the area within that
    area code in =
    XML.
    So, after going through the XML tutorial in DW, I created
    this page that =
    contains the form:
    http://www.broadbanddesigners.com/iptelesis/prefixlookup_results.html
    I entered a sample query in the data bindings to see the
    schema, then I =
    created a results page (results.xsl) in .XSLT that has
    placeholders for =
    each of the XML nodes in the returned data. After testing it
    it works =
    great! However that's only when I have a fixed query string.
    (i.e.: =
    http://www.localcallingguide.com/xmllocalprefix.php?npa=3D801&nxx=3D226&sel=
    ect=3D1 )
    Here's my problem: Since the user enters the values, what I
    haven't =
    figured out is how to tell this incoming XML file to use
    results.xsl . =
    When I enter queries, I get the raw xml and can't bind it to
    results.xml =
    page.
    Any suggestions/help?
    How to page it is next, but one nut at a time.
    christian
    --____XXIVGLQPKHJTRVXLDKBM____
    Content-Type: multipart/related;
    boundary="____RIGBAOMRMPWQFITRMXNM____"
    --____RIGBAOMRMPWQFITRMXNM____
    Content-Type: text/html; charset=iso-8859-15
    Content-Transfer-Encoding: quoted-printable
    Content-Disposition: inline; modification-date="Thu, 24 Jan
    2007 16:47:17
    -0700"
    <HTML><HEAD>
    <META http-equiv=3DContent-Type content=3D"text/html;
    charset=3Diso-8859-15=
    ">
    <META content=3D"MSHTML 6.00.5730.11"
    name=3DGENERATOR></HEAD>
    <BODY style=3D"MARGIN: 4px 4px 1px; FONT: 10pt Tahoma">
    <DIV>Hi,</DIV>
    <DIV> </DIV>
    <DIV>I found a web service I'd love to use on my web
    site at this site =
    here:  <A href=3D"
    //www.localcallingguide.com/xmlquery.php</A></DIV>
    <DIV> </DIV>
    <DIV>It's a web service that allows a user to
    enter an area =
    code, a prefix and it will return a bunch of companies in the
    area within =
    that area code in XML.</DIV>
    <DIV> </DIV>
    <DIV>So, after going through the XML tutorial in DW, I
    created this page =
    that contains the form:</DIV>
    <DIV> </DIV>
    <DIV><A href=3D"
    http://www.broadbanddesigners.com/iptelesis/prefixlookup_re=
    sults.html">
    http://www.broadbanddesigners.com/iptelesis/prefixlookup_result=
    s.html</A></DIV>
    <DIV> </DIV>
    <DIV>I entered a sample query in the data bindings to
    see the schema, then =
    I created a results page (results.xsl) in
    .XSLT that has =
    placeholders for each of the XML nodes in the returned
    data.   =
    After testing it it works great!  However that's
    only when I have a =
    fixed query string.  (i.e.: <A href=3D"
    http://www.localcallingguide.co=
    m/xmllocalprefix.php?npa=3D801&amp;nxx=3D226&amp;select=3D1&amp;Submit=3DSu=
    bmit">
    http://www.localcallingguide.com/xmllocalprefix.php?npa=3D801&amp;nxx=
    =3D226&amp;select=3D1</A> )</DIV>
    <DIV> </DIV>
    <DIV>Here's my problem:  Since the user enters
    the values, what I =
    haven't figured out is how to tell this incoming XML
    file to use =
    results.xsl . When I enter queries, I get the raw xml and
    can't bind it to =
    results.xml page.</DIV>
    <DIV> </DIV>
    <DIV>Any suggestions/help?</DIV>
    <DIV> </DIV>
    <DIV>How to page it is next, but one nut at a
    time.</DIV>
    <DIV> </DIV>
    <DIV>christian</DIV></BODY></HTML>
    --____RIGBAOMRMPWQFITRMXNM____--
    --____XXIVGLQPKHJTRVXLDKBM____--

    Liceth,
    For both the Quick Search and the Advanced Search, a call is made to JhsApplicationModule.advancedSearch(), as described in the JHeadstart Developer's Guide, chapter 5.
    You can change the way the where clause is constructed by creating your own subclass of JhsApplicationModuleImpl, making sure that your own Application Module(s) extend the new class, and overriding JHeadstart's advancedSearch(String, ArrayList, Boolean) method. You can start by copying the source code from JhsApplicationModuleImpl, and then make some changes to use bind variables.
    One word of warning: if the search is applied to a child group (like in your example the employees of a certain department), ADF BC will already use :1 for the ViewLink where clause.
    Hope this helps,
    Sandra Muller
    JHeadstart Team
    Oracle Consulting

  • Inconsitent result whil using pre queries

    Hi
    I have three queries, q1, q2 and q3 where q3 calls q2 and q2 calls q1. I have a formula used in q2 which restirct the display of records with a particular formula.
    I have excuted the query q3 and I received the results where q3 called q2 and q2 called q1. But this output is not the same when I execute each query seperately.
    Could you please help me if using a formula create problem in getting the correct data.
    Thanks
    Deepak

    Hi ,
    Check in any query (Q1 and Q2) you have variable default values, Filter values or any conditions individually.
    For example:
    I have Q3 which should should me the all employees who are under Business leader B1.
    The Q3 gets the employees from Q2 .
    but Q2 in my case fetches teh data employees who are in Costcenter CC.So few employees are reduced here.
    Also The Q2 takes data from Q1 which brings CC who belongs to Region WEST. Again the employees will get reduced .
    So check if teh condition like this is restricting teh output.
    As the daat bringing from all teh under laying queries comes as teh AND condition between various selections used in them.
    I am very sure you are getting the less number of records in final Q3 ,while you are expecting more data.
    It will be very rare that you get teh data more then what u expected.
    Checl the various AND conitions between teh reports.
    The query definition of teh underlaying reports will be the main cause of teh creation of AND consitions.
    Thanks
    Mukesh

  • XML queries in ORACLE 10gR1 vs ORACLE 10gR2

    Hi
    in the research project where I'm involved in, we have two databases. One is the test database, upgraded recently in ORACLE 10gR2 and the production database in ORACLE 10gR1.
    We have the same table with the same data in both test and production database.
    I can run successfully the query and get result in test db ORACLE 10gR2:
    SELECT XMLQuery('declare namespace
    mpeg7="urn:mpeg:mpeg7:schema:2001";for $i in /mpeg7:Mpeg7
    return $i' PASSING xmlcolumn RETURNING CONTENT) FROM
    XMLTable WHERE existsNode(xmlcolumn,
    '//@id="2005"',
    'xmlns="urn:mpeg:mpeg7:schema:2001"') = 1;
    but if I try the same query in production db ORACLE 10gR1, I get the error
    return $i' PASSING xml_column RETURNING CONTENT) FROM
    FEHLER in Zeile 3:
    ORA-00907: missing right parenthesis
    Is there any difference in the queries syntax between R1 and R2?
    What should I change in my query?
    Please help. I’m really facing with some problems with XML storage and retrieve.
    Any kind of help will be appreciable
    Best regards,
    Evanela

    Hi Evanela,
    XQuery is available from 10gR2 and higher - the XQuery functionality
    is just not available in 10gR1 ...
    Does this help ...?
    -Carsten

  • Xml parsing error while selecting whole result set for sql query

    Hi All,
    I am having xml parsing error while selecting whole query result set. The data is coming fine for default result set of 50 rows.
    My exception is below.
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00234: namespace prefix "xsi" is not declared
    Error at line 1
    ORA-06512: at "SYS.XMLTYPE", line 254
    ORA-06512: at line 1
    *31011. 00000 - "XML parsing failed"*
    **Cause: XML parser returned an error while trying to parse the document.*
    **Action: Check if the document to be parsed is valid.*
    My sql query is below that is giving results for default result set of 50 rows.
    select extract(xmlType(clob_xml_colm_name), '//v2:node1//childnode/text()','xmlns:v2="namespace_url"').getStringVal()  from table_name
    My sql developer version is below.
    Java(TM) Platform     1.7.0_04
    Oracle IDE     3.1.07.42
    Versioning Support     3.1.07.42
    My database version is below.
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit
    Please could any one help me urgently as the sql query is supposed to be correct as it is returning query results, but the problem happening when i try to select whole result set.
    Thanks and regards,

    What does the XML look like? It appears that some of the supposed XML stored as a CLOB is not really valid XML. Find the row in the table that is causing your issue and review the "XML" in it.

  • Use 1 stylesheet to translate 2 xml documents(raw data)into one  result xml

    I have one java application which can generate two xml documents (raw data), now i want to have one result xml which contains contents of these two xml documents(raw data) by using one stylesheet. is it possible?
    how to match template in the stylesheet?
    how to let the stylesheet know that it should read second raw xml?

    Yes it is possible.
    You didn't say whether you want to do this by invoking the transformation from a Java program, or with a stand-alone transformer, and which one.
    I've done an application where I had a main XML file and a secondary XML file. I invoked the transformation from Java, and passed a parameter to the stylesteet. It winds up looking like a variable ($parm for example).
    Here is the declaration of the param in the stylesheet.
    <xsl:stylesheet version="1.0"
                    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:param name="list" />Next, I use the document function to read the file and produce a result tree (like a DOM object, in a sense).
    <xsl:variable name="phonemes"
                  select="document($list)" />Then, you can use code like the following to look for content in the secondary file:
    <xsl:if test="$phonemes/phonemes/allsounds[phoneme=$sound]" >This was complex, but it works.
    Another approach would be to have a small XML file with the names of the
    two XML files you want to process. You could do a for-each to process each of the tags in this little file, use the document function to read in the file and copy th eoutput to where you need it.
    So, in that case, you would be processsing 3 files rather than 2. If you are invoking from Java, the third file could be coded in a String rather than having to physically write it out.
    You've got a few ideas to consider.
    Dave Patterson

  • Query giving no result as well as no error

    hi...good evening all...
    i have a database server in a machine. the clients which are connected to those reported me that they cannot execute any queries from the schema connected to that database. i have tried and got the same result.
    There was no error but the status was EXECUTING. a simple select count(1) from table name was executing through a huge time but giving no output.
    i have bounced the database and after that it is working fine.
    My question is...may I get any idea about why the database behaved like that??
    please help.

    Hi,
    Your DB Version ?
    Secondly, if you checked the session_waits - then you might got some results/information with respect to session.
    - Pavan Kumar N

  • Exporting XML from a container

    Getting XML documents into an XmlContainer seems easy enough, but how do I get them back out again into XML? I don't see anything in API that will export the documents once they're placed in the containers.
    The reason I'd like to do this is to use BDB XML with a source-control system. Basically, each user would check out a bunch of XML files from source control and create a local container. As changes to the XML files get checked in, they would update and re-add the changed XML files to their local container. When they make changes to their local xml data, I'd like to programmatically determine which documents changed (that part I can do myself) and then export those "edited" documents from the container back into XML format. Then the users can check in their changed documents.
    This seems like it would work except that there's no way to export XML documents once they're placed in the XmlContainer. I suppose I could write my own exporter without great difficulty, but it seems like such a basic thing that I feel like I must be missing something somewhere.
    Is there really no built-in export-to-xml capability?

    Hi Devnull,
    Getting XML documents into an XmlContainer seems easy
    enough, but how do I get them back out again into
    XML? I don't see anything in API that will export
    the documents once they're placed in the containers.If you want to export all the documents held by a container you can simply use the dbxml shell:
    dbxml>getDocuments
    dbxml>print >container_name.xml
    This seems like it would work except that there's no
    way to export XML documents once they're placed in
    the XmlContainer. I suppose I could write my own
    exporter without great difficulty, but it seems like
    such a basic thing that I feel like I must be missing
    something somewhere.Not quite sure if you want to export each document from the container in its own individual xml file or all the documents in a single xml file (if this is the case use the suggested shell commands, or implement it programmatically).
    A couple of methods that you could use to implement the exporting functionality that you desire are:
    o XmlContainer::getAllDocuments http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/XmlContainer_getAllDocuments.html
    -> using this method you could retrieve all the documents inside an xml container, as an xml result set
    o XmlResults::next
    http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/XmlResults_next.html
    -> use this method to iterate through the result set and get each document
    o XmlDocument::getContent
    http://www.oracle.com/technology/documentation/berkeley-db/xml/api_cxx/XmlDocument_getContent.html
    -> use this method to put the content of an xml document from the result set in a string; you could write it into an individual xml file or append it to a single xml file
    Regards,
    Andrei Costache
    Berkeley DB
    Oracle Support Services

  • Processing XML files that contain Special Characters

    Hello:
    Before I explain my problem I think I should briefly explain what I am trying to do. I have a JSP page that invokes a Java method (the code is attached). This java method takes in an XML file and an XSLT file. It parses the XSLT and also the XML file. If the parsing went through fine, it then processes the XML file and applies the XSLT to the XML file and returns a XMLDocumentFragment Object back to JSP and the JSP renders it.
    This mechanism works well. However off late I have encountered a few XML files containing characters such as &Ecirc (Capital E with circumflex accent). Whenever my Java method tries to parse/process this .xml file it gives me the following error.
    ORG.oclc.da.utilities.ifs.ReportException: An Error Occured While Parsing the Report: Missing entity 'Ecirc'.     at ORG.oclc.da.archive.userinterface.ReportHelper.retrieveReport(Unknown Source)     at /ViewReport.jsp._jspService(/ViewReport.jsp.java:87) (JSP page line 65)     at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    It seems like the Oracle Parser/XSLT Processor (oracle.xml.parser.v2.DOMParser) I am using is not able to handle special characters such &Ecirc. I was wondering if there is anyway around this problem.
    Attached is the Java Method that handles both the parsing and processing of the XML file.
    /** The method parses the Report Data and applies the Style Sheet to this data
    * @param The InputStream (Report Contents - .xml file), Name of the StyleSheet that needs to be applied
    * @return A sub-section of the report data (DOM DocumentFragment is returned)
    private XMLDocumentFragment parseReport(InputStream reportStream,String strStyleSheet) throws Exception
    DOMParser parser;
    XMLDocument xml, xsldoc, out;
    URL urlStyleSheet;
    //Get the URL for the Style Sheet
    urlStyleSheet = new URL(strStyleSheet);
    //Create an instance of the Dom Parser
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    //Parse the XSL document and create a DOM Object
    parser.parse(urlStyleSheet);
    xsldoc = parser.getDocument();
    //Parse the report document (a .xml) and create a DOM Object
    parser.parse(reportStream);
    xml = parser.getDocument();
    // instantiate a stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, urlStyleSheet);
    XSLProcessor processor = new XSLProcessor();
    // display any warnings that may occur
    processor.showWarnings(true);
    // processor.setErrorStream(System.err);
    // Process XSL
    XMLDocumentFragment result = processor.processXSL(xsl, xml);
    return result;
    If you have any suggestions please let me know. If you need more information I will be to furnish it.
    thanks
    Mathangi

    Hello,
    I just had the same problem, you need to include the approprate entity sets so that the xsl parser will recognize them (and you won't
    get the "missing entity" error:
    if you already haven't you need to add a DOCTYPE processing instruction for your dtd, to the top of your xml files to be parsed, for ex.:
    <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "file:///mydir/mydtd.dtd">
    then in "mydtd.dtd", add references to these 3 entity sets (if you have a dtd - if not then create one just with these entries):
    <!ENTITY % HTMLlat1 PUBLIC
    "-//W3C//ENTITIES Latin 1 for XHTML//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-lat1.ent">
    %HTMLlat1;
    <!ENTITY % HTMLspecial PUBLIC
    "-//W3C//ENTITIES Special for XHTML//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-special.ent">
    %HTMLspecial;
    <!ENTITY % HTMLsymbol PUBLIC
    "-//W3C//ENTITIES Symbols for XHTML//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml-symbol.ent">
    %HTMLsymbol;
    Or, grab the ".ent" files from the www.w3.org site and put them on your server in the dtd dir, and change the "http:... reference, to
    "file:...", it will be faster to parse (that's what I did). FYI, "Ecirc" is in xhtml-lat1.ent.
    Also, after I did this,I developed another problem where my xsl parser and xmlmarkup tag-converting function converts certain
    html entities to their octal counterparts, and I don't want this and don't know how to stop it (I have a posting out for this also).
    Additionally, thanks for posting your parseReport method, it just so happens that I was looking for a way to do something like that,
    it should be helpful to me.
    -JK
    Hello:
    Before I explain my problem I think I should briefly explain what I am trying to do. I have a JSP page that invokes a Java method (the code is attached). This java method takes in an XML file and an XSLT file. It parses the XSLT and also the XML file. If the parsing went through fine, it then processes the XML file and applies the XSLT to the XML file and returns a XMLDocumentFragment Object back to JSP and the JSP renders it.
    This mechanism works well. However off late I have encountered a few XML files containing characters such as J (Capital E with circumflex accent). Whenever my Java method tries to parse/process this .xml file it gives me the following error.
    ORG.oclc.da.utilities.ifs.ReportException: An Error Occured While Parsing the Report: Missing entity 'Ecirc'.     at ORG.oclc.da.archive.userinterface.ReportHelper.retrieveReport(Unknown Source)     at /ViewReport.jsp._jspService(/ViewReport.jsp.java:87) (JSP page line 65)     at com.orionserver[Oracle9iAS (1.0.2.2) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5458)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:501)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:170)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)     at com.evermind[Oracle9iAS (1.0.2.2) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    It seems like the Oracle Parser/XSLT Processor (oracle.xml.parser.v2.DOMParser) I am using is not able to handle special characters such J. I was wondering if there is anyway around this problem.
    Attached is the Java Method that handles both the parsing and processing of the XML file.
    /** The method parses the Report Data and applies the Style Sheet to this data
    * @param The InputStream (Report Contents - .xml file), Name of the StyleSheet that needs to be applied
    * @return A sub-section of the report data (DOM DocumentFragment is returned)
    private XMLDocumentFragment parseReport(InputStream reportStream,String strStyleSheet) throws Exception
    DOMParser parser;
    XMLDocument xml, xsldoc, out;
    URL urlStyleSheet;
    //Get the URL for the Style Sheet
    urlStyleSheet = new URL(strStyleSheet);
    //Create an instance of the Dom Parser
    parser = new DOMParser();
    parser.setPreserveWhitespace(true);
    //Parse the XSL document and create a DOM Object
    parser.parse(urlStyleSheet);
    xsldoc = parser.getDocument();
    //Parse the report document (a .xml) and create a DOM Object
    parser.parse(reportStream);
    xml = parser.getDocument();
    // instantiate a stylesheet
    XSLStylesheet xsl = new XSLStylesheet(xsldoc, urlStyleSheet);
    XSLProcessor processor = new XSLProcessor();
    // display any warnings that may occur
    processor.showWarnings(true);
    // processor.setErrorStream(System.err);
    // Process XSL
    XMLDocumentFragment result = processor.processXSL(xsl, xml);
    return result;
    If you have any suggestions please let me know. If you need more information I will be to furnish it.
    thanks
    Mathangi

  • How to link 2 queries in 11g (passing the result of 1 query to another)?

    Hi,
    I am using 11g and I have 2 queries q1,q2. the first query returns a column I need to use in q2 to get my data.
    q1:
    select name, dept
    from x
    where dept = :p_y
    q2:
    select u, b
    from y
    where name = :*name* (from q1)
    when I tried to do that BIP created a bind parameter (name). when I ran get xml, no data came out of q2!
    my question is how can I pass a column from 1 query to another?
    I hope this is clear
    Thanks,
    Edited by: Odeh on Oct 9, 2010 9:18 PM

    Thanks for your reply. I am sorry if I wasn't clear, may be this will help
    I am converting oracle report 6i into BI publisher.
    in my report (invoice), I am going to pass only one parameter (*p_invoice_no*)
    Q1:
    select address_id, vendor_id, bill_date, x, y,z
    from t1
    where invoice_no = :p_invoice_no
    now I need to display the payer address info. the address come from 2 different tables based on address_id and vendor_id
    Q2:
    SELECT NAME,
    ADDRESS1,
    ADDRESS2,
    CITY,
    STATE,
    ZIP,
    FROM address_1
    WHERE address_id = decode(*:vendor_id*, '28',*:address_id*, NULL)
    union
    SELECT VENDOR name,
    VENDOR_ADDRESS1 address1,
    VENDOR_ADDRESS2 address2,
    CITY,
    STATE,
    ZIP ,
    FROM address_2
    WHERE vendor_id = :*vendor_id*
    and vendor_id <> '28'
    as you can see from Q2, the address depends on address_id, vendor_id from Q1. it will be so much easier
    if I could just do that instead of doing nested statements. you would think with 11g this should be
    easily achievable. am I wrong ?
    I hope this helps
    Thanks again,

  • How to generate XML file from oracle database query result

    Hi dudes,
    as stated on the subject, can anyone suggests me how can i achieve the task stated above??
    Here is a brief description of my problem:
    I need to create a XML file once i query from the oracle database, and the query result returned from the database will be stored in XML file.
    I'd searched around the JAXB, DOM, SAXP and the like basic concepts, but i still don't know how to start??
    Any suggestions ???

    Read this:
    http://www.cafeconleche.org/books/xmljava/chapters/ch08s05.html
    You might have to read more of the book to understand that chapter.

Maybe you are looking for

  • Inserting Images in a HTML document

    Hello, i m developing a small HTML editor , The problem i m facing is that if i m writing in my text pane and i wont to insert a image where the cursor presently is how i would do this ? since i wont have any trace as the last element of the HTML gen

  • GarageBand 3 loops missing

    I may have deleted some of GarageBand. I have version 3.0.4 (104.7) I can play all the instruments on the keyboard, so something is still there. My "loops" area shows up, but it's dull gray and I'm prompted that they're missing. Is there a download I

  • Why is my battery discharge completely overnight even  when  the device is not in use?

    Why is my iPod battery draining completely overnight even when not being used and no apps are left open?

  • Prevent large numbers from becoming scientific notation on CSV import

    Hi, I'm importing contacts in a .CSV file into iWork Numbers and it takes a 12-digit phone number from a guy in the UK and turns it into scientific notation. So something like 447729803988 becomes 4.4772E+11 which obviously loses some important digit

  • Problem with recent changes to LVM2

    Hi, the recent update broke my system. I did everything as described in the anouncement. - udev hook is used - the lvm.conf was properly updated - lvm wait is not used before rebooting I also did: If you run pacman -Syu and update device-mapper, linu