Event Driven Publishing

I am following the examples given for this on technet, but on compiling I get these errors:
ORA-20999:
ORA-06512: at "PORTAL.SRW", line 284
ORA-06512: at "PORTAL.SRW", line 815
ORA-06512: at line 11
This is the code I'm using. What can I be doing wrong?
DECLARE
myPlist portal.SRW_PARAMLIST;
myIdent portal.SRW.Job_Ident;
BEGIN
myPlist := portal.SRW_PARAMLIST(portal.SRW_PARAMETER('',''));
portal.srw.add_parameter(myPlist,'GATEWAY', 'http://ioappdm2.sfwmd.gov:7777/reports/rwservlet');
portal.srw.add_parameter(myPlist,'SERVER','ioappdm2');
portal.srw.add_parameter(myPlist,'REPORT','C:\GBreports\cjss_report77.rdf');
portal.srw.add_parameter(myPlist,'USERID','pub/pub@wmdp');
portal.srw.add_parameter(myPlist,':doc_no','OT050654');
myIdent := portal.SRW.run_report(myPlist);
END;

Have you installed all of the srwAPI's on the database? They can be found at ORACLE_HOME\reports\sql\admin\sql.
I had a similar problem and ended up putting the procedure on apps and then calling it from the db thru another procedure. You can try adding the following and see if this gives you a little clearer error msg.:
(goes after the begin)
srw.Start_Debugging;
dbms_output.put_line('begin');
(put before end)
srw.Stop_Debugging;
Good Luck.

