Listening events for numeric keys

Hi,
How can I listen events for numeric keys without using Canvas?
I mean I would like to take some actions when user writes something
on a TextField. My main class is not inherited from Canvas and because of that
I can't use keyPressed() method to handle these numeric keys.
Is there a way to handle these events in commandAction() method?

Hi,
If u r concerned only about the texfields and if you are using MIDP 2.0 compatible device then try ItemCommandListener.

Similar Messages

  • Flex 4 does not dispatch keyboard events for ENTER key.

    Hello everyone. I think I have a strange problem with Flex 4 Beta (4.0.0.8909). My application has had event listener for keyUp event for a month now and suddenly (two days ago) I've noticed that keyUp event is not dispatched for ENTER (ALT also) key. Anyone know why? By the way, I've tried this with keyDown event, also 4.0.0.8847 version of SDK - still the same: no keyboard events for ENTER (and ALT) key.
    Here is the sample application that has got this issue:
    <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/halo"
       minWidth="640" minHeight="480"
       keyUp="application1_keyUpHandler (event)">
       <fx:Script>
          <![CDATA[
             import mx.controls.Alert;
             protected function application1_keyUpHandler (event: KeyboardEvent):void
                Alert.show ("Key up: " + event.keyCode);
          ]]>
       </fx:Script>
       <s:layout>
          <s:BasicLayout/>
       </s:layout>
       <s:TextArea verticalCenter="0" horizontalCenter="0" width="200"/>
    </s:Application>
    If you run this application and try typing anything in a TextArea you will get alerts with key codes. However, if you press ENTER (or ALT), you will get no alert.
    I'm pretty sure the code above is right so that means there is a bug in latest nightly builds of SDK (i would swhitch to an older build if i knew which one does not have this bug).
    Any ideas?

    Flex harUI wrote:
    That's true, but in this case, I think the text editing code is eating ENTER key in order to prevent parents from seeing it and acting on it (like a submit button).  We'll see if we can find a way around that.
    You can get the ENTER key now by listening in capture phase.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui
    The enter key isn't being disposed of by textedit, the attached example code works without error if you a- remove the alert box and b-set the focus to your text area on initialisation. I agree that pressing the enter key then calling a dialog box will result in the enter key being "gobbled up" as  the enter key is overridden by the dialog box code.
    I think the first suggestion should be to anyone don't use dialogboxes for testing code. If for some reason debugging isn't desirable instead of a trace statement a simple label  can be used as a 'fake' trace.
    David
    Message was edited by: David_F57: I worded this wrong, imho there is no need for a work around, the textarea component works as it should. When intercepting 'system' keycodes there is a need to consider the effect of the intercept and code appropriately to that end.

  • Catch KeyDown events for modifier keys

    I need to be able to tell when a user presses or releases the CTRL key for my application, but I can't get KeyListeners to work and the key bindings only appear to work with releasing the key. I also have key bindings for CTRL key combinations (like CTRL-N, CTRL-S, etc.), but I need an event which is fired when the user first presses the CTRL key. The goal is to have a tooltip on my custom JPanel which pops up when I press CTRL and goes away when I release it.
    My (broken) key binding code:
    JPanel main=new JPanel();
    InputMap im=main.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW);
    im.put(KeyStroke.getKeyStroke("pressed CONTROL"), "cDown");
    im.put(KeyStroke.getKeyStroke("released CONTROL"), "cUp");
    main.getActionMap().put("cDown",new AbstractAction() {
        public void actionPerformed(ActionEvent e) {
            isCtrlDown=true;
            updateTooltip();
            System.out.println("down");
    main.getActionMap().put("cUp",new AbstractAction() {
        public void actionPerformed(ActionEvent e) {
            isCtrlDown=false;
            updateTooltip();
            System.out.println("up");
    });If you press the control key a few times over this component, you only get "up" printed.

    Hi BaconOppenheim,
    Could you let me know which locale/input source you're using? I've run through some tests with the configuration you mentioned and I'm not seeing a problem. There is an issue with Ctrl+Click as that triggers a right click on Mac but the Alt key is certainly working on mouse events.
    Could you send a screen shot of the test extension output after running:
    1. Click + Shift key down
    2. Click + Alt key down
    3. Click + Cmd key down
    4. Click + Shift key + Alt key + Cmd key down
    That should cover the cases and show me the exact results.
    Thanks,
    Greg

  • Invalid input event for numeric control

    Need to catch the event when invalid input being through out, customer doesn't like the notify.
    George Zou
    http://webspace.webring.com/people/og/gtoolbox

    I haven't had a big problem with this, and I plan to continue to use numeric controls instead of making everything strings, but it does seem strange that CVI doesn't catch this.  I like the automatic range checking options, the programmable increment/decrement buttons, and the ease of use.
    You can use a quirk in CVI to catch this: if you enter an invalid number like 1.2.3 or 3...14159 or 1-2, CVI triggers EVENT_VAL_CHANGED, but leaves the original number unchanged.  So you can create a case in the callback for the numeric control for EVENT_VAL_CHANGED, and in that case check to see if the value is the same as the previous value.  If it is, assume an invalid input.  EVENT_VAL_CHANGED does not get fired if you just press Enter without changing the value.
    There are a couple of limitations or drawbacks to this approach.  It doesn't save your invalid entry, so you have to enter the whole thing again instead of just correcting your mistake.  EVENT_VAL_CHANGED also gets fired if you use Delete or Backspace, even if the number you end up with is the same as the previous.  So this approach will flag that as an invalid entry.
    See the attached example.
    Attachments:
    TestInvalidInput.zip ‏6 KB

  • How to create a keypress event for ANY key on the keyboard that is pressed ? (not a specific key.)

    I realise that if I use:
    if (e.which == 81) {
    do whatever
    I can activate an action based on key 81 being pressed.
    But how would I do the same, regardless of what key is pressed?

    Sorry, figured it out...
    I just don't need to specify an if..... at all.
    Duh!

  • Not getting event for Indicator

    Hi..
    I am running 2 while loops. One handles the events. Other update the data. I created one event with value change for numeric indicator. On updation of the indicator it doesnt generate the event.. I need to generate the event on value change. is this not possible?
    Thank you,
    Ranjith

    That VI qualifies for Rube Goldberg Code. if you want Numeric 3 to update when there is a change in Numeric 2, just create an Value Change event for Numeric 2 and wire Numeric 2 to Numeric 3 inside the event. No need at all for the second loop. Also, put your stop button in value change event.
    Message Edited by Dennis Knutson on 07-10-2008 09:10 AM
    Attachments:
    Simple Event.PNG ‏4 KB

  • Huge performance differences between a map listener for a key and filter

    Hi all,
    I wanted to test different kind of map listener available in Coherence 3.3.1 as I would like to use it as an event bus. The result was that I found huge performance differences between them. In my use case, I have data which are time stamped so the full key of the data is the key which identifies its type and the time stamp. Unfortunately, when I had my map listener to the cache, I only know the type id but not the time stamp, thus I cannot add a listener for a key but for a filter which will test the value of the type id. When I launch my test, I got terrible performance results then I tried a listener for a key which gave me much better results but in my case I cannot use it.
    Here are my results with a Dual Core of 2.13 GHz
    1) Map Listener for a Filter
    a) No Index
    Create (data always added, the key is composed by the type id and the time stamp)
    Cache.put
    Test 1: Total 42094 millis, Avg 1052, Total Tries 40, Cache Size 80000
    Cache.putAll
    Test 2: Total 43860 millis, Avg 1096, Total Tries 40, Cache Size 80000
    Update (data added then updated, the key is only composed by the type id)
    Cache.put
    Test 3: Total 56390 millis, Avg 1409, Total Tries 40, Cache Size 2000
    Cache.putAll
    Test 4: Total 51734 millis, Avg 1293, Total Tries 40, Cache Size 2000
    b) With Index
    Cache.put
    Test 5: Total 39594 millis, Avg 989, Total Tries 40, Cache Size 80000
    Cache.putAll
    Test 6: Total 43313 millis, Avg 1082, Total Tries 40, Cache Size 80000
    Update
    Cache.put
    Test 7: Total 55390 millis, Avg 1384, Total Tries 40, Cache Size 2000
    Cache.putAll
    Test 8: Total 51328 millis, Avg 1283, Total Tries 40, Cache Size 2000
    2) Map Listener for a Key
    Update
    Cache.put
    Test 9: Total 3937 millis, Avg 98, Total Tries 40, Cache Size 2000
    Cache.putAll
    Test 10: Total 1078 millis, Avg 26, Total Tries 40, Cache Size 2000
    Please help me to find what is wrong with my code because for now it is unusable.
    Best Regards,
    Nicolas
    Here is my code
    import java.io.DataInput;
    import java.io.DataOutput;
    import java.io.IOException;
    import java.util.HashMap;
    import java.util.Map;
    import com.tangosol.io.ExternalizableLite;
    import com.tangosol.net.CacheFactory;
    import com.tangosol.net.NamedCache;
    import com.tangosol.util.Filter;
    import com.tangosol.util.MapEvent;
    import com.tangosol.util.MapListener;
    import com.tangosol.util.extractor.ReflectionExtractor;
    import com.tangosol.util.filter.EqualsFilter;
    import com.tangosol.util.filter.MapEventFilter;
    public class TestFilter {
          * To run a specific test, just launch the program with one parameter which
          * is the test index
         public static void main(String[] args) {
              if (args.length != 1) {
                   System.out.println("Usage : java TestFilter 1-10|all");
                   System.exit(1);
              final String arg = args[0];
              if (arg.endsWith("all")) {
                   for (int i = 1; i <= 10; i++) {
                        test(i);
              } else {
                   final int testIndex = Integer.parseInt(args[0]);
                   if (testIndex < 1 || testIndex > 10) {
                        System.out.println("Usage : java TestFilter 1-10|all");
                        System.exit(1);               
                   test(testIndex);               
         @SuppressWarnings("unchecked")
         private static void test(int testIndex) {
              final NamedCache cache = CacheFactory.getCache("test-cache");
              final int totalObjects = 2000;
              final int totalTries = 40;
              if (testIndex >= 5 && testIndex <= 8) {
                   // Add index
                   cache.addIndex(new ReflectionExtractor("getKey"), false, null);               
              // Add listeners
              for (int i = 0; i < totalObjects; i++) {
                   final MapListener listener = new SimpleMapListener();
                   if (testIndex < 9) {
                        // Listen to data with a given filter
                        final Filter filter = new EqualsFilter("getKey", i);
                        cache.addMapListener(listener, new MapEventFilter(filter), false);                    
                   } else {
                        // Listen to data with a given key
                        cache.addMapListener(listener, new TestObjectSimple(i), false);                    
              // Load data
              long time = System.currentTimeMillis();
              for (int iTry = 0; iTry < totalTries; iTry++) {
                   final long currentTime = System.currentTimeMillis();
                   final Map<Object, Object> buffer = new HashMap<Object, Object>(totalObjects);
                   for (int i = 0; i < totalObjects; i++) {               
                        final Object obj;
                        if (testIndex == 1 || testIndex == 2 || testIndex == 5 || testIndex == 6) {
                             // Create data with key with time stamp
                             obj = new TestObjectComplete(i, currentTime);
                        } else {
                             // Create data with key without time stamp
                             obj = new TestObjectSimple(i);
                        if ((testIndex & 1) == 1) {
                             // Load data directly into the cache
                             cache.put(obj, obj);                         
                        } else {
                             // Load data into a buffer first
                             buffer.put(obj, obj);                         
                   if (!buffer.isEmpty()) {
                        cache.putAll(buffer);                    
              time = System.currentTimeMillis() - time;
              System.out.println("Test " + testIndex + ": Total " + time + " millis, Avg " + (time / totalTries) + ", Total Tries " + totalTries + ", Cache Size " + cache.size());
              cache.destroy();
         public static class SimpleMapListener implements MapListener {
              public void entryDeleted(MapEvent evt) {}
              public void entryInserted(MapEvent evt) {}
              public void entryUpdated(MapEvent evt) {}
         public static class TestObjectComplete implements ExternalizableLite {
              private static final long serialVersionUID = -400722070328560360L;
              private int key;
              private long time;
              public TestObjectComplete() {}          
              public TestObjectComplete(int key, long time) {
                   this.key = key;
                   this.time = time;
              public int getKey() {
                   return key;
              public void readExternal(DataInput in) throws IOException {
                   this.key = in.readInt();
                   this.time = in.readLong();
              public void writeExternal(DataOutput out) throws IOException {
                   out.writeInt(key);
                   out.writeLong(time);
         public static class TestObjectSimple implements ExternalizableLite {
              private static final long serialVersionUID = 6154040491849669837L;
              private int key;
              public TestObjectSimple() {}          
              public TestObjectSimple(int key) {
                   this.key = key;
              public int getKey() {
                   return key;
              public void readExternal(DataInput in) throws IOException {
                   this.key = in.readInt();
              public void writeExternal(DataOutput out) throws IOException {
                   out.writeInt(key);
              public int hashCode() {
                   return key;
              public boolean equals(Object o) {
                   return o instanceof TestObjectSimple && key == ((TestObjectSimple) o).key;
    }Here is my coherence config file
    <?xml version="1.0"?>
    <!DOCTYPE cache-config SYSTEM "cache-config.dtd">
    <cache-config>
         <caching-scheme-mapping>
              <cache-mapping>
                   <cache-name>test-cache</cache-name>
                   <scheme-name>default-distributed</scheme-name>
              </cache-mapping>
         </caching-scheme-mapping>
         <caching-schemes>          
              <distributed-scheme>
                   <scheme-name>default-distributed</scheme-name>
                   <backing-map-scheme>
                        <class-scheme>
                             <scheme-ref>default-backing-map</scheme-ref>
                        </class-scheme>
                   </backing-map-scheme>
              </distributed-scheme>
              <class-scheme>
                   <scheme-name>default-backing-map</scheme-name>
                   <class-name>com.tangosol.util.SafeHashMap</class-name>
              </class-scheme>
         </caching-schemes>
    </cache-config>Message was edited by:
    user620763

    Hi Robert,
    Indeed, only the Filter.evaluate(Object obj)
    method is invoked, but the object passed to it is a
    MapEvent.<< In fact, I do not need to implement EntryFilter to
    get a MapEvent, I could get the same result (in my
    last message) by writting
    cache.addMapListener(listener, filter,
    true)instead of
    cache.addMapListener(listener, new
    MapEventFilter(filter) filter, true)
    I believe, when the MapEventFilter delegates to your filter it always passes a value object to your filter (old or new), meaning a value will be deserialized.
    If you instead used your own filter, you could avoid deserializing the value which usually is much larger, and go to only the key object. This would of course only be noticeable if you indeed used a much heavier cached value class.
    The hashCode() and equals() does not matter on
    the filter class<< I'm not so sure since I noticed that these methods
    were implemented in the EqualsFilter class, that they
    are called at runtime and that the performance
    results are better when you add them
    That interests me... In what circumstances did you see them invoked? On the storage node before sending an event, or upon registering a filtered listener?
    If the second, then I guess the listeners are stored in a hash-based map of collections keyed by a filter, and indeed that might be relevant as in that case it will cause less passes on the filter for multiple listeners with an equalling filter.
    DataOutput.writeInt(int) writes 4 bytes.
    ExternalizableHelper.writeInt(DataOutput, int) writes
    1-5 bytes (or 1-6?), with numbers with small absolute
    values consuming less bytes.Similar differences exist
    for the long type as well, but your stamp attribute
    probably will be a large number...<< I tried it but in my use case, I got the same
    results. I guess that it must be interesting, if I
    serialiaze/deserialiaze many more objects.
    Also, if Coherence serializes an
    ExternalizableLite object, it writes out its
    class-name (except if it is a Coherence XmlBean). If
    you define your key as an XmlBean, and add your class
    into the classname cache configuration in
    ExternalizableHelper.xml, then instead of the
    classname, only an int will be written. This way you
    can spare a large percentage of bandwidth consumed by
    transferring your key instance as it has only a small
    number of attributes. For the value object, it might
    or might not be so relevant, considering that it will
    probably contain many more attributes. However, in
    case of a lite event, the value is not transferred at
    all.<< I tried it too and in my use case, I noticed that
    we get objects nearly twice lighter than an
    ExternalizableLite object but it's slower to get
    them. But it is very intersting to keep in mind, if
    we would like to reduce the network traffic.
    Yes, these are minor differences at the moment.
    As for the performance of XMLBean, it is a hack, but you might try overriding the readExternal/writeExternal method with your own usual ExternalizableLite implementation stuff. That way you get the advantages of the xmlbean classname cache, and avoid its reflection-based operation, at the cost of having to extend XMLBean.
    Also, sooner or later the TCMP protocol and the distributed cache storages will also support using PortableObject as a transmission format, which enables using your own classname resolution and allow you to omit the classname from your objects. Unfortunately, I don't know when it will be implemented.
    >
    But finally, I guess that I found the best solution
    for my specific use case which is to use a map
    listener for a key which has no time stamp, but since
    the time stamp is never null, I had just to check
    properly the time stamp in the equals method.
    I would still recommend to use a separate key class, use a custom filter which accesses only the key and not the value, and if possible register a lite listener instead of a heavy one. Try it with a much heavier cached value class where the differences are more pronounced.
    Best regards,
    Robert

  • I want to make the keyboards numerical keys shortcuts for buttons.

    I want to make the keyboards numerical keys shortcuts for buttons, without a modifier key is this possible ? e.g. press '1' on the keyboard button 1 is pressed on the GUI.

    The number keys are not valid hot keys for our controls. The easiest workaround would be to use fhe F keys instead (F1 for button 1, etc.) However, if you are set on the number keys you could implement this with a panel callback. You could have a panel callback that monitors all keypress events and then, depending on the key pressed, calls the code that would be called with a button press of the button for that key.
    Best Regards,
    Chris Matthews
    Measurement Studio Support Manager

  • What to use for the events of 2 keys pressed simultaneously?

    Question:
    What to use for the events of 2 keys pressed simultaneously? As the key listener has limited functionality, in this case, I need something that can act to two events (see below)
    Goal
    1. A user presses right and up at the same time
    2. Program responds to this event changing BOTH the vertical and horizontal speeds of the player
    Problem
    I currently have a key listener to do this, using key pressed, however, it only acts to up OR right at one point in time. So the user can only increase his or her vertical speed; or horizontal speed at one point in time. Instead of increasing them both.
    Example
    Here is an example of the game: http://www.kongregate.com/games/MINDistortion/bubbles-2

    DarrylBurke wrote:
    I don't know whether there's a better way (or whether this will work as expected), but I would try setting a boolean flag on keyPressed and reset the flag on keyReleased, for each key of interest. To compute the x / y movements, I would check the state of all flags.
    dbI was thinking about your answer a few nights ago. And I was like, wait... it works! I thought, at first (as I replied before) that it wouldn't work, but I refract what I said. Its actually a very simple solution. And I apologize for questioning your solution previously. Thanks so much!
    P.S. I tested it out. Works like a charm.
    -Create booleans to handle each key
    -Set to true on press
    -Set to false on release
    -Check and update in separate thread accordingly

  • How to handle form close event or escape key press event for user defined f

    Experts,
    Please let me know how to handle form close event or escape key press event for user defined form...
    Thanks & Regards,
    Pravin.

    Hi
    You can catch the form close event like this
    If ((pVal.FormType = 139 And (pVal.EventType = SAPbouiCOM.BoEventTypes.et_FORM_CLOSE)) And (pVal.Before_Action = True)) Then
          Try
                   SBO_Application.SetStatusBarMessage(pVal.EventType.ToString())
          Catch ex As Exception
                    SBO_Application.SetStatusBarMessage(ex.Message)
            End Try
          End If
    Hope this helps
    Regards
    Arun

  • When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.

    When previewing images by clicking on the thumbnail in an Event for example, I've been finding that many images preview in a 'zoomed in' way so only a small part of the photos is previewed in a highly magnified view.
    Initially I could find no cause. Then I tried right click - Edit and on the affected images, always get this warning:
    "Image Cannot Be Edited - This photo was previously edited with another application or with an early version of Iphoto. Duplicate this photo to edit it." and a "Duplicate To Edit" Button is displayed. 
    The external Editor defined for iPhoto is Adobe Photoshop Elements.
    Now, I reckon the MUST be others out there affected by this same apparent Preview bug, yet my searches have not revealed any answers.  Also seems impossible to find a contact number for adobe???
    Thanks

    Start '''[https://support.mozilla.org/en-US/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in Safe Mode]''' {web Link} by holding down the '''<Shift ''(Mac Options)'' >''' key, and then starting Firefox. Is the problem still there?

  • How to create event for BOR BUS2009 Object ?

    How to create a new event for BOR BUS2009 Object ?

    Hi,
    Please create a subtype for BOR BUS2009, say Z_BUS2009 and include your custom characteristic entities like Events, Methods, Key fields etc and finally do delegation. After delegation, all your custom changes reflects in BOR BUS2009.
    Regards,
    Prasanth

  • Listener event

    I am trying to create a small game got most of the functionality, apart from one aspect how would you code an Listener event that would take into account that if any two pawns on a chessboard were on the same line in any direction then that row would become highlighted and the user could not place any more pawns on that row?
    I know a wee bit about �if� and �else� statements but I have no idea how you would create code that would carry out the above function.
    Any help would be great
    Tom
    // <applet code="ChessBored.class" width="500" height="500"></applet>
    import java.awt.*;
    import java.awt.event.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class ChessBored  extends JApplet
      public void init()
         JFrame f = new JFrame("Chess Board");
         ChessBoard board = new ChessBoard();
         f.getContentPane().add(board);
         f.setSize(board.WIDTH, board.HEIGHT);
         f.setVisible(true);
       } // end init
      public class ChessBoard extends JPanel implements MouseListener
        private Color[] squareColor = new Color[2];
        private final int NUMSQUARES = 8, WIDTH = 400, HEIGHT = 400;
        private int squareSize;
        private int boardSize;
    /* The constructor sets only some of the instance variables.
       The rest are set when the screen is painted.
       public ChessBoard()
          squareColor[0] = Color.black;
          squareColor[1] = Color.white;
          addMouseListener(this);
          setSize(WIDTH, HEIGHT);
    /* The paintComponent method is called every time the display
       needs to be repainted. Examples: When the window is
       first displayed, when the window is moved, resized,
       maximized, etc.
       Draws an 8x8 grid of alternately colored squares.
       Make the grid as large as it can be to fit in the
       current size of the drawing pane (which is the content pane
       for the JFrame).
        public void paintComponent (Graphics g)
          super.paintComponent(g);  // Make sure background is cleared
          int paneHeight = this.getHeight();
          int paneWidth  = this.getWidth();
          if (paneHeight < paneWidth)
            squareSize = paneHeight / NUMSQUARES;
          else
            squareSize = paneWidth / NUMSQUARES;
          boardSize = squareSize * NUMSQUARES;
          for (int row=0; row<NUMSQUARES; row++)
             for (int col=0; col!=NUMSQUARES; col++)
            { g.setColor(squareColor[(row+col)%2]);
              g.fillRect(col*squareSize,   // x
                         row*squareSize,   // y
                         squareSize,       // width
                         squareSize);      // height
        } // end paintComponent
    /** The mouseClicked method responds to any mouse clicks.
        public void mousePressed(MouseEvent e)
    // Quit if the mouse press falls outside the board
          Point p = e.getPoint();
          int x = (int) p.getX();
          int y = (int) p.getY();
          if((x>boardSize) || (y>boardSize))
            return;
    // Determine which square (i.e. row, col) was selected
          int row = y / squareSize;
          int col = x / squareSize;
          if (row <= 8)
            drawPawn(row, col, Color.blue);
        //else
          //if (row >= (NUMSQUARES-2))
            //drawPawn(row, col, Color.black);
          //else
           // drawMessage(row, "Checkmate!");
    /* These four methods are not used, but must be
       implemented because they are required by the
       MouseListener interface.
        public void mouseEntered(MouseEvent e)  {}
        public void mouseExited(MouseEvent e)   {}
        public void mouseClicked(MouseEvent e)  {}
        public void mouseReleased(MouseEvent e) {}
    /** The drawPawn method draws a pawn shape on the
        specified square in the chess board.
        public void drawPawn(int row, int col, Color c)
          Graphics g = this.getGraphics();
          g.setColor(c);
    // Calculate position of upper left corner of square
          int x = col*squareSize;
          int y = row*squareSize;
    /* Draw circle for "head" of the pawn. Dimensions are
       for the oval's "bounding box".
          g.fillOval(x+(2*squareSize/5), // x
                     y+(squareSize/5),   // y
                     squareSize/5,       // width
                     squareSize/5);      // height
    // Draw a polygon for the "body" of the pawn.
          Polygon body = new Polygon();
          body.addPoint(x+(2*squareSize/5),
                        y+(2*squareSize/5));
          body.addPoint(x+(3*squareSize/5),
                        y+(2*squareSize/5));
          body.addPoint(x+(4*squareSize/5),
                        y+(4*squareSize/5));
          body.addPoint(x+(squareSize/5),
                        y+(4*squareSize/5));
          g.fillPolygon(body);
        } // drawPawn
    /** The drawMessage method draws the given string in
        the given row of the chess board, centered
        horizontally.
        public void drawMessage(int row, String s)
    //Set a new font and color
          Font bigFont = new Font("Times New Roman", Font.BOLD, 36);
          Graphics g = this.getGraphics();
          g.setFont(bigFont);
          g.setColor(new Color(0.8F, 0.8F, 1.0F));
    //Determine the position of the string
          FontMetrics m = g.getFontMetrics();
          int x = (boardSize - m.stringWidth(s)) / 2;
          if (x < 0)
            x = 0;
          int y = ((row+1)*squareSize) - m.getDescent();
          if (y<0)
            y = m.getLeading() + m.getAscent();
          g.drawString(s, x, y);
        } // drawMessage
      } // end ChessBoard
    } // end ChessBored

    One thing that sticks out is your listener method isn't quite to spec, according to the f:ajax spec they're supposed to match the following signature:
    javax.el.MethodExpression
    (signature must match public void processAjaxBehavior(javax.faces.event.AjaxBehaviorEvent event) throws javax.faces.event.AbortProcessingException)
    Try dropping the boolean return value & adding the throws. I'm running Apache's MyFaces and it's perfectly fine with your method signature, but maybe your JSF implementation isn't.
    Also, you running with javax.faces.PROJECT_STAGE set to Development? Maybe some useful server-side error you're not seeing. You probably should also create your own ExceptionHandler to dump stack traces to the console/logs if you haven't done so already as well.
    And lastly, you sure all your code's published to the server? If you're still stuck, then the best thing to do is to make this page as simple as possible, put just 1 checkbox w/o all the table/repeats/etc. to help you eliminate other possibilities.
    Sorry can't be more helpful...

  • Could not find portlet_xml_ref for portlet key 18011

    Hi,
    I just loaded BEA Portal 7.0.4 and created my domain. copied the portal app from another working machine and started the server. This is what I'm getting:
    <Dec 2, 2004 3:59:34 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtMail.jar was compiled by a different
    version of the WebLogic Server.>
    <Dec 2, 2004 3:59:35 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtECommerce.jar was compiled by a diffe
    rent version of the WebLogic Server.>
    Exception[com.bea.portal.PortalException: Could not find portlet_xml_ref for portlet key 18011]
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removeEntitlementsForPortletForPortalPageP13n(Jdbc
    PortalDeletionHelper.java:2424)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removePortletFromPageP13n(JdbcPortalDeletionHelper
    .java:1542)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.deleteRemovedItems(JdbcPortalDeletionHelper.java:9
    31)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalPersistenceManager.deleteRemovedItems(JdbcPortalPersistenceManage
    r.java:805)
    at com.bea.portal.manager.internal.persistence.MainPersistenceManager.deleteRemovedItems(MainPersistenceManager.java:221)
    at com.bea.portal.manager.internal.PortalPersistenceManager.updatePortalModel(PortalPersistenceManager.java:349)
    at com.bea.portal.manager.internal.PortalPersistenceManager.createDataItem(PortalPersistenceManager.java:199)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.handleDataItemMessage(AbstractDataRepository.java:81
    4)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onDataSyncMessage(AbstractDataRepository.java:990)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:252)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestResultMessage(AbstractDataRepository.ja
    va:1185)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:261)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestMessage(AbstractDataRepository.java:108
    6)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:257)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.notifyDataRepository(AbstractDataRepository.java:706
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onRefreshMessage(AbstractDataRepository.java:912)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:247)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.sendRefreshMessageToThis(AbstractDataRepository.java
    :341)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:324)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:304)
    at com.bea.portal.manager.internal.DeploymentManager.initializePortal(DeploymentManager.java:142)
    at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:101)
    at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:91)
    at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:248)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(PortalManagerBean_w6xny9_Impl.java:133)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:188)
    at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:376)
    at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1507)
    at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1392)
    at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:394)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:1043)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:645)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:394)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:242)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    2004-12-02 16:00:03,046 [main] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 152
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.AbtCacheManagerBeanImpl_3xndmm_Impl - AbtCacheManagerBean crea
    ted.
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    =============== Initializing Logger ======================
    <Dec 2, 2004 4:00:04 PM CST> <Notice> <Management> <141053> <Application Poller not started for production server.>
    2004-12-02 16:00:05,390 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:RelatedPrdItemTypesCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:RelatedPrdItemTypesCache Size = 8
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:DiscountTypeCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:DiscountTypeCache Size = 1
    2004-12-02 16:00:05,437 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ReturnTypeCache
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ReturnTypeCache Size = 3
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:AffiliateFileFormatCache
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:AffiliateFileFormatCache Size = 5
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductVisibilityCache
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductVisibilityCache Size = 4
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ManufacturerCache
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ManufacturerCache Size = 426
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:InventoryStatusCache
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:InventoryStatusCache Size = 9
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CategoryTypeCache
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CategoryTypeCache Size = 7
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CustomerTypeCache
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CustomerTypeCache Size = 3
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CountryCache
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CountryCache Size = 4
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:SeverityLevelCache
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:SeverityLevelCache Size = 3
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:PriceTypeCache
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:PriceTypeCache Size = 8
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ECommerceConstantsCache
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 15
    2
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OccasionCache
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OccasionCache Size = 4
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ExtranetCache
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ExtranetCache Size = 2
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:GersDataSyncStatusCache
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:GersDataSyncStatusCache Size = 3
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductTypeCache
    2004-12-02 16:00:06,140 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductTypeCache Size = 6
    2004-12-02 16:00:06,156 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ColorCache
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ColorCache Size = 9
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:StateCache
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:StateCache Size = 52
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OrderStatusCache
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OrderStatusCache Size = 12
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CreditCardTypeCache
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CreditCardTypeCache Size = 5
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:NewsletterFormatCache
    2004-12-02 16:00:06,296 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:NewsletterFormatCache Size = 4
    2004-12-02 16:00:06,328 [Thread-6] INFO com.abt.servlets.StartDataSyncThreads - startDataSyncThreads = false
    <Dec 2, 2004 4:00:12 PM CST> <Warning> <Security> <090088> <Private key keystore alias is not specified in SSL configuration of server
    abtServer, realm CompatibilityRealm. Assuming 6.x private key configuration. Loading the key from file.>
    <Dec 2, 2004 4:00:20 PM CST> <Warning> <Security> <090120> <Cannot find the file specified by SSL.TrustedCAFileName trusted-ca.pem on s
    erver abtServer.>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7502>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7501>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000329> <Started WebLogic Admin Server "abtServer" for domain "abtDomain" runni
    ng in Production Mode>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
    Does anyone have any idea why this is happening?
    Any help is greatly appreciated.
    Thank You,
    Albert

    Hi,
    I just loaded BEA Portal 7.0.4 and created my domain. copied the portal app from another working machine and started the server. This is what I'm getting:
    <Dec 2, 2004 3:59:34 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtMail.jar was compiled by a different
    version of the WebLogic Server.>
    <Dec 2, 2004 3:59:35 PM CST> <Warning> <EJB> <010004> <The EJB deployment named: abtServer_b2c_abtECommerce.jar was compiled by a diffe
    rent version of the WebLogic Server.>
    Exception[com.bea.portal.PortalException: Could not find portlet_xml_ref for portlet key 18011]
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removeEntitlementsForPortletForPortalPageP13n(Jdbc
    PortalDeletionHelper.java:2424)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.removePortletFromPageP13n(JdbcPortalDeletionHelper
    .java:1542)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalDeletionHelper.deleteRemovedItems(JdbcPortalDeletionHelper.java:9
    31)
    at com.bea.portal.manager.internal.persistence.jdbc.JdbcPortalPersistenceManager.deleteRemovedItems(JdbcPortalPersistenceManage
    r.java:805)
    at com.bea.portal.manager.internal.persistence.MainPersistenceManager.deleteRemovedItems(MainPersistenceManager.java:221)
    at com.bea.portal.manager.internal.PortalPersistenceManager.updatePortalModel(PortalPersistenceManager.java:349)
    at com.bea.portal.manager.internal.PortalPersistenceManager.createDataItem(PortalPersistenceManager.java:199)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.handleDataItemMessage(AbstractDataRepository.java:81
    4)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onDataSyncMessage(AbstractDataRepository.java:990)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:252)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestResultMessage(AbstractDataRepository.ja
    va:1185)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:261)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onSyncRequestMessage(AbstractDataRepository.java:108
    6)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:257)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.notifyDataRepository(AbstractDataRepository.java:706
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.onRefreshMessage(AbstractDataRepository.java:912)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.executeMessage(AbstractDataRepository.java:247)
    at com.bea.p13n.management.data.message.internal.JvmCommunicationPipe.sendMessage(JvmCommunicationPipe.java:116)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.sendRefreshMessageToThis(AbstractDataRepository.java
    :341)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:324)
    at com.bea.p13n.management.data.repository.internal.AbstractDataRepository.addNotifiedDataRepository(AbstractDataRepository.jav
    a:304)
    at com.bea.portal.manager.internal.DeploymentManager.initializePortal(DeploymentManager.java:142)
    at com.bea.portal.manager.internal.DeploymentManager.initialize(DeploymentManager.java:101)
    at com.bea.portal.manager.internal.PortalManagerDelegateImpl.<init>(PortalManagerDelegateImpl.java:91)
    at com.bea.portal.manager.PortalFactory.createPortalManagerDelegate(PortalFactory.java:248)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean.ejbCreate(PortalManagerBean.java:147)
    at com.bea.portal.manager.ejb.internal.PortalManagerBean_w6xny9_Impl.ejbCreate(PortalManagerBean_w6xny9_Impl.java:133)
    at java.lang.reflect.Method.invoke(Native Method)
    at weblogic.ejb20.pool.StatelessSessionPool.createBean(StatelessSessionPool.java:151)
    at weblogic.ejb20.pool.Pool.createInitialBeans(Pool.java:188)
    at weblogic.ejb20.manager.StatelessManager.initializePool(StatelessManager.java:376)
    at weblogic.ejb20.deployer.EJBDeployer.initializePools(EJBDeployer.java:1507)
    at weblogic.ejb20.deployer.EJBDeployer.start(EJBDeployer.java:1392)
    at weblogic.ejb20.deployer.EJBModule.start(EJBModule.java:394)
    at weblogic.j2ee.J2EEApplicationContainer.start(J2EEApplicationContainer.java:1043)
    at weblogic.j2ee.J2EEApplicationContainer.activate(J2EEApplicationContainer.java:1029)
    at weblogic.management.deploy.slave.SlaveDeployer.setActivationStateForAllApplications(SlaveDeployer.java:645)
    at weblogic.management.deploy.slave.SlaveDeployer.resume(SlaveDeployer.java:394)
    at weblogic.management.deploy.DeploymentManagerServerLifeCycleImpl.resume(DeploymentManagerServerLifeCycleImpl.java:242)
    at weblogic.t3.srvr.ServerLifeCycleList.resume(ServerLifeCycleList.java:65)
    at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:832)
    at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:300)
    at weblogic.Server.main(Server.java:32)
    2004-12-02 16:00:03,046 [main] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 152
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.AbtCacheManagerBeanImpl_3xndmm_Impl - AbtCacheManagerBean crea
    ted.
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - INTERNET_PRICE = 10
    2004-12-02 16:00:03,046 [main] DEBUG com.abt.businessobjects.common.impl.ProductPricingImpl_nzszyh_Impl - STORE_PRICE = 20
    =============== Initializing Logger ======================
    <Dec 2, 2004 4:00:04 PM CST> <Notice> <Management> <141053> <Application Poller not started for production server.>
    2004-12-02 16:00:05,390 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:RelatedPrdItemTypesCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:RelatedPrdItemTypesCache Size = 8
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:DiscountTypeCache
    2004-12-02 16:00:05,421 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:DiscountTypeCache Size = 1
    2004-12-02 16:00:05,437 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ReturnTypeCache
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ReturnTypeCache Size = 3
    2004-12-02 16:00:05,453 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:AffiliateFileFormatCache
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:AffiliateFileFormatCache Size = 5
    2004-12-02 16:00:05,500 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductVisibilityCache
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductVisibilityCache Size = 4
    2004-12-02 16:00:05,515 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ManufacturerCache
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ManufacturerCache Size = 426
    2004-12-02 16:00:05,718 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:InventoryStatusCache
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:InventoryStatusCache Size = 9
    2004-12-02 16:00:05,750 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CategoryTypeCache
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CategoryTypeCache Size = 7
    2004-12-02 16:00:05,765 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CustomerTypeCache
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CustomerTypeCache Size = 3
    2004-12-02 16:00:05,812 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CountryCache
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CountryCache Size = 4
    2004-12-02 16:00:05,843 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:SeverityLevelCache
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:SeverityLevelCache Size = 3
    2004-12-02 16:00:05,875 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:PriceTypeCache
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:PriceTypeCache Size = 8
    2004-12-02 16:00:05,906 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ECommerceConstantsCache
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ECommerceConstantsCache Size = 15
    2
    2004-12-02 16:00:05,921 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OccasionCache
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OccasionCache Size = 4
    2004-12-02 16:00:05,953 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ExtranetCache
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ExtranetCache Size = 2
    2004-12-02 16:00:06,078 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:GersDataSyncStatusCache
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:GersDataSyncStatusCache Size = 3
    2004-12-02 16:00:06,109 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ProductTypeCache
    2004-12-02 16:00:06,140 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ProductTypeCache Size = 6
    2004-12-02 16:00:06,156 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:ColorCache
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:ColorCache Size = 9
    2004-12-02 16:00:06,171 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:StateCache
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:StateCache Size = 52
    2004-12-02 16:00:06,218 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:OrderStatusCache
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:OrderStatusCache Size = 12
    2004-12-02 16:00:06,234 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:CreditCardTypeCache
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:CreditCardTypeCache Size = 5
    2004-12-02 16:00:06,265 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - About to load cache:NewsletterFormatCache
    2004-12-02 16:00:06,296 [Thread-6] INFO com.abt.businessobjects.common.ValueLookupDAO - Loaded cache:NewsletterFormatCache Size = 4
    2004-12-02 16:00:06,328 [Thread-6] INFO com.abt.servlets.StartDataSyncThreads - startDataSyncThreads = false
    <Dec 2, 2004 4:00:12 PM CST> <Warning> <Security> <090088> <Private key keystore alias is not specified in SSL configuration of server
    abtServer, realm CompatibilityRealm. Assuming 6.x private key configuration. Loading the key from file.>
    <Dec 2, 2004 4:00:20 PM CST> <Warning> <Security> <090120> <Cannot find the file specified by SSL.TrustedCAFileName trusted-ca.pem on s
    erver abtServer.>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "SSLListenThread.Default" listening on port 7502>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000354> <Thread "ListenThread.Default" listening on port 7501>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000329> <Started WebLogic Admin Server "abtServer" for domain "abtDomain" runni
    ng in Production Mode>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000365> <Server state changed to RUNNING>
    <Dec 2, 2004 4:00:21 PM CST> <Notice> <WebLogicServer> <000360> <Server started in RUNNING mode>
    Does anyone have any idea why this is happening?
    Any help is greatly appreciated.
    Thank You,
    Albert

  • Terminating Event for BUS2017 Custom Method

    Dear Experts,
    I have an issue with the Terminating Event of the Workflow for BO : BUS2017. The event is getting triggered but receiver is not being picked.
    I have created two events GR_103 and POST_105 in the Custom BO ZBUS2017 by delegating it to BUS2017. GR_103 is the triggering event for my workflow which I have triggered in the POST_DOCUMENT Method of the Implmentation for BADI : MB_MIGO_BADI.
    GR_103 is triggered while doing MIGO (Goods Receipt) for Movement Type 103. My Workflow is triggered perfectly and then I have used a Dialog Asynchronous Task in which I have called the MIGO Transaction for Releasing the GR Blokced Stock using the Movement Type 105. I have created a Custom Method POST in the BO ZBUS2017 and I have used the FM: MIGO_DIALOG to call the MIGO. I am trying to raise the POST_105 event in the Method MB_DOCUMENT_BEFORE_UPDATE of the Interface IF_EX_MB_DOCUMENT_BADI.  I have defined the Terminating Event for the asynchronous Task as POST_105.
    Now the event POST_105 is triggered, but SWEL says 'No receiver entered'. Even the SWEINST shows the object data as the current Work Item along with Object Key, but still receiver not picked. When I try to trigger the same event in a test report by using call transaction, then the event triggers and work item gets completed without any issues.
    Please advise.
    Below is my terminating event code.
      READ TABLE xmseg INTO wa_mseg INDEX 1.
      CONCATENATE wa_mseg-mblnr wa_mseg-mjahr INTO l_objkey.
      IF wa_mseg-bwart = '105' .
        CALL FUNCTION 'SWE_EVENT_CREATE'
          EXPORTING
            objtype           = 'BUS2017'
            objkey            = l_objkey
            event             = 'POST_105'
          EXCEPTIONS
            objtype_not_found = 1
            OTHERS            = 2.
      ENDIF.
    Regards,
    Raju.

    Have a COMMIT WORK after the function call. (At least test it - I am not sure if it will have some effects in your BADI - at least you will know whether the issue is about missing commit).
    And please use SAP_WAPI_CREATE_EVENT instead of the old function you are using.
    Also, make sure that the events will look exactly the same in event monitor SWEL when triggered from your code and when using test tool. Maybe there is some minor difference/mistake (object key, etc.) that you haven't noticed.
    Regards,
    Karri
    Edited by: Karri Kemppi on Feb 7, 2012 8:14 AM

Maybe you are looking for

  • Return Code = 19 , Adobe Serialization

    Hey all. I downloaded Creative Suite 6 for Windows last year from the University of Maryland Terpware service and need to serialize it. They offer these instructions: Download the 2 files, prov.xml and adobe_prtk Save files to an easy found location

  • In youtube any video gets open for download, I think through an add-on but I have a few of them and i don't know which one

    For example, say, I open this youtube page: https://www.youtube.com/watch?v=e-ORhEE9VVg Firefox opens it and whithin 5 seconds, with no action on my part - no clicking, typing, nothing - transfers me over to: https://r7---sn-8p85jvh-nv4e.googlevideo.

  • USB to SPI Converter

    HiI'm trying to use USC-216 Isolated USB to SPI Converter with Labview.But I can't communicate with the unit Is someone familiar with this converter?Best regardsGuy   Solved! Go to Solution.

  • Multiple Interactive reports on a page

    Hi, I have a requirement of drilldown pages depending on which chart user clicks on main page. I have 4 different charts on main page Depending on which chart user clicks on main page, it should display corresponding <b>IR</b> in Tab 2. Is this possi

  • Norton Antivirus X

    I recently installed Norton Anti-Virus 10 for MAC OSX 10.4. When I did a virus scan, it found 28 files infected with a virus, all files, I believe received from PC users. Norton Anti-virus was unable to repair the files and did not quarantine them. A