Private creation of instance WITHIN class dumps

Hi,
So, I've activated some of my classes and executed it. The class is to be instantiated privately. Thus, also the constructor is private.
Now, I've got a static attribute ro_object. And I've got a static public method CREATE, which shall create this static attribute via CREATE ro_object.
Unfortunately, the program dumps at the call of the static method right at the point, where I call CREATE OBJECT.
class is ZPLM_DL_CL_DM_SPECIFICATION.
Error in the ABAP Application Program
The current ABAP program "ZPLM_DL_CL_DM_SPECIFICATION===CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
The following syntax error occurred in program
"ZPLM_DL_CL_DM_DL_TYPE_CONTROL=CP " in include
"ZPLM_DL_CL_DM_DL_TYPE_CONTROL=CM002 " in
line 17:
"You cannot create an instance of the class "ZPLM_DL_CL_DM_DL_TYPE" out"
"side the class . . . . . . ."
The include has been created and last changed by:
Created by: "D052039 "
Last changed by: "D052039 "
Error in the ABAP Application Program
The current ABAP program "ZPLM_DL_CL_DM_SPECIFICATION===CP" had to be
terminated because it has
come across a statement that unfortunately cannot be executed.
At the code block at the bottom of the page, I've got the constructor of this class and the first line is selected (the one with METHOD constructor.)
So, if you want more code, I'll provide it.
To me, this doesn't make sense, as other similar classes look the very same but won't dump. Also, if I make the ctor public and the instantiation public, the dump stays! I've tried to re-activate each method but it doesn't help.
Any ideas?
Kind regards,
Michael
Edited by: Michael Alexander Voelkel on Oct 15, 2009 11:45 AM
Edited by: Michael Alexander Voelkel on Oct 15, 2009 11:45 AM

I saw this, too. The point is: I don't try to create an instance of this other class, it's just not true and the object which I try to create is of the type of the specification-class for sure.. The code seems to be old. Re-activiating doesn't help it and the application throws dumps linked to code statements which don't exist anymore.
Edit: It works now. After my lunch. After I haven't changed anything... does anyone have an explanation for that?
Anyway, the actual problem is now solved. Thank you all for your time and effort!
Edited by: Michael Alexander Voelkel on Oct 15, 2009 1:15 PM

