XSQL / FOP generates NPE

Hi,
I am trying to generate a PDF with the help of a custom serializer and FOP 0.20.5 from XSQL page using Jdev 10g. While I am running the application, following runtime error is encountered. If I remove FOP, then the application comes up correctly.
Any help is highly appreciated.
java.lang.ClassCastException: oracle.xml.jaxp.JXSAXParserFactory
     at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
     at org.apache.commons.digester.Digester.getFactory(Digester.java:512)
     at org.apache.commons.digester.Digester.getParser(Digester.java:686)
     at org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)
     at org.apache.commons.digester.Digester.parse(Digester.java:1565)
     at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433)
     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
     at javax.servlet.GenericServlet.init(GenericServlet.java:259)
     at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind.server.http.HttpApplication.initPreloadServlets(HttpApplication.java:4617)
     at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:765)
     at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:497)
     at com.evermind.server.Application.getHttpApplication(Application.java:886)
     at com.evermind.server.http.HttpServer.getHttpApplication(HttpServer.java:688)
     at com.evermind.server.http.HttpSite.getApplication(HttpSite.java:420)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:422)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Thread.java:534)
Oct 7, 2004 1:49:19 PM org.apache.struts.util.PropertyMessageResources <init>
INFO: Initializing, config='org.apache.struts.action.ActionResources', returnNull=true
Oct 7, 2004 1:49:19 PM org.apache.commons.digester.Digester getParser
SEVERE: Digester.getParser:
java.lang.ClassCastException: oracle.xml.jaxp.JXSAXParserFactory
     at javax.xml.parsers.SAXParserFactory.newInstance(Unknown Source)
     at org.apache.commons.digester.Digester.getFactory(Digester.java:512)
     at org.apache.commons.digester.Digester.getParser(Digester.java:686)
     at org.apache.commons.digester.Digester.getXMLReader(Digester.java:902)
     at org.apache.commons.digester.Digester.parse(Digester.java:1565)
     at org.apache.struts.action.ActionServlet.initServlet(ActionServlet.java:1433)
     at org.apache.struts.action.ActionServlet.init(ActionServlet.java:466)
     at javax.servlet.GenericServlet.init(GenericServlet.java:259)
     at com.evermind.server.http.HttpApplication.loadServlet(HttpApplication.java:2094)
     at com.evermind.server.http.HttpApplication.findServlet(HttpApplication.java:4523)
     at com.evermind.server.http.HttpApplication.getRequestDispatcher(HttpApplication.java:2561)
     at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:640)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
     at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
     at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
     at java.lang.Thread.run(Thread.java:534)

Please refer to the Using the FOP Serializer to Produce PDF Output section.
https://cwisdb.cc.kuleuven.ac.be/ora10doc/appdev.101/b10794/adx09xsq.htm#i1032191