Similar Messages

  • Error in event driven publishing

    Dear Gurus...I created the following procedure to implement Event Driven Reporting:
    CREATE OR REPLACE procedure ABC.eve_drv_rep as
    myPlist system.SRW_PARAMLIST;
    myIdent system.SRW.Job_Ident;
    BEGIN
    myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
    system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
    system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
    system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
    system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
    system.srw.add_parameter(myPlist,'DESTYPE','email');
    system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
    system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
    myIdent := system.srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
    END;
    Procedure is created successfully but when I execute this procedure, I get the following error:
    ORA-20001'Error sending email.Error: ORA-20999
    ORA-06512: at "Nml.Eve_Drv_Rep", line 17
    ORA-06512: at line 1
    Can u guess where is the problem?
    2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
    And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
    Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
    Please note that we r using Database 10g Rel.2 and Forms and Reports server on Application Services and the report being called was developed in Reports 10g.

    Hi,
    Remove this (And never put it in again)
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);This will tell you more about what is going on, such as giving you the location of the error.
    But 20999, is a user defined exception, are you putting objects into system schema?
    Regards
    Peter

  • New version of the LabHSM Toolkit for Complex Event-Driven Development is Now Available!

    A new version of the unique toolkit is now available for download. As announced earlier, LabHSM makes it possible to easily create and then maintain complex event-driven applications in LabVIEW as a collection of HSM-driven active object VIs using a higher level of abstraction and agile software development methodologies. These active object VIs are created based on a universal Hierarchical State Machine ( HSM or statechart ) template. Therefore, all your code looks similar regardless of its functionality!
    So, what’s new in version 1.1?
    • "No hands" block diagram modifications! Version 1.1 actually creates, renames, and removes actions on the block diagram as you define, rename, and remove them in the editor! (No, it can't fill in all the details for you, but it can do some, if you think ahead, by replicating similar actions.)
    • Two new screens, Events Usage and Actions Usage, (available in licensed copies only) clearly show where (in which state(s)/transition(s)) and how (is it an entry action, exit action or event handling action?) a particular event or action is used. Moreover, if after selecting an instance on the list, the Go To button is pressed, it makes the main screen jump to respective location in the HSM structure. In the case of Actions Usage screen, the respective action is also displayed on the block diagram. Thus, these screens provide two more different cross-sections of the HSM data set and two additional ways to navigate it – now along the Actions and Events dimensions too instead of just the state tree in the first version.
    • Version 1.1 can duplicate events or actions, which helps when you've got several that are similar. Changes in the events and actions lists are reflected immediately on the main screen and on the block diagram (which solves the previous problem of deleting a renamed event or action when it's still in use).
    • The Events and Actions List Editors are no longer modal and neither are the Events and Actions Usage screens, so you can have all the panels and the block diagram visible and move freely among them as you build your HSM (a good argument for an even larger monitor).
    • When you save an HSM file, version 1.1 automatically adds the .hsm extension if you leave it out and it remembers the last directory you used.
    • The Loaded VIs utility now can open and close block diagrams (if they are not protected with a password) and display only VIs with modal front panels, if desired—useful for quickly finding and closing accidentally opened (e.g., from the hierarchy window) modal VIs. Make a modal version of this utility and keep it on the Desktop for this purpose.
    • A new example of a simple hierarchical state machine and two more excellent tutorials from Paul F. Sullivan (SULLutions.com) are included into the package. The tutorials are also available online. The overview article has also been extended.
    As before, the LabHSM toolkit is available for UNLIMITED PERIOD trial. Please visit http://www.labhsm.com for details and download. The site also contains references which you may want to check to learn more about hierarchical state machines and active object computing.
    Stanislav Rumega
    NI Certified LabVIEW Developer
    H View Labs
    http://www.labhsm.com
    [email protected]
    US Toll-Free Phone/Fax: 877-570-8684

    I am not really sure if Azure support this but its worth to make your configuration file to support .NET 4.0
    $PShome\PowerShell_ISE.CONFIG and $PSHOME\PowerShell.exe.config will be not existing.
    So you can make an entry in configuration to support .NET framework 4.0
    like shown below
    $config_text = @"
    <?xml version="1.0"?>
    <configuration>
    <startup useLegacyV2RuntimeActivationPolicy="true">
    <supportedRuntime version="v4.0.30319"/>
    <supportedRuntime version="v2.0.50727"/>
    </startup>
    </configuration>
    $config_text| Out-File $pshome\powershell.exe.config
    $config_text| Out-File $pshome\powershell_ise.exe.config
    Close PowerShell Console and open as administrator.
    Try loading the modules back and let me know.
    Regards Chen V [MCTS SharePoint 2010]

  • New LabHSM Toolkit - Agile development of complex event-driven maintainable LabVIEW applications with active objects / actors based on a universal Hierarchical State Machine / statechart template.

    Dear Fellow LabVIEW programmers:
    Most of the systems you deal with are reactive. It means that their
    primary function is constant interaction with their environment by
    sending and receiving events. But most likely, they can have something
    happening inside them too, even when they are not processing messages
    received from outside. So, such systems have to continuosly react to
    external and internal stimuli. Right? Moreover, most likely, they
    consist of subsystems that are reactive too and, in turn, can have
    their own "life", to an extent independent from other parts (with
    which they still communicate, of course). Reactive (event-driven)
    systems are more naturally modeled with active objects. So, why then
    should we try to model and code them with GOOP and its passive
    ("dead"!) objects?
    "Flat" State Machines have been known for decades to have severe
    limitations. It's been more than 20 years since Dr. Harel invented
    Hierarchical State Machines (statecharts) to fight those limitations.
    Then why does NI still tout the same old good Moore FSM as the
    ultimate tool for event-driven programming in LabVIEW in its $995
    State Diagram KIt?
    The LabHSM toolkit we are happy to present, makes it possible to
    easily create and then maintain complex event-driven applications in
    LabVIEW as a collection of HSM-driven active object VIs using a higher
    level of abstraction and agile software development methodologies.
    These active object VIs are created based on a universal Hierarchical
    State Machine ( HSM or statechart ) template. So. all your code looks
    similar regardless of its functionality!
    We all love just jump to code, right? However, to be good boys, we
    need to do design first. Then implement it in code. If the logic is
    modified we need to redo the design first and then redo the code. When
    using LabHSM where behavior information is abstracted into a separate
    HSM data file editable with a supplied editor, there is no need for
    coding separate from design any more. The modified behavior becomes
    code automatically as soon as the HSM file is saved. Design is code!
    The implementation basically follows Dr. Samek's Quantum Programming
    paradigm. (see http://www.quantum-leaps.com). However, as already
    mentioned, LabHSM stores the behavior information in a file separate
    from the code itself. It also adds state dependent priorities to
    events, a separate queue for public events/messages, and, of course,
    some LabVIEW specific code like capturing front panel user events and
    putting them into the private Events queue. Communication and
    instantiation functions are also rather specific for LabVIEW.
    It is available for UNLIMITED PERIOD trial. Please visit
    http://www.labhsm.com for details and download. The site also contains
    references which you may want to check to learn more about
    hierarchical state machines and active object computing.
    Since this is our debut we will appreciate any comments and
    suggestions. Our contact information is available on our site, of
    course.
    Have a G'day!

    Symtx is currently hiring the following position. Please contact me if interested.
    Amy Cable
    Symtx, HR
    [email protected]
    Symtx, the leading supplier of functional test equipment, hires the brightest & most talented engineering professionals to design & manufacture complex custom electronic systems for advanced technology leaders in the defense, aerospace, communications, medical, transportation & semiconductor industries. Symtx’ challenging & dynamic work environment seeks to fill openings with highly qualified electronic engineering design professionals.The ideal candidate will be responsible for defining the requirements, software design and code development, and integration of test control software for custom functional test systems. Candidate should be familiar with data acquisition concepts, instrument control, complex test, measurement and calibration algorithm development and definition and implementation of control interfaces to hardware. Prefer familiarity with instrument control via GPIB, VXI, MXI, RS-232 desirable. Requires BS/MSEE and 3 -7+ yrs of experience in one or several of the following test applications in a Windows NT/2000/XP environment using Labwindows CVI, TestStand, Labview, Visual Basic, C++ and knowledge of RF systems is a plus. Job responsibilities will include software design, development, integration, team leadership, and interfacing with customers( includes PDR’s & CDR’s).

  • Problem in Event driven report

    Dear Gurus...I created the following procedure to implement Event Driven Reporting:
    CREATE OR REPLACE procedure ABC.eve_drv_rep as
    myPlist system.SRW_PARAMLIST;
    myIdent system.SRW.Job_Ident;
    BEGIN
    myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
    system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
    system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
    system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
    system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
    system.srw.add_parameter(myPlist,'DESTYPE','email');
    system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
    system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
    myIdent := system.srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
    END;
    Procedure is created successfully but when I execute this procedure, I get the following error:
    ORA-20001'Error sending email.Error: ORA-20999
    ORA-06512: at "Nml.Eve_Drv_Rep", line 17
    ORA-06512: at line 1
    Can u guess where is the problem?
    2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
    And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
    Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
    Please note that we r using Database 10g Rel.2 and Forms and Reports services on Application Services and the report being called was developed in Reports 10g.

    Hi,
    Consider this corrected code.
    REPORT zztest
    NO STANDARD PAGE HEADING
    LINE-COUNT 36(3)
    LINE-SIZE 250.
    DATA: BEGIN OF itab OCCURS 0,
    carrid TYPE sbook-carrid,
    connid TYPE sbook-connid,
    fldate TYPE sbook-fldate,
    custtype TYPE sbook-custtype,
    class TYPE sbook-class,
    bookid TYPE sbook-bookid,
    END OF itab.
    DATA a TYPE i.
    SELECT carrid connid fldate custtype class bookid
    FROM sbook INTO CORRESPONDING FIELDS OF TABLE itab.
    SORT itab.
    ULINE.
    WRITE :1 'CARRID', 20'BOOK ID', 37'CLASS'.
    ULINE.
    LOOP AT itab .
    <b>  AT NEW carrid.
        WRITE: 1 itab-carrid.
      ENDAT.
      WRITE : 20 itab-bookid.
      WRITE : 40 itab-class.</b>
      AT END OF carrid.
        ULINE.
      ENDAT.
    ENDLOOP.
    <b>Your problem was.</b>
      AT NEW carrid.
        WRITE: 1 itab-carrid.
      ENDAT.
      WRITE : <b>/</b>20 itab-bookid. "New Line <b>/</b>
      WRITE : 40 itab-class.
    Regards,
    Arun Sambargi.

  • Periodic reading data with event driven programming

    Hi all
    I want to read data from a device periodically, for example every 2 seconds.
    but I want to use event driven programming in order to response user events.
    now I don't know how to do this......!!
    maybe I should use timed loop or timed sequence structure
    if I use this structures, should I use then inside the while loop or outside the while loop( I mean the while loop that contains the event cases)?
    please help me and accept my thanks....

    You ned to run these in two separate loops. Look at the Producer/Consumer template. Put a two second time-out on the Dequeue Element and you have a loop that will run every two seconds. The loop should also handle information from the event structure.
    Separate loops is the best way of handling this.
    Rob

  • Error in event driven reporting

    Dear Gurus...I created the following procedure to implement Event Driven Reporting:
    CREATE OR REPLACE procedure ABC.eve_drv_rep as
    myPlist system.SRW_PARAMLIST;
    myIdent system.SRW.Job_Ident;
    BEGIN
    myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
    system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
    system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
    system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
    system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
    system.srw.add_parameter(myPlist,'DESTYPE','email');
    system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
    system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
    myIdent := system.srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
    END;
    Procedure is created successfully but when I execute this procedure, I get the following error:
    ORA-20001'Error sending email.Error: ORA-20999
    ORA-06512: at "Nml.Eve_Drv_Rep", line 17
    ORA-06512: at line 1
    Can u guess where is the problem?
    2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
    And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
    Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
    Please note that we r using Database 10g Rel.2 and Forms and Reports services on Application Server on Widows Server-2003 platform and the report being called was developed in Reports 10g.

    A few remarks:
    Remove the exception handler, since it masks the exact error.
    Turn on debugging, because it will give you better information about the error.
    srw.start_debugging;
    srw.stop_debugging;Did you configure an smtp server in server_name.conf?
    Are you able to run the report directly from your browser with the same URL?
    where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.Oracle has manuals for everything.
    http://download.oracle.com/docs/cd/E12839_01/bi.1111/b32121/pbr_evnt001.htm#i1007523

  • Error in event driven procedure

    Dear Gurus...I created the following procedure to implement Event Driven Reporting:
    CREATE OR REPLACE procedure ABC.eve_drv_rep as
    myPlist system.SRW_PARAMLIST;
    myIdent system.SRW.Job_Ident;
    BEGIN
    myPlist := system.SRW_PARAMLIST(system.SRW_PARAMETER('',''));
    system.srw.add_parameter(myPlist,'GATEWAY','http://192.168.1.133/reports/rwservlet);
    system.srw.add_parameter(myPlist,'SERVER','rep_appsrv_frhome1');
    system.srw.add_parameter(myPlist,'REPORT','y:\02\02\Gry_02_01.rep');
    system.srw.add_parameter(myPlist,'USERID','def/xyz@nml');
    system.srw.add_parameter(myPlist,'DESTYPE','email');
    system.srw.add_parameter(myPlist,'DESFORMAT','PDF');
    system.srw.add_parameter(myPlist,'DESNAME','[email protected]');
    myIdent := system.srw.run_report(myPlist);
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);
    END;
    Procedure is created successfully but when I execute this procedure, I get the following error:
    ORA-20001'Error sending email.Error: ORA-20999
    ORA-06512: at "Nml.Eve_Drv_Rep", line 17
    ORA-06512: at line 1
    Can u guess where is the problem?
    2ndly I want to know that whether I should give IP address or Application Server Machine Name in GATEWAY parameter?
    And in SERVER parameter either I should give the Application Server Machine Name or Report Server name installed on Application Server Machine?
    Lastly from where I can get the complete list of Parameters to be added in SRW.Add_Parameter like SERVER, GATEWAY etc.
    Please note that we r using Database 10g Rel.2 and Forms and Reports services on Application Server on Widows Server-2003 platform and the report being called was developed in Reports 10g.

    Hi,
    Remove this (And never put it in again)
    EXCEPTION
    when others then
    raise_application_error(-20001,'Error sending email.Error: '||sqlerrm);
    --Dbms_Put.Put_Line('Error sending email.Error: '||dbms_util.get_detailed_sqlerrm);This will tell you more about what is going on, such as giving you the location of the error.
    But 20999, is a user defined exception, are you putting objects into system schema?
    Regards
    Peter

  • IDoc Packaging on Event Driven Message Processing Message Filter

    Hi Experts,
    I am testing IDoc Packaging on Event Driven Message Processing and I got struck at scheduling the job.
    My scenario is IDoc to File. I have created sender and receiver id with coresponding interfaces. While creating the message filter I have selected outbound channel --> IDoc Packaging Option n I have took 10 as Package Size in Messages. In SM 36 I have created JOB and in the step I have selected SXMS_START_JOBS.
    Now my problem is while creating the JOB in SM36 what condition should I select? How do I test this event driven message processing with IDoc packaging??
    Please guide me...
    Regards
    SAPTOTAL

    in the event, you should also have a job for RSEOUT00 scheduled so that the IDocs are send out as a package

  • Event Driven Message Processing in AAE

    Hi SDNers,
    I wanted to know if PI 7.1 EhP1 supports event driven message processing on AAE, means can I bypass ABAP engine by configuring the scenario with ICo (Integrated Configation) and still use the event driven message processing of PI?
    Regards,
    Gautam Purohit

    Hi Gautam Purohit,
    "Event-Driven Message Processing" is concept related to Integration Engine. So if your are using AAE (skipping IE), you cannot use it. [Link1|http://help.sap.com/saphelp_nwpi711/helpdata/en/7a/00143f011f4b2ee10000000a114084/frameset.htm]
    I think "Event-Driven Message Processing" and ccBPM are not related.
    Regards,
    Raghu_Vamsee

  • Event driven messaging in XI

    Hi All,
    We are using event driven messaging configuration in SXMB_ADM transaction to send IDOC in package to R/3.
    I have tried to create multiple Msg filters for the same sender and receiver which in turn creates multiple job IDs.
    But when we run the test, i see that the first Job execute and the msgs are assigned to the first Job but not all the Job IDs created.
    Does XI not allow for multiple filters to be created for same sender and receivers.
    pls help!
    regards,
    tony

    Hi All,
    We are using event driven messaging configuration in SXMB_ADM transaction to send IDOC in package to R/3.
    I have tried to create multiple Msg filters for the same sender and receiver which in turn creates multiple job IDs.
    But when we run the test, i see that the first Job execute and the msgs are assigned to the first Job but not all the Job IDs created.
    Does XI not allow for multiple filters to be created for same sender and receivers.
    pls help!
    regards,
    tony

  • Event-Driven Programming

    Hello Everyone,
    I am new to this forum and also new to event-driven programming. Anyways, I am doing a small exercise to get myself familiar with event-driven programming. In particular, the program responds to keys entered on a keyboard. The exercise in a way resembles how a second hand moves in a clock. So, here's what I am trying to do. Originally the hand points at 12 o'clock. when I press the right arrow key the hand should move 6 degrees to the right and when I press the left arrow key the hand should move 6 degrees to the left. The code I have so far seems fairly correct to me but when I run the program and press the arrow keys on my keyboard nothing happens. Any help would be appreciated and thank you in advance.
    Here is my code:
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class hittingBalloons extends JFrame{
         hittingBalloons(){
              mouseKeyboardListeners p = new mouseKeyboardListeners();
              add(p);
              p.setFocusable(true);
         public static void main(String[] args){
              hittingBalloons frame = new hittingBalloons();
              frame.setTitle("Hitting Balloons");
              frame.setSize(500,500);
              frame.setLocationRelativeTo(null);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
         public class mouseKeyboardListeners extends JPanel{
              private int xCenter=250;
              private int yCenter=250;
              private int xEnd =250;
              private int yEnd =210;
              private int angle=0;
              private int gunLength=40;
              private int xBall = 150;
              private int yBall = 150;
              private int radius = 20;
              public mouseKeyboardListeners(){
                   addKeyListener(new KeyAdapter(){
                        public void keyPressed(KeyEvent e){
                             if(e.getKeyCode() == KeyEvent.VK_LEFT){
                                  angle = (int)(angle - (Math.PI/30));
                                  xEnd = (int)(xCenter + gunLength*Math.sin(angle));
                                  yEnd = (int)(yCenter - gunLength*Math.cos(angle));
                                  repaint();
                             else if (e.getKeyCode() == KeyEvent.VK_RIGHT){
                                  angle = (int)(angle + (Math.PI/30));
                                  xEnd = (int)(xCenter + gunLength*Math.sin(angle));
                                  yEnd = (int)(yCenter - gunLength*Math.cos(angle));
                                  repaint();
              protected void paintComponent(Graphics g){
                   super.paintComponent(g);
                   g.drawLine(xCenter,yCenter,xEnd,yEnd);
    }

    A few notes and suggestions:
    1) Welcome to the forum!
    2) When posting code, please use code tags as it makes your code easier to read. the FAQ will show you how. e.g.,
    import java.awt.*;
    import java.util.*;
    import java.awt.event.*;
    import javax.swing.*;
    public class hittingBalloons extends JFrame{
         hittingBalloons(){
              mouseKeyboardListeners p = new mouseKeyboardListeners();
              add(p);
              p.setFocusable(true);
         public static void main(String[] args){
              hittingBalloons frame = new hittingBalloons();
              frame.setTitle("Hitting Balloons");
              frame.setSize(500,500);
              frame.setLocationRelativeTo(null);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
         public class mouseKeyboardListeners extends JPanel{
              private int xCenter=250;
              private int yCenter=250;
              private int xEnd =250;
              private int yEnd =210;
              private int angle=0;
              private int gunLength=40;
              private int xBall = 150;
              private int yBall = 150;
              private int radius = 20;
              public  mouseKeyboardListeners(){
                   addKeyListener(new KeyAdapter(){
                        public void keyPressed(KeyEvent e){
                             if(e.getKeyCode() == KeyEvent.VK_LEFT){
                                  angle = (int)(angle - (Math.PI/30));
                                  xEnd = (int)(xCenter + gunLength*Math.sin(angle));
                                  yEnd = (int)(yCenter - gunLength*Math.cos(angle));
                                  repaint();
                             else if (e.getKeyCode() == KeyEvent.VK_RIGHT){
                                  angle = (int)(angle + (Math.PI/30));
                                  xEnd = (int)(xCenter + gunLength*Math.sin(angle));
                                  yEnd = (int)(yCenter - gunLength*Math.cos(angle));
                                  repaint();
              protected void paintComponent(Graphics g){
                   super.paintComponent(g);
                   g.drawLine(xCenter,yCenter,xEnd,yEnd);
    }3) For key listeners to work, the component must have the focus, and JPanels don't get focus by default. You have to call setFocusable(true) first and then request focus in window on the JPanel.
    4) Even better would be to use key binding, and to learn to use these, check out the Sun tutorial.
    Luck and again, welcome!

  • Prioritized Messages in combination with Event-Driven Message Processing

    Hi,
    our Scenario (EO): Sender A sends large IDocs to Receivers X and Y (> Split)
    1.
    What we did first:
    Prioritized Message Processing
    Sender A sends large Messages, therefore we prioritzied Messages in the IE with EO_MSG_SIZE_LIMIT > 4000.
    This works fine: Messages are queued in XBTL and XBTM and afterwards they are send to Receiver X and Y.
    2.
    What we did next:
    Event-Driven Message Processing
    Now we want to send the Message from Sender A to Receiver X directly and to Receiver Y at night time.
    We add Event-Driven Message Processing, Sender- and ReceiverID for A and Y,Job and so on...
    On it's own (without Prioritized Message Processing), this works fine: The messages are send at night time.
    But in combination (Event-Driven + Prioritized Message Processing) the messages only passes the Prioritized Message Processing and the Event-Driven is ignored.
    Our "Hop-List" for Split A to Y was:
    1. XBTL
    2. XBTJ2008...
    3. XBTM
    But actually all Messages passes:
    1.XBTL
    2.XBTM
    Why are the messages not filtered for the Event-Driven Message Processing (in combination with the Prioritized Message Processing)?

    It was an error in the SourceCode and is now corrected by SAP:
    Hinweis 1295746 - XI Runtime: Fehler in Ereignisgesteuerte Messageverarbeitung
    Olaf

  • Do we have any Event Driven functionality in Biztalk

    Hi,
    Do we have any in-build event driven functionality in Biztalk? time-bound like.
    Few scenarios:
    1. If orchestration is running more then 5 mints then it should be alerted to admin.
    2. Alert need to be raised if bulk of messages are suspended.
    Thanks

    Hi Narasaiah,
    If you don't have resource to go for SCOM/BizTalk360, then
    You can consider using some operation scripts using WMI/Operations DL/SQL query which can be executed periodically using a schedule task (or as service).
    This script can check for the condition as you have specified and send a notification.
    Following scripts can give you some idea. Note: These scripts are just to give you an idea and get started, they are not tested.
    WMI for an orchestration which is Active state for 5 minutes:
    strComputer = "."
    Dim dtCurretTime, dt5Mins
    dtCurretTime = Now ()
    dt5Mins = DateAdd("h",-5,dtCurretTime)
    Set objWMIService = GetObject("winmgmts:\\" & strComputer & "\root\MicrosoftBizTalkServer")
    Set colItems = objWMIService.ExecQuery( _
    "SELECT * FROM MSBTS_ServiceInstance WHERE ServiceStatus = 4 AND ActivationTime >= dt5Mins",,48)
    If colItems.Count >0
    Wscript.Echo "Instance" & colItems.ServiceName" has been in Active state"
    End If
    Here the "MSBTS_ServiceInstance" would give you the details about the orchestration
    And SQL query to get the count of suspended message:
    SELECT
    count(InstancesSuspended.)uidInstanceID
    FROM InstancesSuspended
    LEFT OUTER JOIN [Services]
    on InstancesSuspended.uidServiceID = [Services].uidServiceID
    LEFT OUTER JOIN Modules
    on Modules.nModuleID = [Services].nModuleID
    LEFT OUTER JOIN Instances
    on Instances.uidInstanceId = InstancesSuspended.uidInstanceID
    WHERE InstancesSuspended.DtCreated between DATEADD(dd,-7,GETUTCDATE()) and GETUTCDATE()
    and InstancesSuspended.nErrorCategory=0
    Instances.nState = 4 or Instances.nState = 32
    //Instances.nState as State -- 4 = Suspended (resumable), 32 = Suspended (not resumable)
    ORDER BY InstancesSuspended.dtCreated desc
    As mentioned, fine-tune these scripts, run them in periodically and send notification if the condition matches.
    If this answers your question please mark it accordingly. If this post is helpful, please vote as helpful by clicking the upward arrow mark next to my reply.

  • HT204487 iPhoto Event Driven Smart Folders Destroyed in Photos

    I have 10 smart albums based on named events in iPhoto that don't even show up in Photos.  I have 20 more smart albums that came across but not one folder have the correct pictures.  I know that I can use iPhoto but the last update of that app no longer puts the photos in the correct order so that's broken also!  Is there any way to reconstruct event driven smart folders in Photos?  This is a two year project with hundreds of photos that for the most part is ruined.

    NEVER MIND - I found a way to resolve the issue. 

Maybe you are looking for