Similar Messages

  • Creation of a static class with private methods

    I'm new to java programming and am working on a project where I need to have a static class that does a postage calculation that must contain 2 private methods, one for first class and one for priority mail. I can't seem to figure out how to get the weight into the class to do the calculations or how to call the two private methods so that when one of my other classes calls on this class, it retrieves the correct postage. I've got all my other classes working correct and retrieving the information required. I need to use the weight from another class and return a "double". Help!!!
    Here's my code:
    * <p>Title: Order Control </p>
    * <p>Description: Order Control Calculator using methods and classes</p>
    * <p>Copyright: Copyright (c) 2002</p>
    * <p>Company: Info 250, sec 001, T/TH 0930</p>
    * @author Peggy Blake
    * @version 1.0, 10/29/02
    import javax.swing.*;
    public class ShippingCalculator
    static double firstClass, priorityMail;
    //how do I get my weight from another class into this method to use??? not sure I understand how it works.
    public static double ShippingCalculator(double weight)
    String responseFirstClass;
    double quantity, shippingCost;
    double totalFirstClass, firstClass, priorityMail, totalShipping;
    double priorityMail1 = 3.50d;//prioritymail fee up to 1 pound
    double priorityMail2 = 3.95d;//prioritymail fee up to 2 pounds
    double priorityMail3 = 5.20d;//prioritymail fee up to 3 pounds
    double priorityMail4 = 6.45d;//prioritymail fee up to 4 pounds
    double priorityMail5 = 7.70d;//prioritymail fee up to 5 pounds
    quantity = 0d;//ititialization of quantity
    // weight = 0d;//initialization of weight
    // shippingCost = 0d;
    //calculation of the number of items ordered..each item weights .75 ounces
    quantity = (weight/.75);
    if (quantity <= 30d)
    //add 1 ounce to quantities that weigh less than 30 ounces
    weight = (weight + 1);
    else
    //add 2 ounces to quantities that weigh more than 30 ounces
    weight = (weight + 2);
    if (weight > 80d)
    //message to orderclerk ..order over 5 lbs, cannot process
    JOptionPane.showMessageDialog(null, "Order exceeded 5 lbs, cannot process");
    //exit system, do not process anything else
    System.exit (0);
    else
    if (weight < 14d)
    //send message to customer: ship firstclass or priority, y or n
    responseFirstClass = JOptionPane.showInputDialog(null, "Ship first class? y or n?");
    if (responseFirstClass.equals("y"))
    //compute FirstClass shipping cost
    totalFirstClass = ((weight - 1) * .23d) + .34d;
    firstClass = totalFirstClass;
    else
    //compute PriorityMail cost for orders less than 14 ounces
    priorityMail = (priorityMail1);
    else
    if (weight <=16d)
    //compute totalshipping for orders up to 16 ounces
    priorityMail = (priorityMail1);
    else
    if (weight <=32d)
    //compute totalshipping for orders up to 32 ounces
    priorityMail = (priorityMail2);
    else
    if (weight <=48d)
    //compute totalshipping for orders up to 48 ounces
    priorityMail = (priorityMail3);
    else
    if (weight <= 64d)
    //compute totalshipping for orders up to 64 ounces
    priorityMail = (priorityMail4);
    else
    //compute totalshipping for orders up to 80 ounces
    priorityMail = (priorityMail5);
    priorityMail = 0d;
    firstClass = 0d;
    firstClassMail ();
    priorityMailCost ();
    //I think this is where I should be pulling the two methods below into my code, but can't figure out how to do it.
    shippingCost = priorityMail + firstClass;
    return (shippingCost);
    }//end method calculate shipping
    private static double firstClassMail()//method to get first class ship cost
    return (firstClass);
    }//end method firstclass shipping
    private static double priorityMailCost()//method to get priority mail cost
    return (priorityMail);
    }//end method priorityMail
    }//end class shipping calculator

    public class A {
    public String getXXX () {
    public class B {
    A a = new A();
    public void init () {
    a.getXXX();
    }

  • Using two editor instances within JTable

    Hello,
    I'm struggling around using component editors within JTable. E.g. selectAll text on entering a JTextField cell or immediately raising the popup while entering a JComboBox cell.
    In my analysis most of these problems arises due the re-use of the cell editor.
    The event sequence is doing things in the context of the old cell while preparing the editor for the new cell has already been started.
    Because it is the same component and some things are bound deep inside the L&F it seems not easy to handle them properly.
    Just an idea from me is to avoid such problems by working with two instances for the editors in general. This should avoid all problems coming out of overlapping event processing. (To provide each cell with an own component is of course no solution)
    Any comment on such an approach?
    Thanks in advance
    Wolfgang R.

    No, it wasn't the custom JTable extension.
    By entering a cell a popup will be shown for a short moment. This is only by using Windows L&F (not Metal). Within the L&F a togglePopup() is called which may cause this problem.
    import java.awt.BorderLayout;
    import java.awt.Color;
    import java.awt.Component;
    import java.util.EventObject;
    import javax.swing.DefaultCellEditor;
    import javax.swing.JComboBox;
    import javax.swing.JScrollPane;
    import javax.swing.JTable;
    import javax.swing.UIManager;
    import javax.swing.WindowConstants;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableCellRenderer;
    public class JTableExt extends JTable {
         public static class ComboBoxEnumRenderer extends JComboBox implements
                   TableCellRenderer {
              public ComboBoxEnumRenderer() {
                   setEditable(false);
                   setBackground(Color.WHITE);
              public Component getTableCellRendererComponent(JTable table, Object value,
                        boolean isSelected, boolean hasFocus, int row, int column) {
                   this.removeAllItems();
                   this.addItem(value);
                   return this;
         public static class ComboBoxEnumEditor extends DefaultCellEditor {
              private static String[] values = null;
              public ComboBoxEnumEditor() {
                   super(new JComboBox());
                   values = new String[50000];
                   for (int i = 0; i < values.length; i++) {
                        values[i] = "row_" + i;
              public Component getTableCellEditorComponent(JTable table, Object value,
                        boolean isSelected, int row, int column) {
                   JComboBox combo = (JComboBox) getComponent();
                   combo.removeAllItems();
                   for (int i = 0; i < values.length; i++) {
                        combo.addItem(values);
                   combo.setSelectedIndex(0);
                   return super.getTableCellEditorComponent(table, value, isSelected, row,
                             column);
         public JTableExt() {
              super();
              init();
         // invoke editor on cell entry
         public void changeSelection(final int row, final int column, boolean toggle,
                   boolean extend) {
              super.changeSelection(row, column, toggle, extend);
              if (editCellAt(row, column))
                   getEditorComponent().requestFocusInWindow();
         private void init() {
              setDefaultEditor(Object.class, new ComboBoxEnumEditor());
              setDefaultRenderer(Object.class, new ComboBoxEnumRenderer());
         private static void setUI() {
              String lnfName = "";
              //lnfName = "com.jgoodies.plaf.plastic.Plastic3DLookAndFeel";
              lnfName = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel";
              try {
                   UIManager.setLookAndFeel(lnfName);
              } catch (Exception exc) {
         public static void main(String args[]) {
              try {
                   setUI();
                   javax.swing.JFrame frame = new javax.swing.JFrame();
                   frame.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
                   frame.getContentPane().setLayout(new BorderLayout());
                   final JTableExt demo = new JTableExt();
                   Object[][] data = new Object[30][1];
                   demo.setModel(new DefaultTableModel(data, new String[] { "first column" }));
                   frame.getContentPane().add("Center", new JScrollPane(demo));
                   frame.setSize(600, 600);
                   frame.setVisible(true);
              } catch (Throwable t) {
                   System.exit(0);
    //end

  • How to get instance of Class with its type parameters

    Hi,
    Have any of you folks been dealing with generics long enough to show me how this should be written? Or point me to the answer (I have searched as well as I could).
    I boiled down my situation to the included sample code, which is long only because of the inserted comments. And while boiling I accidentally came across a surprise solution (a bug?), but would obviously prefer a smoother solution.
    My Questions (referred to in the code comments):
    #1. Is there a way to get my parameterized type (classarg) without resorting to using the bogus (proto) object?
    #2. Can anyone understand why the "C" and "D" attempts are different? (All I did was use an intermediate variable????) Is this a bug?
    Thanks so much for any input.
    /Mel
    class GenericWeird
       /* a generic class -- just an example */
       static class CompoundObject<T1,T2>
          CompoundObject(T1 primaryObject, T2 secondaryObject)
       /* another generic class -- its main point is that its constr requires its type class */
       static class TypedThing<ValueType>
          TypedThing(Class<ValueType> valuetypeclass)
       // here I just try to create a couple of TypedThings
       public static void main(String[] args)
          // take it for granted that I need to instantiate these two objects:
          TypedThing<String>                        stringTypedThing = null;
          TypedThing<CompoundObject<String,String>> stringstringTypedThing = null;
          // To instantiate stringTypedThing is easy...
          stringTypedThing = new TypedThing<String>(String.class);
          // ...but to instantiate stringstringTypedThing is more difficult to call the constructor
          Class<CompoundObject<String,String>> classarg = null;
          // classarg has got to be declared to this type
          //    otherwise there will rightfully be compiler error about the constructor call below
          // This method body illustrates my questions
          classarg = exploringHowToGetTheArg();
          // the constructor call
          stringstringTypedThing = new TypedThing<CompoundObject<String,String>>(classarg);
       } // end main method
       // try compiling this method with only one of A,B,C,D sections uncommented at a time
       private static Class<CompoundObject<String,String>> exploringHowToGetTheArg()
          Class<CompoundObject<String,String>> classarg = null;
          /* Exhibit A: */
      ////     classarg = CompoundObject.class;
             results in compiler error "incompatible types"
             found   : java.lang.Class<GenericWeird.CompoundObject>
             required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
                   classarg = CompoundObject.class;
                                            ^
             I understand this.  But how to get the type information?
          /* It's obnoxious, but it looks like I will have to construct a temporary
              prototype instance of type
                 CompoundObject<String,String>
              in order to get an instance of
                 Class<CompoundObject<String,String>>
              (see my Question #1) */
          CompoundObject<String,String> proto = new CompoundObject<String,String>("foo", "fum");
          /* Exhibit B: */
      ////     classarg = proto.getClass();
             results in compiler error: "incompatible types"
             found   : java.lang.Class<capture of ? extends GenericWeird.CompoundObject>
             required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
                   classarg = proto.getClass();
                                            ^
          /* Exhibit C: */
      ////     classarg = proto.getClass().asSubclass(proto.getClass());
             results in compiler error: "incompatible types"
             found   : java.lang.Class<capture of ? extends capture of ? extends GenericWeird.CompoundObject>
             required: java.lang.Class<GenericWeird.CompoundObject<java.lang.String,java.lang.String>>
                   classarg = proto.getClass().asSubclass(proto.getClass());
                                                         ^
          /* Exhibit D: (notice the similarity to C!): */
      ////     Class tmp1 = proto.getClass();
      ////     classarg = tmp1.asSubclass(tmp1);
          /* It compiles (see my Question #2) */
          return classarg;
       } // end method exploringHowToGetTheArg()
    } // end class GenericWeird

    Thanks so much, Bruce. (Oh my goodness, how would I have ever come up with that on my own?)
    So in summary
    This doesn't compile:
          classarg = (Class<CompoundObject<String,String>>)CompoundObject.class;but these do compile:
          classarg = (Class<CompoundObject<String,String>>)(Class)CompoundObject.class;or
          Class coclass = (Class)CompoundObject.class;
          classarg = (Class<CompoundObject<String,String>>)coclass;And this doesn't compile:
           classarg = proto.getClass().asSubclass(proto.getClass());but this does:
           Class tmp1 = proto.getClass();
           classarg = tmp1.asSubclass(tmp1);

  • How to access private method of an inner class using reflection.

    Can somebody tell me that how can i access private method of an inner class using reflection.
    There is a scenario like
    class A
    class B
    private fun() {
    now i want to use method fun() of an inner class inside third class i.e "class c".
    Can i use reflection in someway to access this private method fun() in class c.

    I suppose for unit tests, there could be cases when you need to access private methods that you don't want your real code to access.
    Reflection with inner classes can be tricky. I tried getting the constructor, but it kept failing until I saw that even though the default constructor is a no-arg, for inner classes that aren't static, apparently the constructor for the inner class itself takes an instance of the outer class as a param.
    So here's what it looks like:
            //list of inner classes, if any
            Class[] classlist = A.class.getDeclaredClasses();
            A outer = new A();
            try {
                for (int i =0; i < classlist.length; i++){
                    if (! classlist.getSimpleName().equals("B")){
    //skip other classes
    continue;
    //this is what I mention above.
    Constructor constr = classlist[i].getDeclaredConstructor(A.class);
    constr.setAccessible(true);
    Object inner = constr.newInstance(outer);
    Method meth = classlist[i].getDeclaredMethod("testMethod");
    meth.setAccessible(true);
    //the actual method call
    meth.invoke(inner);
    } catch (Exception e) {
    throw new RuntimeException(e);
    Good luck, and if you find yourself relying on this too much, it might mean a code redesign.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Create instance of class

    Hi all,
    I have problem with creating static fields in class. I have separate packages in my project and I need to have instances for all classes in this packages. I create instance of class using next code:
    public class Digest
       private static Digest digest = null;
       protected Digest ()
      public static Digest getInstance()
             if(digest == null)
              digest = new Digest();
            return digest;
      public static void clearInstacePool()
             digest = null;
    }But I have problem with deleting my packages and applet after I call Digest.getInstance(). I need to implement clearInstacePool() method to set reference of digest to null in unistall() method of my applet. Question is: how to create instance of class without implementing clearInstacePool()?

    Question is: how to create instance of class without implementing clearInstacePool()?That question doesn't make sense,or at least it is ambiguous. 'Create instance' usually involves the 'new' operator, which has nothing to do with what methods are implemented. Do you mean how to code the class without implementing clearInstancePool()?

  • Blocking DataFactory.INSTANCE.create(Class)

    Hello,
    we are using SOA suite 11g 1.1.2 and have some issues with SDO objects. Our EJB web service returns a SDO object and calls commonj.sdo.helper.DataFactory.INSTANCE.create(Class) to construct it. This call however blocks and jrockit mission control revealed
    that all cpu is consumed within org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegate. In a debugging session we found
    that the following loop never exits:
    (in org.eclipse.persistence.sdo.helper.delegates.SDODataFactoryDelegate)
    public DataObject create(Class interfaceClass) {
    ClassLoader contextLoader = xmlHelper.getLoader();
    ClassLoader interfaceLoader = interfaceClass.getClassLoader();
    ClassLoader parentLoader = contextLoader;
    boolean loadersAreRelated = false;
    *while ((parentLoader != null) && (!(loadersAreRelated))) {*
    if (parentLoader == interfaceLoader)
    loadersAreRelated = true;
    parentLoader = contextLoader.getParent();
    It seems there's a mixup with the classloaders here and the exit condition is never satisfied.
    The flow of events is as such: BPEL process ---(ejb binding)---> stateless session bean ----> DataFactory.INSTANCE.create(Class)
    Inside the SCA-INF/lib folder of the BPEL we include a jar that contains the .class files of the EJB's remote interface.
    The problem can be resolved by calling SDOHelper.INSTANCE.defineSchema() right before every DataFactory.INSTANCE.create(Class) invocation but this is a very expensive call...
    Can anyone suggest why this happens and/or some solution?
    Thanks

    Were you able to fix this ? I am getting same exception
    Edited by: Sam on Apr 12, 2012 10:33 AM

  • Creating New Entity Instances within OPA

    This is another one that I think I know the answer to, but I think it is best to confirm.
    In prior versions, it was not possible to create entity instances within RuleBurst/Haley Office Rules. Is that still the case in OPA?
    For example, my rules are determining the status of a case and the reason(s) why that status was determined. The case status may be Denied and the reasons may be "invalid customer Id", "expenses to income ratio too high", "primary customer not employed long enough", etc. I want to return all the reasons for the status. While the list of reasons is pre-determined, the ones that apply to a particular case are dynamic, as any, but not all can apply.
    Given this situation using a database, I would create an instance of reason for each applicable one and link it to the case. In the past, with OPA's predecessor(s), it was not possible to create new instances from within. They either had to all be passed into the rulebase or a list of all allowable reasons attributes had to be created and then set to true for the ones that applied.
    My preference is to create the instances inside OPA. Is that functionality provided in the current version?
    Thanks,
    Terry

    Hi Terry,
    Michael is correct that you can't write rules at design time which will dynamically create new entity instances at runtime. However, perhaps the new inferred relationships functionality in v10 could address what you're trying to do.
    You can write rules which conclude membership of an inferred relationship. So you might always have, say, 10 instances of 'the reason' in every case, but as for which of those instances apply in any particular case, it depends on the details of the case. You could use an inferred relationship to collect up the entity instances which apply in the case.
    First you'd need to set up a regular one-to-many relationship to instantiate the 10 instances at runtime - this would be done in the usual way. Then you'd also need to set up an inferred relationship and write rules to conclude the members of the inferred relationship. The instances which are members of the inferred relationship are then effectively the list of entity instances you wanted to create in your example above.
    Have a look at this OPM Help article: http://www.oracle.com/technology/products/applications/policy-automation/help/opm10_1/Content/Rules%20using%20entity%20instances/Reason_about_relship_between_2_entities.htm
    Cheers,
    Jasmine

  • Instancing a class whose classname is a variable

    I'm currently working on building a rudimentary 2D game engine and development kit program for building objects and I've run into an interesting problem. Here's what I want to do
    1. User creates new object which extends one of my other types of objects with user-defined name
    2. User defines constructor parameters and can alter the code of the object
    3. User hits save button, program writes new file with <user-defined name>.java as it's name
    4. Program compiles the objects
    (This is where I am right now)
    5. Program instances new object whose class is the newly created user defined class
    6. Program saves newly instanced object (easy since they'll be serializable eventually)
    7. Separate program opens the instanced object and uses it
    Now then this poses 2 questions. 1, is there a better way to do this sort of thing? By this sort of thing I mean created a new java class, saving it, instancing it, and using it in a separate program. 2, the main question is, is this even possible? Is it possible to instance a class whose name is determined at runtime? Something tells me it's not possible, simply because that would make it really easy to write dynamic code that changes at runtime and since that's often talked about as a difficult thing I doubt there's any other why to do it. I have another possibility, but it would make loading these objects insanely difficult and since I want them to be editable that means I'd much rather use a different method. Also the other method has some other problems that are hard to explain without getting into what the program does.
    I also would like to throw another question in.
    What's the best (easiest to write) way to detect (at runtime) if one of your programs is performing an infinite recursion? I've been working on a very stupid recursion based pathfinding AI for the same program, it was originally loop based but I realized recursion would cut the code down by a lot and make it smarter. However recursion also introduced an infinite loop problem because the AI works by picking two paths when it hits an object, right and left, then examining those recursively. So when I hit an object, go right, and hit another object the AI tests going back the way it came and gets stuck. Any suggestions would be most appreciated, my current method is to pass each recursive call a list of the points already visited and check if the destination for that call is the same as any of those points then simply cancel going that way however that's not working too well.
    Thanks for any help.

    Jverd - I know right now what constructor I'm calling and what arguments it takes...right now. That's subject to change and I would rather not dig through my code to find where I hard-coded it if another option is available.
    Here's what I have right now, it's giving me an error that newInstance() cannot be applied to newInstance(Object[]). If I try to do newInstance(params[0], params[1]) etc based on the length of params it gives me the same error except it changes newInstance(Object[]) to newInstance(Object, Object) etc
    Object[] params = new Object[textFields.size()];
    for (int i=0; i<textFields.size(); i++)
         if (parameters.get(i) == "int")
              params[i] = Integer.parseInt(textFields.get(i).getText());
         else if (parameters.get(i) == "String")
                 params[i] = textFields.get(i).getText();
         else
              params[i] = null;
    obj = obj.newInstance(params);I know I'm making a stupid mistake but I've never worked with that varargs thing before and so I don't know what stupid mistake I'm making. And in case it helps the constructor I'm trying to call at the moment is for my Item class which looks like this
    public RoNItem(boolean isGrenade, boolean isMedpac, boolean isObjective, int weight, int numberOfItems, String pictureLocation, String name, String description, String soundClipLocation)
    it takes 2 booleans (which I just noticed, so I guess my constructors take ints, Strings and booleans), 2 ints, and 4 strings right now. One of those strings was added yesterday, which is why I'd like to write some code that can adapt. The parameters the user is typing in are already loading from the file so the user will always enter the proper number and type of parameters, I just need to worry about how to pass those.

  • WebAS 6.20: startuperror :  ID000546: Error instancing frame class of a cor

    Hello,
          Please read the entire posting before you answer to the problem.
    I am installing the web middlewear for CRM IDES 4.0 SP4. SAP deliver e-selling scenario (based on 6.20 webas) in a sar file and all I have to is unzip it into a directory and start the j2ee server. Dispatcher starts fine and when starting the server I am getting the following error:
    OS: w2k
    SAP J2EE Engine Version 6.20 PatchLevel 67440.20
    login id:j2eeadm.
    java version: 1.3.1_15
    my jave_home is set.
    memory settings seems to be oj with 512.
    I don't see any file authorisations issues.
    Please help me!
    Loading core services:
    ID000546: Error instancing frame class of a core service com.inqmy.services.dbms.server.DBMSServiceFrame.
    [ServiceManager]: ID000546: Error instancing frame class of a core service com.inqmy.services.dbms.server.DBMSServiceFra
    me.
    java.lang.ClassNotFoundException: com.inqmy.services.dbms.server.DBMSServiceFrame
            at com.inqmy.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:168)
            at java.lang.ClassLoader.loadClass(ClassLoader.java:250)
            at com.inqmy.frame.core.load.ReferencedLoader.loadClass(ReferencedLoader.java:105)
            at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:310)
            at java.lang.Class.forName0(Native Method)
            at java.lang.Class.forName(Class.java:190)
            at com.inqmy.core.service.container.ServiceWrapper.start(ServiceWrapper.java:122)
            at com.inqmy.core.service.container.MemoryContainer.startSingleService(MemoryContainer.java:645)
            at com.inqmy.core.service.container.MemoryContainer.startCoreServices(MemoryContainer.java:160)
            at com.inqmy.core.service.container.AbstractServiceContainer.init(AbstractServiceContainer.java:130)
            at com.inqmy.core.Framework.loadSingleManager(Framework.java:322)
            at com.inqmy.core.Framework.loadManagers(Framework.java:117)
            at com.inqmy.core.Framework.start(Framework.java:78)
            at java.lang.reflect.Method.invoke(Native Method)
            at com.inqmy.boot.FrameThread.run(FrameThread.java:46)
            at java.lang.Thread.run(Thread.java:479)
      Starting core service monitor ... done.
      Starting core service file ... done.

    Hi Srini,
    The dbms.jar file in <server>/services/dbms directory is missing or corrupted. Get a new version of the sar file or check for insufficient disk space (in case extraction has failed).
    Best Regards: Iavor

  • Grab from an instance within split join

    Hi All
    I have a process, and every now and then a user from role 'G' wants to grab the instances of a process (that may exist in any activity) to one of his activities, say 'AAG' (Activity After Grab :)). The Grab activities properties are defined so that it can grab instances from 'All' activities and then assign to 'AAG'.
    You can visualize the process like this:
    Activity A1 --> Split ----> branch 1 after split forwards to Activity AS1, brach 2 after split forwards to Activity AS2 ---> join ---> A3 --> A4 ---> AAG --> A5 ---> end
    Now when an instance has executed the split, the main instance waits at join. THe child instances are each at activity AS1 and AS2.
    When a user wants to grab this instance, the idea is that AS1 and AS2 should disappear, the instance at join should go to AAG.
    To realize that, if I try to grab the instance waiting at join, I can move this to AAG. However instances at AS1 and AS2 still remain there.
    If I try to grab instances at AS1 or AS2, I can not send them to AAG.
    Any workarounds?
    I am basically using PAPI to get hold of the instances. Was thinking of grabbing the instance at join, and terminating all others. But am looking for a better solution.
    THanks
    Satinder

    Hi Dan
    You are right, this might be an option (I have not yet tried it though). But I guess it still might not be the best option because -
    1. This user can grab instance in any activity and assign to AAG. Now if an activity is not within split-join, then we dont really need to interrupt the instance and call this message activity, a grab works fine. Message activity will also work fine, but that would mean that for every activity in the process I will need to add a conditional transition (executed when flagToGoToAAG = true) that goes to AAG.
    2. We got a little more than usual complex process. It has about 6-7 splits. Also there are about three Grab activities. This would mean about 7*3 additional transitions originating from different joins.
    I was looking for a solution may be that can process/abort all instances within split-join when the instance at join is grabbed.
    Thanks for your help.
    Cheers
    BTW, I have never used a MessageWait, in case this becomes the only option available, could you let me know how to create an interrupt from PAPI for this messageWait.
    Thanks a lot
    Best
    Satinder

  • Dynamically finding correct instance of class

    I am running two different applications under same context in tomcat. Both application has their own set of classes and common classes which are accessed by both applications. One of the common class say Class A is implemeting common interface say B is extended by both applications having their own subclasses C and D respectively. Now when some other common class Say X invokes method on interface B , at runtime class X should be able to invoke method on correct instance C or D depending on which application request came from. Is there any way where Class X can dynamically find the correct instance of class C or D to invloke method on?

    My answer is in your other thread.

  • ClassCastException during Deserialization : Assigning instance of class...

    Hi All,
    I'm writing a client-server application.
    The server sends serializable objects to the client via a socket.
    When the client try to deSerialize the Object( in.readObject() ),
    I got Exception:
    java.lang.ClassCastException: Assigning instance of class java.io.ObjectStreamClass to field seda.sandStorm.lib.http.httpResponse#contentType
    at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2266)
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
    at java.io.ObjectInputStream.inputClassFields(ObjectInputStream.java:2258)
    at java.io.ObjectInputStream.defaultReadObject(ObjectInputStream.java:514)
    at java.io.ObjectInputStream.inputObject(ObjectInputStream.java:1407)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:381)
    at java.io.ObjectInputStream.readObject(ObjectInputStream.java:231)
    at seda.Dseda.internal.ObjectReader.readObj(ObjectReader.java:96)
    at seda.Dseda.internal.ObjectReader.readPacket(ObjectReader.java:77)
    Both client and server have exactly the same copy of the classes.
    Any help would be apprciated.
    Thanks, Gil.

    Hi,
    I hava managed to solved the problem:
    The ObjectOutputStream need to be reset after every write(..).
    Gil.

  • An error occurred while getting property "userId" from an instance of class

    Running application SRDemo (Tutorial Chapter 6 Implementing Login Security)
    After logging, the List page popped up. But no data returned. Get Error
    JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo.
    Questions:
    1. What are possible reasons to cause the getting property "userId" problem?[
    2. Why the Login page asked User Name and Password and the program used the query with "WHERE (EMAIL = 'sking')"
    The Log file shows the select statement:
    SELECT USER_ID, FIRST_NAME, LAST_NAME, CITY, POSTAL_CODE, EMAIL, STATE_PROVINCE, COUNTRY_ID, STREET_ADDRESS, USER_ROLE FROM USERS WHERE (EMAIL = 'sking')
    [TopLink Info]: 2006.11.08 11:07:09.468--ServerSession(1235)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--SRDemoSession login successful
    [TopLink Finer]: 2006.11.08 11:07:09.468--ServerSession(1235)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client acquired
    [TopLink Fine]: 2006.11.08 11:07:09.500--ServerSession(1235)--Connection(1925)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--SELECT USER_ID, FIRST_NAME, LAST_NAME, CITY, POSTAL_CODE, EMAIL, STATE_PROVINCE, COUNTRY_ID, STREET_ADDRESS, USER_ROLE FROM USERS WHERE (EMAIL = 'sking')
    [TopLink Finer]: 2006.11.08 11:07:09.578--ClientSession(2021)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client released
    [TopLink Finer]: 2006.11.08 11:07:09.625--ServerSession(1235)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client acquired
    [TopLink Fine]: 2006.11.08 11:07:09.625--ServerSession(1235)--Connection(1922)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--SELECT USER_ID, FIRST_NAME, LAST_NAME, CITY, POSTAL_CODE, EMAIL, STATE_PROVINCE, COUNTRY_ID, STREET_ADDRESS, USER_ROLE FROM USERS WHERE (EMAIL = 'sking')
    [TopLink Finer]: 2006.11.08 11:07:09.625--ClientSession(2027)--Thread(Thread[ApplicationServerThread-0,5,RequestThreadGroup])--client released
    2006-11-08 11:07:09.640 WARNING JBO-29000: Unexpected exception caught: oracle.jbo.JboException, msg=JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    2006-11-08 11:07:09.640 WARNING JBO-29000: Unexpected exception caught: java.lang.RuntimeException, msg=javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    2006-11-08 11:07:09.640 WARNING javax.servlet.jsp.el.ELException: An error occurred while getting property "userId" from an instance of class oracle.srdemo.view.UserInfo
    2006-11-08 11:07:11.515 WARNING rowIterator is null
    2006-11-08 11:07:11.515 WARNING rowIterator is null
    Process exited.

    Hi,
    I got the answer to my question. The tables were not populated. So I ran the script - populateSchemaTables.sql, and got the data into the tables. The error is gone!
    Lin

  • Error "You may only define methods within "CLASS class IMPLEMENTATION"

    We have code in LMIGOSMC so that the vendor batch number appears in the MIGO transaction for certain movement types.  We have created another, custom movement type in which this functionality should be available so I need to add it to LMIGOSMC.  When I go in and try to make the modification I am getting the following error:
    "You may only define methods within "CLASS class IMPLEMENTATION ...ENDCLASS".
    What am I doing wrong?

    Hi,
    You are not doing anything wrong with regard to the syntax error you are getting.  During the syntax check of include program LMIGOSMC, the system is not aware of the CLASS... ENDCLASS statements within the program LMIGOSM4.  Try the syntax check at the LMIGOSM4 program level (or even better, at the SAPLMIGO level) and you will see that the error is not given.
    Regards,
    Jamie

Maybe you are looking for