Similar Messages

  • XSQL/FOP to PDF

    I am trying to generate a pdf using FOP within XSQL/XSL. The XSQL runs fine and the stylesheet appears to run fine with the exception that there is no pdf opened or saved (that I can see). Does the pdf get saved somewhere? Or should it open within adobe? Below is my code.
    XSQL page:
    <?xml version="1.0" encoding='windows-1252'?>
    <?xml-stylesheet type="text/xsl" serializer="FOP" href="ExecutiveSummaryReport.xsl" ?>
    <page xmlns:xsql="urn:oracle-xsql" connection="gladwhse">
    <xsql:query tag-case="lower">
    select
    last_name,
    first_name,
    sex_code
    from
    tbl_mpi_269
    where
    med_rec_no = '000002128700'
    </xsql:query>
    </page>
    Stylesheet:
    <?xml version='1.0' ?>
    <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format" xsl:version="1.0"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!--defines the layout master-->
    <fo:layout-master-set>
    <fo:simple-page-master master-name="first"
    page-height="29.7cm"
    page-width="21cm"
    margin-top="1cm"
    margin-bottom="2cm"
    margin-left="2.5cm"
    margin-right="2.5cm">
    <fo:region-body margin-top="3cm"/>
    </fo:simple-page-master>
    </fo:layout-master-set>
    <!-- Start actual layout-->
    <fo:page-sequence master-name="first">
    <fo:flow flow-name="xsl-region-body">
    <fo:block font-size="24pt" font-family="Garamond" line-height="24pt"
    space-after.optimum="3pt" font-weight="bold" start-indent="15pt">
    Executive Summary - FHA Compliance to 24 hour standard
    </fo:block>
    <!--Table with the section, units and percent-->
    <fo:block border-width="2pt">
    <fo:table>
    <fo:table-column column-width="4cm"/>
    <fo:table-column column-width="4cm"/>
    <fo:table-column column-width="4cm"/>
    <fo:table-body font-size="10pt" font-family="sans-serif">
    <xsl:for-each select="/page/rowset/row">
    <fo:table-row line-height="10pt">
    <fo:table-cell>
    <fo:block><xsl:value-of select="first_name"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block><xsl:value-of select="last_name"/></fo:block>
    </fo:table-cell>
    <fo:table-cell>
    <fo:block><xsl:value-of select="sex_code"/></fo:block>
    </fo:table-cell>
    </fo:table-row>
    </xsl:for-each>
    </fo:table-body>
    </fo:table>
    </fo:block>
    </fo:flow>
    </fo:page-sequence>
    </fo:root>

    PDF output from XSQL page is explained in XSQL tutorial.
    Support for Apache FOP 0.20.3
    http://otn.oracle.com/tech/xml/xdk/doc/production10g/doc/java/xsql/xsql_userguide.html

  • How to use Apache's FOP (getting NPE)

    I'm trying to call out to FOP from a servlet to generate a PDF. Here's my code:
    Driver driver = new Driver();
    try {
    driver.setOutputStream(response.getOutputStream());
    } catch (IOException e) {
    e.printStackTrace();
    driver.setRenderer(Driver.RENDER_PDF);
    Transformer transformer;
    try {
    transformer=TransformerFactory.newInstance().newTransformer(new StreamSource (xslStream));
    transformer.transform(new StreamSource(xmlStream), new SAXResult(driver.getContentHandler()));
    } catch (TransformerConfigurationException e) {
    e.printStackTrace();
    } catch (TransformerFactoryConfigurationError e) {
    e.printStackTrace();
    } catch (TransformerException e) {
    e.printStackTrace();
    The call to transform(...) causes a NullPointerException as such:
    java.lang.NullPointerException
    at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:762)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:335)
    Any ideas what the problem might be?
    Thanks,
    --Voytek Jarnot                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

    I fixed my problems with the following code, seems like oracle's xsl code is broke (at least in this context). Setting the javax.xml.transform.TransformerFactory to either "org.apache.xalan.processor.TransformerFactoryImpl" or "org.apache.xalan.xsltc.trax.TransformerFactoryImpl" works. I'm using the xsltc version for performance reasons.
    Of course, the whole point of the api is to allow vendors to plug in implementations, and for me not to worry about which specific implementing classes are being used. I'm breaking that abstraction here, but at least it works...
    <pre>
    static {
    //Set the TransformerFactory system property to generate and use translets.
    //The setting for the Xalan Transformer "org.apache.xalan.processor.TransformerFactoryImpl"
    String key = "javax.xml.transform.TransformerFactory";
    String value = "org.apache.xalan.xsltc.trax.TransformerFactoryImpl";
    Properties props = System.getProperties();
    props.put(key, value);
    System.setProperties(props);
    </pre>

  • PDF generation with FOP throws NPE

    Hi,
    Stack trace
    at oracle.xml.jaxp.JXTransformer.reportXSLException(JXTransformer.java:769)
    at oracle.xml.jaxp.JXTransformer.transform(JXTransformer.java:342)
    I'm using standard Java 1.4 API calls to create a PDF document from a DOM with Apache FOP 0.20.5.
    The servlet is deployed to Oracle 10g Application Server 9.0.4.0.0. With Tomcat 4.1.30 the same code executes without exceptions
    Because I have to port our web application to Oracle for a new customer it is important for me to get this fixed soon.
    Thank you
    Eckard

    Light at the end of the tunnel: It seems to work when FO and PDF generation are separated. Until now the DOM was piped into FOP who internally created the FO from SAX events and then seems to parse it again to create PDF.
    I separated the two steps: There is no problem in FO generation, but due to a namespace problem subsequent parsing fails
    ("org.apache.fop.apps.FOPException: null:2:10 Root element is missing the namespace declaration: http://www.w3.org/1999/XSL/Format")
    Now the correct exception comes up. Whether FOP SAX event listener is buggy or XML parser's error handling has a problem, I don't know
    Thank you anyway
    Eckard

  • Can we send an FOP generated PDF by email in PL/SQL code?

    Hi All,
    I have the FOP PDF generation of a report. We can "Save As" to the hard drive and then manually email it to someone by attaching it to the email.. normal..
    Can we click a button on the report, save the report as PDF and send it through htmldb_send emailing?
    I would think this would be in the htmldb_fop_render.jsp file.. not know JSP much.. has anyone done it? or are the tools available to JSP?
    Thanks, Bill

    This can be done with a little PL/SQL coding.
    Presuming you are using this guide:
    http://www.oracle.com/technology/pub/notes/technote_htmldb_fop.html
    I would look at:
    1. Changing pdf_GrabXML to simply return your XML call into a page item without posting it,
    2. Use the OWA_UTIL PL/SQL package to post your request, and handle the retrieved PDF.
    3. Send the email with the UTL_SMTP PL/SQL package, as I don't the APEX mail libraries expose attachment functionality.
    I will try to put an example together tomorrow if I get chance.
    Rgds
    Ben

  • Error using XSQL to generate RSS feeds on Unix

    I`m using an XSQL file used with a stylesheet to render an RSS 2.0 feed.
    RSS readers can pick the feed up successfully when I used a Windows based Oracle Application server installation but not when it was migrated to a Unix based server.
    Both servers do successfuly render the RSS feed into Internet Explorer as raw XML which looks identical.
    Any ideas?

    Check the content type of the response comming from your Unix server. There may be a different content type value for one of the HTTP header, which have some impact on your RSS reader.
    Using FireFox is another way to see if there are subtille differences in the responses that IE does not detect.
    Hope this helps,
    Eric

  • Xsql and fop - showing blank pdf in browser

    I am using the following configurations:-
    Apache 1.3.27 webserver,
    Apache Jserv 1.1.1
    xdk java version 9.2.0.5.0
    fop 0.16.0
    Adobe acrobat 4.0
    All other examples are working .
    The problem is
    when i am trying to access ../xsql/fop/emptable.xsql
    i am getting blank page (nothing is coming on the
    browser). But I think browser is loading acrobat
    because i can see the accrobat's flash page for a
    second.
    I think nothing wrong with acrobat , because i used to
    see pdf files from internet
    thanks in advance

    I am using the following configurations:-
    Apache 1.3.27 webserver,
    Apache Jserv 1.1.1
    xdk java version 9.2.0.5.0
    fop 0.16.0
    Adobe acrobat 4.0
    All other examples are working .
    The problem is
    when i am trying to access ../xsql/fop/emptable.xsql
    i am getting blank page (nothing is coming on the
    browser). But I think browser is loading acrobat
    because i can see the accrobat's flash page for a
    second.
    I think nothing wrong with acrobat , because i used to
    see pdf files from internet
    thanks in advance

  • XSQL und BEA Weblogic  ERROR:XSQL-013

    We develop an web-application using XSQL to generate XML, which is further transformed via XSL to HTML or PDF.
    As IDE we use JDeveloper 9.0.3.1.
    Running and debugging in JDeveloper works fine.
    We deploy the application as war-file on bea weblogic 7.2.
    When starting the xsql-servlet / calling the xsql file we get the following error:
    Oracle XSQL Servlet Page Processor 9.0.3.0.0 (Production)
    XSQL-013: XSQL Page URI is null or has an invalid format.
    XSQLConfig is located in:
    WEB-INF\classes\XSQLConfig.xml</li>
    XSQLConfig remains untouched and holds the right connection (OCI)
    <connection name="KimOci">
    <username>...</username>
    <password>...</password>
    <dburl>jdbc:oracle:oci8:@(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=...)(PORT=...)))(CONNECT_DATA=(SID=...)))</dburl>
    <driver>oracle.jdbc.driver.OracleDriver</driver>
    </connection>
    XSQL-File starts with
    <?xml version = "1.0" encoding = "ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
    <xsql:include-request-params/>
    <xsql:include-param name="ImageUrl"/>
    <xsql:include-param name="BaseUrl"/>
    <xsql:include-param name="LocalUrl"/>
    <xsql:query max-rows="-1" null-indicator="no" tag-case="lower" rowset-element="global" row-element="date">
    select ...
    Whats wrong or missing?
    Thanks

    Trying to check whats going on within the XSQL-Prozessor we tried the programmatic approach.
    First step is to call XSQL from within an action /jsp .
    <%
    String baseUrl = request.getScheme()
    + "://"
    + request.getServerName()
    + ":"
    + request.getServerPort()
    //+ "/"
    + request.getContextPath()
    + "/"
    URL pageUrl = new URL(baseUrl+"report/untitled2.xsql");
    XSQLRequest req = new XSQLRequest(pageUrl);
    PrintWriter of = new PrintWriter( new FileOutputStream("./report.xml"));
    PrintWriter ef = new PrintWriter( response.getOutputStream());
    Hashtable params = new Hashtable(0);
    req.process(params, of, ef );
    %>
    But still there is an error.
    This time we got:
    Oracle XSQL Programmatic Page Processor 9.0.3.0.0 (Production) XSQL-005: XSQL page is not well-formed. XML parse error at line 2, char 1 Expected 'EOF'
    The code of untitled2.xsql
    <?xml version = "1.0" encoding = "ISO-8859-1"?>
    <page xmlns:xsql="urn:oracle-xsql" connection="KimOci">
    <amen>leer</amen>
    </page>

  • Reports using XSQL in ADF

    Dear All,
    I need to develop the reports using XSQL. Generate the report as master child table relation wise.
    I will give sample format of my report.
    <MasterVaue>
    <child-value></childvalue>
    </mastervalue>
    i.e
    each department wise i want show the employee names
    How we can achive in XSQL in ADF
    TIA

    XSQL has nothing to do with ADF directly. You access XSQL via a Servlet, so you could deploy the XSQL servlet and access it via an af:goLink or af:goButton.
    Since XSQL is part of the Oracle XML Developer Kit, if you have questions about how to write the report itself, {forum:id=157} is probably the best forum to use.
    John

  • How to Deploy FOP demo example

    I have been trying to get the FOP demo example which comes with XSQL Demos in Oracle_home\xdk\demo\java\xsql\fop to work. I want to do something similar for one of your projects (have a .xsql file with .xsl file to transform it to fo using default serializer class defined in XMLConfig.xml). I assume that I can do that?
    I put the two files, emptable.xsql and emptablefo.xsl, in a web application in JDeveloper 10.1.2 build 1811. I got them to run in JDeveloper 10.1.2 with the embedded OC4J Server after putting the following libraries in tools -> Embedded OC4J Server Preferences, Global -> Libraries.
    fop.jar
    batik.jar
    avalon-framework-4.0.jar
    logkit-1.0.jar
    from fop-0.20.3a-bin.tar.gz.
    I want to deploy this application to Oracle 10g AS 10.1.3. I put the above libraries in the classpath by selecting: Tools->Project Properties, Profiles->Development Libraries and also xsqlserializers.jar which was in the JDeveloper Home/lib.
    I also created a orion-web.xml file and set search-local-classes-first="true".
    That did not help either. I created a .ear file and deployed from Application Server Control, OC4J home.
    I get the following error when trying to display emptable.xsql. My deployment works (if I leave out the xml-stylesheet line in the .xsql file then I get the proper data in the webpage.).
    Oracle XML Developers Kit 10.1.3.0.0 - Production
    XML-25022: Cannot load serializer class oracle.xml.xsql.serializers.XSQLFOPSerializer
    Is there any recent FOP examples on how to set an FOP applicaton? Or documentation?
    I have read Integrating FOP with Oracle JDeveloper. I don't wish to do it this way that is write my own FOP.java but just use default FOP serializer class?

    I followed the second article:
    http://technology.amis.nl/blog/?p=1182
    I do it to run in JDeveloper 10g 10.1.3 but now trying to deploy it to Oracle 10g AS 10.1.3, I get the following:
    Oracle XML Developers Kit 10.1.3.0.0 - Production
    XML-25022: Cannot load serializer class oracle.xml.xsql.serializers.XSQLFOPSerializer
    I downloaded, fop-0.20.5-bin.zip. And created the XSQLFOPSerializer class in the XSQLModel project. I gave my package name a different name then the name, oracle.xml.xsql.serializers, which was in the article. I put my class name in the XSQLConfig.xml file. This class is included in the War deployment profile. So why would I be getting the above error?
    So do I need to make my class the name, oracle.xml.xsql.serializers.XSQLFOPSerializer?

  • XSQL Master Child

    Dear All,
    I need to develop the reports using XSQL. Generate the report as master child table relation wise.
    I will give sample format of my report.
    <MasterVaue>
    <child-value></childvalue>
    </mastervalue>
    i.e
    each department wise i want show the employee names
    How we can achive in XSQL in ADF
    TIA

    Hi,
    Can anyone helpout me.
    - <ROWSET>
    - <ROW num="1">
    <DEPTID>100</DEPTID>
    <EMP_ID>82</EMP_ID>
    <NAME>Ganesh</CHGVALUE>
    </ROW>
    - <ROW num="2">
    <DEPTID>100</DEPTID>
    <EMP_ID>85</EMP_ID>
    <NAME>Rajesh</CHGVALUE> </ROW>
    </ROWSET>
    - <ROW num="2">
    <DEPTID>101</DEPTID>
    <EMP_ID>81</EMP_ID>
    <NAME>Raju</CHGVALUE> </ROW>
    </ROWSET>
    Here i need <DEPTID> wise employee details
    TIA

  • xsl:element missing node problem

    I was reading Re: re:how to use Apache's FOP (getting NPE) on the Oracle forums and noticed Steve M. said something about not being able to find nodes that <xsl:element> has created. I am currently having this problem when doing double transformations on documents. We would like to eliminate redundant style sheets but removing the table name prefix from our column names.
    ex:
    SZRADAP_PIDM and SZBRECR_PIDM have the same data and the rest of the columns in the two table are named in the same fasion. I have a simple style sheet that removes the table name prefix.
    <?xml version="1.0"?>
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
    <xsl:output method="xhtml" indent="yes"/>
    <xsl:template match="node()[contains(name(), '_')]">
    <xsl:element name="{substring-after(name(), '_')}">
    <xsl:apply-templates/>
    </xsl:element>
    </xsl:template>
    <xsl:template match="node()|@*">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    </xsl:stylesheet>
    It works just fine but I would then like to include this .xsql in another .xsql for transfomation by a stylesheet that looks for the table non-specific tags. As was stated in the article I cannot find the nodes that have been created by the <xsl:element> function. I cannot readily use xsl:copy so I seem to be stuck. Any help or suggestions would be much appreciated.

    Well I seem to have found the problem ... I was using an old version of the XDK where this was an apparent bug. I've upgraded to the latest production XDK and it's all fixed.

  • [Patch 정보] TRACKING BUG FOR CUMULATIVE MLR#6 ON TOP OF BPEL PM 10.1.3.3.1

    최근에 출시된 BPEL PM 10.1.3.3.1의 통합패치입니다.
    아래는 readme.txt에 포함된 patch list입니다.
    # WARNING: Failure to carefully read and understand these requirements may
    # result in your applying a patch that can cause your Oracle Server to
    # malfunction, including interruption of service and/or loss of data.
    # If you do not meet all of the following requirements, please log an
    # iTAR, so that an Oracle Support Analyst may review your situation. The
    # Oracle analyst will help you determine if this patch is suitable for you
    # to apply to your system. We recommend that you avoid applying any
    # temporary patch unless directed by an Oracle Support Analyst who has
    # reviewed your system and determined that it is applicable.
    # Requirements:
    # - You must have located this patch via a Bug Database entry
    # and have the exact symptoms described in the bug entry.
    # - Your system configuration (Oracle Server version and patch
    # level, OS Version) must exactly match those in the bug
    # database entry - You must have NO OTHER PATCHES installed on
    # your Oracle Server since the latest patch set (or base release
    # x.y.z if you have no patch sets installed).
    # - [Oracle 9.0.4.1 & above] You must have Perl 5.00503 (or later)
    # installed under the ORACLE_HOME, or elsewhere within the host
    # environment.
    # Refer to the following link for details on Perl and OPatch:
    # http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=189489.1
    # If you do NOT meet these requirements, or are not certain that you meet
    # these requirements, please log an iTAR requesting assistance with this
    # patch and Support will make a determination about whether you should
    # apply this patch.
    # 10.1.3.3.1 Bundle Patch 6823628
    # DATE: March 14, 2008
    # Platform Patch for : Generic
    # Product Version # : 10.1.3.3.1
    # Product Patched : Oracle(R) SOA
    # Bugs Fixed by 10.1.3.3.1 Initial patch 6492514 :
    # Bug 5473225 - PATCH01GENESIS HOT UNABLE TO CATCH AN EXCEPTION DURING A
    # TRANSFORM
    # Bug 5699423 - PARTNERLINK PROPERTY THAT SET BPELXPROPERTY FUNCTION DOESN'T
    # WORK
    # Bug 5848272 - STATEFUL WEBSERVICES DEMO ON OTN DOES NOT WORK 10.1.3.1
    # Bug 5872799 - ANT DEPLOY BPEL TEST FAILS/RUNS ON DEFAULT DOMAIN NOT
    # SPECIFIED TARGET DOMAIN
    # Bug 5883401 - ALLOW A WAY TO CREATE EMPTY NODES - AND USE FOR REQUIRED
    # NODES
    # Bug 5919412 - SAMPLE DEMO BPEL PROCESSES MIMESERVICE MIMEREQUESTER AXIS
    # JAVA EXAMPLE ERROR
    # Bug 5924483 - ESB SHOULD SUPPORT SOAP EDNPOINT LOCATION DYNAMIC UDDI LOOKUP
    # Bug 5926809 - ORAPARSEESCAPEDXML XPATH EXPRESSION FAILED TO EXECUTE
    # FOTY0001 TYPE ERROR
    # Bug 5937320 - STRANGE BEHAVIOUR CALLING FROM BPEL TO BPEL GETTING
    # NULLPOINTEREXCEPTION.
    # Bug 5944641 - BPA BLUEPRINT NOT AVAIALBLE IN JDEVELOPER
    # Bug 5945059 - JAVA.LANG.NULLPOINTEREXCEPTION SENDING EMAILS WITH PAYLOADS
    # LARGER THAT 1MB
    # Bug 5962677 - WS RESPONSE IS EMPTY SOAP BODY IN ONE-WAY CALL
    # Bug 5963425 - WHEN THE OUTCOMES FOR A HT CHANGED & IMPORTED - UPDATE
    # CONNECTION ROLES IN BPEL
    # Bug 5964097 - AQ ADAPTER DEPLOYMENT CAUSES OPMN TO PERFORM A FORCEFUL
    # SHUTDOWN IN SOA
    # Bug 5971534 - CANNOT GRANT USER TASK VIEWS TO GROUPS, ONLY TO USERS.
    # Bug 5989367 - REFER TO SR 6252219.993 BPEL 10.1.3 ONLY COPIES IN ASSIGN,
    # IN 10.1.2 IT CREATES
    # Bug 5989527 - ENHANCEMENT WARNING SHOULD BE GIVEN UPON UPLOAD IF BPEL
    # PROCESS IS OPEN IN ARIS
    # Bug 5997936 - ESB FAULT DOES NOT GET PROPAGATED TO BPEL
    # Bug 6000575 - PERF NEED ESB PURGE SCRIPT TO PURGE BY DATE AND PROCESS
    # Bug 6001796 - POSTING OF DATE RECEIVED FROM XML GATEWAY TO BPEL FAILED IN
    # ESB
    # Bug 6005407 - BPEL PROCESS DOESN'T PROPOGATE FAULT THROWN BY BPEL
    # SUB-PROCESS
    # Bug 6017846 - MIMETYPE OF EMAIL NOTIFICATION IS NOT SET THROUGH HUMAN TASK
    # Bug 6027734 - DECISION SERVICE IMPORT - LOCATING DECISION SERVICE IN .DECS
    # FILE IMPROPER
    # Bug 6028985 - EXCEEDED MAXIMUM NUMBER OF SUBSCRIBERS FOR QUEUE
    # ORAESB.ESB_CONTROL
    # Bug 6041508 - CREATING/UPDATING DVM CAUSE EXCEPTION
    # Bug 6053708 - FTP ADAPTER DOES NOT SUPPORT ENCRYPTED PASSWORD IN
    # OC4J-RA.XML
    # Bug 6054034 - INDEX4,INDEX5 AND INDEX6 CANNOT BE USED IN BPEL CONSOLE
    # Bug 6068801 - BACKPORT OF BPEL ON WEBLOGIC - VERSION 10.1.3.3
    # Bug 6070991 - HT EXPORT DOES NOT EXPORT PARAMETERS, ALLOW PARTICIPANTS TO
    # INVITE OTHERS
    # Bug 6071001 - WSIF HTTP BINDING NOT WORKING FROM ESB
    # Bug 6073311 - STRESS SCOPE NOT FOUND ON CALLBACK - WRONG (DUPE)
    # SUBSCRIPTION IN TABLE
    # Bug 6081070 - JMS ADAPTER REJECTION HANDLER CREATE 0 BYTE FILES
    # Bug 6083419 - DECISION SERVICE SCOPE NEED TO HAVE A SPECIAL INDICATOR
    # Bug 6085799 - HUMAN TASK ADDED IN SCOPE IN JDEV IS NOT UPDATED TO BPA
    # SERVER
    # Bug 6085933 - EXPORT AND EXPLORE SHOULD USE USER LANGUAGE AND NOT ENGLISH
    # ALWAYS
    # Bug 6086281 - STRING INDEX OUT OF RANGE ERROR FOR COBOL COPYBOOK WITH PIC
    # CLAUSE HAVING S
    # Bug 6086453 - DOMAINS CREATED IN A CLUSTER GETS NOT PROPAGATED TO NEW OR
    # EXISTING NODES
    # Bug 6087484 - MULTIPLE HEADER SETTING CAUSES ESB EXCEPTION
    # Bug 6087645 - ESB SHOULD ALLOW USER PICK RUNTIME PROTOCOL (HTTP/HTTPS)
    # Bug 6110231 - TRANSLATION NOT BASED ON MQ CCSID CHARSET
    # Bug 6120226 - BPEL IS NOT SETTING THE APPS CONTEXT CORRECTLY
    # Bug 6120323 - COMPLETIONPERSISTPOLICY ON DOMAIN LEVEL HAS DISAPPEARED
    # Bug 6125184 - ESB JMS SESSION ROLLBACK ORACLE.JMS.AQJMSEXCEPTION
    # Bug 6127824 - [AIA2.0] CURRENT XREF IMPLEMENTATION IS MISSING REQUIRED
    # INDEXES ON XREF SCHEMA
    # Bug 6128247 - HTTPCONNECTOR POST() METHOD SHOULD RAISE EXCEPTION FOR ALL
    # STATUS CODES EXCEPT 2
    # Bug 6131159 - ENABLE USERS TO CHOOSE XSD WHEN CREATING A BPEL PROCESS FROM
    # BLUE PRINT
    # Bug 6132141 - PROCESS_DEFAULT TABLE STILL CONTAINS INFORMATION FROM
    # UNDEPLOYED PROCESSES
    # Bug 6133190 - ENABLING ESB CONSOLE HTTP/S IS MAKING THE CONSOLE TO COME UP
    # BLANK.
    # Bug 6139681 - BPEL WSDL LINK IN CLUSTERED RUNTIME POINTS TO A SINGLE NODE
    # Bug 6141259 - BASICHEADERS NOT PUTTING WWW-AUTHENTICATE HEADERS FOR HTTP
    # BINDING IN BPEL
    # Bug 6148021 - BPEL NATIVE SCHEMA FOR COBOL COPYBOOK WITH IMPLIED DECIMAL
    # LOSES DIGIT IN OUTPUT
    # Bug 6149672 - XOR DATA - CONDITION EXPRESSION SPECIFICATION IS NOT
    # INTUITIVE IN BPMN MODELS
    # Bug 6152830 - LOSING CONDITIONAL EXPRESSIONS CREATED IN JDEV UPON MERGE
    # Bug 6158128 - BASICHEADERS NOT PUTTING WWW-AUTHENTICATE HEADERS FOR HTTP
    # BINDING
    # Bug 6166991 - WHEN STARTING SOA SUITE,, PROCESSES FAIL DUE TO UNDEFINED
    # WSDL
    # Bug 6168226 - LOCATION-RESOLVER EXCEPTION THROWN IN OPMN LOGS
    # Bug 6187883 - CHANGES FOR BPEL RELEASE ON JBOSS- VERSION 10.1.3.3
    # Bug 6206148 - [AIA2.0] NEW FUNCTION REQUEST, XREFLOOKUPPOPULATEDCOLUMNS()
    # Bug 6210481 - BPEL PROCESS WORKS INCORRECTLY WHEN AN ACTIVITY HAS MULTIPLE
    # TRANSITIONCONDITION
    # Bug 6240028 - WEBSERVICE THAT DOES NOT CHALLENGE FOR BASIC CREDENTIALS
    # CANNOT BE INVOKED
    # Bug 6257116 - MULTIPLE HEADER SETTING CAUSES ESB EXCEPTION
    # Bug 6258925 - MESSAGE RECEIVED BY THE TARGET ENDPOINT VIA HTTP POST IS
    # MISSING THE XML HEADER
    # Bug 6259686 - TOO MANY UNNECESSARY WORKFLOW E-MAIL NOTIFICATIONS GENERATED
    # Bug 6267726 - 10.1.3.3 ORACLE APPLICATIONS ADAPTER - NOT ABLE TO CAPTURE
    # BUSINESS EVENT
    # Bug 6272427 - WEBSPHERE BPEL FAILS FOR DATA RETRIEVAL OF SIZE 500+ KB
    # Bug 6276995 - MERGE SCOPE NAME IS NOT UPDATED WHEN CHANGED IN THE SERVER
    # Bug 6280570 - XPATH EXPRESSION ERROR IN MEDIATOR FOR ASSIGNING USER-DEFINED
    # CONTEXT VALUES
    # Bug 6282339 - RETRYCOUNT DOES NOT WORK PROPERLY
    # Bug 6311039 - ONE RECORD IS INSERTED TO SYNC_STORE IF
    # COMPLETIONPERSISTPOLICY SET TO FAULTED
    # Bug 6311809 - [AIA2.0] NON-RETRYABLE ERRORS ARE NOT POSTED ON ESB_ERROR
    # TOPIC
    # Bug 6314784 - THE PRIORITY DEFINED IN THE BPA SUITE IS NOT TRANSFERRED TO
    # THE JDEV CORRECTLY
    # Bug 6314982 - THREADPOOL RACE CONDITION IN ADAPTER INITIALIZATION MESSAGES
    # NOT PROCESSED
    # Bug 6315104 - (SET)CLASSNAME MISSING IN TSENSOR JAXB OBJECTS
    # Bug 6316554 - CONSUME FUNCTIONALITY OF JMS ADAPTER FOR BEA WEBLOGIC DOES
    # NOT WORK
    # Bug 6316950 - FILEADAPTER HARPER ENHANCEMENTS SYNC WRITE AND CHUNKED
    # INTERACTION SPEC
    # Bug 6317398 - THE ICON FOR COMPUTING DIFFERENCE IS MISSING IN JDEV REFRESH
    # FROM SERVER DIALOG
    # Bug 6320506 - IMPORT FAILS WHEN THERE IS AN UNNAMED CASE
    # Bug 6321011 - CANNOT PROCESS 0 BYTE FILE USING FTP ADAPTER
    # Bug 6325749 - TRACKING BUG FOR TRACKING ADDITIONAL CHANGES TO BUG #6032044
    # Bug 6328584 - NEED A NEW XPATH EXPRESSION TO GET ATTACHMENT CONTENT VIA
    # SOAP INVOKATION
    # Bug 6333788 - COLLAPSING OF CONSECUTIVE ASSIGN TASKS BREAKS BAM SENSOR
    # Bug 6335773 - BUILD.XML CONTAINS DO NOT EDIT .. - WHILE <CUSTOMIZE> TASK
    # MUST BE IN <BPELC>
    # Bug 6335805 - AQ ADAPTER OUTBOUND DOESN'T RECONNECT AFTER FAILURE
    # Bug 6335822 - [AIA2.0] PSRPERFESB - RUNTIME DVM PERFORMANCE OVERHEAD IN ABS
    # USE CASE
    # Bug 6339126 - CHECKPOINT BPEL JAVA METHOD DOESN'T WORK IN BPEL 10.1.3.3
    # Bug 6342899 - OUTLINECHANGE.XML NOT UPDATE WITH ACTIVITY FROM NEW BRANCH
    # Bug 6343299 - ESB CONCRETE WSDL NAMESPACE SHOULD BE DIFFERENT FROM IMPORTED
    # WSDL NAMESPACE
    # Bug 6372741 - DEHYDRATION DATABASE KEEPS GROWING IN 10.1.3.3
    # Bug 6401295 - NXSD SHOULD SUPPORT ESCAPING THE TERMINATED/QUOTED/SURROUNDED
    # DELIMITERS
    # Bug 6458691 - DIST DIRECTORY FOR 10.1.3.3.1 NEEDS UPDATE
    # Bug 6461516 - BPEL CONSOLE CHANGES FOR DISPLAYING RELEASE 10.1.3.3.1
    # Bug 6470742 - CHANGE THE VERSION NUMBER AND BUILD INFO IN ABOUT DIALOG IN
    # ESB
    # BUG ADDED IN MLR#1, 6671813 :
    # Bug 6494921 - ORABPEL-02154 IF LONG DOMAIN AND SUITECASE NAMES IN USE
    # BUGS ADDED IN MLR#2, 6671831 :
    # Bug 6456519 - ERROR IN BPEL CONSOLE THREADS TAB:SERVLETEXCEPTION CANNOT GET
    # DISPATCHER TRACE
    # Bug 6354719 - WHICH JGROUP CONFIGURATION PARAMETER IMPACTS BPEL CLUSTER
    # ACTIVITY
    # Bug 6216169 - SCOPE NOT FOUND ERROR WHILE DELIVERING EXPIRATION MESSAGE OF
    # ONALARM
    # Bug 6395060 - ORA-01704 ON INSERTING A FAULTED INVOKE ACTIVITY_SENSOR
    # Bug 6501312 - DEHYDRATION DATABASE KEEPS GROWING IN 10.1.3.3 #2
    # Bug 6601020 - SEARCHBASE WHICH INCLUDES PARENTHESIS IN THE NAMES DOES NOT
    # WORK
    # Bug 6182023 - WAIT ACTIVITY FAILS TO CONTINUE IN CLUSTER WHEN PROCESSING
    # NODE GOES DOWN
    # BUGS ADDED IN MLR#3, 6723162 :
    # Bug 6725374 - INSTANCE NOT FOUND IN DATASOURCE
    # Bug 4964824 - TIMED OUT IF SET CORRELATIONSET INITIATE YES IN REPLY
    # ACTIVITY
    # Bug 6443218 - [AIA2.0]BPEL PROCESS THAT REPLIES A CAUGHT FAULT AND THEN
    # RETHROWS IT IS STUCK
    # Bug 6235180 - BPPEL XPATH FUNCTION XP20 CURRENT-DATETIME() IS RETURNING AN
    # INCORRET TIME
    # Bug 6011665 - BPEL RESTART CAUSES ORABPEL-08003 FAILED TO READ WSDL
    # Bug 6731179 - INCREASED REQUESTS CAUSE OUTOFMEMORY ERRORS IN OC4J_SOA WHICH
    # REQUIRES A RESTART
    # Bug 6745591 - SYNC PROCESS <REPLY> FOLLOWED BY <THROW> CASE CAUSING
    # OUTOFMEMORY ERRORS
    # Bug 6396308 - UNABLE TO SEARCH FOR HUMAN TASK THAT INCLUDES TASK HISTORY
    # FROM PREVIOUS TASK
    # Bug 6455812 - DIRECT INVOCATION FROM ESB ROUTING SERVICE FAILS WHEN CALLED
    # BPEL PROCESS
    # Bug 6273370 - ESBLISTENERIMPL.ONFATALERROR GENERATING NPE ON CUSTOM ADAPTER
    # Bug 6030243 - WORKFLOW NOTIFICATIONS FAILING WITHOUT BPELADMIN USER
    # Bug 6473280 - INVOKING A .NET 3.0 SOAP SERVICE EXPOSED BY A ESB ENDPOINT
    # GIVES A NPE
    # BUGS ADDED IN MLR#4, 6748706 :
    # Bug 6336442 - RESETTING ESB REPOSITORY DOES NOT CLEAR DB SLIDE REPOSITORY
    # Bug 6316613 - MIDPROCESS ACTIVATION AGENT DOES NOT ACTIVATED FOR RETIRED
    # BPEL PROCESS
    # Bug 6368420 - SYSTEM IS NOT ASSIGNING TASK FOR REAPPROVAL AFTER REQUEST
    # MORE INFO SUBMITTED
    # Bug 6133670 - JDEV: UNABLE TO CREATE AN INTEGRATION SERVER CONNETION WHEN
    # ESB IS ON HTTPS
    # Bug 6681055 - TEXT ATTACHMENT CONTENT IS CORRUPTED
    # Bug 6638648 - REQUEST HEADERS ARE NOT PASSED THROUGH TO THE OUTBOUND HEADER
    # Bug 5521385 - [HA]PATCH01:ESB WILL LOSE TRACKING DATA WHEN JMS PROVIDER IS
    # DOWN
    # Bug 6759068 - WORKLIST APPLICATION PERFORMANCE DEGRADATION W/ SSL ENABLED
    # FOR BPEL TO OVD
    # BUGS ADDED IN MLR#5, 6782254 :
    # Bug 6502310 - AUTOMATED RETRY ON FAILED INVOKE WITH CORRELATIONSET INIT
    # FAILS
    # Bug 6454795 - FAULT POLICY CHANGE NEEDS RESTART OF BPEL SERVER
    # Bug 6732064 - FAILED TO READ WSDL ERROR ON THE CALLBACK ON RESTARTING BPEL
    # OC4J CONTAINER
    # Bug 6694313 - ZERO BYTE FILE WHEN REJECTEDMESSAGEHANDLERS FAILS
    # Bug 6686528 - LINK IN APPLICATION.XML FILES CHANGED TO HARD LINKS WHEN MORE
    # THAN 1 HT PRESENT
    # Bug 6083024 - TEXT AND HTML DOC THAT RECEIVED AS ATTACHMENTS WERE EITHER
    # BLANK OR GARBLED
    # Bug 6638648 - REQUEST HEADERS ARE NOT PASSED THROUGH TO THE OUTBOUND HEADER
    # Bug 6267726 - 10.1.3.3 ORACLE APPLICATIONS ADAPTER - NOT ABLE TO CAPTURE
    # BUSINESS EVENT
    # Bug 6774981 - NON-RETRYABLE ERRORS ARE NOT POSTED ON ESB_ERROR TOPIC
    # Bug 6789177 - SFTP ADAPTER DOES NOT SUPPORT RENAMING FILES
    # Bug 6809593 - BPEL UPGRADE TO 10.1.3.3.1 WITH ESB CALLS FAILS DUE TO
    # CACHING OF PLNK - SERVICE
    # BUGS ADDED IN MLR#6, 6823628 :
    # Bug 6412909 - <BPELX:RENAME> DOES NOT ADD XMLNS DECLARATION AUTOMATICALLY
    # Bug 6753116 - OUTPUT FROM HUMAN TASK IS NOT IS NOT CONSISTENT WITH
    # SCHEMA
    # ORDERING
    # Bug 6832205 - BAD VERIFICATIONSERVICE PERFORMANCE IF LDAP SERVICE HAS HUGE
    # DATA
    # Bug 6189268 - CALLING BPEL PROCESS VIA SOAP FROM ESB FAILS WITH
    # NAMENOTFOUNDEXCEPTION
    # Bug 6834402 - JMS ADAPTER IMPROPERLY CASTS XAQUEUESESSION TO QUEUESESSION
    # Bug 6073117 - TASK SERVICE DOESN'T RENDER THE TASK ACTIONS
    # Bug 6054263 - REUSING SOAP WSDL IN RS CAUSES SOAP ACTION'S NS TO BE
    # STRIPPED
    # AWAY
    # Bug 6489703 - ESB: NUMBER OF LISTENERS > 1 GIVES JMS EXCEPTION UNDER STRESS
    # Bug 5679542 - FTP ADAPTER: COULD NOT PARSE TIME:
    # JAVA.LANG.STRINGINDEXOUTOFBOUNDSEXCEPTION
    # Bug 6770198 - AQ ACTIVATIONINSTANCES >1 DOESN'T WORK IN ESB
    # Bug 6798779 - ESB ROUTING RULES CORRUPTED ON RE-REGISTERING WITH ROUTING
    # ORDER
    # IN WSDL CHANGED
    # Bug 6617974 - BACKPORT REQUEST FOR MOVING FILES FUNCTION OF FTP ADAPTER
    # Bug 6705707 - VALIDATION ON ESB CAN'T HANDLE NESTED SCHEMAS
    # Bug 6414848 - FTP ADAPTER ARCHIVE FILENAME FOR BPEL IS BEING SCRAMBLED
    # AFTER
    # THE 10.1.3.3 UPGR
    # Bug 5990764 - INFORMATION ARE LOST WHEN BPEL PROCESS IS POLLING FOR MAILS
    # WITH
    # ATTACHEMENTS
    # Bug 6802070 - ORA-12899 SUBSCRIBER_ID/RES_SUBSCRIBER COLUMN SMALL FOR LONG
    # DOMAIN AND PROCESS
    # Bug 6753524 - WRONG SERVICE ENDPOINT OPEN WHEN TEST WEB SERVICE OF ESB
    # Bug 6086434 - PROBLEM IN BPEL FILE ADAPTER WHILE READING A FIXED LENGTH
    # FILE
    # Bug 6823374 - BPEL 10.1.3.3.1 BAM SENSOR ACTION FAILS WITH BAM 11
    # Bug 6819677 - HTTS STATUS 202 RETURNED INSTEAD OF SOAP FAULT
    # Bug 6853301 - MQ ADAPTER REJECTED MESSAGES IS NOT REMOVED FROM THE RECOVERY
    # QUEUE
    # Bug 6847200 - 10.1.3.3.1 PATCH (#6748706) HAS STOPPED FTP ADAPTER POLLING
    # IN
    # SFTP MODE
    # Bug 6895795 - AQ OUTBOUND DOESN'T WORK WITH MLR#6
    업무에 참고하시기 바랍니다.

    David,
    You are right, theer are some changes incorporated in the latest MLR # 16 on the configurations files and on the dehydration store metrics(such as performance, fields,..).
    However, I would not suggest to continue working on olite, even for Development/Test purposes as you might get stuck with strange errors...and the only solution would be to re-install SOA Suite if your olite gets corrupted. There might be ways to gets your olite back to position, but trust me..its not so simple.
    Also, when you develop and stress test all your testcase scenarios in an TEST Adv installation, its simple to mimic the same in actual production box, as you exactly know its behavior.
    So, go for a brand new SOA 10.1.3.4 MLR # 5 (or) 10.1.3.3.1 MLR # 16 SOA Suite Advanced installation with Oracle DB 10.2.0.3 as its dehydration store.
    Hope this helps!
    Cheers
    Anirudh Pucha

  • How to handle multiple exception types in JSF 2?

    I'm trying to handle multiple exception types in JSF2, including a default error page for any unexpected exception types. The problems I'm having are:
    1) ViewExpiredException is handled only when no generic exception handler is specified
    2) "Regular" exceptions like NullPointerException are never handled
    My managed bean:
    @Named
    @SessionScoped
    public class MyController implements Serializable {
    /* A method that does nothing */
    public void doNothing() {
        //do nothing
    /* Generate a null pointer exception on purpose */
    public void generateNpe() throws NullPointerException {
        Object x = null;
        x.toString();
    My test page to generate the exception:
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Test page</title>
    </h:head>
    <h:body>
        <h:form>
            <h:commandButton id="button1" value="do nothing" action="#{myController.doNothing}" />
            <h:commandButton id="button2" value="generate NPE" action="#{myController.generateNpe}" />
        </h:form>
    </h:body>
    </html>
    My web.xml:
    <!-- Redirect all NPEs to this page; this never works! -->
    <error-page>
        <exception-type>java.lang.NullPointerException</exception-type>
        <location>/error/error003.jsf</location>
    </error-page>
    <!-- Redirect all VEEs to this page; this works fine if the next section is excluded -->
    <error-page>
        <exception-type>javax.faces.application.ViewExpiredException</exception-type>
        <location>/error/error002.jsf</location>
    </error-page>
    <!-- This grabs everything, even with the previous sections defined.  If I exclude this error-page section, VEE works fine but NPE still does not get redirected -->
    <error-page>
        <exception-type>java.lang.Exception</exception-type>
        <location>/error/error001.jsf</location>
    </error-page>My questions are as follows:
    1) How can we handle "regular" java exceptions like NPE?
    2) How can we define a catch-all for unexpected exception types, while still respecting specific exception handlers for VEE, etc?
    Thanks,
    Benjamin

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • Problem writing a XSLT to convert XML in desired format from a table having self join

    Hello,
    I have to write a style sheet to convert XML generated from XSQL into a different format. The query that I have is as follows.
    select LEVEL depth,
    'H' || hierarchy_id id,
    name,
    nvl2(parent_id, 'H' || parent_id, 0) parent_id,
    CURSOR(select LEVEL depth,
    'H' || hierarchy_id hid,
    name hname,
    nvl2(parent_id, 'H' || parent_id, 0) hparent_id,
    decode(system_id, NULL, '0', 'S' || system_id) formatted_system_id,
    system_id
    from hierarchy
    where parent_id = h.hierarchy_id
    and system_id is not null
    ) as systems
    from hierarchy h
    where system_id is null
    start with parent_id is null
    connect by prior hierarchy_id = parent_id
    The hierarchy table has a self join to itself. The selfjoin is on the hierarchyid and the parentid fields which is evident from the query.
    Here the hierarchy table contains the parent system and also the child systems underneath. The problem is that the no. of levels that it can go deep is not fixed. The output of this in sqlplus is as follows.
    Depth Hierarchyid, name parentid
    1 h1 xxx <null>
    2 h2 bbb h1
    3 h3 ccc h2
    <Cursor for systems>
    hid hname hparentid formatted_system_id systemid
    h4 ccc h2 s1 1
    h5 ccc h2 s2 2
    <Back to original data>
    Depth Hierarchyid, name parentid
    2 h6 ddd h1
    2 h7 eee h1
    The desired output required from the stylesheet is as follows
    <h id=h1 name=xxx>
    <h id=h2 name=bbb parentid=h1>
    <h id=h3 name=ccc parentid=h2>
    <h id=h4 name=fff parentid=h3 systemid=s1>
    <h id=h5 name=ggg parentid=h3 systemid=s2>
    </h>
    </h>
    <h id=h6 name=ddd parentid=h1/>
    <h id=h7 name=eee parentid=h1/>
    </h>
    Could some one guide me as to how to get this. I did write a stylesheet which gives me the following output.
    <h id=h1 name=xxx>
    <h id=h2 name=bbb parentid=h1/>
    <h id=h3 name=ccc parentid=h2/>
    <h id=h4 name=fff parentid=h3 systemid=s1>
    <h id=h5 name=ggg parentid=h3 systemid=s2>
    </h>
    <h id=h6 name=ddd parentid=h1/>
    <h id=h7 name=eee parentid=h1/>
    </h>
    As you can see I am missing the closing of the tag on the 7th line in the desired format. I have written the following stylesheet.
    <!-- Hierarchy.xsl: Transform ROWSET/ROW format to the required Hierarchy format. -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="node()|@*">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <!-- Template for matching the rowset..... -->
    <xsl:template match="HIERARCHY">
    <HIERARCHY><xsl:apply-templates/></HIERARCHY>
    </xsl:template>
    <!-- Template for matching the row .... -->
    <xsl:template match="HELEMENT">
    <xsl:choose>
    <xsl:when test="PARENT_ID=0">
    <helement id="{ID}" name="{NAME}" parentid="{PARENT_ID}"/>
    </xsl:when>
    <xsl:when test="PARENT_ID!='0'">
    <helement2 id="{ID}" name="{NAME}" parentid="{PARENT_ID}">
    <xsl:for-each select="SYSTEMS/SYSTEMS_ROW">
    <helement3 id="{HID}" name="{HNAME}" parentid="{HPARENT_ID}" systemid="{FORMATTED_SYSTEM_ID}">
    </helement3>
    </xsl:for-each>
    </helement2>
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Is there any way of achieving this. Any help would be appreciated. I am using XSQL to generate first the basic XML output and then applying stylesheet to achieve the desired output.
    Sincerely,
    D

    Hello,
    I have to write a style sheet to convert XML generated from XSQL into a different format. The query that I have is as follows.
    select LEVEL depth,
    'H' || hierarchy_id id,
    name,
    nvl2(parent_id, 'H' || parent_id, 0) parent_id,
    CURSOR(select LEVEL depth,
    'H' || hierarchy_id hid,
    name hname,
    nvl2(parent_id, 'H' || parent_id, 0) hparent_id,
    decode(system_id, NULL, '0', 'S' || system_id) formatted_system_id,
    system_id
    from hierarchy
    where parent_id = h.hierarchy_id
    and system_id is not null
    ) as systems
    from hierarchy h
    where system_id is null
    start with parent_id is null
    connect by prior hierarchy_id = parent_id
    The hierarchy table has a self join to itself. The selfjoin is on the hierarchyid and the parentid fields which is evident from the query.
    Here the hierarchy table contains the parent system and also the child systems underneath. The problem is that the no. of levels that it can go deep is not fixed. The output of this in sqlplus is as follows.
    Depth Hierarchyid, name parentid
    1 h1 xxx <null>
    2 h2 bbb h1
    3 h3 ccc h2
    <Cursor for systems>
    hid hname hparentid formatted_system_id systemid
    h4 ccc h2 s1 1
    h5 ccc h2 s2 2
    <Back to original data>
    Depth Hierarchyid, name parentid
    2 h6 ddd h1
    2 h7 eee h1
    The desired output required from the stylesheet is as follows
    <h id=h1 name=xxx>
    <h id=h2 name=bbb parentid=h1>
    <h id=h3 name=ccc parentid=h2>
    <h id=h4 name=fff parentid=h3 systemid=s1>
    <h id=h5 name=ggg parentid=h3 systemid=s2>
    </h>
    </h>
    <h id=h6 name=ddd parentid=h1/>
    <h id=h7 name=eee parentid=h1/>
    </h>
    Could some one guide me as to how to get this. I did write a stylesheet which gives me the following output.
    <h id=h1 name=xxx>
    <h id=h2 name=bbb parentid=h1/>
    <h id=h3 name=ccc parentid=h2/>
    <h id=h4 name=fff parentid=h3 systemid=s1>
    <h id=h5 name=ggg parentid=h3 systemid=s2>
    </h>
    <h id=h6 name=ddd parentid=h1/>
    <h id=h7 name=eee parentid=h1/>
    </h>
    As you can see I am missing the closing of the tag on the 7th line in the desired format. I have written the following stylesheet.
    <!-- Hierarchy.xsl: Transform ROWSET/ROW format to the required Hierarchy format. -->
    <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:template match="node()|@*">
    <xsl:copy>
    <xsl:apply-templates select="@*|node()"/>
    </xsl:copy>
    </xsl:template>
    <!-- Template for matching the rowset..... -->
    <xsl:template match="HIERARCHY">
    <HIERARCHY><xsl:apply-templates/></HIERARCHY>
    </xsl:template>
    <!-- Template for matching the row .... -->
    <xsl:template match="HELEMENT">
    <xsl:choose>
    <xsl:when test="PARENT_ID=0">
    <helement id="{ID}" name="{NAME}" parentid="{PARENT_ID}"/>
    </xsl:when>
    <xsl:when test="PARENT_ID!='0'">
    <helement2 id="{ID}" name="{NAME}" parentid="{PARENT_ID}">
    <xsl:for-each select="SYSTEMS/SYSTEMS_ROW">
    <helement3 id="{HID}" name="{HNAME}" parentid="{HPARENT_ID}" systemid="{FORMATTED_SYSTEM_ID}">
    </helement3>
    </xsl:for-each>
    </helement2>
    </xsl:when>
    <xsl:otherwise>
    </xsl:otherwise>
    </xsl:choose>
    </xsl:template>
    </xsl:stylesheet>
    Is there any way of achieving this. Any help would be appreciated. I am using XSQL to generate first the basic XML output and then applying stylesheet to achieve the desired output.
    Sincerely,
    D

Maybe you are looking for