Getting WorkManager scheduleWork() to throw WorkRejected  ?

I'm writing a socket server to service persistent inbound TCP sockets. I would like scheduleWork() to throw an exception if no threads are available to service the work object parameter.
          There is an application scoped work manager with a max-threads constraint . I call scheduleWork() to queue a socket handling work object in the work manager. If all of the threads are in use in the work manager , the work requests are still accepted.
          However, if no threads are available at the time the work object is queued I would like the work manager to immediately throw a WORK_REJECTED exception from scheduleWork() . Currently, the queued work objects are dormant until a thread is made available in the work manager.
          I have tried using the capacity constraint w/o success. I have read what appears to be conflicting descriptions of capacity : One is that it should be equal to maxThreads + max queued threads, the other is that it should equal max queued threads. In my case, max queued is equal to 0.
          I have also tried using the WorkManager.IMMEDIATE timeout value, but that really depends upon system load. i.e. I may not be out of threads as much as being a little slow in moving the worker to the WORK_STARTED state.
          Does anybody know how I can get a work manager to throw an exception when there are no threads available right now ?
          Thanks,
          John

This seems to be callout issue.
can you try with default callout Exmaple first:
http://docs.oracle.com/cd/E23943_01/user.1111/e10229/callouts.htm#CHDEFBDG

