GP Exception handling doesn't work

I had implemented the GP Exception handling scenario described in [Configuring Exception Handling|http://help.sap.com/saphelp_nw2004s/helpdata/en/44/10bd4029450d1be10000000a114a6b/frameset.htm].
But when I start the process and input a wrong user id, the exception handling action doesn't start and the process keep in running status. When I check the Background Action Processor Queue, the queue entry of action "Retrieve User Details" retry executing continously.
And when I check the background callable object, it report that "Obsolete process exception: E_NO_USER_FOUND  " in section Process Exceptions Check .
Is it a system bug or Is something wrong in system configuration?
BTW: The environment is NW7.0 SP13 Java Stack

Reposting

Similar Messages

  • The onDeactivate event handler doesn't work in InDesign CC. Why?

    Hi guys.
    I’m working on a script in Javascript for InDesign CC.
    The big problem is that the onDeactivate event handler doesn’t work.
    Here’s an example that works in InDesign CSx but not in InDesign CC:
    #target indesign
    var w = new Window ("dialog", "Test onDeactivate");
    var et_1 = w.add("edittext", [undefined, undefined, 300, 30], "Lorem ipsum");
    var et_2 = w.add("edittext", [undefined, undefined, 300, 30], "Dolor sit amet");
    var st = w.add("statictext", [undefined, undefined, 300, 30], "CONSOLE:\r\r", {multiline: true});
    et_1.onDeactivate = et_2.onDeactivate = function(){
         st.text = "CONSOLE: I left the field with this text:\r\t«" + this.text +"»"; }
    var b_ok = w.add("button", undefined, "OK");
    w.show();
    The script shows a dialog window with 2 edit text fields: when a field loses the focus (clicking on the other one), the «CONSOLE» shows the text of the old field.
    Adobe, please, fix this issue as soon as possible.
    Thanks.
    Giorgio

    It's a bug, and it has been reported. Please report it yourself, the more reports the better. It's no good asking Adobe in this forum to fix something.
    Peter

  • JRE7: Exception Handler no longer works

    Hello Folks,
    in a large-scale Swing App (usually started via JWS) we used to define a global event handler by setting the "sun.awt.exception.handler" environment variable. This used to work under JRE6, but it doesn't work under JRE7 anymore. What is the replacement?
    Regards from Germany,
    Thomas Nagel

    http://download.oracle.com/javase/1.5.0/docs/api/java/lang/Thread.UncaughtExceptionHandler.html
    ?

  • Exception handling is not working in GCC compile shared object

    Hello,
    I am facing very strange issue on Solaris x86_64 platform with C++ code compiled usging gcc.3.4.3.
    I have compiled shared object that load into web server process space while initialization. Whenever any exception generate in code base, it is not being caught by exception handler. Even though exception handlers are there. Same code is working fine since long time but on Solaris x86, Sparc arch, Linux platform
    With Dbx, I am getting following stack trace.
    Stack trace is
    dbx: internal error: reference through NULL pointer at line 973 in file symbol.cc
    [1] 0x11335(0x1, 0x1, 0x474e5543432b2b00, 0x59cb60, 0xfffffd7fffdff2b0, 0x11335), at 0x11335
    ---- hidden frames, use 'where -h' to see them all ----
    =>[4] __cxa_throw(obj = (nil), tinfo = (nil), dest = (nil), , line 75 in "eh_throw.cc"
    [5] OBWebGate_Authent(r = 0xfffffd7fff3fb300), line 86 in "apache.cpp"
    [6] ap_run_post_config(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x444624
    [7] main(0x0, 0x0, 0x0, 0x0, 0x0, 0x0), at 0x42c39a
    I am using following link options.
    Compile option is
    /usr/sfw/bin/g++ -c -I/scratch/ashishas/view_storage/build/coreid1014/palantir/apache22/solaris-x86_64/include -m64 -fPIC -D_REENTRANT -Wall -g -o apache.o apache.cpp
    Link option is
    /usr/sfw/bin/g++ -shared -m64 -o apache.so apache.o -lsocket -lnsl -ldl -lpthread -lthread
    At line 86, we are just throwing simple exception which have catch handlers in place. Also we do have catch(...) handler as well.
    Surpursing things are..same issue didn't observe if we make it as executable.
    Issue only comes if this is shared object loaded on webserver. If this is plain shared object, opened by anyother exe, it works fine.
    Can someone help me out. This is completly blocking issue for us. Using Solaris Sun Studio compiler is no option as of now.

    shared object that load into web server process space
    ... same issue didn't observe if we make it as executable.When you "inject" your shared object into some other process a well-being of your exception handling depends on that other process.
    Mechanics of x64 stack traversing (unwind) performed when you throw the exception is quite complicated,
    particularly involving a "nearly-standartized" Unwind interface (say, Unwind_RaiseException).
    When we are talking about g++ on Solaris there are two implementations of unwind interface, one in libc and one in libgcc_s.so.
    When you g++-compile the executable you get it directly linked with libgcc_s.so and Unwind stuff resolves into libgccs.
    When g++-compiled shared object is loaded into non-g++-compiled executable's process _Unwind calls are most likely already resolved into Solaris libc.
    Thats why you might see the difference.
    Now, what exactly causes this difference can vary, I can only speculate.
    All that would not be a problem if _Unwind interface was completely standartized and properly implemented.
    However there are two issues currently:
    * gcc (libstdc++ in particular) happens to use additional non-standard _Unwind calls which are not present in Solaris libc
    naturally, implementation details of Unwind implementation in libc differs to that of libgccs, so when all the standard _Unwind
    routines are resolved into Solaris version and one non-standard _Unwind routine is resolved into gcc version you get a problem
    (most likely that is what happens with you)
    * libc Unwind sometimes is unable to decipher the code generated by gcc.
    However that is likely to happen with modern gcc (say, 4.4+) and not that likely with 3.4.3
    Btw, you can check your call frame to see where _Unwind calls come from:
    where -h -lIf you indeed stomped on "mixed _Unwind" problem then the only chance for you is to play with linker
    so it binds Unwind stuff from your library directly into libgccs.
    Not tried it myself though.
    regards,
    __Fedor.

  • Repository event handler doesn't work when inserting an xml-doc via ftp

    Hi,
    I want to add a 'schemaLocation'-attribute to an XML-document when I load it in the repository. Therefore, I use the precreate-repository event and created a Repository Event Handler (see code extract below).
    Everything works fine if I type the following code in SQL Plus:
    Declare
    v_return BOOLEAN;
    Begin
    v_return:=DBMS_XDB.createresource('/public/xml/test.xml', XMLType(bfilename('XMLDIR', 'test.xml'),nls_charset_id('AL32UTF8')));
    end;Unfortunately, when I try to insert an XML-document via ftp into the /public/xml folder it doesn´t work as expected and no 'schemaLocation'-attribute is added to the new resource.
    What's the reason for this strange behavior and how can I solve it?
    For your information: I use the Oracle Database 11g Enterprise Edition Release 11.2.0.1.0
    Thank you very much for your help!!!
    Repository Event Handler code extract:_
    create or replace
    PACKAGE BODY schemalocation AS
    PROCEDURE handlePreCreate (eventObject DBMS_XEVENT.XDBRepositoryEvent) AS
    XDBResourceObj DBMS_XDBRESOURCE.XDBResource;
    var XMLType;
    l_return BOOLEAN;
    l_xmldoc dbms_xmldom.DOMDocument;
    l_docelem dbms_xmldom.DOMElement;
    l_attr dbms_xmldom.DOMAttr;
    c1 clob;
    node     dbms_xmldom.DOMNode;
    txid varchar2(100);
    dDoc DBMS_XMLDOM.DOMDocument;
    nlNodeList DBMS_XMLDOM.DOMNodeList;
    BEGIN
    XDBResourceObj := DBMS_XEVENT.getResource(eventObject);
    dbms_lob.createTemporary(c1,TRUE);
    var:=DBMS_XDBRESOURCE.getcontentxml(XDBResourceObj);
    l_xmldoc := dbms_xmldom.newDOMDocument(var);
    l_docelem := DBMS_XMLDOM.getDocumentElement(l_xmldoc);
    ------ add schemaLocation attribute
    l_attr := DBMS_XMLDOM.createAttribute(l_xmldoc, 'xsi:schemaLocation');
    DBMS_XMLDOM.setValue(l_attr, 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd');
    l_attr := DBMS_XMLDOM.setAttributeNode(l_docelem, l_attr);
    DBMS_XMLDOM.WRITETOCLOB(l_xmldoc, c1);
    ------- get the value of the TxId-tag
    dDoc := DBMS_XMLDOM.NEWDOMDOCUMENT(c1);
    nlNodeList := DBMS_XMLDOM.GETELEMENTSBYTAGNAME(dDoc, 'TxId');
    node := DBMS_XMLDOM.ITEM(nlNodeList, 0);
    txid:= dbms_xmldom.getnodevalue(dbms_xmldom.getfirstchild(node));
    l_return:=DBMS_XDB.createresource('/public/ok/'||txid||'.xml', XMLType(c1));
    END;

    Marco,
    Here's an example of the problem :
    create or replace package handle_events
    as
      procedure handlePreCreate(p_event dbms_xevent.XDBRepositoryEvent);
    end;
    create or replace package body handle_events
    is
    procedure handlePreCreate (p_event dbms_xevent.XDBRepositoryEvent)
    is
      XDBResourceObj dbms_xdbresource.XDBResource;
      doc XMLType;
      res boolean;
    begin
      XDBResourceObj := dbms_xevent.getResource(p_event);
      doc := dbms_xdbresource.getContentXML(XDBResourceObj);
      select insertchildxml(
        doc
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
      res := dbms_xdb.CreateResource('/public/xml/result.xml', doc);
    end;
    end;
    declare
    res boolean;
    begin
    res := dbms_xdb.CreateFolder('/public');
    res := dbms_xdb.CreateFolder('/public/tmp');
    res := dbms_xdb.CreateFolder('/public/xml');
    end;
    declare
    res            boolean;
    resconfig      xmltype;
    my_schema      varchar2(30) := 'DEV';
    resconfig_path varchar2(300) := '/public/ResConfig.xml';
    resource_path  varchar2(300) := '/public/tmp';
    begin
      resconfig  := xmltype(
    '<ResConfig xmlns="http://xmlns.oracle.com/xdb/XDBResConfig.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://xmlns.oracle.com/xdb/XDBResConfig.xsd http://xmlns.oracle.com/xdb/XDBResConfig.xsd">
      <event-listeners set-invoker="true">
        <listener>
          <description>My event handler</description>
          <schema>'||my_schema||'</schema>
          <source>HANDLE_EVENTS</source>
          <language>PL/SQL</language>
          <events>
            <Pre-Create/>
          </events>
          <pre-condition>
            <existsNode>
              <XPath>/r:Resource[r:ContentType="text/xml"]</XPath>
              <namespace>xmlns:r="http://xmlns.oracle.com/xdb/XDBResource.xsd"</namespace>
            </existsNode>
          </pre-condition>
        </listener>
      </event-listeners>
      <defaultChildConfig>
        <configuration>
          <path>'||resconfig_path||'</path>
        </configuration>
      </defaultChildConfig>
    </ResConfig>'
      res := dbms_xdb.CreateResource(resconfig_path, resconfig);
      dbms_resconfig.addResConfig(resource_path, resconfig_path, null);
    end;
    /Giving the following input XML file :
    <?xml version="1.0" encoding="utf-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"/>This works :
    SQL> declare
      2    res boolean;
      3  begin
      4    res := dbms_xdb.CreateResource('/public/tmp/test.xml',
      5               xmltype(bfilename('TEST_DIR','test.xml'), nls_charset_id('AL32UTF8')));
      6  end;
      7  /
    PL/SQL procedure successfully completed.
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>With the same document loaded via FTP, we get :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    ERROR:
    ORA-31011: XML parsing failed
    ORA-19202: Error occurred in XML processing
    LPX-00283: document encoding is UTF-16-based but default input encoding is not
    Error at line 1
    no rows selectedand the content looks like :
    < ? x m l   v e r s i o n = " 1 . 0 "   e n c o d i n g = " u t f - 8 " ? >
    < r o o t   x m l n s : x s i = " h t t p : / / w w w . w 3 . o r g / 2 0 0 1 / X M L S c h e m a - i n s t a n c e " / >As a workaround, I've found that serializing and re-parsing the document solves the problem :
      select insertchildxml(
        xmltype(doc.getclobval())
      , '/root'
      , '@xsi:schemaLocation'
      , 'urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd'
      , 'xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
      into doc
      from dual;
    ...We then get the expected result after FTP transfer :
    SQL> select XMLSerialize(document xdburitype('/public/xml/result.xml').getXML()
    as clob indent size = 2)  result
      2  from dual
      3  ;
    RESULT
    <?xml version="1.0" encoding="UTF-8"?>
    <root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="
    urn:iso:std:iso:20022:tech:xsd:sese.023.001.01 http://www.test.com/Testswift.xsd
    "/>The workaround also works for the DOM version presented above.
    Any ideas?

  • JAX-WS Handler doesn't work.

    Hi,
    I try to put my handler to handler chain (on client side) this way:
    // MyService class is generated from WSDL file by Apache-CXF wsdl2java tool.
    // Of course MyService extends javax.xml.ws.Service
    MyService myService = mew MyService()
    myService.setHandlerResolver(new HandlerResolver() {
    public List<Handler> getHandlerChain(PortInfo arg0) {
    System.out.println(arg0);
    List c = new ArrayList();
    // MyHandler class prints some text to System.out in handleXXX() methods, it implements javax.xml.ws.handler.Handler
    c.add(new MyHandler());
    return c;
    It is a snippet of StatelessBean - it is client of external services.
    When I next try to invoke some service - myService.getPort().run() - the handler is not "notified".
    Why it doesn't work???
    I tried another way:
    ((BindingProvider) myService.getPort()).getBinding().getHandlerChain().add(new MyHandler())
    It doesn't work too!
    And surprise:)
    I wrote that code:
    ((BindingProvider) myService.getPort()).getBinding().getHandlerChain().add(new MyHandler())
    System.out.println(
    ((BindingProvider) myService.getPort()).getBinding().getHandlerChain().size()
    What's the result of print?
    0 (zero)
    Could someone tell me why?
    Thx,
    Peter.

    I am having a similiar problem with Vista x32.  The preview handler is able to display the pdf, but the fields that were filled in prior to the email are not showing any values, but when you open the pdf with reader the values are there.  Below is a more detail account of what is happening.  I have contacted the third party dll as well, but thought someone here might have an idea too.
    I have a client that is using the a thrid party PDF dll (Syncfusion) to generate and email PDFs reports. There seems to be an issue with the PDFs that are generated and using the built-in PDF Preview Handler for Vista. The scenario is ...
    1. User receives an email into Outlook that contains a generated PDF (see image ''01-Opening-Email.jpg'')
    2. User clicks on the attachment in Outlook and the preview handler starts up (see image ''02-Loading-Previewer.jpg'')
    3. The PDF displayed in the preview handler does not have any of the fields filled out (see image ''03-Report-Loaded-In-Viewer.jpg'')
    4. User then right clicks on the PDF (in outlook) and selects to open the PDF with Adobe Acrobat Version 9.0 and the report is displayed with all the fields filled out (see image ''04-Report-Opened-With-Adobe.jpg'')
    All of these images are included in the attachment that I have uploaded with this incident. As well, in the RAR file is the PDF that was sent by the system using the PDF dll from Syncfusion. Please let me know if you need any more information from me.

  • Simple drag&drop with handler doesn't work in Edge?

    Hi all!
    I made this very simple example of Drag&Drop in Edge: http://www.terredainventare.it/simpledrag/simpledrag.html using Jquery Ui http://docs.jquery.com/UI/Draggable.
    I try to use the JQueryUi "handle" property that makes you drag an object restricting drag click on only one element but it doesn't work.
    Here's the code I've put in Edge onCompositionReady:
    sym.$("drag").draggable({ handle:"handler" });
    Of course my two Div-elements are called "drag" and "handler". Now the drag works only on the "wrong" element and not on the "handle".....
    Here's the Adobe Edge files: http://www.terredainventare.it/simpledrag/web.zip
    Many thanks in advance for your help!
    Davide

    So, on stage i add a rectangle named "drag" and i try this code:
    yepnope({
                nope:[
                'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/jquery-ui.min.js',
                'http://ajax.googleapis.com/ajax/libs/jqueryui/1.8/themes/base/jquery-ui.css'
                complete: init
    function init() {
             //$("#Stage_drag").draggable();
             //$(sym.lookupSelector("drag")).draggable();
             sym.$("drag").draggable();
    3 lines work: $("#Stage_drag").draggable() or $(sym.lookupSelector("drag")).draggable() or sym.$("drag").draggable()
    And css file is not required.
    Well, your dowload link is not perfect but i download your folder. See you later.
    There is a tutorial: a movie tutorial (adobe tv). Mix it baby! Extending Edge Animate 02:57
    They use: yepnope (both, callback)
    yepnope({
         both: ['jquery-ui.min.js',
                   'jquery-ui.css'
         callback: function(){sym.$("drag").draggable()}
    I will send you your files tomorrow (private message).

  • XML Error Handling doesn't work as expected

    Hi there,
    we are doing some syncronization szenarios between CRM 5.0 and a legacy system via XI.
    One szenario is an asynchronous XML syncronisation. As there are database locks the messages are errornous and turn to system failure - restartable (red flag). To be seen in SXMB_MONI.
    Regarding to weblog /people/sap.user72/blog/2005/11/29/xi-how-to-re-process-failed-xi-messages-automatically I configuered the CRM middleware with IS_Retry and also scheduled a job for report RSXMB_RESTART_MESSAGES.
    That worked fine until yesterday our synchronous XML szenario dumped and produced errornous messages type system failure - not restartable (red dot). Since then the IS_Restart doesn't work anymore.
    I've no idea how to handle theese messages. It seems they are preventing IS_Retry from working. If there are red flagged messages I can process them manually or with report RSXMB_RESTART_MESSAGES. But they are not automatically re-processed via IS_Retry.
    I also checked the queues and they look fine in smq2. There are no stucked queues.
    Does anyone have any idea what is going wrong and how I can fix this issue? I could schedule the report to work more than once a day as it is at the moment (night job), but IS_Retry option would be the better szenario.
    Thanks a lot in advance.
    kind regards
    Michael

    Hello Suraj,
    the error log in SXI_MONITOR tells me that the sender/receiver realtion couldn't be found, due to XI had a downtime.
    On Audit log from Message Monitoring on adapter engine I don't have permission, as I am working only on the CRM.
    But i was able to deal with the errornous XML. The deletion job in sxmb_adm (rsmb_delete_messages) with the parameter PERSIST_DURATION_ERROR with Subparameter SYNC Value 1 has removed them from the system.
    According to forum deletion of unprocessed xml messages
    But I still don't know why IS_Retry doesn't work anymore.
    Kind regards
    Michael

  • Automatic security handling doesn't work at all

    Hi all,
    I'm just discovering that the automatic security handling of LV DSC 7.0 doesn't work! That means if I set security options for a control, they won't be applied. Even the VI's in example\lvdsc\security don't work as supposed (and as they did in LV DSC 6.1)!
    Does anyone out there experience the same problems?

    Since logging off and then back on seems to fix the problem it would seem that when LabVIEW is starting it is automatically logging you into an account with access priviledges. You can check what account is automatically logged into by launching LabVIEW and going to Tools>>DSC Module>>Security>>User Info.... You can also set this behavior by logging in as an Administrator and then going to Tools>>DSC Module>>Options and then the Security Preferences button on the Advanced tab.
    Regards,
    JR A.

  • Exception handler is not working

    Hi fellas,
    My function works fine when the entered username and password are correct. I'm trying to figure out why my exception handler is not displaying the contents of the DBMS_OUTPUT.PUT_LINE when the username or password are not correct. Any ideas?
    Thanks,
    Mat
    VARIABLE g_output VARCHAR2(30)
    VARIABLE g_username VARCHAR2(8)
    VARIABLE g_password VARCHAR2(8)
    VARIABLE g_ck CHAR
    BEGIN
    :g_username := 'gma1';
    :g_password := 'gofy';
    :g_ck := 'N';
    END;
    CREATE OR REPLACE PACKAGE login_pkg IS
    FUNCTION log_in_pf
    (p_username IN VARCHAR2,
    p_password IN VARCHAR2,
    p_ck IN OUT CHAR)
    RETURN CHAR;
    END;
    CREATE OR REPLACE PACKAGE BODY login_pkg IS
    FUNCTION log_in_pf
    (p_username IN VARCHAR2,
    p_password IN VARCHAR2,
    p_ck IN OUT CHAR)
    RETURN CHAR
    IS
    lv_username_txt bb_shopper.username %TYPE;
    lv_password_txt bb_shopper.password%TYPE;
    BEGIN
    SELECT username, password
    INTO lv_username_txt, lv_password_txt
    FROM bb_shopper
    WHERE username = p_username
    AND password = p_password;
    IF lv_username_txt||lv_password_txt = p_username||p_password THEN
    p_ck := 'Y';
    ELSE p_ck := 'N';
    END IF;
    RETURN p_ck;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    DBMS_OUTPUT.PUT_LINE('Invalid username or password');
    END log_in_pf;
    END;
    BEGIN
    :g_output := login_pkg.log_in_pf(:g_username, :g_password, :g_ck);
    END;
    BEGIN
    ERROR at line 1:
    ORA-06503: PL/SQL: Function returned without value
    ORA-06512: at "SCOTT.LOGIN_PKG", line 23
    ORA-06512: at line 2
    Edited by: Mathew2 on Jul 20, 2009 3:20 AM

    Change your package defination too::
    CREATE OR REPLACE PACKAGE BODY login_pkg
    IS
       FUNCTION log_in_pf (
          p_username   IN       VARCHAR2,
          p_password   IN       VARCHAR2,
          p_ck         IN OUT   CHAR
          RETURN CHAR
       IS
          lv_username_txt   bb_shopper.username%TYPE;
          lv_password_txt   bb_shopper.PASSWORD%TYPE;
       BEGIN
          SELECT username, PASSWORD
            INTO lv_username_txt, lv_password_txt
            FROM bb_shopper
           WHERE username = p_username AND PASSWORD = p_password;
          IF lv_username_txt || lv_password_txt = p_username || p_password
          THEN
             p_ck := 'Y';
          ELSE
             p_ck := 'N';
          END IF;
          RETURN p_ck;
       EXCEPTION
          WHEN NO_DATA_FOUND
          THEN
             DBMS_OUTPUT.put_line ('Invalid username or password');
            return 'N' ;   --Added return statement as also mentioned in other post.
       END log_in_pf;
    END;

  • Event handler doesn't work for a Canvas inside a canvas (Possible bug in Flex 4)

    Hi Guys,
    I have a canvas sitting inside another canvas. When i try to catch the mouseClick event in the child canvas, im not able to do it. When i change the child canvas component to a 'Panel', the event handler works perfectly fine. Any suggestions/solutions?

    ok a few things you should know... it is recomended to use the spark components when working with flash builder 4 thought the mx components are available spark is much litghter in weight. also if you want to use the equivalent of a canvas in spark then you want to use a "group" but ill warn you they dont support inline styles, a border container looked more appropiate for what you were trying to do below.  However. i did fix your code for flex 4.0
    look below.
    component:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:fx="http://ns.adobe.com/mxml/2009"
         xmlns:s="library://ns.adobe.com/flex/spark"
         xmlns:mx="library://ns.adobe.com/flex/mx"
        creationComplete ="canvas2_creationCompleteHandler(event)">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <fx:Script>
      <![CDATA[
    import mx.controls.Alert;
    import mx.events.FlexEvent;
    public function canvas1_clickHandler(event:MouseEvent):void
    Alert.show("Clicked");
    public function canvas2_creationCompleteHandler(event:Event):void
    {// TODO Auto-generated method stub//
    kenaCan.addEventListener(MouseEvent.CLICK, canvas1_clickHandler);
      ]]>
    </fx:Script> 
    <mx:Canvas id="kenaCan"
          width="400"
          height="300"
          borderStyle="solid"
          borderColor="black"
          backgroundColor="white"
          />
    </mx:Canvas>
    application:
    <?xml version="1.0" encoding="utf-8"?>
    <s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
          xmlns:s="library://ns.adobe.com/flex/spark"
          xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600"
          xmlns:local1="local.*">
    <fx:Declarations>
      <!-- Place non-visual elements (e.g., services, value objects) here -->
    </fx:Declarations>
    <local1:canvas/>
    </s:Application>
    if this post answers your question please mark it as such thanks

  • Exception aggregation doesn't work correctly

    Hi,
    Here we have a problem about exception aggregation, we created two queries. One is based on the
    InfoCube, another is based on the DSO.
    Both queries have the same definiation. And the data of the InfoCube is from the DSO.
    In the query definition we created a formula and in this formula we used a exception aggregation.
    For example, we used count all value <> 0 and reference to city in exception aggregation to count
    all city which sales value above certain value.
    We got the different result from these two queries.
    The result in the DSO is what we neend.
    Can you tell me why I got the different result?
    Our system information is:
    SAP NetWeaver 2004s
    SAP_ABA     700     0009     SAPKA70009     Cross-Application Component
    SAP_BASIS     700     0009     SAPKB70009     SAP Basis Component
    PI_BASIS     2005_1_700     0009     SAPKIPYJ79     PI_BASIS 2005_1_700
    SAP_BW     700     0009     SAPKW70009     SAP NetWeaver BI 7.0
    BI_CONT     703     0000          -     Business Intelligence Content
    Thanks

    Jin,
    Ideally one way to find out if exception aggregation is working fine is to drill down based on the exception aggregation characteristic and see if the formula is being calculated right...
    Arun

  • Exception handler activity doesn't execute

    I have an exception handler in my bounded task flow but it not always executes when an error is raised by some of the BTF activities.
    In my application I'm having a problem with connections closed.
    I don't know if the database, the firewall or who is closing connections but sometimes I get an error in the logs "oracle.jbo.JboException: JBO-29000: Se ha obtenido una excepción inesperada: java.sql.SQLRecoverableException, mensaje=Conexión cerrada" translation "oracle.jbo.JboException: JBO-29000: Un unexpected exception has been raised: java.sql.SQLRecoverableException, message=Closed connection".
    That is bothering me specially because my task flow continues execution despite of the error. ADF opens the connection and then continues execution. This is fatal because previous updating in the entity objects is lost and the consequence is very bad.
    Well, I have tried to insert an exception handler in my task flow in order to capture this errors and then stop execution of the task flow.
    Currently, I'm more upset because of task flow continues execution after the connection closed error that for the error itself.
    The problem is that sometimes the connection closed appears in the log window but the exception handler is not executed. Sometimes yes, some others no.
    In order to test I'm forcing the error manually killing the sessions in the server.
    Any help for any of both problems ? (1- BTF continuing execution after this error raising and 2-Why the exception handler doesn't always execute when a java error stack appears in the log window).
    Thank you.

    this might be caused by a bug I found too causing eventhandlers not to work, the work round in your case would be:
    blar blar blar
    </variables>
    <!-- start work round --><scope><!-- end work round -->
    <faultHandlers>
    blar blar blar
    blar blar blar
    </sequence>
    <!-- start work round --></scope><!-- end work round -->
    </process>
    i.e. what I'm saying is that top level handler don't work since they are ignored by the engine because they are not in a scope. Try it and see....

  • Custom code as an exception handler not working.

    Hi,
    I worked on Custom Handler for unauthorized access to a taskflow following the link below and it worked. But a special case in this doesn't work.
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/taskflows_complex.htm#ADFFD22602
    Scenario-1: I have a link that opens an unauthorized taskflow as blank page. I tried the solution of custom handler and am able to display message or display error page --- WORKS FINE
    Scenario-2: I have a link that opens an unauthorized taskflow in a pop-up as blank page. The above solution doesn't work. I tried displaying SOPs but nothing gets print --- DOESN'T WORK.
    Details:
    The custom handler doesn't work with Pop-ups. I have an unauthorized taskflow that gets called inside a pop-up using a link. Being an unauthorized user, I click on the link and it pops-up with a blank page. As per the custom handler it is supposed to display error-page. But it doesn't.
    I tried displaying SOPs inside the handleException method and nothing prints. The exception handler is unable to catch the exception. If this use-case throws some exception, my exception handler would have handle it but it doesn't raise any exception.
    Is this something issue that I need to discuss with FMW team?
    Any workaround for this would be of great help.
    Code Sample:
    public void handleException(FacesContext facesContext, Throwable throwable,
    PhaseId phaseId) throws Throwable {
    String errorMessage = throwable.getMessage();
    if (errorMessage != null && errorMessage.indexOf("ADFC-0619") > -1) {
    setEL("#{sessionScope.errorMessage}",
    "You are not authorized to view this page.");
    ExternalContext externalContext =
    facesContext.getExternalContext();
    externalContext.redirect("ErrorPage");
    } else {
    super.handleException(facesContext, throwable, phaseId);
    Thanks
    Raza

    Hi Frank,
    This scenario is not specific to a particular TaskFlow. In General, there are links in some views, that invokes taskflows and a particular user may not have permission to that TaskFlow. In this scenario, I am not sure where I need to define the method or router. And Hence I registered the Custom Exception Handler as a service as per the documentation.
    But the logic in documentation doesn't work with Pop-ups.
    Thanks
    Raza

  • Trying to raise a named exception, in an exception handler

    We have some converted code that I'm trying to fix. Usually, the code isn't modularized, and is an EXCEPTION named at the top of a package gets raised, the code falls into the EXCEPTION handler and everything works fine.
    create or replace package tmp_pg
    as
      procedure main;
    end tmp_pg;
    create or replace package body tmp_pg
    as
      x_datacheck EXCEPTION;
      wk_num      NUMBER(1);
    begin
      wk_num := 1;
    exception
      when x_datacheck then
        raise_application_error(-20500, 'datacheck');
      when others then
        raise;
    end tmp_pg;
    /The problem we're seeing for some of the code, is that inside the private methods in the PACKAGE BODY, the EXCEPTION defined at the PACKAGE BODY-level is raised, which results in a "ORA-06510: PL/SQL: unhandled user-defined exception" error:
    create or replace package body tmp_pg
    as
      x_datacheck EXCEPTION;
      wk_num      NUMBER(1);
      procedure main is
      begin
        if wk_num = 1 then
          raise x_datacheck;
        end if;
      end main;
    begin
      wk_num := 1;
    exception
      when x_datacheck then
        raise_application_error(-20500, 'datacheck');
      when others then
        raise;
    end tmp_pg;So the code above compiles, but fails at runtime. I tried both of the following, which doesn't work:
    - adding an exception handler in the procedure MAIN( ), which raises X_DATACHECK
      procedure main is
      begin
        if wk_num = 1 then
          raise x_datacheck;
        end if;
      exception
        when x_datacheck then
          raise x_datacheck
      end main;- adding a locally defined exception handler in MAIN( ), raising that, which in turn raises X_DATACHECK from the exception handler in MAIN( )
      procedure main is
        lx_datacheck EXCEPTION;
      begin
        if wk_num = 1 then
          raise lx_datacheck;
        end if;
      exception
        when lx_datacheck then
          raise x_datacheck;
      end main;Does anyone have another solution I could try?
    Thanks,
    --=Chuck

    This block of code:
    begin
      wk_num := 1;
    exception
      when x_datacheck then
        raise_application_error(-20500, 'datacheck');
      when others then
        raise;
    end tmp_pg;executes only once, the first time the package is accessed in a session. Since it does not raise x_datacheck, the exception block will not catch it. When x_datacheck is raised in main, the initialisation section has already finished running, so main needs to be the one catching and re-raising. Something like:
    SQL> create package tmp_pg as
      2    procedure main;
      3  end tmp_pg;
      4  /
    Package created.
    SQL> create or replace package body tmp_pg as
      2    x_datacheck EXCEPTION;
      3    wk_num      NUMBER(1);
      4
      5    procedure main is
      6    begin
      7      if wk_num = 1 then
      8        raise x_datacheck;
      9      end if;
    10    exception
    11      when x_datacheck then
    12        raise_application_error(-20500, 'datacheck');
    13    end main;
    14
    15  begin
    16    wk_num := 1;
    17  end tmp_pg;
    18  /
    Package body created.
    SQL> exec tmp_pg.main;
    BEGIN tmp_pg.main; END;
    ERROR at line 1:
    ORA-20500: datacheck
    ORA-06512: at "OPS$ORACLE.TMP_PG", line 12
    ORA-06512: at line 1This would work even if some procedure called by main raised x_datacheck. If you want the initialisation section to catch x_datacheck, then either it needs to raise it itself, or call a procedure that raises x_datacheck.
    John
    John

Maybe you are looking for