AIA Weblogic transformation error messages

Hi,
When a transformation in my composite fails I always get an error message that simply says that the transformation has failed.
The only way I have to debug is to comment out everything in the transformation and see if that works, I then uncomment each individaual item until I find it stops working again. I then carefully inspect the section that has the error and guess the problem until I finally get the transformation working.
What I would like is to be able to get proper error messages, like, invalid prefix, namespace not found, etc.
Has anyone got a method of finding an error message for a transformation in a composite?
Robert

Hi Robert,
Usually it gives the runtime exception explaining the cause up to some extent. However, depending on the transformations, you can always Right Click .xsl file -> Test the Transformation without deploying and executing your process.
Regards,
Neeraj Sehgal

Similar Messages

  • Read only user in weblogic throwing error messages in logs

    Hi,
    We have a requirement to create a read only user with monitor access.
    our requirement is to monitor em console using moniotr user, i.e. this user will login to em console, monitor order flow from instances tab by entering order no. and dates, and logout from em console.
    we have done below steps to create monitor user,
    Admin Console->Security Realms >myrealm >Users and Groups-> new
    created user Monitor_User_1 and assigned group as Monitors.
    but whenever this user logs in or searches we are getting below error message:
    <Sep 15, 2013 7:25:21 PM EST> <Warning> <oracle.jps.admin> <BEA-000000> <Access denied. Required roles: Operator, Admin, executing subject: principals=[Monitor_User_1, Monitors]
    java.lang.SecurityException: Access denied. Required roles: Operator, Admin, executing subject: principals=[Monitor_User_1, Monitors]
    we even did below steps:
    With admin access login into EM Console. Select soa_infra, right click mouse -> Security -> Application Roles. On right side, click green arrow and see list of Roles shown. Select the role named SOAMonitors, click on this. And add a Monitor_User_1 to this.
    but we are still getting same error.
    Kindly let us know if we are missing something while creating monitor user and how to get rid of these messages.
    Please note that we are already in Production and our log files are filled with these messages.
    Thanks & Regards,
    Vivek Vishal

    moving this discussion to WebLogic Server - General thread.

  • Customizing weblogic server error messages

    Hi all
    I have an ADF app deployed in the weblogic server. I want to customize the error messages displayed by the server (e.g page not found error)

    Use the normal method of specifying error pages in web.xml
    http://www.java2s.com/Tutorial/Java/0400__Servlet/Seterrorpageinwebxml.htm is one example
    John

  • Overrding default Apache-Weblogic bridge error message

    We are running WLS 5.1 sp5 with Apache as Webserver. I want to know how
    could I display more user freindly error messages when
    weblogic is down and apache is working. Currently we get the default
    Weblogic-Apache down page.
    I tried putting
    ErrorPage http://www.mydomain.com/error.html
    in apache conf file. Now I do not get the default message, but now it can
    not find the above url.
    I am able to this url directly in the browser. Please help ?

    [email protected] (srinivasa reddy) wrote in
    <39bb039e$[email protected]>:
    >
    hi,
    I have a basic question, does webloigc support apache-weblogic
    bridge with mod_ssl/any ssl installed on apache.
    thanks & regards
    [email protected]
    There is a mod_wl_ssl.so in sp4 (i believe). mod_ssl extends Apaches API
    and thereby breaks the WebLogic bridge. For raven installations you need
    mod_wl_ssl_rave.so because raven extends the API even further.
    Joel
    E-Mail: (jbf (at) proceedo dot com)

  • Error Message in log when creating DBReporting

    Hi Folks,
    After executing script (runtetl.bat) to complete P6 Reporting Database next message appears in log (something seems to be wrong in the project)
    <04.29.2011 11:53:56> transform [INFO] (Progress) - Processed     20.0% of WBS objects
    <04.29.2011 11:54:02> transform [WARN] (Message) - Spread loading thread 2: There was a problem processing a record for the ACTIVITYSPREAD table : NumberFormatException -- For input string: "00 AM"
    Object Identifier: ACTIVITYSPREAD Project CXRS Draft (Glenn Counsell) (EU55 - CXRS GC)
    Primary Key(s): 19797
    <04.29.2011 11:54:02> transform [ERROR] (Message) - Spread loading thread 2: ERROR FOR ACTIVITYSPREAD
    java.lang.NumberFormatException: For input string: "00 AM"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:458)
         at java.lang.Integer.parseInt(Integer.java:499)
    Similar message appears after referring to calendar
    <04.29.2011 11:56:24> transform [INFO] (Progress) - Processed     100.0% of PROJECTRESOURCE objects
    <04.29.2011 11:56:44> transform [WARN] (Message) - There was a problem processing a record for the CALENDAR table : DAODataAccessFailure -- NumberFormatException -- For input string: "00 AM"
    Object Identifier: CALENDAR Standard
    Primary Key(s): 8473
    <04.29.2011 11:56:44> transform [INFO] (Message) - ERROR FOR CALENDAR
    com.primavera.er.stage.dao.BaseDAO$DAODataAccessFailure: NumberFormatException -- For input string: "00 AM"
         at com.primavera.er.stage.dao.CalendarDAO.retrieveBusinessObject(Unknown Source)
         at com.primavera.er.stage.dao.CalendarDAO.a(Unknown Source)
         at com.primavera.er.stage.dao.CalendarDAO.updateVirtualFieldsForFullLoad(Unknown Source)
         at com.primavera.er.stage.dao.BaseGlobalContextDAO.updateVirtualFields(Unknown Source)
         at com.primavera.er.stage.dao.BaseAPIDAO.updateVirtualFields(Unknown Source)
         at com.primavera.er.stage.client.ETLProcess$FullApiETLProcessor.a(Unknown Source)
         at com.primavera.er.stage.client.ETLProcess$ETLLoadProcessor$1.run(Unknown Source)
    Original Exception:
    java.lang.NumberFormatException: For input string: "00 AM"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:458)
         at java.lang.Integer.parseInt(Integer.java:499)
         at com.primavera.infr.calendar.CalendarUtil.a(CalendarUt
    and another one referring a wbs
    <04.29.2011 13:39:01> transform [WARN] (Message) - There was a problem processing a record for the ACTIVITY table : DAODataAccessFailure -- NumberFormatException -- For input string: "00 AM"
    Object Identifier: ACTIVITY > FDR CXRS port plug components complete in wbs F in project with id 19797
    Primary Key(s): 411986
    <04.29.2011 13:39:01> transform [INFO] (Message) - ERROR FOR ACTIVITY
    com.primavera.er.stage.dao.BaseDAO$DAODataAccessFailure: NumberFormatException -- For input string: "00 AM"
         at com.primavera.er.stage.dao.ActivityDAO.retrieveBusinessObject(Unknown Source)
         at com.primavera.er.stage.dao.ActivityDAO.retrieveBusinessObject(Unknown Source)
         at com.primavera.er.stage.dao.BaseProjectContextDAO.doUpdateVirtualFieldsPerProjectsInErrorRecoveryMode(Unknown Source)
         at com.primavera.er.stage.dao.BaseProjectContextDAO.updateVirtualFieldsPerProject(Unknown Source)
         at com.primavera.er.stage.dao.BaseProjectContextDAO.updateVirtualFields(Unknown Source)
         at com.primavera.er.stage.dao.BaseAPIDAO.updateVirtualFields(Unknown Source)
         at com.primavera.er.stage.client.ETLProcess$FullApiETLProcessor.a(Unknown Source)
         at com.primavera.er.stage.client.ETLProcess$ETLLoadProcessor$1.run(Unknown Source)
    Original Exception:
    java.lang.NumberFormatException: For input string: "00 AM"
         at java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
         at java.lang.Integer.parseInt(Integer.java:458)
         at java.lang.Integer.parseInt(Integer.java:499)
         at com.primavera.infr.calendar.CalendarUtil.a(CalendarUtil.java:1686)
         at com.primavera.infr.calendar.CalendarUtil.parseCalendarData(CalendarUtil.java:1605)
         at com.primavera.bo.rules.calc.BOCalendarCE.a(BOCalendarCE.java:164)
         at com.primavera.bo.rules.calc.BOCalendarCE.calc_DailyWorkTime(BOCalendarCE.java:58)
    Fortunately these errors does not interrupt ETL processes but do you have any idea about how to fix them?

    Hi
    Is the Server Standalone? If so run this command
    sudo changeip - 10.31.3.135 10.31.3.135 KNWS3135 KNWS3135.ad.ewsad.net
    enter the password when prompted and restart the server.
    If the Server is an Open Directory Master issue this command:
    sudo changeip /LDAP/127.0.0.1 10.31.3.135 10.31.3.135 KNWS3135 KNWS3135.ad.ewsad.net
    enter the password when prompted and restart the server.
    Before you do this can I ask if the DNS Service is being provided by an Active Directory Domain Controller? In other words a Windows Server. If it is and the Windows System Admin has created a DNS entry for your server then make sure there is a Reverse Pointer entry for your server. Make sure the Windows System Admin uses the KNWS3135.ad.esad.net as the FQDN (fully qualified domain name). Enter the AD Server’s IP address as the Primary IP Address in the DNS Server Field on your server and then issue this command:
    host KNWS3135.ad.ewsad.net
    You should see something like this:
    KNWS3135.ad.ewsad.net has address 10.31.3.135
    follow this with:
    host 10.31.3.135
    You should see something like this:
    135.3.31.10.in-addr.arpa domain name pointer KNWS3135.ad.ewsad.net.
    If you are seeing this after you have made sure the Windows System Admin has created the relevant PTR entry for your server then issue the changeip command again:
    sudo changeip -checkhostname
    This time it should report 'the names match there is nothing to change'
    Hope this helps, Tony

  • Error Message: Unable to get document: HTTP-1

    We run tools 8.44 and Enterprise Portal 8.8. There are some paglets created on the Portal as well including a payadvice pagelet for the users to look up their pay information. Pay information comes from the HCM DB. What we notice from time to time is that when logging in to the Portal, the pay advice pagelet will not display and gives "Error getting Content".
    I check the app and web logs and they come back with "Failed to load URL: http://server1.domain.ca/psc/environment/EMPLOYEE/EMPL/s/WEBLIB_EO_PE_LN.ISCRIPT2.FieldFormula.IScript_EPP_NAV_PAGELET in the Portal registry. In fn CPortalRegistry::FindLogicalURL in file e:\pt84406b-retail\peopletools\..\peopletools\SRC\psoftapi\portalregistry.cpp
    Weblogic reports Error Message: Unable to get document: HTTP-1
    However if you hit page refresh (F5) inside the browser the pagelet will load fine.
    Appreciate insight. This issue is contained to dev environments only.

    We run tools 8.44 and Enterprise Portal 8.8. There are some paglets created on the Portal as well including a payadvice pagelet for the users to look up their pay information. Pay information comes from the HCM DB. What we notice from time to time is that when logging in to the Portal, the pay advice pagelet will not display and gives "Error getting Content".
    I check the app and web logs and they come back with "Failed to load URL: http://server1.domain.ca/psc/environment/EMPLOYEE/EMPL/s/WEBLIB_EO_PE_LN.ISCRIPT2.FieldFormula.IScript_EPP_NAV_PAGELET in the Portal registry. In fn CPortalRegistry::FindLogicalURL in file e:\pt84406b-retail\peopletools\..\peopletools\SRC\psoftapi\portalregistry.cpp
    Weblogic reports Error Message: Unable to get document: HTTP-1
    However if you hit page refresh (F5) inside the browser the pagelet will load fine.
    Appreciate insight. This issue is contained to dev environments only.

  • Data quality and error messages during transformation

    I've read [Maintaining Data Quality in BW using Error Stack|http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20ebeb43-9e8a-2d10-b28e-825c0142ad4f] with great interest and hope this will become standard in the company, right now we have too many complex transformations which have been developed without logging and messaging.
    One thing is unclear, the error message described in the example
    monitor_rec-msgid = 'ZMESSAGE'
    seems to refer to a ZMESSAGE defined in another step.
    Could you please tell me how (transaction?) to define this message to be called during transformation?
    Thanks in advance

    se91

  • Adobe Forms Error Message 'Error when transforming object data'

    Hi,
      When i tried to save(Adobe Forms) after making changes in Layout its giving an error message 'Error when transforming object data' and takes me out of the transaction. How do i solve this ? Can anyone help me out.
    Thanks and Regards,
    Franklin.

    hi
      I have the same problem , plz help me out
    thanks

  • Different error messages for Weblogic-Apache bridge

    We are running WLS 5.1 sp5 with Apache as Webserver.
    I want to know how could I display more user freindly error messages when
    weblogic is down and apache is working. Currently we get the default
    Weblogic-Apache down page.
    Thanks,
    Rakesh

    We used this but it did not work. Now the default does not show up but it is
    not able to find the url that we specify which is reachable if I directly
    use in the brower.
    "Vinod Mehra" <[email protected]> wrote in message
    news:[email protected]..
    Checkout the plugin param "ErrorPage" in our documentation.
    --Vinod.
    Rakesh Gupta wrote:
    We are running WLS 5.1 sp5 with Apache as Webserver.
    I want to know how could I display more user freindly error messages
    when
    weblogic is down and apache is working. Currently we get the default
    Weblogic-Apache down page.
    Thanks,
    Rakesh

  • Transforming EPC to BPEL - Semantic check error message

    Hi,
    I am having problems with the semantic check in Oracle BPA Version 10.1.3.3. Functions in some processes are linked with entities from an ERM (as Input/Output).
    When validating the EPC there is conflict with a rule in the category “rules for service-oriented EPC”. There is the following error message (translated by me): All objects, linked with functions via connections of the type “has input” or “has output” should be of the type “class” or mapped directly or indirectly on one or several objects of the type “class”, to be interpreted correctly by the transformation to BPEL.
    How can I solve this? Is it possible to transform an EPC linked with entities?
    Without providing any specific rule or description, there is a vague error message in the category rules for service-oriented BPMN model as well. For some the entities linked with functions, either as Input or Output, there is a line like: “'customer':: ???”
    Is there any way I can get an error description? Can anyone help?
    Thanks in advance

    Hi,
    due to the semantic check script performing the EPC -> BPEL transformation evaluation you will always end up with this message when performing the semantic check.
    You can patch the semantic script / you can access the script within the Module Administrator / Semantic Checks.
    Regarding your second problem I have no idea what check is producing this message.
    You can run the transformation without checking the semantics. Have you tried this? Does it work?
    Dirk

  • Weblogic SSO - Kerberos error message

    Hi,
    I have weblogic and ucm (11g) set up to use single sign on.
    If I call the login in page and put my network credentials in - I am allowed in. So LDAP is configered correctly.
    When I access UCM directly (expect SSO to kick in) I get error message:
    ####<21-Jan-2011 12:50:06 o'clock GMT> <Debug> <SecurityAtn> <xxxx> <xxxx> <[ACTIVE] ExecuteThread: '0' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <f4093ea5ed8850a2:83494eb:12da89f5fe9:-7ffd-0000000000000024> <1295614206874> <BEA-000000> <Exception com.bea.common.security.internal.utils.negotiate.NegotiateTokenException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos Key)
    com.bea.common.security.internal.utils.negotiate.NegotiateTokenException: GSSException: No valid credentials provided (Mechanism level: Failed to find any Kerberos Key)
         at com.bea.common.security.internal.utils.negotiate.SPNEGONegotiateToken.getUsername(SPNEGONegotiateToken.java:180)
         at weblogic.security.providers.authentication.NegotiateIdentityAsserterProviderImpl.assertChallengeIdentity(NegotiateIdentityAsserterProviderImpl.java:213)
         at com.bea.common.security.internal.legacy.service.ChallengeIdentityAssertionProviderImpl$ChallengeIdentityAsserterV2Adapter.assertChallengeIdentity(ChallengeIdentityAssertionProviderImpl.java:130)
         at com.bea.common.security.internal.service.ChallengeIdentityAssertionTokenServiceImpl.assertChallengeIdentity(ChallengeIdentityAssertionTokenServiceImpl.java:120)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
         at $Proxy12.assertChallengeIdentity(Unknown Source)
         at com.bea.common.security.internal.service.ChallengeIdentityAssertionServiceImpl.assertChallengeIdentity(ChallengeIdentityAssertionServiceImpl.java:112)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
         at $Proxy18.assertChallengeIdentity(Unknown Source)
         at com.bea.common.security.internal.service.NegotiateIdentityAsserterServiceImpl$NegotiateHandler.assertChallengeContext(NegotiateIdentityAsserterServiceImpl.java:327)
         at com.bea.common.security.internal.service.NegotiateIdentityAsserterServiceImpl$NegotiateHandler.process(NegotiateIdentityAsserterServiceImpl.java:212)
         at com.bea.common.security.internal.service.NegotiateIdentityAsserterServiceImpl.process(NegotiateIdentityAsserterServiceImpl.java:130)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.common.security.internal.utils.Delegator$ProxyInvocationHandler.invoke(Delegator.java:57)
         at $Proxy19.process(Unknown Source)
         at weblogic.security.providers.authentication.NegotiateIdentityAsserterServletAuthenticationFilter.doFilter(NegotiateIdentityAsserterServletAuthenticationFilter.java:33)
         at weblogic.servlet.security.internal.AuthFilterChain.doFilter(AuthFilterChain.java:37)
         at weblogic.servlet.security.internal.SecurityModule$ServletAuthenticationFilterAction.run(SecurityModule.java:631)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
         at weblogic.servlet.security.internal.SecurityModule.invokeAuthFilterChain(SecurityModule.java:520)
         at weblogic.servlet.security.internal.FormSecurityModule.checkUserPerm(FormSecurityModule.java:220)
         at weblogic.servlet.security.internal.FormSecurityModule.checkAccess(FormSecurityModule.java:92)
         at weblogic.servlet.security.internal.ChainedSecurityModule.checkAccess(ChainedSecurityModule.java:79)
         at weblogic.servlet.security.internal.ServletSecurityManager.checkAccess(ServletSecurityManager.java:82)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2204)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2174)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1446)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    >
    Anbody know it it means?
    James

    I've found the cause of my problem. I've tried jdk 6u11 and everything was working like it should. But with jdk 6u21 and jdk 6u22 I've got the same error. I've found that there's a bug in jdk ( http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6984764 ).
    But still I think that despite this jdk bug WLS team can fix SSO negotiation util in next WLS release.

  • When uninstalling an older version of reader, I get an error message about transform paths

    I tried to uninstall version 8.1.2, and I get an error message to verify that the specified transform paths are valid. Some body please help. I could use the 90mb of space it's taking up.
    My system is a laptop, vista 32 bit. No security update issues are involved. I am running version 10, and simply want some memory back.

    Claudia, thanks for the link. It removed the old version in about 30 seconds Microsoft Fixit looks like a great repair tool. Thanx for the hook-up. Redbaron8.
                                                                                    Think of your family and friends often.
    Always keep an eye on your enemies,
    and be sure you know the difference between them!
    Willy
    Date: Thu, 12 Jan 2012 09:35:24 -0700
    From: [email protected]
    To: [email protected]
    Subject: When uninstalling an older version of reader, I get an error message about transform paths
        Re: When uninstalling an older version of reader, I get an error message about transform paths
        created by Claudio González in Adobe Reader - View the full discussion
    If you feel you need erasing 90 MB. I would suggest getting some additional storage medium (external HD, ...). In any case, you may want to try the following: Run this fix from Microsoft: http://support.microsoft.com/mats/Program_Install_and_Uninstall Uninstall Reader using Add/Remove Programs
         Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/4135555#4135555
         To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/4135555#4135555. In the Actions box on the right, click the Stop Email Notifications link.
         Start a new discussion in Adobe Reader by email or at Adobe Forums
      For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Getting Error Message while creating transformations

    While creating transformation for char customer no in the rule type for constant , getting an error message source parameter 0001 is not being used.

    Hello Bharati,
             you need to give the value of the constant by selecting from the source parameter.Hope this answer helps you.
    Assigning Points = Thanks in SDN
    Thanks & Regards
       Jai

  • Getting error message while strating managed server in weblogic console.

    Hi,
    Here are my config steps I followed:
    1. Created Domain with the Admin server port 8001.
    2. Able to log into the Admin console successfully.
    3. Created Machine in the console
    4. Created Managed server ms01.
    5. Created Network Channels under ms01 for http and https with different ports.
    6. Started node manager
    7. Started ms01 and status shows RUNNING.
    8. Deployed one sample war file on this ms01. Deployment was successful.
    9. Tried to access the application which is deployed, white page is displayed. But same app I was able to access before, so its clear nothing wrong in war file.
    10. I rebooted wls after this and tried restarting managed server, but stuck at this point because of below error.
    At this point I could see error message in the wls log.
    like:
    <Error> <NodeManager> <BEA-300033> <Could not execute command "getVersion" on the node manager. Reason: "Connection refused: connect. Could not connect to NodeManager. Check that it is running at localhost:5,556.".>
    <Error> <NodeManager> <BEA-300033> <Could not execute command "getNMLog" on the node manager. Reason: "Connection refused: connect. Could not connect to NodeManager. Check that it is running at sdc78197svod.corp.siebel.com:5,556.".>
    I tried rebooting wls, did not work out.
    Any help on this appreciated.
    Thanks

    Is the node manager running at sdc78197svod.corp.siebel.com:5,556 ? YOu can do a telnet to this IP, port to confirm.

  • How can I display XSLT transformer errors on a web page ?

    Hi,
    I have some JSP pages that access DB, create an XML based on DB data and then transform it into HTML through an XSLT stylesheet. Developing the XSL code it's easy to make mistakes and generate errors on trasformation, but what I receive on the web page is only a "Could not compile stylesheet" TransformerConfigurationException, while the real cause of the error is displayed only on tomcat logs. This is the code for transformation:
    static public void applyXSLT(Document docXML, InputStream isXSL, PrintWriter pw) throws TransformerException, Exception {
            // instantiate the TransformerFactory.
            TransformerFactory tFactory = TransformerFactory.newInstance();
            // creates an error listener
            XslErrorListener xel = new XslErrorListener();
            // sets the error listener for the factory
            tFactory.setErrorListener(xel);
            // generate the transformer
            Transformer transformer = tFactory.newTransformer(new SAXSource(new InputSource(isXSL)));
            // transforms the XML Source and sends the output to the HTTP response
            transformer.transform(new DOMSource(docXML), new StreamResult(pw));
    }If an exception is thrown during the execution of this code, its error message is displayed on the web page.
    This is the listener class:
    public class XslErrorListener implements ErrorListener {
        public XslErrorListener() {
        public void warning(TransformerException ex) {
            // logs on error log
            System.err.println("\n\nWarning on XEL: " + ex.getMessage());
        public void error(TransformerException ex) throws TransformerException {
            // logs on error log
            System.err.println("\n\nError on XEL: " + ex.getMessage());
            // and throws it
            throw ex;
        public void fatalError(TransformerException ex) throws TransformerException {
            // logs on error log
            System.err.println("\n\nFatal Error on XEL: " + ex.getMessage());
            // and throws it
            throw ex;
    }When I have an error in the XSL stylesheet (for examples a missing closing tag), I can find on tomcat logs the real cause of the error:
    [Fatal Error] :59:10: The element type "table" must be terminated by the matching end-tag "</table>".
    Error on XEL: The element type "table" must be terminated by the matching end-tag "</table>".but on my web page is reported just the TransformerConfigurationException message that is:
    "Could not compile stylesheet".
    How can I display the real cause of the error directly on the web page?
    Thanks,
    Andrea

    This code is part of a bigger project that let developers edit XSL stylesheets through a file upload on the system and we can't impose the use of any tool for checking the xsl. So, I need to display the transformer error on the web page.I see. This code is part of an editorial/developmental tool for developers to create and edit XSL stylesheets.
    As part of the editorial process, XSL errors during editing can be considered a normal condition. In other words, it is normal to expect that the developers will generate XSL errors as they are developing stylesheets.
    In this light, handling the XSL transformation errors is a business requirement that you need to handle. Using the Java Exceptions mechanisms, e.g. try / catch are inappropriate to handle business requirements, in my opinion.
    I suggest that you look at how you handle the occurence of XSL errors differently than what you currently have. You need to:
    (1) capture the Transformation exception on the server;
    (2) extract the message from the exception and put it into a message that can be easily understood by the user;
    The current error message that you have going to the web browser is not useful.
    And you should not have the Transformation exception sent to the web browser either.
    What you are attempting to do with the exception is not appropriate.
    Handle the Transformation exception on the Business tier and use it to create a useful message that is then sent to the Presentation tier. In other words, do not send Java exceptions to web browser.
    />

Maybe you are looking for

  • Fi-ca return lot

    when creating a return lot manually, we can "assign" number of return items and total amount. e.g 3 lines (items). but... once i finished "feeding" the first line and hitting "enter" - all the rest of lines is "closed", although i intended to write 3

  • Best practice using TFS 2013 to report on developer time

    Here is my issue: Last year, I stood up a TFS instance for myself since I was the only developer in IT.  Since then we have created a new application development department and pulled in devs who were previously working in other departments outside o

  • Understanding the difference of tcpdump

    Hey everyone! I just portscanned my server and also used a tcpdump which I grepped for the IP of my server to limit every results to information connected with my server. I basically am receiving two different answers: 13:07:43.733576 IP myIP-address

  • PAP2 and compatable modem/router

    I purchased a PAP2 and my modem doesn't have an Ethernet port. Can someone recommend a modem that will enable me to connect my new PAP2 and my PC. Do I need a modem/router? Prefer non wireless.

  • Screen painter problem

    Hi everyone, In screen painter, I would call the current screen before output module. But it tells 'the statement is not accessible' when I active the programme. What's the problem? Thanks!!