Similar Messages

  • How describe model data and  get select in DB throw topLink.

    Hello,
    I have table from code
    create table t_tree
    id int primary key,
    parent_id int,
    value varchar2(255)
    Alter table t_tree
    add constraint constr_id_parent foreign key (parent_id) references t_tree (id)
    I must get query
    select level as lv,lpad('-@-', (level-1)*2)||value as MMM, t.* from t_tree t
    connect by prior id=parent_id
    start with T.PARENT_ID is null
    How describe model data and get select in DB throw topLink.
    Dema.

    So you'll probably have to write a function which uses dynamic SQL to retrieve the desired message text, like this untested one:
    CREATE OR REPLACE FUNCTION get_msg(p_db IN VARCHAR2,
                                       p_id IN NUMBER)
       RETURN VARCHAR2
    IS
       msg_txt  VARCHAR2(4000);
    BEGIN
       -- make sure p_db is a valid database link ...
       EXECUTE IMMEDIATE 'SELECT d_msg FROM msg@' || p_db || ' WHERE t_id = :id' INTO msg_txt USING p_id;
       RETURN msg_txt;
    EXCEPTION
       WHEN NO_DATA_FOUND THEN
          RETURN NULL;
    END get_msg;
    /The you can update likeUPDATE mex
       SET t_msg = get_msg(db_id, t_id);Hth, Urs

  • WLPI 1.2.1 : cannot get demo to run --throws exception

    WLPI gurus/support:
    I attempted to do the walkthrough on the wlpi edocs site
    http://edocs.bea.com/wlpi/wlpi121/tutorial.
    After spending a few hours setting up the workflow, when I do the execute
    workflow, I get an exception, and no other information appears in the
    worklist tool. The exception I get is:
    java.lang.NumberFormatException:
    at java.lang.Integer.parseInt(Integer.java:426)
    at java.lang.Integer.valueOf(Integer.java:507)
    at com.bea.wlpi.server.workflow.Variable.setValue(Variable.java:213)
    at
    com.bea.wlpi.server.workflow.EventVariable.set(EventVariable.java:53)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.setVariab
    les(WorkflowProcessorBean.java:1208)
    at com.bea.wlpi.server.workflow.Start.activate(Start.java:102)
    at
    com.bea.wlpi.server.workflow.Workflow.instantiate(Workflow.java:444)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(
    WorkflowProcessorBean.java:708)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWi
    thErrorHandling(WorkflowProcessorBean.java:1102)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantia
    te(WorkflowProcessorBean.java:704)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanImpl.insta
    ntiate(WorkflowProcessorBeanImpl.java:189)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanEOImpl.ins
    tantiate(WorkflowProcessorBeanEOImpl.java:105)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.checkTrigger(Even
    tListenerBean.java:291)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventLi
    stenerBean.java:241)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1897)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1784)
    at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1859)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Workflow warning: com.bea.wlpi.common.WorkflowException: Illegal type
    conversion
    : from "EmptyNodeListImpl" to "Integer".
    at com.bea.wlpi.server.workflow.Variable.setValue(Variable.java:273)
    at
    com.bea.wlpi.server.workflow.EventVariable.set(EventVariable.java:53)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.setVariab
    les(WorkflowProcessorBean.java:1208)
    at com.bea.wlpi.server.workflow.Start.activate(Start.java:102)
    at
    com.bea.wlpi.server.workflow.Workflow.instantiate(Workflow.java:444)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(
    WorkflowProcessorBean.java:708)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWi
    thErrorHandling(WorkflowProcessorBean.java:1102)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantia
    te(WorkflowProcessorBean.java:704)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanImpl.insta
    ntiate(WorkflowProcessorBeanImpl.java:189)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanEOImpl.ins
    tantiate(WorkflowProcessorBeanEOImpl.java:105)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.checkTrigger(Even
    tListenerBean.java:291)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventLi
    stenerBean.java:241)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    at weblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1897)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    at weblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1784)
    at weblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1859)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I'm using WLPI 1.2.1 and Weblogic 6.0 sp1 with rolling patch 1. SQL Server
    2000 is there, but there is no exception in the jdbc log.
    I assume this is a bug. Otherwise I think it would be a problem if there
    was no way to syntatically or in a stack trace say that the "Exception was
    caused by work list task x, etc.."
    Thanks for any help.
    Ken Rimple

    FYI,
    Was told by evalnet that this is a known bug... I'll update you when I know
    something.
    Ken Rimple
    "Ken Rimple" <[email protected]> wrote in message
    news:[email protected]...
    WLPI gurus/support:
    I attempted to do the walkthrough on the wlpi edocs site
    http://edocs.bea.com/wlpi/wlpi121/tutorial.
    After spending a few hours setting up the workflow, when I do the execute
    workflow, I get an exception, and no other information appears in the
    worklist tool. The exception I get is:
    java.lang.NumberFormatException:
    at java.lang.Integer.parseInt(Integer.java:426)
    at java.lang.Integer.valueOf(Integer.java:507)
    atcom.bea.wlpi.server.workflow.Variable.setValue(Variable.java:213)
    at
    com.bea.wlpi.server.workflow.EventVariable.set(EventVariable.java:53)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.setVariab
    les(WorkflowProcessorBean.java:1208)
    at com.bea.wlpi.server.workflow.Start.activate(Start.java:102)
    at
    com.bea.wlpi.server.workflow.Workflow.instantiate(Workflow.java:444)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(
    WorkflowProcessorBean.java:708)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWi
    thErrorHandling(WorkflowProcessorBean.java:1102)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantia
    te(WorkflowProcessorBean.java:704)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanImpl.insta
    ntiate(WorkflowProcessorBeanImpl.java:189)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanEOImpl.ins
    tantiate(WorkflowProcessorBeanEOImpl.java:105)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.checkTrigger(Even
    tListenerBean.java:291)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventLi
    stenerBean.java:241)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    atweblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1897)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    atweblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1784)
    atweblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1859)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    Workflow warning: com.bea.wlpi.common.WorkflowException: Illegal type
    conversion
    : from "EmptyNodeListImpl" to "Integer".
    atcom.bea.wlpi.server.workflow.Variable.setValue(Variable.java:273)
    at
    com.bea.wlpi.server.workflow.EventVariable.set(EventVariable.java:53)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.setVariab
    les(WorkflowProcessorBean.java:1208)
    at com.bea.wlpi.server.workflow.Start.activate(Start.java:102)
    at
    com.bea.wlpi.server.workflow.Workflow.instantiate(Workflow.java:444)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean$1.invoke(
    WorkflowProcessorBean.java:708)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.performWi
    thErrorHandling(WorkflowProcessorBean.java:1102)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBean.instantia
    te(WorkflowProcessorBean.java:704)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanImpl.insta
    ntiate(WorkflowProcessorBeanImpl.java:189)
    at
    com.bea.wlpi.server.workflowprocessor.WorkflowProcessorBeanEOImpl.ins
    tantiate(WorkflowProcessorBeanEOImpl.java:105)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.checkTrigger(Even
    tListenerBean.java:291)
    at
    com.bea.wlpi.server.eventlistener.EventListenerBean.onMessage(EventLi
    stenerBean.java:241)
    at weblogic.ejb20.internal.MDListener.execute(MDListener.java:221)
    atweblogic.ejb20.internal.MDListener.onMessage(MDListener.java:175)
    at weblogic.jms.client.JMSSession.onMessage(JMSSession.java:1938)
    at weblogic.jms.client.JMSSession.execute(JMSSession.java:1897)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.Kernel.execute(Kernel.java:250)
    atweblogic.jms.client.JMSSession.pushEnvelope(JMSSession.java:1784)
    atweblogic.jms.client.JMSCallback.pushEnvelope(JMSCallback.java:69)
    at weblogic.jms.frontend.FESession.execute(FESession.java:1859)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:137)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:120)
    I'm using WLPI 1.2.1 and Weblogic 6.0 sp1 with rolling patch 1. SQLServer
    2000 is there, but there is no exception in the jdbc log.
    I assume this is a bug. Otherwise I think it would be a problem if there
    was no way to syntatically or in a stack trace say that the "Exception was
    caused by work list task x, etc.."
    Thanks for any help.
    Ken Rimple

  • Typecast error while lookup (J2EEworkmanager to commonJ workmanager)

    Hi,
    I am using plain web application where i want to use commonJ workmanager to do same i have done following steps
    1. Define work manager in weblogic.xml
    <work-manager>
    <name>LogWorkmanager</name>
    <min-threads-constraint>
    <count>5</count>
    </min-threads-constraint>
    </work-manager>
    2. Define resource in web.xml file
    <resource-ref>
    <res-ref-name>LogWorkmanager</res-ref-name>
    <res-type>commonj.work.WorkManager</res-type>
    <res-auth>Container</res-auth>
    <res-sharing-scope>Shareable</res-sharing-scope>
    </resource-ref>
    3. Use JNDI mapping to get workmanager as:
    InitialContext ic = new InitialContext();
    commonj.work.WorkManager wm = (commonj.work.WorkManager)ic.lookup("java:comp/env/LogWorkmanager");
    Here at step 3 I am getting classcast exception as java.lang.ClassCastException: weblogic.work.j2ee.J2EEWorkManager.
    Could you please guide me where I am making mistake as I have defined resource ref point to commonj.workmanager and used same name in lookup method still why i am getting J2EEWorkManager instead of commonJ workmanager.
    Thanks,
    Yuvraj

    Can you run a little test. See if the following works:
    In your web.xml
        <!-- default weblogic work manager -->
        <resource-ref>
            <res-ref-name>default</res-ref-name>
            <res-type>commonj.work.WorkManager</res-type>
            <res-auth>Container</res-auth>
            <res-sharing-scope>Shareable</res-sharing-scope>
        </resource-ref>In your code you can use something like:
    import commonj.work.WorkManager;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import java.io.IOException;
    public class TestServlet extends HttpServlet {
        protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
        protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
            getDefaultWorkManager();
        private WorkManager getDefaultWorkManager() {
            WorkManager defaultWorkManager = null;
            try {
                Context context = new InitialContext();
                defaultWorkManager = (WorkManager) context.lookup("java:comp/env/default");
                System.out.println("My default workmanager " + defaultWorkManager);
            } catch (NamingException e) {
                e.printStackTrace();
            return defaultWorkManager;
    }

  • How can I get to read the pixels in an image?

    Please see details of my code below. What I am doing is trying to obtain the pixels for an image. there is an initial image of a certain size, which is then split into smaller portions.
    The problem I'm getting is that pixels can not be read past the middle of the original image. I hope I have explained this so it can be understood. I have included the class that I am working on
    * To change this template, choose Tools | Templates
    * and open the template in the editor.
    package MandelbrotConstruction.compression;
    import java.awt.*;
    import java.awt.color.ColorSpace;
    import java.awt.geom.AffineTransform;
    import java.awt.image.*;
    import java.io.*;
    import java.util.ArrayList;
    import javax.imageio.ImageIO;
    import javax.swing.JPanel;
    * @author Charlene Hunter
    public class DisplayImg extends JPanel {
        private static BufferedImage image;
        private static ArrayList<Range> rangeLot;
        private static ArrayList<Domain> domainLot;
        @Override
        public void paintComponent(Graphics g) {
            super.paintComponent(g);
            int w = MainFrame.getJPanel1().getWidth();
            int h = MainFrame.getJPanel1().getHeight();
            Graphics2D g2 = (Graphics2D) g;
            File img = MainFrame.getImgFile();
            image = null;
            if (img != null) {
                try {
                    image = ImageIO.read(img);
                    //filter the image with a grayscale
                    ColorConvertOp grayOp = new ColorConvertOp(ColorSpace.getInstance(ColorSpace.CS_GRAY), null);
                    image = grayOp.filter(image, null);
                    //scale image to the size of the panel
                    AffineTransform at = new AffineTransform();
                    at.scale(256.0 / image.getWidth(), 256.0 / image.getHeight());
                    AffineTransformOp resizeOp = new AffineTransformOp(at, null);
                    image = resizeOp.filter(image, null);
                    ArrayList<Range> r = createRanges(image, 3);
                    ArrayList<Domain> d = createDomains(image);
                    int i = 0;
                    for (Domain dom : d) {
                        System.err.println("this is " + i);
                        System.out.println(dom.getPixels());
                        i++;
                    CompareClass comparer = new CompareClass(r, d);
                } catch (IOException e) {
                    System.err.println("IOException");
            g2.drawImage(image, null, 0, 0);
        public static ArrayList<Range> createRanges(BufferedImage bi, int divisions) {
            int w = bi.getWidth();
            int h = bi.getHeight();
            rangeLot = new ArrayList<Range>();
            int k = (int) Math.pow(2, divisions);
            for (int x = 0; x < w; x = x + (w / k)) {
                for (int y = 0; y < h; y = y + (h / k)) {
                    BufferedImage range = bi.getSubimage(x, y, w / k, h / k);
                    double[] pix = range.getRaster().getPixels(x, y, range.getWidth(), range.getHeight(), (double[]) null);
                    Range r = new Range(x, y, range, pix);
                    rangeLot.add(r);
            return rangeLot;
        public static ArrayList<Domain> createDomains(BufferedImage bi) {
            int w = bi.getWidth();
            int h = bi.getHeight();
            domainLot = new ArrayList<Domain>();
            int step = 4;
            for (int x = 0; x < w - step; x = x + step) {
                for (int y = 0; y < h - step; y = y + step) {
                    BufferedImage domain = bi.getSubimage(x, y, 2 * step, 2 * step);
                    double[] pix = domain.getRaster().getPixels(x, y, domain.getWidth(), domain.getHeight(), (double[]) null);
                    Domain d = new Domain(x, y, domain, pix);
                    domainLot.add(d);
            return domainLot;
    }If what I have included is not sufficient, please let me know. the problem is only arising when the pixels are being obtained for the subimage
    Thanks

    Hi, the error message I am getting is (i'm printing out the x,y values and width and height so that I can see what going on) the whole image is 512x512, and I am grabbing pixels for squares of 64x64, but when it gets to 256 it throws an exception. I don'd understand why
    (x: 0, y: 0)
    width: 64, height: 64
    done!
    (x: 0, y: 64)
    width: 64, height: 64
    done!
    (x: 0, y: 128)
    width: 64, height: 64
    done!
    (x: 0, y: 192)
    width: 64, height: 64
    done!
    (x: 0, y: 256)
    width: 64, height: 64
    Exception in thread "AWT-EventQueue-0" java.lang.ArrayIndexOutOfBoundsException: Coordinate out of bounds!
            at java.awt.image.ComponentSampleModel.getSampleDouble(ComponentSampleModel.java:807)
            at java.awt.image.SampleModel.getPixels(SampleModel.java:823)
            at java.awt.image.Raster.getPixels(Raster.java:1613)
            at MandelbrotConstruction.compression.DisplayImg.createRanges(DisplayImg.java:83)
            at MandelbrotConstruction.compression.DisplayImg.paintComponent(DisplayImg.java:51)
            at javax.swing.JComponent.paint(JComponent.java:1006)
            at javax.swing.JComponent.paintChildren(JComponent.java:843)
            at javax.swing.JComponent.paint(JComponent.java:1015)
            at javax.swing.JComponent.paintChildren(JComponent.java:843)
            at javax.swing.JComponent.paint(JComponent.java:1015)
            at javax.swing.JLayeredPane.paint(JLayeredPane.java:559)
            at javax.swing.JComponent.paintChildren(JComponent.java:843)
            at javax.swing.JComponent.paintWithOffscreenBuffer(JComponent.java:4979)
            at javax.swing.JComponent.paintDoubleBuffered(JComponent.java:4925)
            at javax.swing.JComponent.paint(JComponent.java:996)
            at java.awt.GraphicsCallback$PaintCallback.run(GraphicsCallback.java:21)
            at sun.awt.SunGraphicsCallback.runOneComponent(SunGraphicsCallback.java:60)
            at sun.awt.SunGraphicsCallback.runComponents(SunGraphicsCallback.java:97)
            at java.awt.Container.paint(Container.java:1709)
            at sun.awt.RepaintArea.paintComponent(RepaintArea.java:248)
            at sun.awt.RepaintArea.paint(RepaintArea.java:224)
            at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:254)
            at java.awt.Component.dispatchEventImpl(Component.java:4060)
            at java.awt.Container.dispatchEventImpl(Container.java:2024)
            at java.awt.Window.dispatchEventImpl(Window.java:1791)
            at java.awt.Component.dispatchEvent(Component.java:3819)
            at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
            at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
            at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
            at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
            at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)

  • Why do we need get and set methods?

    It is considered good design practice to keep all class data private and
    provide get and set methods for accessing the data in a controlled
    manner.
    So, instead of directly accessing the class data, you use getter and setters.
    I do not really feel the need to use get and set methods.
    How does that achieve encapsulation when ultimately the class data is being exposed?

    A couple of reasons why to use get and set:
    1. For example you can set an int value for month, if a user sets this to somting
    higher than 12 (or 11 if it's zero based) you want to handle that by either
    throwing an exception or adding a year for every time it can be devided by 12.
    If you dont do it in set you'll have a whole bunch of methods that might need to
    correct the value before retreiving the eventual date.
    2. If for some reason you have security set up for certain values you can
    implement this in the get method. When this is done somewhere else you have
    a whole bunch of methods retreiving the info in other classes that need to check
    first. (a canGet method could allso be used). Another good reason to use get
    is when the information needs to be converted depending on the consumer
    calling the get method.
    3. If any logic in 1 or 2 changes you'll have a bunch of code to change.
    If you feel there is no need to implement any security, error handling (on
    compiling because get and set might throw something) or validation when
    setting/getting these values there is still the argument of readabillity.
    Eclipse has a feature that will generate getters and setters for you so it's not
    like there is a lot of extra typing involved.
    Got interupted whyle typig so sorry to repeat any answer given before.

  • Throwing Exceptions from a new Thread

    Please help if you can.........
    I have a very simple RMI server, that is used to run processes in seperate threads on a server machine, that are kicked off by a client GUI.
    All works fine, except if the process can not be found, then the server generates an IOException. How can I get the thread to throw the exception back to the RMI Server, and then back to the GUI.
    I have tried to throw Runtime Exceptions but that did not work, and I can not declare the run method of the thread to throw a remote exception......
    Any help would be most appriciated...
    G

    /* the listener interface */
    public interface ExceptionListener {
      void exceptionOccured(Throwable t);
    /* the runnable object */
    public class WorkerThread implements Runnable {
      List exceptionListenerList;
      public void addExceptionListener(ExceptionListener l) {
        exceptionListenerList(l);
      public void run() {
        try {
        // do the work, e.g some JDBC stuff
        } catch(Throwable t) {
          // error occured, first do some logging, then notify all listeners
          t.printStackTrace();
          for(i=0; i<exceptionListenerList; i++) {
            (ExceptionListener)exceptionListenerList.get(i).exceptionOccured(t);
    /* this clas creates and & runs the thread; before doing this it
    registers itself as an ExceptionListener to the runnable object */
    public class ThreadStarter implements ExceptionListener {
      public final void exceptionOccured(Throwable t) {
        // do whatever you want to do with the exception
      public final void startThread() {
        WorkerThread wt = WorkerThread();
        wt.addExceptionListener(this);
        new Thread(wt).start();
    }By the way: I "borrowed" the ExceptionListener / ExceptionCallback idea from the book "java thread programming - the authorative solution" by paul hyde.

  • How to get WTP on my Flex Builder 3 Standalone Version: 3.0.214193?

    Hello All,
    I have downloaded the Flex builder 3.0.2 from the adobe website, and am trying to install the WTP plugin for it.
    When i use this link http://download.eclipse.org/webtools/updates/ for getting the plugin it throws the error as :
    Java Persistence API Tools (2.1.1.v200902200210-7A79BjDZRDE7GUMQDJGD) requires feature "org.eclipse.platform (3.4.0)", or compatible.
    Any many more like this. I know my eclipse plugin version is 3.3 version.
    I am not sure how can i upgrade my eclipse which came with Flex builder standalone to the 3.4 version. And also is it possible to use standalone only as using the flex builder plugin in not an option for me right now.
    Or any other way if i can use Tomcat from Flex builder without using WTP ??
    Please help

    I've installed and it works fine but I've many plugins installed.
    Try to install WST (Web Standart Tools) throw FB and after that install WTP.
    For intalling WST follow this.
    In FB menu.
    Help - Software updates - Find and install...
    "Search new features and install" Next
    "Europa Discovery Site" Finish
    Choose any nearest mirror for your location.
    Find "Web and JEE Development" folder.
    There are "Eclipce XML Editors and Tools" and
    "Web Standard Tools (WST) Project" check them to install. This plugins requier some other plugins, so it's easer to click "Select required" button on left side  to check them all automaticaly.
    After that standart installing procedure: Licence agreement, downloading and so on.

  • What is the work around for not being able to see icons for folders.  I want to be able to copy and paste image icons in the GET INFO windows.

    I have always used images for my folder icons, and now I am told that Mt. Lion does not allow me to go to the GET INFO window and do a click on the image icon and then be able to paste that image on to other folders.    I just talked with a Apple support guy and he said that Mt. Lion does not support this function.  He did say that there are third party programs that allow using images to make icons for folders or other items.  I can see some image icon in some of my hard drive folders.......  some folders show image icons while others do not. I am a photographer and have scads of photo folders spread all over different hard drives, and I find it easier to find what I am looking for by just looking at the IMAGE PICTURE in the different folders on my hard drives, than by having to read the one or two words associated with each folder.
    THe support guy said to request that APPLE put back the ability to use the coy paste function in the GET INFO window.  If i can't get this working like it was I wouyld like to know how to get a refund and throw out Mt Lion.

    Restore your Lion bootable backup/clone or Time Machine backup and file your ML bug report. Just keep the installer ($20 USD isn't worth the hassle trying to get it refunded). Then, when the function's restored, reinstall and run Software Update.

  • "Throwing OutOfMemory: class allocation" error on Linux x86-64

    Hi.
    My system is:
    4 Intel Xeon processors, 24GB RAM
    OS: Fedora Core 8 2.6.23.1-42.fc8
    JRockit: 4.0.1 Mission Control for 1.6.0
    I try to run Apache Tomcat (via jsvc and using APR) using JRockit JVM and I get the following error: "Throwing OutOfMemory: class allocation, 766248 loaded, 768K footprint in check_alloc (classalloc.c:213) 268 bytes requested." (multiple times) and then JVM crashes.
    I use following config options for JVM: -Xms3000m -Xmx4000m -Xns:800m -XXkeepAreaRatio:20 -XXgcThreads:4 -XXcompressedRefs:enable=false -XX:+UseStringCache -Xgc:gencon -Xverbose:gc -Xverbosetimestamp
    I also tried to run it with different heap sizes (more than 4GB) and without -XXcompressedRefs option specified (in which case JRockit used compressed references supporting heap size up to 32GB) but nothing helps - there is the same error every time.
    I suspect that it has something to do with heap size though because when I run it on different machine with only 2GB of RAM and heap size set accordingly then it runs ok. I also need it to have plenty of heap space available because it is under heavy load.
    Do you have any idea what can cause such a behaviour? I'm sure that I'm not exhausting available native memory (there is 24GB on that machine and normally there is 9-12GB used by applications, mainly Oracle DB Server, and the rest is cached by OS). Also Tomcat runs ok on Sun's JVM (meaning there is no OutOfMemory errors but there are some other issues which I hoped to resolve partly by using JRockit).

    I also thought the syntax of -XXcompressedRefs is as you wrote but in the newest JRockit version it's -XXcompressedRefs:enable=false (I found out the hard way, having to spend some time on searching it :) ). The syntax -XXcompressedRefs:false doesn't work in this version. If you're wondering if it has desirable effect: it has. As a proof, here is a snippet from log file:
    "[memory ][Thu Sep 23 12:51:16 2010][28083] Running with 64 bit heap and uncompressed references.
    [memory ][Thu Sep 23 12:51:16 2010][28083] GC mode: Garbage collection optimized for short pausetimes, strategy: Generational Concurrent Mark & Sweep."
    About the post I didn't read this one but few on the same topic telling the same thing.
    I will try later running it with -Xverbose:class later (I can't do it right away as it is a production environment I have trouble with).
    The curious thing though is that on the second machine it runs ok with smaller heap size (software is identical, loads the same number of classes). So I wonder what is the way to make it work with larger heap (because I'm sure it will need it) - all the posts about this say that I should decrease heap size. Also in Sun JVMs there is an option to set PermGen size. I realize that there is no such thing in JRockit but maybe there is some setting related to memory used for storing loaded classes?
    Thanks for any suggestions.
    Edited by: user1562668 on Sep 23, 2010 2:46 PM

  • Get a Trophy or keep using my Omnia 2?

    I am looking for some opinions. I want a WP7.5 device. I am up for a new phone. Everything I read leads me to believe it will be 8 months or more before VZW has any additional WP devices. I currently have a Samsung Omnia II (WM 6.5) that works fine.
    The Trophy is now selling for $29.99. Should I get the Trophy or wait to see what VZW does? I can't switch carrier for 18 months because other users on my account (we have 5 lines) are still under contract and I am the primary user.
     I really like VZW coverage. I can get a signal places where other people I know on other carriers can't.
    Decisions, decisions...............................

    There's CES next month, and something else in Feb.  MWC??  Either way, anything that you read or hear about 8 months before Verizon gets another Windows Phone, throw it out the window.  It could be in January with a new Nokia, or it could be November (or never).  With Verizon, there's no telling.
    If it were me, I'd look around and see if I could find a cheap Trophy, used/refurbished, and when (if?) something better comes out, I'd use my upgrade on that.  For now, Trophy really is a great phone, and while we do complain that we'd love better hardware, it really is a great phone.  It's just that compared to others, it's not as shiny.  No way in the world would I go back to using my TP2 over this.  It is literally WORLDS better.

  • Typedesc error

    hi,
    i have written a batch job which will add a Usage Transaction in Meter Data Management. But when i run the program it owrks fine for some time then it throws an exception.
    Exception details
    com.splwg.base.support.grid.GridWorkAbortedException: java.lang.NoClassDefFoundError: org/apache/axis/description/TypeDesc
    Error in detail
    14:17:58,710 [DEFAULTWorker:4] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) Thread execution aborted: BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [CM-TST1], batchNumber: 1, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 851)
    com.splwg.base.support.grid.GridWorkAbortedException: java.lang.NoClassDefFoundError: Could not initialize class com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:118)
         at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
         at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
         at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:57)
         at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
         at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
         at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:49)
         at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:57)
         at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound
         at com.oracle.client.ClientApplication.<init>(ClientApplication.java:38)
         at com.splwg.cm.domain.batch.CM_FirstBatch$CM_FirstBatchWorker.executeWorkUnit(CM_FirstBatch.java:95)
         at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:152)
         at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:113)
         at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:85)
         at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:223)
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
         ... 15 more
    14:17:58,757 [DEFAULTWorker:4] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) An exception was caught executing work for batch instance BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [CM-TST1], batchNumber: 1, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 851). The following key (-5195832232870744276) matches the value provided on the message log table.
    java.lang.NoClassDefFoundError: Could not initialize class com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound
         at com.oracle.client.ClientApplication.<init>(ClientApplication.java:38)
         at com.splwg.cm.domain.batch.CM_FirstBatch$CM_FirstBatchWorker.executeWorkUnit(CM_FirstBatch.java:95)
         at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:152)
         at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:113)
         at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:85)
         at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:223)
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
         at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
         at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
         at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:57)
         at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
         at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
         at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:49)
         at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:57)
         at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    14:19:01,111 [DEFAULTWorker:4] ERROR (com.splwg.base.support.cluster.ClusteredExecutionContext) An error has occurred while processing distributed grid work. A rollback will be issued. Processing of other work will continue.
    com.splwg.base.support.grid.GridWorkAbortedException: java.lang.NoClassDefFoundError: Could not initialize class com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:118)
         at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
         at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
         at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:57)
         at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
         at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
         at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:49)
         at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:57)
         at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound
         at com.oracle.client.ClientApplication.<init>(ClientApplication.java:38)
         at com.splwg.cm.domain.batch.CM_FirstBatch$CM_FirstBatchWorker.executeWorkUnit(CM_FirstBatch.java:95)
         at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:152)
         at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:113)
         at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:85)
         at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:223)
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
         ... 15 more
    Any help would be great.

    The above error is also coming along with this.
    14:16:06,741 [DEFAULTWorker:3] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) Thread execution aborted: BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [CM-TST1], batchNumber: 1, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 850)
    com.splwg.base.support.grid.GridWorkAbortedException: java.lang.NoClassDefFoundError: org/apache/axis/description/TypeDesc
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:118)
         at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
         at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
         at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:57)
         at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
         at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
         at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:49)
         at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:57)
         at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NoClassDefFoundError: org/apache/axis/description/TypeDesc
         at com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound.<clinit>(D2UsageTransactionRequestInbound.java:872)
         at com.oracle.client.ClientApplication.<init>(ClientApplication.java:38)
         at com.splwg.cm.domain.batch.CM_FirstBatch$CM_FirstBatchWorker.executeWorkUnit(CM_FirstBatch.java:95)
         at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:152)
         at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:113)
         at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:85)
         at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:223)
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
         ... 15 more
    Caused by: java.lang.ClassNotFoundException: org.apache.axis.description.TypeDesc
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         ... 23 more
    14:16:06,834 [DEFAULTWorker:3] ERROR (com.splwg.base.api.batch.AbstractExecutionStrategy) An exception was caught executing work for batch instance BatchThreadInstance_Id(batchThreadId: [batchRunId: [batchControlId: [CM-TST1], batchNumber: 1, batchRerunNumber: 0], batchThreadNumber: 1], batchInstance: 850). The following key (4172491317821738340) matches the value provided on the message log table.
    java.lang.NoClassDefFoundError: org/apache/axis/description/TypeDesc
         at com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound.<clinit>(D2UsageTransactionRequestInbound.java:872)
         at com.oracle.client.ClientApplication.<init>(ClientApplication.java:38)
         at com.splwg.cm.domain.batch.CM_FirstBatch$CM_FirstBatchWorker.executeWorkUnit(CM_FirstBatch.java:95)
         at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:152)
         at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:113)
         at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:85)
         at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:223)
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
         at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
         at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
         at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:57)
         at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
         at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
         at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:49)
         at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:57)
         at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.ClassNotFoundException: org.apache.axis.description.TypeDesc
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         ... 23 more
    14:16:09,471 [DEFAULTWorker:3] ERROR (com.splwg.base.support.cluster.ClusteredExecutionContext) An error has occurred while processing distributed grid work. A rollback will be issued. Processing of other work will continue.
    com.splwg.base.support.grid.GridWorkAbortedException: java.lang.NoClassDefFoundError: org/apache/axis/description/TypeDesc
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:118)
         at com.splwg.base.support.batch.JavaBatchWork.access$300(JavaBatchWork.java:29)
         at com.splwg.base.support.batch.JavaBatchWork$DoExecuteWorkInSession.doBatchWorkInSession(JavaBatchWork.java:91)
         at com.splwg.base.support.batch.BatchWorkInSessionExecutable.run(BatchWorkInSessionExecutable.java:57)
         at com.splwg.base.support.batch.JavaBatchWork.doExecuteWork(JavaBatchWork.java:50)
         at com.splwg.base.support.grid.AbstractGridWork.executeWork(AbstractGridWork.java:68)
         at com.splwg.base.support.cluster.ThreadWork.processBatchWork(ThreadWork.java:49)
         at com.splwg.base.support.cluster.BatchWorkManager.processWork(BatchWorkManager.java:57)
         at com.tangosol.coherence.commonj.WorkManager$ScheduleWork.run(WorkManager.java:2266)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService.onInvocationRequest(InvocationService.CDB:12)
         at com.tangosol.coherence.component.util.daemon.queueProcessor.service.grid.InvocationService$InvocationRequest.run(InvocationService.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:1)
         at com.tangosol.coherence.component.util.DaemonPool$WrapperTask.run(DaemonPool.CDB:32)
         at com.tangosol.coherence.component.util.DaemonPool$Daemon.onNotify(DaemonPool.CDB:63)
         at com.tangosol.coherence.component.util.Daemon.run(Daemon.CDB:42)
         at java.lang.Thread.run(Thread.java:619)
    Caused by: java.lang.NoClassDefFoundError: org/apache/axis/description/TypeDesc
         at com.oracle.D2_UsageTransactionRequestInbound_xsd.D2UsageTransactionRequestInbound.<clinit>(D2UsageTransactionRequestInbound.java:872)
         at com.oracle.client.ClientApplication.<init>(ClientApplication.java:38)
         at com.splwg.cm.domain.batch.CM_FirstBatch$CM_FirstBatchWorker.executeWorkUnit(CM_FirstBatch.java:95)
         at com.splwg.base.api.batch.AbstractThreadWorker.executeWorkUnitDetailedResult(AbstractThreadWorker.java:152)
         at com.splwg.base.api.batch.StandardCommitStrategy.processWorkUnits(StandardCommitStrategy.java:113)
         at com.splwg.base.api.batch.StandardCommitStrategy.concreteExecuteWork(StandardCommitStrategy.java:85)
         at com.splwg.base.api.batch.AbstractExecutionStrategy.executeWork(AbstractExecutionStrategy.java:223)
         at com.splwg.base.support.batch.JavaBatchWork.executeThreadWork(JavaBatchWork.java:109)
         ... 15 more
    Caused by: java.lang.ClassNotFoundException: org.apache.axis.description.TypeDesc
         at weblogic.utils.classloaders.GenericClassLoader.findLocalClass(GenericClassLoader.java:297)
         at weblogic.utils.classloaders.GenericClassLoader.findClass(GenericClassLoader.java:270)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
         at weblogic.utils.classloaders.GenericClassLoader.loadClass(GenericClassLoader.java:179)
         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
         ... 23 more

  • Error while updating a plan

    Hi,
    I have encountered an error while updating a plan. While i update the uplan , the grid gets filled but it throws a message stating
    "Maximum Number of Result Blocks has been reached"
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Maximum number of Result Blocks has been reached.
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0xD4]
    Error while processing the data for the step 'Grid'
    [Oracle BAM Enterprise Link error code:  DC -- 0x1, DC -- 0x83]
    Update of Plan "deposittest created 7/19/2007 5:11:50 PM" failed.
    [Oracle BAM Enterprise Link error code:  PlanMgr -- 0x1, PlanMgr -- 0xD5]
    The data updation stops after the row count 49900.
    Please help to resolve this error .
    Thanks in advance.
    Regards,
    Lathika

    Hi,
    in BAM-Administrator you should rraise Parameter "MaxResultBlocks".
    BAM originaly is al licensed Software from Group1 named "Sagent Data Flow".
    This may help searching the web.
    Greetz,
    GOI

  • Creating a new view in a component

    HI,
    I am trying to create a new view in a BSP component using the wizard. But the context nodes are not getting created. Its throwing up an error - "View not copied with wizard; processing not possible".
    What could be the problem ? Pls help.
    Regards,
    Aravind.

    Hi Arvind,
    Before posting error, please search for it.
    Here is what i found here in 2007 forum itself.
    I guess you have not enhanced your component and your view.
    Without enhancing the component it is not possible to add a new context node.
    Here is a very helpful, follow it and the the other link within this thread,
    both are very useful in this regard.
    Web Client Context Node Enhancement
    Thanks & Regards
    Shiven

  • REG : Null Pointer Exception for RFC values

    Hi All,
    I am facing peculiar erro in code.I need to check the null entries in SAP server then it should be replaced by space and if not null then should be replaced by the value in backend.But it is throwing null pointer exception
    I am using equalsignore case(null) and trim for space.
    I am not getting why its is throwing null pointer  exception.Kindly advise
    Regards,
    Anupama

    Hi
    Use
    String f = null ;
    if(f!==null)
    Wdcomponent.getMessageManager.ReportException ("this will cause null pointer exception  "+ f.length());
    Better to give it any Constant like
    priveate static final String NULL_CHECK  = "DEL_VAL12";
    rather than space ,at the time of chceking see if it has  DEL_VAL12 if true then put the actual data else let it be there.
    Best Regards
    Satish Kumar

Maybe you are looking for