Clueless - Method to get Object

First of all I'd like to thank everyone in advance for any help. I am completely new to Java, and am making my first attempt at a program for an assessed project.
The following code is something I am having trouble with:
public class Train {
     public static void trainArr ()
        Timetable train1 = new Timetable ();
        train1.depart = 12.00;
        train1.arrive = 13.00;
        train1.journey = (train1.arrive - train1.depart) * 100;
        Object[] timeTable;
        timeTable = new Object[6];
        timeTable[0] = train1;
        System.out.println(timeTable[0]);
}My aim here is to have the Train Object contain the elements 'depart' 'arrive' and 'journey' each of which is a time. There will be a total of 6 Train Objects stored in an array. What I don't know how to do is separate the individual elements of the Object after they have been stored in the array - so that they can be changed by user input, sorted, etc. I have been told that I have to do so using a Method call such as trainArray[0].getDepartalthough I don't really understand how to construct this Method. I know this may be a very broad question, but it is hard to define something I don't fully understand. I would very much appreciate being pointed in the right direction or given an example to follow. If any more information is needed let me know.
Thanks again!

What version of the SDK are you using? The Calendar class has been around for as long as I've been using Java (not long, admittedly, but still...). Also, I'd be careful about using doubles to represent time - how would you handle a double of 12.87? Using appropriate long values to represent time will help your program be more extensible - we can work on getting Calendar to work if you would like, but no pressure... :o)
Now, onto your question...
In your code, you are trying to construct a Train object using just a string (new train("Train1")), when your constructor code asks for a Train object and two double primitives (public Train(Train trainID, double departure, double arrival)). I think what you're shooting for is that trainID is a String, rather than a whole Train, so you'll need to modify your code as follows:
class Train {
    // These variables are specific to each Train object
    String trainID; // String, not Train...
    double departure;
    double arrival;
    double duration;
    // Construct a Train object using a String id,
    // departure, and arrival times)
    public Train(String trainID, double departure, double arrival) {
        this.trainID = trainID;
        this.departure = departure;
        this.arrival = arrival;
        duration = arrival - departure;
    public double getDuration() {
        return duration;
    public static void main(String[] args) {
        // Create an array of Trains
        Train[] schedule = new Train[6];
        // Initialize some variables to be used
        // to construct a Train
        String trainID = "Train1";
        double departure = (12.00);
        double arrival = (12.30);
        // Create a new Train and add it to the array
        schedule[0] = new Train (trainID, departure, arrival);
        // Print the duration of the first train trip
        // in the array
        System.out.println(schedule[0].getDuration());
}P.S. It's really no bother. We're here to help. :o)

Similar Messages

  • Do we have any native methods to get object instances which are alive ?

    Do we have any native methods to get object instances which are alive ?
    Help appreciated.

    If you are looking for accessing objects that are eligible for GC but are not GC,than it should be very difficult.As Java does not give you memory access to its variables.

  • Generically calling a method on an object

    Hello,
    I am trying to write a small utility method to generically call a method on an object.
    This is what I have.
        public static void doCall(Object o, String methodName, Object ... args){
            Class[] types = new Class[args.length];
            int i = 0;
            for(Object arg : args){
                types[i] = arg.getClass();
            try {
                Method m = o.getClass().getMethod(methodName, types);
                m.invoke(o, args);
            } catch (Exception e) {
                e.printStackTrace();
                throw new RuntimeException("Error dynamically calling method " + methodName + " on " + o.toString());
        }It doesn't work because it can't find the method. If I hard code the parameter types as "new Object[] {Double.TYPE}" it works fine (on methods that take a double).
    So, my question is, how can I generically set up the parameter types based on the types of the arguments?
    Thanks,
    ~Eric

    The problem is not on calling agr.getClass(), your primitive double is already autoboxed to a Double object. It is the doCall(...) method who expects an object, not a primitive. So when giving it a primitive value, java autoboxes it to the corresponding object type.
    This means your attempt will only work if the methods to call do not have any primitives as parameters.
    Test this code:
    public class GenericMethodCaller {
         public static void doCall(Object o, String methodName, Object ... args){
            Class[] types = new Class[args.length];
            int i = 0;
            for(Object arg : args){
                types[i++] = arg.getClass();
            try {
                Method m = o.getClass().getMethod(methodName, types);
                m.invoke(o, args);
            } catch (Exception e) {
                e.printStackTrace();
                throw new RuntimeException("Error dynamically calling method " + methodName + " on " + o.toString());
         public static void main(String[] args) {
              Callable callee = new Callable();
              callee.callabelMethod(10d);          
              GenericMethodCaller.doCall( callee, "callabelMethod", 10d ); // 10d gets autoboxed to a Double object.
    class Callable {
         public void callabelMethod(Double o) {
              System.out.println("callabelMethod(Double o) called");
         public void callabelMethod(double o) {
              System.out.println("callabelMethod(double o) called");
    }The output will be:
    callabelMethod(double o) called
    callabelMethod(Double o) called
    - Roy

  • Nulls from HashMap.get(Object)

    I understand that I get the nulls because the Object is not in the map. But is there some elegant way to have it default to the empty String?
    Right now, after I grab all my data into variable with HashMap.get(Object), I go and check each once for null, and assign it the empty String instead. This is a lot of lines of code for something that is so basic.
    I know i could initialize them all to the empty string, and then for each variable, check the HashMap with containsKey(Object) before assigning with HashMap.get(Object). Now, would I be correct in assuming the compiler would optimize this for me and not actually check the HashMap twice for the same Object? And... even if that is the case, its still just as many lines of code.
    Is there perhaps some more elegant way?
    String exchange = parameterMap.get("exchange");
    String messageType = parameterMap.get("messagetype");
    String traderTimeStamp = parameterMap.get("traderTimeStamp");
    String exchangeTimeStamp = parameterMap.get("exchangeTimeStamp");
    String sequence = parameterMap.get("sequence");
    String product = parameterMap.get("product");
    String quantity = parameterMap.get("quantity");
    String price = parameterMap.get("price");
    if (exchange == null)
    exchange = "";
    if (messageType == null)
    messageType = "";
    if (traderTimeStamp == null)
    traderTimeStamp = "";
    if (exchangeTimeStamp == null)
    exchangeTimeStamp = "";
    if (sequence == null)
    sequence = "";
    if (product == null)
    product = "";
    if (quantity == null)
    quantity = "";
    if (price == null)
    price = "";

    You could first put "" for all potential keys.
    Or you could create a helper method
    public String nonNull(String s) {
      return (s != null) ? s : "";
    String exchange = nonNull(parameterMap.get("exchange"));

  • Run-time error '1004' -- Method 'Container' of object '_Workbook' failed

    Dear All,
    One of our users is getting the following Microsoft Visual Basic error while running the report S_ALR_87013614.
    Run-time error '1004'
    Method 'Container' of object '_Workbook' failed.
    I have searched the forum posts for help. But I only found some details related to Run-time error 1004 related to some excel file security but not related to "Method 'Container' of object '_Workbook' failed".
    Could anyone please tell me how this error can be eliminated for the user?
    Regards,
    Lakshmi.

    Dear Arpan,
    We too observed a few PIDs along with the one that you have mentioned but they make no difference. Some users who has the PID G_RW_DOCUMENT_TYPE set with some value are getting the report.
    Upon further searching we are assuming that it could be an issue with the Microsoft applications or macro settings of the user. But not sure about it.
    Regards,
    Lakshmi Venigala.

  • Override method on an object construted by somebody

         customMenuComponent.addCustomLink(new CustomLinkComponenet("strlink","Storage Inbox",Index.class) {
                   protected BookmarkablePageLink getBookmarkablePageLink() {
                        BookmarkablePageLink bookmarkablePageLink=   new BookmarkablePageLink("link",clazz){
                             protected void onBeforeRender() {
                                  super.onBeforeRender();
                        return bookmarkablePageLink;
              customMenuComponent.addCustomLink(new CustomLinkComponenet("strlink","Storage Inbox",Index.class) {
                   protected BookmarkablePageLink getBookmarkablePageLink() {
                        BookmarkablePageLink bookmarkablePageLink=   super.getBookmarkablePageLink(){
                             protected void onBeforeRender() {
                                  super.onBeforeRender();
                        return bookmarkablePageLink;
              });the second block of code does not compile please explain me why and what is the workaround ? i can override a method on a object when I initialize with new but cannot override if I get the object from super or somebody constructs why ?

    miro_connect wrote:
    in my case is there way to copy object returned from super to object created in sub and override methods ?Perhaps. You need to know about the implementation of the original object.

  • Calling a method in BPM Object from jsp page

    hi all,
    I try to call a method from BPM Object using <f:invokeUrl >
    I change server side method properties to yes.
    and then how can i get request and response object inside the BPM method.
    Thanks.

    Thanks for ur response,
    But i mention about BPM method inside BPM Object.
    i found this inside the documentation.
    methodName(Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response)
    i need to match above BPM method and <f:invokeUrl > tag. am i right?
    But i don't know how to create method with argument "Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response" inside BPM Object.
    I can't find any place to define method argument inside Oracle BPM studio.
    I don't know how to parse argument like "Fuego.Net.HttpRequest request, Fuego.Net.HttpResponse response"
    With Regards,
    Wai Phyo
    Edited by: user8729650 on Sep 9, 2009 7:03 PM
    Edited by: user8729650 on Sep 9, 2009 9:20 PM

  • Calling a method in BPM Object from jsf page

    Hi All,
    How do I call a method in BPM object from JSF page? Is it possible to invoke it in a manner similar to invoking a method from managed bean in JSF application?
    Please help.
    Thanks and Regards,
    Veronica

    You can use f:invoke (or f:invokea to with parameters)
    For ajax calls, you can use f:invokeUrl to get the URL to a particular method within your BPM object, although make sure the Server-Side Method property is set to Yes.
    http://download.oracle.com/docs/cd/E13154_01/bpm/docs65/taglib/index.html

  • Method 'DBEngine' of object '_Application' failed

    I am trying to run the latest version of OMWB against an Access 2000 database and am not able to export the information to XML. The subject error message is then followed with another message, 'object variable or With block variable not set'. Any comments or suggestions would be greatly appreciated.
    Harvey

    Hi,
    I believe you are getting the "Method 'DBEngine' of object '_Application' failed" error because there is a problem with your DAO installation. If you manually register the dao360.dll, you should no longer experience this issue when you attempt to use the Exporter tool.
    Execute :
    Regsvr32 "C:\Program Files\Common Files\Microsoft Shared\DAO\dao360.dll"
    Please refer to the following article for detailed steps:
    http://support.microsoft.com/?scid=kb;en-us;887033&spid=2509&sid=global
    If this does not resolve your issue, please let me know.
    I hope this helps.
    Regards,
    Hilary

  • ORA00932 inconsistent datatypes For member methods in SQLJ Object called from SQLPlus

    Hi, I would very much appreciate advice on the following problem, its a tricky one, here are the full details....
    A) EXECUTIVE SUMMARY....
    I have created an oracle object type by wrapping a SQLData java object with the Oracle Create type statement. I am using Oracle 9i on NT4. However despite following the very few Oracle examples I could find, I get the following error....
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypesHere is what I've done...
    1) Create Java object using SQLData interface (see listing below)
    2) Load the Java source to Oracle 9i
    3) Run the Oracle Create Type statement to wrap the java class
    4) Use the objects in a table and successfully insert rows and query attributes using SQLPlus
    5) Find I can't pull back data from any instance methods without getting an "inconsistant datatypes" error for both string and int datatypes. (see below for queries and output from SQLPlus)
    B) STEP BY STEP DETAILS FOLLOW......
    1) Java Source (in file \dealcalcs\Dealtest.java)
    package dealcalcs;
    import java.sql.SQLException;
    import oracle.jdbc.OracleConnection;
    import oracle.jdbc.OracleTypes;
    import java.sql.*;
    public class Dealtest implements SQLData
    public static final String SQLNAME = "SWITCHBLADE_DATA.DEALTEST";
    public static final int SQLTYPECODE = OracleTypes.STRUCT;
    protected java.math.BigDecimal m_dealid;
    protected java.sql.Timestamp m_startdate;
    protected String m_dealtype;
    protected Double m_facevalue;
    /* constructor */
    public Dealtest() { }
    public void readSQL(SQLInput stream, String type)
    throws SQLException
    setDealid(stream.readBigDecimal());
    setStartdate(stream.readTimestamp());
    setDealtype(stream.readString());
    setFacevalue(new Double(stream.readDouble()));
    if (stream.wasNull()) setFacevalue(null);
    public void writeSQL(SQLOutput stream)
    throws SQLException
    stream.writeBigDecimal(getDealid());
    stream.writeTimestamp(getStartdate());
    stream.writeString(getDealtype());
    if (getFacevalue() == null)
    stream.writeBigDecimal(null);
    else
    stream.writeDouble(getFacevalue().doubleValue());
    public String getSQLTypeName() throws SQLException
    return SQLNAME;
    /* accessor methods */
    public java.math.BigDecimal getDealid() { return m_dealid; }
    public void setDealid(java.math.BigDecimal dealid) { m_dealid = dealid; }
    public java.sql.Timestamp getStartdate() { return m_startdate; }
    public void setStartdate(java.sql.Timestamp startdate) { m_startdate = startdate; }
    public String getDealtype() { return m_dealtype; }
    public void setDealtype(String dealtype) { m_dealtype = dealtype; }
    public Double getFacevalue() { return m_facevalue; }
    public void setFacevalue(Double facevalue) { m_facevalue = facevalue; }
    //These last two are the member methods I call
    public String testme(){
    String tmp = new String("testme worked");
    return tmp;
    public int testint(){
    int tmp = 0;
    tmp = 88;
    return tmp;
    2, 3, 4) Here is how I wrap the uploaded SQLJ object, create a table using it, and put a row in it....
    create or replace type deal_t as object
         external name 'dealcalcs.Dealtest'
    LANGUAGE JAVA USING SQLData (
    DEALID NUMBER (11) external name 'dealid',
    STARTDATE DATE external name 'startdate',
    DEALTYPE VARCHAR2 (50) external name 'dealtype',
    FACEVALUE FLOAT (49) external name 'facevalue',
    MEMBER FUNCTION testme RETURN VARCHAR2
         EXTERNAL NAME 'testme() return java.lang.String',
    MEMBER FUNCTION testint RETURN NUMBER
         EXTERNAL NAME 'testint() return int'
    ) not final
    create table dealsobjtab of deal_t;
    insert into dealsobjtab values ( deal_t(1, to_date('1/jan/1968'), 'NZD/NZD', 500))
    COMMIT
    5) Here I select attributes from the object table, and select using the two member methods, note that my member methods fail miserably, and advice on fixing this would be much appreciated....
    select * from dealsobjtab aaa
    DEALID STARTDATE DEALTYPE FACEVALUE
    1 01/01/1968 NZD/NZD 500
    1 row selected
    select value(aaa).dealid from dealsobjtab aaa
    VALUE(AAA).DEALID
    1
    1 row selected
    select value(aaa).testint() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    select value(aaa).testme() from dealsobjtab aaa
    ORA-00932: inconsistent datatypes
    Phew, that was a long email, I hope you are still awake after all that. I have no idea how to solve this, and would really appreciate some advice to get me going.
    Yours Sincerely,
    Michael Cato

    But, i am receiving the error i have mentioned. is it depends on the java version also?
    Please suggest..

  • Creating  a static method returning Logger Object inside class

    Hello,
    Instead of creating Logger Instance in every class , can i do like this way by creating a static method in some class returning a Logger object , and using that method for getting instance of Logger in another class through that method
    Regards
    Mayur Mitkari

    On a related note, if you want to make it simpler, never do this:
    if (a == true)Instead, just do if (a)It's pointless and cluttersome to use == or != with true or false.
    // wrong
    if (a == true)
    if (a != false)
    // right
    if (a)
    // wrong
    if (a == false)
    if (a != true)
    // right
    if (!a)Also, note that
    if (x) {
      return true;
    else {
      return false;
    }can be simplified to return x;If you do that and change your variable to something a bit more meaningful, like trueCount or numTrue or something, your code would be
    int trueCount = 0;
    if (a) trueCount++;
    if (b) trueCount++;
    if (c) trueCount++;
    return trueCount >= 2;which is about as simple and clear as it can get, IMHO. Using less code doesn't necessarily make the code simpler or clearer. The idea is that someone reading the code can easily understand what it does.
    And note that the above can be easily generalized to "Are there at least M true values in this array/list of N booleans?" and still be concise and clear.

  • Error #3343 - XMLExporter Method 'Run' of object '_Application' failed ...

    Hi all,
    I am new to the Migration Workbench tool - so excuse me if I ask some silly questions.
    I have a MSAccess 2002 application with some tables and forms (plus macros) - When run the omwb2002.mde program (version 10.1.0.4.0) - select my mdb file, set the directories and press the "Export Database Schema" button I get an "Error #3343 - XMLExporter Method 'Run' of object '_Application' failed ..." error !
    No Files are created !
    Any help would be greatly appreciated

    Hi,
    You may be receiving the MS Access Error #3343 - Unrecognized database format for one of the following reasons:
    1. You are attempting to open an MS Access database in an older version of MS Access e.g opening a 2002 MDB file on a machine where MS Access 97 is installed.
    Ensure that the Exporter Tool version and the MS Access MDB file version all match the version of MS Access installed on your machine e.g. If attempting to export a 2002 MDB file, you should use the omwb2002.mde and have MS Access 2002 installed on the machine.
    2. You have a linked table to an Excel spreadsheet.
    The Exporter tool supports the extraction of linked tables where the link is to another MS Access database. Links to Excel spreadsheets should be removed prior to export. Make a copy of your MDB file, and remove any such links from the new copy. Then carry out the export.
    3. Your database is corrupt & needs to be repaired.
    From the MS Access menu bar, go to Tools | Database Utilities | Compact and Repair Database... to repair the MDB file.
    I hope this helps. If none of the above steps resolve your issue, please let me know.
    Regards,
    Hilary

  • Thread Methods but in Object class, y?

    Why wait, notify, notifyall methods are in object class instead of Thread class?

    thechad wrote:
    It's not clear to me why. Probably it's a historical artefact .. once it was in Object, it's hard to take it out.
    You're question is a fair question it seems to me. Maybe someone will tell you there's a good reason.Yes, there is a very good reason and it's not a historical artifact.
    wait / notify are used for locking in java. For instance, imagine you have a job queue, and you've got a whole bunch of worker threads that are getting jobs from it. What happens when the queue is empty and there are no more jobs? You want to wait for the queue to have more jobs. Then when a new job comes in, you want to notify any thread waiting that it can now proceed.
    In fact, with reference to why isn't this just handled in thread, it is dangerous and wrong to call wait, notify or notifyall on a Thread object... Thread.join calls wait on the thread and thread death calls notifyAll, but API docs don't guarentee this so you should avoid these methods in a Thread object.

  • Problem in jni getting object from methodst

    a want to save an object gatin from java and save it into my list in c code
    my probleme is when a call getobject more than one times it return null (in the first one it return the last object saved)
    i dont understand why
    this is my methods
    to add object in my list
    NIEXPORT void JNICALL Java_Matrice2_ajoutercell
    (JNIEnv *env, jobject obj, jint lig, jint col,jobject objectadded){
    AjouterCellule(objectadded ,lig,col,recupererAdresse(env,obj));
    // this is a method created to save the ovject in my list
    // ( in Ajoutercell a save my object like this
    List->element = val;
    struct list {....
    jobject val
    ]*list;
    the code work good if i use jint
    --- and this is the method to getobject
    JNIEXPORT jobject JNICALL Java_Matrice2_Getcell
    (JNIEnv *env, jobject obj , jint lig, jint col){
    return recuperercell(recupererAdresse(env,obj),lig,col);
    // the method recuperercell get the object from my list
    return List->valr;
    i hope that some one can understand my code and help me
    thanks ...

    i use newglobalref and it work ; but i have to delete every ref created when i delete or modify an object
    thanks to you

  • ORABPE-31015: Cannot get Object part 'Responses'. No parts are set message

    Hi All,
    I facing an issue while sending a email notification.
    [default/NotificationsBPMProject!1.0*soa_d31bba5a-2fb8-406a-aba3-f338ad25ff87.BPM-NotificationService]:sendEmailNotification Performing outbound request/response interaction..
    [2012-07-11T06:37:43.089-07:00] [AdminServer] [ERROR] [] [oracle.soa.services.notification] [tid: orabpel.engine.pool-11.thread-30] [userId: <anonymous>] [ecid: 11d1def534ea1be0:-1867a3ef:138757942e8:-8000-0000000000004582,1:23774] [APP: soa-infra] <.> Error while sending notification.[[
    Error while sending notification to email.
    Check the underlying exception and fix it.
    ORABPEL-31015
    Error while sending notification.
    Error while sending notification to email.
    Check the underlying exception and fix it.
         at oracle.bpel.services.notification.NotificationService.sendEmailNotification(NotificationService.java:475)
         at oracle.bpel.services.notification.NotificationService.sendEmailNotification(NotificationService.java:447)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at oracle.integration.wsif.providers.java.WSIFOperation_Java.executeRequestResponseOperation(WSIFOperation_Java.java:1048)
         at oracle.integration.platform.blocks.wsif.WsifReference.request(WsifReference.java:636)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:182)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:154)
         at sun.reflect.GeneratedMethodAccessor4653.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy316.request(Unknown Source)
         at oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:777)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:267)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1070)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:584)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:132)
         at oracle.bpm.bpmn.engine.model.runtime.microinstructions.MIInvoke.doExecute(MIInvoke.java:42)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MISequenceBlock.doExecute(MISequenceBlock.java:68)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.callMicroInstruction(MicroInstructionContext.java:201)
         at oracle.bpm.bpmn.engine.microkernel.MICall.doExecute(MICall.java:38)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MISequenceBlock.doExecute(MISequenceBlock.java:68)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.callMicroInstruction(MicroInstructionContext.java:201)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.callProcedure(MicroInstructionContext.java:208)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.executeProcedure(MicroInstructionContext.java:325)
         at oracle.bpm.bpmn.engine.model.runtime.MIBPMNActivityWMP.executeProcedure(MIBPMNActivityWMP.java:391)
         at oracle.bpm.bpmn.engine.model.runtime.MIBPMNActivityWMP.__executeStatements(MIBPMNActivityWMP.java:308)
         at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:166)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2687)
         at com.collaxa.cube.engine.CubeEngine._handleWorkItem(CubeEngine.java:1190)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1093)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:76)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:218)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:297)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4609)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4540)
         at com.collaxa.cube.engine.CubeEngine._expireActivity(CubeEngine.java:1562)
         at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:1477)
         at com.collaxa.cube.ejb.impl.CubeActivityManagerBean.expireActivity(CubeActivityManagerBean.java:82)
         at com.collaxa.cube.ejb.impl.CubeActivityManagerBean.expireActivity(CubeActivityManagerBean.java:57)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy413.expireActivity(Unknown Source)
         at oracle.bpm.bpmn.engine.ejb.impl.BPMNActivityManagerBean_eh2l9c_ICubeActivityManagerLocalBeanImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at oracle.bpm.bpmn.engine.ejb.impl.BPMNActivityManagerBean_eh2l9c_ICubeActivityManagerLocalBeanImpl.expireActivity(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:41)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:88)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:64)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at com.collaxa.cube.engine.dispatch.Dispatcher$ContextCapturingThreadFactory$2.run(Dispatcher.java:850)
         at java.lang.Thread.run(Thread.java:662)
    Caused by: javax.naming.NameNotFoundException: While trying to look up comp/env/ejb/services/NotificationServiceBean in /app/ejb/oracle.bpm.runtime.bpmn-engine-ejb.jar#BPMNActivityManagerBean.; remaining name 'comp/env/ejb/services/NotificationServiceBean'
         at weblogic.jndi.internal.BasicNamingNode.newNameNotFoundException(BasicNamingNode.java:1139)
         at weblogic.jndi.internal.ApplicationNamingNode.lookup(ApplicationNamingNode.java:144)
         at weblogic.jndi.internal.WLEventContextImpl.lookup(WLEventContextImpl.java:254)
         at weblogic.jndi.internal.WLContextImpl.lookup(WLContextImpl.java:412)
         at weblogic.jndi.factories.java.ReadOnlyContextWrapper.lookup(ReadOnlyContextWrapper.java:45)
         at weblogic.jndi.internal.AbstractURLContext.lookup(AbstractURLContext.java:130)
         at javax.naming.InitialContext.lookup(InitialContext.java:392)
         at oracle.bpel.services.notification.NotificationUtil.lookupLocalBean(NotificationUtil.java:577)
         at oracle.bpel.services.notification.NotificationService.sendEmailNotification(NotificationService.java:467)
         ... 84 more
    [2012-07-11T06:37:43.094-07:00] [AdminServer] [ERROR] [] [oracle.soa.wsif] [tid: orabpel.engine.pool-11.thread-30] [userId: <anonymous>] [ecid: 11d1def534ea1be0:-1867a3ef:138757942e8:-8000-0000000000004582,1:23774] [APP: soa-infra] WSIFBinding=> [default/NotificationsBPMProject!1.0*soa_d31bba5a-2fb8-406a-aba3-f338ad25ff87.BPM-NotificationService]:sendEmailNotification WSIF Exception occured. Please check stack trace Cannot get Object part 'Responses'. No parts are set on the message
    [2012-07-11T06:37:43.096-07:00] [AdminServer] [ERROR] [] [oracle.soa.bpmn.engine.ws] [tid: orabpel.engine.pool-11.thread-30] [userId: <anonymous>] [ecid: 11d1def534ea1be0:-1867a3ef:138757942e8:-8000-0000000000004582,1:23774] [APP: soa-infra] got RuntimeException[[
    oracle.fabric.common.FabricException: Cannot get Object part 'Responses'. No parts are set on the message
         at oracle.integration.platform.blocks.wsif.WsifReference.request(WsifReference.java:698)
         at oracle.integration.platform.blocks.mesh.SynchronousMessageHandler.doRequest(SynchronousMessageHandler.java:139)
         at oracle.integration.platform.blocks.mesh.MessageRouter.request(MessageRouter.java:182)
         at oracle.integration.platform.blocks.mesh.MeshImpl.request(MeshImpl.java:154)
         at sun.reflect.GeneratedMethodAccessor4653.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at oracle.integration.platform.metrics.PhaseEventAspect.invoke(PhaseEventAspect.java:71)
         at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy316.request(Unknown Source)
         at oracle.fabric.CubeServiceEngine.requestToMesh(CubeServiceEngine.java:781)
         at com.collaxa.cube.ws.WSInvocationManager.invoke(WSInvocationManager.java:267)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.__invoke(InvokeHandler.java:1070)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handleNormalInvoke(InvokeHandler.java:584)
         at com.collaxa.cube.engine.ext.common.InvokeHandler.handle(InvokeHandler.java:132)
         at oracle.bpm.bpmn.engine.model.runtime.microinstructions.MIInvoke.doExecute(MIInvoke.java:44)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MISequenceBlock.doExecute(MISequenceBlock.java:68)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.callMicroInstruction(MicroInstructionContext.java:201)
         at oracle.bpm.bpmn.engine.microkernel.MICall.doExecute(MICall.java:38)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MISequenceBlock.doExecute(MISequenceBlock.java:68)
         at oracle.bpm.bpmn.engine.microkernel.MIBase.execute(MIBase.java:34)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.callMicroInstruction(MicroInstructionContext.java:201)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.callProcedure(MicroInstructionContext.java:208)
         at oracle.bpm.bpmn.engine.microkernel.MicroInstructionContext.executeProcedure(MicroInstructionContext.java:325)
         at oracle.bpm.bpmn.engine.model.runtime.MIBPMNActivityWMP.executeProcedure(MIBPMNActivityWMP.java:391)
         at oracle.bpm.bpmn.engine.model.runtime.MIBPMNActivityWMP.__executeStatements(MIBPMNActivityWMP.java:358)
         at com.collaxa.cube.engine.ext.bpel.common.wmp.BaseBPELActivityWMP.perform(BaseBPELActivityWMP.java:166)
         at com.collaxa.cube.engine.CubeEngine.performActivity(CubeEngine.java:2687)
         at com.collaxa.cube.engine.CubeEngine._handleWorkItem(CubeEngine.java:1190)
         at com.collaxa.cube.engine.CubeEngine.handleWorkItem(CubeEngine.java:1093)
         at com.collaxa.cube.engine.dispatch.message.instance.PerformMessageHandler.handleLocal(PerformMessageHandler.java:78)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleLocalMessage(DispatchHelper.java:218)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.sendMemory(DispatchHelper.java:297)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4609)
         at com.collaxa.cube.engine.CubeEngine.endRequest(CubeEngine.java:4541)
         at com.collaxa.cube.engine.CubeEngine._expireActivity(CubeEngine.java:1562)
         at com.collaxa.cube.engine.CubeEngine.expireActivity(CubeEngine.java:1477)
         at com.collaxa.cube.ejb.impl.CubeActivityManagerBean.expireActivity(CubeActivityManagerBean.java:82)
         at com.collaxa.cube.ejb.impl.CubeActivityManagerBean.expireActivity(CubeActivityManagerBean.java:58)
         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
         at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:597)
         at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.oracle.pitchfork.spi.MethodInvocationVisitorImpl.visit(MethodInvocationVisitorImpl.java:34)
         at weblogic.ejb.container.injection.EnvironmentInterceptorCallbackImpl.callback(EnvironmentInterceptorCallbackImpl.java:54)
         at com.oracle.pitchfork.spi.EnvironmentInterceptor.invoke(EnvironmentInterceptor.java:42)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131)
         at com.bea.core.repackaged.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119)
         at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
         at com.bea.core.repackaged.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
         at $Proxy413.expireActivity(Unknown Source)
         at oracle.bpm.bpmn.engine.ejb.impl.BPMNActivityManagerBean_eh2l9c_ICubeActivityManagerLocalBeanImpl.__WL_invoke(Unknown Source)
         at weblogic.ejb.container.internal.SessionLocalMethodInvoker.invoke(SessionLocalMethodInvoker.java:39)
         at oracle.bpm.bpmn.engine.ejb.impl.BPMNActivityManagerBean_eh2l9c_ICubeActivityManagerLocalBeanImpl.expireActivity(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.instance.ExpirationMessageHandler.handle(ExpirationMessageHandler.java:41)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:140)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.process(BaseDispatchTask.java:88)
         at com.collaxa.cube.engine.dispatch.BaseDispatchTask.run(BaseDispatchTask.java:65)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:909)
         at com.collaxa.cube.engine.dispatch.Dispatcher$ContextCapturingThreadFactory$2.run(Dispatcher.java:850)
         at java.lang.Thread.run(Thread.java:662)
    Thanks,
    TK

    Only one user. Basically i have many notification activities, all of them are working but i have a notification activity in the UN-interrupting Boundary Event flow which is causing the issue.
    Thanks,
    TK

