Throwing Custom Exception in SXMB_MONI( Error Node)

Hello all,
            The requirement is to Throw an Custom Error Exception in the SXMB_MONI, which we are able to do and generate the custom error message to stop the message in moni . I have created the UDF to call API's Classes such as BaseRuntimeException or RuntimeException.
Above API's -Able to populate the Custom Message in the TRACE Node of the Request Message mapping Step.
Not Able to Populate the error Message in the ERROR Node of the Request Message mapping Step,so I want to know is that any API's can be used to populate the custom message in error Node or Can i raise the OSS notes ? .
Any OSS notes helps me to do that?
Thanks,
Kamal

Hi,
There is no API to provide this functionality. The reason is the XI message processing is through pipeline as you know. And this is nothing but SAP specific services. So you can not alter them as they are. For the request that you are asking, you will have to edit the pipeline step that populates the SAP:ERROR node. For this, we need to identify which service does this and then if it is possible to write a user exit, etc...So in this case, I would suggest you go with raising an OSS note.
However, can you please tell us why is this required? I can understand to send a message/mail if you get an error or something like that. But I am not able to figure out in what scenarios would you require this kind of error display.
Thanks and Regards,
Sarath.

Similar Messages

  • Getting the name of the page that throws an exception from an error page

    How can I get the name of the page that throws an
    error exception from an error page?.
    Thanks.

    In each of your jsp pages, u should set the name of page in the request object. e.g.
    In jsp page called main.jsp you should do request.setAttribute("pageName","main.jsp");
    Then in error page you can get the name like
    String pageInError = (String) request.getAttribute("pageName");
    I hope that answers your question.
    thx

  • How to throw custom exception from sessionbean

    I define an AppException generalize from EJBException.
    public class AppException extends EJBException{
    when error occurs in sessionbean,I throw AppException, Container perform rollback operation. but at client. I only get EJBException, Why? and How can I get AppException from sessionbean?

    AppException extends RuntimeException

  • How to throw an exception that is not treated as error

    Hi,
    I have a repository manager displayed as /root/myrepository. Now when someone who's not authorized clicked it, I wish an error message will display on top in red, but not throw an exception as System Error.
    Now my implementation is to throw an ResourceException in getChildren() of the node. But when the user clicked on /root/repository, a System Error screen appeared, but what I want is just an error message.
    Any help is much appreciated~
    I don't know how to attach the screenshots. My MSN is [email protected]
    Thanks,
    Ray

    If you want to disallow getChildren altogether, throw an AccessDeniedException. If you want to hide specific children, just don't put them into the result list.
    Best regards, Julian

  • How to access custom exception in client side in web services?

    I have an interface and implementation of a java web services. One method in it throws a custom exception indicating the error type (authrization fails, db connection lost, etc...). But in the generated proxy file, the catched exception for the correspondent method becames java.lang.Exception. I check the code and found the actual thrown exception is com.apache.soap.SOAPExcetion. In the client code, I printed out all the SOAPExcetion and related Fault messages but could not find my original custom exception info. I need this custom exception to be accessed to the client so the client knows what's wrong.

    for current user, SPGroup.ContainsCurrentUser
    http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spgroup.containscurrentuser.aspx
    Scott Brickey
    MCTS, MCPD, MCITP
    www.sbrickey.com
    Strategic Data Systems - for all your SharePoint needs

  • Custom Exceptions

    Hi all,
    Is it possible to throw custome exceptions from web services that can be caught in the clients of the Web service? If so, how can this be done?
    I have a java class exposed as a web service that throws custom exceptions, but the client gets these exceptions as SOAP Fault. I see that the client proxy, that is generated by 9iAS, has the method signature for all my methods as throwing Exceptions. Does this need to be changed manually in the client proxy??
    Any ideas would be greatly appreciated.
    Regards,
    Vijay

    I see a problem with how OC4J 10.1.3 handles custom exceptions in a bottom-up web service. I think the DP4 version handled this better unless I 'm missing something.
    I have a bottom-up web service whose methods throw a custom exception declared as:
    public class RemoteWebServiceException extends Exception implements Serializable {
    // 4 attributes
    The WSDL generated by OC4J 10.1.3DP4 (works better for me) looks like this:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <complexType name="RemoteWebServiceException">
    <sequence>
    <element name="faultActor" type="string" nillable="true"/>
    <element name="faultCode" type="QName" nillable="true"/>
    <element name="faultString" type="string" nillable="true"/>
    <element name="localizedMessage" type="string" nillable="true"/>
    <element name="message" type="string" nillable="true"/>
    </sequence>
    </complexType>
    The WSDL generated by OC4J 10.1.3 (creates problems for me) looks like this:
    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    <complexType name="RemoteWebServiceException">
    <sequence/>
    </complexType>
    My exception class has not changed. My build process has not changed. I use oracle.j2ee.ws.tools.wsa.cli.ant.GenProxy task. Do I need to pass some extra flags with the OC4J 10.1.3 production version to get the same behavior as DP4?

  • Weblogic 6.1sp2 custom exceptions being transformed to remoteexceptions

    Hi,
    We've recently ported our application from weblogic 6.0sp2 to weblogic 6.1sp2.
    In our ejbs we throw custom exceptions in our business logic, but somehow, in
    weblogic6.1sp2, these are being transformed into ejbexception/remoteexceptions.
    Do you have any ideas what we may be doing wrong?
    Thanks

    Thanks,
    we were doing that, but our custom exceptions were inheriting from RuntimeException
    instead of Exception which was the cause of the problem because weblogic 6.1 is
    more strict than weblogic 6.0.
    Diana
    Matthew Shinn <[email protected]> wrote:
    Hi Diana,
    Make sure your custom exceptions are declared in the throws clause of
    the
    home\remote\localHome\local interface methods. If they are not declared
    in the
    throws clause of your interface methods, they will be wrapped in RemoteExceptions
    or EJBExceptions before being thrown to the client.
    - Matt
    Diana wrote:
    Hi,
    We've recently ported our application from weblogic 6.0sp2 to weblogic6.1sp2.
    In our ejbs we throw custom exceptions in our business logic, but somehow,in
    weblogic6.1sp2, these are being transformed into ejbexception/remoteexceptions.
    Do you have any ideas what we may be doing wrong?
    Thanks

  • Throwing MbeanException wrapping custom exception

    Iam throwing a mbean exception which wraps a custom exception from mbean.
    Iam invoking this mbean from wlst(python script) and Iam trying to catch this MBeanException
    When i try to use the getCause method i get the following exception .
    "java.rmi.UnmarshalException: Problem finding error class; nested exception is:
    java.lang.ClassNotFoundException: Failed to load class oracle.webcenter.lifecycle.exception.LifecyclePortalGuidMisMatchException"
    Please note that the python script is aware of the custom exception (LifecyclePortalGuidMisMatchException).
    For testing purpose, to confirm this, i have also created an instance of LifecyclePortalGuidMisMatchException in python (before invoking the mbean)
    The complete exception stack
    java.rmi.UnmarshalException: Problem finding error class; nested exception is:
    java.lang.ClassNotFoundException: Failed to load class oracle.webcenter.lifecycle.exception.LifecyclePortalGuidMisMatchException
    javax.management.MBeanException
    at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:234)
    at weblogic.rmi.internal.BasicRemoteRef.invoke(BasicRemoteRef.java:223)
    at javax.management.remote.rmi.RMIConnectionImpl_1035_WLStub.invoke(Unknown Source)
    at weblogic.management.remote.common.RMIConnectionWrapper$16.run(ClientProviderBase.java:919)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:363)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:146)
    at weblogic.security.Security.runAs(Security.java:61)
    at weblogic.management.remote.common.RMIConnectionWrapper.invoke(ClientProviderBase.java:917)
    at javax.management.remote.rmi.RMIConnector$RemoteMBeanServerConnection.invoke(RMIConnector.java:993)
    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 org.python.core.PyReflectedFunction.__call__(Unknown Source)
    at org.python.core.PyMethod.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at ora_mbs$py.invoke$8(/ade/aimmanue_pt/oracle/oracle_common/common/wlst/lib/ora_mbs.py:56)
    at ora_mbs$py.call_function(/ade/aimmanue_pt/oracle/oracle_common/common/wlst/lib/ora_mbs.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at org.python.core.PyObject.__call__(Unknown Source)
    at org.python.core.PyObject.invoke(Unknown Source)
    at LifecycleHandler$py._doScopeImport$26(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/LifecycleHandler.py:892)
    at LifecycleHandler$py.call_function(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/LifecycleHandler.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    at ExpImpHandler$py.importGroupSpaces$9(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/ExpImpHandler.py:113)
    at ExpImpHandler$py.call_function(/ade/aimmanue_pt/oracle/as11gr1wc/common/script_handlers/ExpImpHandler.py)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyTableCode.call(Unknown Source)
    at org.python.core.PyFunction.__call__(Unknown Source)
    Could you let me who why iam not able to get the cuase of the exception when the client is aware of the exception
    Edited by: user510156 on Aug 20, 2012 6:43 AM
    Edited by: user510156 on Aug 20, 2012 6:49 AM

    Hi,
    There is no API to provide this functionality. The reason is the XI message processing is through pipeline as you know. And this is nothing but SAP specific services. So you can not alter them as they are. For the request that you are asking, you will have to edit the pipeline step that populates the SAP:ERROR node. For this, we need to identify which service does this and then if it is possible to write a user exit, etc...So in this case, I would suggest you go with raising an OSS note.
    However, can you please tell us why is this required? I can understand to send a message/mail if you get an error or something like that. But I am not able to figure out in what scenarios would you require this kind of error display.
    Thanks and Regards,
    Sarath.

  • How to throw custom errors?

    Hi Friends
    How to throw custom errors in APEX?
    For example if I violate a datatype instead of the oracle error i need to get a custom error.
    Thanks
    Nav

    Use raise_application_error - Its built-into the database and not really an APEX specific thing. Google it for more info
    Like so:
    declare
      v_num number;
    begin
      v_num := 1/0;
    exception
      when zero_divide then
        raise_application_error(-20001, 'You tried dividing by zero - luckily I caught it just in time!');
    end;

  • I get an error message when using google search: Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffamazonhot/content/lib/Extension.debug.js Line: 366"]

    Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffamazonhot/content/lib/Extension.debug.js Line: 366"]

    Tools->Add-ons->Extensions
    At the top of the Firefox window, click on the Tools menu and select Add-ons. The Add-ons window will appear.
    In the Add-ons window, select the Extensions panel.
    Select the add-on you wish to uninstall.
    Click the Uninstall button. When prompted, click Uninstall to confirm.
    Then restart Firefox.
    Read here:
    [[Uninstalling add-ons|#How to uninstall extensions and themes|Uninstalling extensions]]

  • I get a message Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js Line: 366"] using Vista. I don't understand how to delete the "ebay

    Every time I try to use google for a search, I get the following error msg. Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js Line: 366"]. I saw the solution provided for MS XP, but not for Vista. Also, while I saw the solution, I need more explicit instructions on how to "delete the ebay extension".
    == This happened ==
    Every time Firefox opened
    == When I try to load google from Firefox, I get the error message, Debug Error:[Exception... "Node was not found" code: "8" nsresult: "0x80530008 (NS_ERROR_DOM_NOT_FOUND_ERR)" location: "chrome://ffebayhot/content/lib/Extension.debug.js Line: 366"]

    Tools->Add-ons->Extensions
    At the top of the Firefox window, click on the Tools menu and select Add-ons. The Add-ons window will appear.
    In the Add-ons window, select the Extensions panel.
    Select the add-on you wish to uninstall.
    Click the Uninstall button. When prompted, click Uninstall to confirm.
    Then restart Firefox.
    Read here:
    [[Uninstalling add-ons|#How to uninstall extensions and themes|Uninstalling extensions]]

  • ADT command line errors (java throws an exception)

    I'll spare you the frustration of these past 24 hours, needless to say I've read most (if not all) of the threads related to compiling a swf into a ipa.  As it is, I'm very close and can't seem to get it to compile.
    On a Mac: the CMD line I am running is this:
    ./adt -package -target ipa-test -storetype pkcs12 -keystore  Certificates.p12 -storepass *P*A*S*S*W*O*R*D*  -provisioning-profile Team_Provisioning_Profile_.mobileprovision APPNAME.ipa  APPNAME-app.xml -C /Applications/Adobe\ AIR\ SDK\ 2.6/bin/ APPNAME.swf -C /Applications/Adobe\ AIR\ SDK\ 2.6/bin/AppIconsForPublish/ . -C /Applications/Adobe\ AIR\ SDK\ 2.6/bin/ Default.png
    The APPNAME-app.xml file is as follows:
    <?xml version="1.0" encoding="utf-8" standalone="yes"?>
    <application xmlns="http://ns.adobe.com/air/application/2.0">
        <id>APPNAME</id>
        <version>1.0</version>
        <filename>APPNAME</filename>
        <description>test build of the app</description>
        <!-- To localize the description, use the following format for the description element.
        <description>
            <text xml:lang="en">English App description goes here</text>
            <text xml:lang="fr">French App description goes here</text>
            <text xml:lang="ja">Japanese App description goes here</text>
        </description>
        -->
        <name>APPNAME</name>
        <!-- To localize the name, use the following format for the name element.
        <name>
            <text xml:lang="en">English App name goes here</text>
            <text xml:lang="fr">French App name goes here</text>
            <text xml:lang="ja">Japanese App name goes here</text>
        </name>
        -->
        <copyright></copyright>
        <initialWindow>
            <content>APPNAME.swf</content>
            <systemChrome>standard</systemChrome>
            <transparent>false</transparent>
            <visible>true</visible>
            <fullScreen>false</fullScreen>
            <autoOrients>false</autoOrients>
            <aspectRatio>portrait</aspectRatio>
            <renderMode>auto</renderMode>
        </initialWindow>
        <customUpdateUI>false</customUpdateUI>
        <allowBrowserInvocation>false</allowBrowserInvocation>
        <icon>
            <image512x512>AIRApp_512.png</image512x512>
            <image48x48>AIRApp_48.png</image48x48>
            <image57x57>AIRApp_57.png</image57x57>
            <image72x72>AIRApp_72.png</image72x72>   
        </icon>
    <iPhone><InfoAdditions><![CDATA[<key>UIDeviceFamily</key><array><string>1</string></array> ]]></InfoAdditions></iPhone></application>
    The java OS error it is throwing (on my Mac OS X 10.7.6):
    Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components::Application
        at adobe.abc.Domain.resolveTypeName(Domain.java:225)
        at adobe.abc.Domain.resolveTypeName(Domain.java:142)
        at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)
        at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:936)
        at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:390)
        at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:278)
        at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:194)
        at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:350)
        at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:680)
        at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:216)
        at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:411)
        at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:87)
        at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:163)
        at com.adobe.air.ADT.parseArgsAndGo(ADT.java:504)
        at com.adobe.air.ADT.run(ADT.java:361)
        at com.adobe.air.ADT.main(ADT.java:411)
    The version of Java that I'm running is:
    java version "1.6.0_24"
    Java(TM) SE Runtime Environment (build 1.6.0_24-b07-334-10M3326)
    Java HotSpot(TM) 64-Bit Server VM (build 19.1-b02-334, mixed mode)
    For the life of me, I can't figure out what / why this is throwing an exception.  Having battled through the missing icon 303 errors and getting to what I think is the final issue, please... can anyone debug why the SWF is not compiling?

    Tried a variation of the above CMD line:
    ./adt -package -target ipa-test -storetype pkcs12 -keystore  Certificates.p12 -storepass PASSWORD  -provisioning-profile Team_Provisioning_Profile_.mobileprovision APPNAME.ipa  APPNAME-app.xml -C /Applications/Adobe\ AIR\ SDK\ 2.6/bin/ APPNAME.swf Default.png AppIconsForPublish
    Still threw an error:
    Exception in thread "main" java.lang.Error: Unable to find named traits: spark.components::Application
        at adobe.abc.Domain.resolveTypeName(Domain.java:225)
        at adobe.abc.Domain.resolveTypeName(Domain.java:142)
        at adobe.abc.GlobalOptimizer$InputAbc.resolveTypeName(GlobalOptimizer.java:272)
        at adobe.abc.GlobalOptimizer$InputAbc.readInstance(GlobalOptimizer.java:936)
        at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:390)
        at adobe.abc.GlobalOptimizer$InputAbc.readAbc(GlobalOptimizer.java:278)
        at adobe.abc.LLVMEmitter.generateBitcode(LLVMEmitter.java:194)
        at com.adobe.air.ipa.AOTCompiler.convertAbcToLlvmBitcode(AOTCompiler.java:350)
        at com.adobe.air.ipa.AOTCompiler.GenerateMacBinary(AOTCompiler.java:680)
        at com.adobe.air.ipa.IPAOutputStream.compileRootSwf(IPAOutputStream.java:216)
        at com.adobe.air.ipa.IPAOutputStream.finalizeSig(IPAOutputStream.java:411)
        at com.adobe.air.ApplicationPackager.createPackage(ApplicationPackager.java:87)
        at com.adobe.air.ipa.IPAPackager.createPackage(IPAPackager.java:163)
        at com.adobe.air.ADT.parseArgsAndGo(ADT.java:504)
        at com.adobe.air.ADT.run(ADT.java:361)
        at com.adobe.air.ADT.main(ADT.java:411)
    Different, but the same... no success

  • While opening firefox or any page adialogue box appear " [java script application] An error occured throwing an exception" -what to do

    i am using vista sp1, recently while opening Firefox or any link within it a dialogue box appear " [java script application] An error occured throwing an exception" . however both cancelling or accepting opens the link or firefox but its nagging plz help
    == This happened ==
    Every time Firefox opened
    == few days ago

    The code is not working because you made a mistake somewhere, duh! So figure out what (hint: firefox javascript console, it's your friend) and fix it!
    And next time when you post code: use the [ code ]  tags to pretty format your code, as it is now it's unreadable.
    http://forum.java.sun.com/help.jspa?sec=formatting

  • B1DiEventService:  ERROR :Connect throw an exception: Host is unknown

    Hi,
    I tried to create an event service. I followed the example of VB code. When I try to connect to the service using following code:
    Function Connect() As Boolean
            Try
                ' Create an instance of B1DIEventsService, Company object as parameter
                evtService = New B1DIEventsService.B1DIEventsService(oCompany)
                'Connect to the service
                evtService.Connect(New B1DIEventsService.B1DIEventsConnectionLostDelegate(AddressOf OnServerShutdown))
                Return True
            Catch ex As B1DIEventsService.B1DIEventsException
                SBO_Application.MessageBox("EVENT_ERROR :" + ex.Message)
            Catch ex As Exception
                SBO_Application.MessageBox("ALG_ERROR :" + ex.Message)
            End Try
            Return False
        End Function
    I get the message EVENT_ERROR :Connect throw an exception. Host is unknown
    I'm using the examples for 2005 SP01 private connections.
    Logfile shows following info:
    TIME;LEVEL;INFO;
    31-5-2007 15:22:26;INFOPLUS;TraceLevel: Warning
    31-5-2007 15:22:26;INFOPLUS;PortNumber: 4334
    31-5-2007 15:22:26;INFOPLUS;KeepAlivePeriod: 2000000
    31-5-2007 15:22:26;INFOPLUS;KeepAliveMax: 12000000
    31-5-2007 15:22:26;INFOPLUS;MaxSizeAction: Replace
    31-5-2007 15:22:26;INFOPLUS;MaxFileSize: 6000000
    31-5-2007 15:22:28;INFOPLUS;Connect to server.
    31-5-2007 15:22:29;INFOPLUS;Client: Reference to server acquired
    31-5-2007 15:22:34;ERROR;Connect throw an exception: <u>Host is onbekend</u>
    The last part (underlined) is dutch and means "Host is unknown."
    Can anyone help please?
    Thanks and Regards,
    Sander

    Hi Sander,
    It seems like the name or adress of the server is unknown for the machine, it cannot connect to it or the server is not running.
    Is your oCompany object initialized and connected to the DI API before creating the B1DIEventsService?
    Have you tried to run client and server side in the same machine to do a small test?
    The problem is at the .NET Remoting interface, it cannot connect to it.
    Regards
    Trinidad.

  • Throwing an exception from XSLT

    Just wanted to share a finding with the Oracle XDB community and possibly suggest an enhancement to the xdb product development team (care of MDRAKE).
    I had a scenario where I wanted to throw an exception from the XSLT.
    A little Googling revealed this helpful post:
    http://weblogs.asp.net/george_v_reilly/archive/2006/03/01/439402.aspx
    ...so I gave it a shot.
    In my XSLT, I have a <xsl:choose> block with the following <xsl:otherwise> block:
    <xsl:otherwise>
        <xsl:message terminate="yes">Unknown Document Type</xsl:message>                          
    </xsl:otherwise>I used a stub test to run this through, giving it a file which would exercise the exception:
    select xmltype(bfilename('XML_RESOURCES', 'data.xml'),0).transform(xmltype(bfilename('XML_RESOURCES', 'sanitize_xml.dev.xsl'),0))
    from dual;..and to my 'joy', I did get an exception:
    ORA-30998: transformation error: execution of compiled XSLT on XML DOM failedHmm...would of been nicer to get something like what Eclipse/Xalan pops out:
    file:/H:/eclipse_indigo_workspace/XSLT/sanitize_xml.xsl; Line #28; Column #59; Unknown Document Type
    (Location of error unknown)Stylesheet directed termination...i.e. my custom error message "Unknown Document Type" isn't output by Oracle.
    Just to be safe, I tried a file which would NOT exercise this xsl:otherwise block and it did run through OK.
    So, could XDB report a better error?
    Thoughts?

    SQL> VAR XSL VARCHAR2(4000)
    SQL> --
    SQL> begin
      2    :XSL :=
      3  '<?xml version="1.0" encoding="UTF-8"?>
      4  <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
      5     <xsl:output method="xml" indent="yes"/>
      6     <xsl:template match="/">
      7             <Result>
      8                     <xsl:choose>
      9                             <xsl:when test="Input=''1''">
    10                                     <Output>1</Output>
    11                             </xsl:when>
    12                             <xsl:when test="Input=''2''">
    13                                     <xsl:message>The value is 2</xsl:message>
    14                                     <Output>2</Output>
    15                             </xsl:when>
    16                             <xsl:when test="Input=''3''">
    17                                     <xsl:message terminate="no">The value is 3</xsl:message>
    18                                     <Output>3</Output>
    19                             </xsl:when>
    20                             <xsl:otherwise>
    21                                     <xsl:message terminate="yes">Invalid value</xsl:message>
    22                                     <Output>Bad Input</Output>
    23                             </xsl:otherwise>
    24                     </xsl:choose>
    25             </Result>
    26     </xsl:template>
    27  </xsl:stylesheet>';
    28  end;
    29  /
    PL/SQL procedure successfully completed.
    Elapsed: 00:00:00.00
    SQL> select XMLTRANSFORM(XMLTYPE('<Input>1</Input>'),XMLTYPE(:XSL))
      2    from dual
      3  /
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <Result>
      <Output>1</Output>
    </Re
    Elapsed: 00:00:00.01
    SQL> select XMLTRANSFORM(XMLTYPE('<Input>2</Input>'),XMLTYPE(:XSL))
      2    from dual
      3  /
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <Result>
      <Output>2</Output>
    </Re
    Elapsed: 00:00:00.00
    SQL> select XMLTRANSFORM(XMLTYPE('<Input>3</Input>'),XMLTYPE(:XSL))
      2    from dual
      3  /
    <?xml version="1.0" encoding="WINDOWS-1252"?>
    <Result>
      <Output>3</Output>
    </Re
    Elapsed: 00:00:00.01
    SQL> select XMLTRANSFORM(XMLTYPE('<Input>4</Input>'),XMLTYPE(:XSL))
      2    from dual
      3  /
    ERROR:
    ORA-30998: transformation error: execution of compiled XSLT on XML DOM failed
    no rows selected
    Elapsed: 00:00:00.01
    SQL>
    SQL>The actuall error is not unreasonalbe. The Execution did fail beacuse you terminated it.. Contacting Oralce Support may be a little excessive...
    Now with respect to message the question is where...
    We 'could' output into the same buffer as is used by DBMS_OUTPUT, but that has limits in terms of the amount of output that can be generated.
    We could write it to the trace file, but that may be difficulat for a developer to get to
    We could write it to a log file in the XDB repository, but where and how to name it...
    We could another parameter to XMLTransform, which would be a Message Buffer
    All of these are in effect enhancements..
    BTW I checked with XML Spy and they seem to ignore message too, so I'm wondering how widely used this is...
    We cannot add it to the output of the XSL since XMLTransform defines the output of the XML to be well formed XML, and adding a random set of text nodes would viloate that rule..

Maybe you are looking for

  • Image drag and drop

    Hi all, I am writing a program, with 2 JPanels, the first one is with 4 images (JLabel), I need to drag the images and drop on second JPanel. When the image is dropped, it should also allow dragging to desired position in that JPanel(through MouseMot

  • External hard drive sleep issue

    My external drive contains my share folder for DC++. If I leave my computer on when I'm gone, my DC++ shows my share as 0 after a while. The hard drive seems to unmount after a while, maybe because the enclose sleeps the drive after a while. Is there

  • How do I send my unfinished Photo Book to my sister via the internet?

    I want her to work on it and send it back to me? Is there an easy way to export my work-in-progress to her Mac Pro and to have her send it back to me? Thanks,

  • Oracle Forms Server 6i Patch set 11

    Hi, Can any body send me patch set 11 for oracle forms server 6i? I need it to test deploment in XP. Take care, Tarek

  • How to change hard drive in 20" iMac G5 iSight ?

    I opened up the machine to replace a dead hard drive (warranty is over anyway) and discovered there is black tape that seals the edge of the display as well as the area below it. Can I remove this to change the drive and then put it back without detr