Maybe you are looking for

  • How do I remove over 2,000 emails at one time from iPhone

    When I upgraded my iPhone to 8.1 it downloaded all of my 2,200 past deleted emails from my Time Warner Cable account. I have deleted all of these from my TWC account. Now I need to erase them from my iPhone. All at one time. Instead of 4 at a time.

  • Can you connect 4k monitors to MBA?

    Is it possible to get the full 4k resolution from a 4k monitor connected to a mid 2013 MacBook Air(latest version of Mavericks)? Or do I need to purchase an external graphics card (or a MacBook Pro) perhaps? A mini display port to display port connec

  • Colors

    I am using a D70 and shooting in RAW. What ever color profile setting I use, adobe RGB 1989 or sRGB I get a color shift. This does not happen when I shoot in jpg. I do not have proofing turned on. A sample of what my colors look like in the aperture

  • LDAP BC QUESTION ABOUT OBJECT CLASSES

    Hi i am working with a bpel and its ldap-bc, when i create an entry in my ldap through the bpel it has all the object classes from the attributes i set. for example if i set cn and sn attributes then my entry has the object class person; i want to kn

  • Hard To Believe There Was Once a Raw vs. JPEG Debate

    There was a time when folks debated whether to shoot raw vs. setting their cameras to do the conversions internally and just deliver JPEGs.  This was not that many years ago! Now it's just so easy to bring up shadow detail, tame nearly blown highligh