Classcast exception which getting the ISendMailService instance.

Hi all,
I am getting classcast exception at the below line.
ISendMailService sendMailSvc = ResourceFactory.getInstance().getServiceFactory().getService(ISendMailService.SERVICE_ID);
Any clue.?? It was working fine. but suddenly getting this exception.
Regards,
Svia

Hi I have a WD with the same problem. I posted a thread
https://www.sdn.sap.com/irj/sdn/thread?threadID=117080
do you find any solution to this problem?

Similar Messages

  • Exception while getting the server instance. Stateless bean problem

    Hi,
    New to OC4J, I'm moving an ear that was running ok under jboss.
    1- The wep app deploys. This is a piece of code inside the init() method of a struts plugin:
         System.out.println("0");
         AddressFacadeHome addressFacadeHome = HomeFactory.getAddressFacadeHome();
         System.out.println("1.0");
         AddressFacade addressFacade = addressFacadeHome.create();
         System.out.println("1.5");
    2- The code is run when the web app is initialized. This is the error message I get. system.out show that the error occurs on addressFacadeHome.create().
    AddressFacade is a remote/local stateless bean. HomeFactory returns the jndi lookup/narrow of the remote object.
    0
    1.0
    caught exception while getting the server instance null
    java.lang.NullPointerException
    com.evermind.security.User com.evermind.server.ThreadState.getCurrentUser()
    ThreadState.java:637
    com.evermind.security.User com.evermind.server.ThreadState.getUser()
    ThreadState.java:371
    fda.common.address.ejb.interfaces.AddressFacade AddressFacadeHome_StatelessSessionHomeWrapper7.create(
    AddressFacadeHome_StatelessSessionHomeWrapper7.java:66
    void fda.web.oaa.struts.plugin.ApplicationInit.init(org.apache.struts.action.ActionServlet, org.apache
    .struts.config.ModuleConfig)
    void org.apache.struts.action.ActionServlet.initModulePlugIns(org.apache.struts.config.ModuleConfig)
    ActionServlet.java:1105
    void org.apache.struts.action.ActionServlet.init()
    ActionServlet.java:468
    void javax.servlet.GenericServlet.init(javax.servlet.ServletConfig)
    GenericServlet.java:258
    com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.loadServlet(com.
    evermind.util.ByteString)
    HttpApplication.java:1956
    com.evermind.server.http.ServletInstanceInfo com.evermind.server.http.HttpApplication.findServlet(com.
    evermind.util.ByteString)
    HttpApplication.java:4355
    void com.evermind.server.http.HttpApplication.initPreloadServlets()
    HttpApplication.java:4455
    void com.evermind.server.http.HttpApplication.initDynamic(com.evermind.server.http.HttpApplicationConf
    ig)
    HttpApplication.java:662
    void com.evermind.server.http.HttpApplication.<init>(com.evermind.server.Application, com.evermind.ser
    ver.http.HttpSite, com.evermind.server.http.HttpApplicationConfig, java.lang.String, java.lang.String, boolean
    My guess is that it's a jaas issue (because i see security and getCurrentUser), but at init time, no user is authenticated.
    Any clue would be very much appreciated. Let me know if I can provide anything else, such as deployment descriptors.
    Thanks,
    Christophe.

    After spending some time on this, I looked at the source code for com.evermind.server.ThreadState
    This is the code that throws the exception:
    if(applicationThread != null && applicationThread.httpHandler != null && applicationThread.servletInfo != null)
    try
    server = applicationThread.httpHandler.request.getApplication().getApplication().getServer();
    catch(Throwable t)
    System.out.println("caught exception while getting the server instance " + t.getMessage());
    t.printStackTrace(System.out);
    It looks like this method expects a httpRequest, and would find null because I'm in the servlet.init()
    (at least, that's my interpretation)
    I tested my code (the remoteFacade.create()) inside of a jsp, and it worked...
    So, the next logical question is:
    Can I make EJB calls from within the init method of a servlet? (or more specifically from a struts plugin, which I believe should be more or less the same thing)
    If so, do I need to take extra steps?
    Again, any experience/help on this will be much appreciated.
    Thanks,
    Christophe.

  • How to get the all instances in which I acted on any of the activity?

    Hi all,
    Consider that in a Process there are three Activities named
    1. Create Proposal Role : Initiator
    2. Routed to Primary Owner Approval Role : Primary Owner
    3. Routed to Manager Approval Role : Manager
    Suppose I'm a Participant having access to PrimaryOwner Role. Some X, Y, Z persons created 3 instances whcih is now in "Routed to Manager Approval" activity or completed. I acted only on 2 instances and the other some one else acted. How can i get the 2 instances in which i acted . What is the way to acheive this PAPI 6.0 or Stuio 6.0?
    Thanks in advance,
    Sana

    Doing something similar, using following code in a screenflow called from a global activity:
    ps = new ProcessService();
    ps.connectTo(url :Fuego.Server.directoryURL, user : "username", password : "password");
    InstanceFilter filter = ps.getFilterFor(viewId : "myHidView");
    filter.searchScope = SearchScope(participantScope : ParticipantScope.ALL, statusScope : StatusScope.ONLY_INPROCESS);
    // have tried the filter using both methods below
    //filter.setParametricValueTo(variable : "myvar", value : myDesiredVarValue);
    filter.addAttributeTo(variable : "myvar", comparator : Comparison.IS, value : myDesiredVarValue);
    instances = ps.getInstancesByFilter(filter : filter);
    I get the following error in the engine log:
    Unable to receive the message because of a serialization error. Caused by: fuegoblock.papi.Instance fuego.rmi.spi.SerializationException: Unable to receive the message because of a serialization error. at fuego.rmi.spi.BaseConnection.send(BaseConnection.java:101) at fuego.rmi.ServerCluster.send(ServerCluster.java:226) at fuego.rmi.ServerCluster.sendResult(ServerCluster.java:495) at fuego.rmi.ServerCluster.access$400(ServerCluster.java:50) at fuego.rmi.ServerCluster$1.put(ServerCluster.java:590) at fuego.component.ExecutionThread.sendResult(ExecutionThread.java:523) at fuego.component.ExecutionThreadContext.doClientInvoke(ExecutionThreadContext.java:668) at fuego.component.ClientRemoteComponent.doInvocation(ClientRemoteComponent.java:303) at fuego.component.ClientRemoteComponent.invoke(ClientRemoteComponent.java:160) at fuego.component.ExecutionRelayedThrowable.execute(ExecutionRelayedThrowable.java:94) at fuego.server.execution.TaskExecution.handleExecutionRelayedThrowable(TaskExecution.java:802) at fuego.server.execution.TaskExecution.handleComponentExecutionException(TaskExecution.java:753) at fuego.server.execution.TaskExecution.executeCIL(TaskExecution.java:493) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:677) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:638) at fuego.server.execution.TaskExecution.executeTask(TaskExecution.java:451) at fuego.server.execution.GlobalTaskExecution.executeGlobalCIL(GlobalTaskExecution.java:164) at fuego.server.execution.Global.continueCil(Global.java:68) at fuego.server.AbstractProcessBean$39.execute(AbstractProcessBean.java:2515) at fuego.server.execution.DefaultEngineExecution$AtomicExecutionTA.runTransaction(DefaultEngineExecution.java:291) at fuego.transaction.TransactionAction.startBaseTransaction(TransactionAction.java:462) at fuego.transaction.TransactionAction.startTransaction(TransactionAction.java:540) at fuego.transaction.TransactionAction.start(TransactionAction.java:213) at fuego.server.execution.DefaultEngineExecution.executeImmediate(DefaultEngineExecution.java:118) at fuego.server.execution.EngineExecution.executeImmediate(EngineExecution.java:66) at fuego.server.AbstractProcessBean.runGlobalActivity(AbstractProcessBean.java:2508) at sun.reflect.GeneratedMethodAccessor114.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at fuego.lang.JavaClass.invokeMethod(JavaClass.java:1477) at fuego.lang.JavaObject.invoke(JavaObject.java:185) at fuego.component.Message.process(Message.java:585) at fuego.component.ExecutionThread.processMessage(ExecutionThread.java:759) at fuego.component.ExecutionThread.processBatch(ExecutionThread.java:734) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:140) at fuego.component.ExecutionThread.doProcessBatch(ExecutionThread.java:132) at fuego.fengine.FEngineProcessBean.processBatch(FEngineProcessBean.java:257) at fuego.component.ExecutionThread.work(ExecutionThread.java:818) at fuego.component.ExecutionThread.run(ExecutionThread.java:397) Caused by: java.io.NotSerializableException: fuegoblock.papi.Instance at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at java.util.ArrayList.writeObject(Unknown Source) at sun.reflect.GeneratedMethodAccessor87.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at fuego.component.Message.writeObject(Message.java:665) at sun.reflect.GeneratedMethodAccessor93.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at fuego.component.Batch.writeObject(Batch.java:151) at sun.reflect.GeneratedMethodAccessor92.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at java.io.ObjectStreamClass.invokeWriteObject(Unknown Source) at java.io.ObjectOutputStream.writeSerialData(Unknown Source) at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source) at java.io.ObjectOutputStream.writeObject0(Unknown Source) at java.io.ObjectOutputStream.writeObject(Unknown Source) at fuego.rmi.Packet.write(Packet.java:251) at fuego.rmi.spi.BaseConnection.send(BaseConnection.java:98) ... 38 more
    Sorry for huge error message.
    Is there a trick to getting the filtered set of instances from in the screenflow activity?

  • OIM - Task Assignment Adapter - How to get the object instance key?

    Hello experts,
    I'm trying to use a task assignment adapter to assign an approval task dynamically. Basically, the user can request a resource like "CustomApp Profiles" and we create an object form to let them choose the profile that he needs. Each profile has an owner, which is populate in a Lookup (Owner is the code and Profile is the decode).
    So, in the approval task, I need to get the profile selected by user in the object form and search into the lookup who is the owner of that profile. But I don't know how can I get the object instance key using the parameters that can be mapped to a task assignment adapter.
    Looking into the OIM documents, I believe that the easier way is using the request key, because the REQ_KEY is a foreign key in OBI table.
    Did anyone knows how can I get the object instance key using the request key? Can I use some API or should I execute a SQL statement directly in OIM database?
    Best Regards,
    Nitto

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

  • How can I fix my mac mini g4 1.5ghz which gets the must reboot message?  what is the reason?

    How can I fix my mac mini g4 1.5ghz with 2gig ram which gets the must reboot message randomlly?  what is the reason?  Hard disk has no errors.

    Based on your description, you are having a kernel panic.
    Can you post some of your crash logs? Might be a clue. See Mac OS X: How to log a kernel panic http://support.apple.com/kb/HT2546
    Understanding crash logs isn’t easy and it’s hard (sometimes impossible) to decipher the cause of the problem. Take a look at Apple’s Crash Reporter document at http://developer.apple.com/technotes/tn2004/tn2123.html Also look at Tutorial: An introduction to reading Mac OS X crash reports
    http://www.macfixit.com/article.php?story=20060309075929717
    Kernel panics are usually caused by a hardware problem – frequently RAM, a USB device or a Firewire device. What external devices do you have connected? When trying to troubleshoot problems, disconnect all external devices except your monitor, keyboard and mouse. Do you experience the same problems?
    To eliminate RAM being the problem, Look at this link: Testing RAM @ http://guides.macrumors.com/Testing_RAM Then download & use Memtest & Ramber.
    Do you have an Apple Hardware Test disc (the AHT is on the Install/Restore DVD that came with your Mac)? Running the Apple Hardware Test in Loop Mode is an excellent troubleshooting step for finding intermittent hardware problems. It is especially useful when troubleshooting intermittent kernel panics. If Loop Mode is supported by the version of the Apple Hardware Test you are using, you run the Extended Test in Loop Mode by pressing Control-L before starting the test. Looping On should appear in the right window. Then click the Extended Test button.The test will run continuously until a problem is found. If a problem is found, the test will cease to loop, indicating the problem it found. If the test fails, be sure to write down the exact message associated with the failure.In some cases, RAM problems did not show up until nearly 40 loops, so give it a good run.
    May be a solution on one of these links.
    http://docs.info.apple.com/article.html?artnum=106227 What's a "kernel panic"? (Mac OS X)
    http://www.macmaps.com/kernelpanic.html Mac OS X Kernel Panic FAQ
    http://www.index-site.com/kernelpanic.html Mac OS X Kernel Panic FAQ
    http://www.thexlab.com/faqs/kernelpanics.html Resolving Kernel Panics
    http://www.macfixit.com/article.php?story=20060911080447777 Avoiding and eliminating Kernel panics
    http://macosg.com/group/viewtopic.php?t=800 12-Step Program to Isolate Freezes and/or Kernel Panics
     Cheers, Tom

  • Purchasing : Can we get the vo instance of retained AM true

    Hi,
    i need get the VO instance which is shuttled with one AM, but the PageLayout region of page having another AM which does not getting extended with any AM. but when i see in "about this page" link,
    page showing both AM's in the return AM list.
    retained AM list:
    oracle.apps.po.document.server.DocumentAM
    oracle.apps.po.tax.server.TaxAM
    oracle.apps.zx.taxintegration.appinteg.server.MaintainDetFactorsAM
    Used Code:
                      DocumentAMImpl localDocumentAMImpl=(DocumentAMImpl)paramOAPageContext.getApplicationModule(paramOAWebBean);
                      OAViewObjectImpl localOAViewObjectImpl1 =(OAViewObjectImpl)localDocumentAMImpl.findViewObject("PoHeaderMergeVO");
                      if(localOAViewObjectImpl1!=null)
                          GECMLogUtil.log(paramOAPageContext,"PoHeaderMergeVO Object Found");
                          localOAViewObjectImpl1.getCurrentRow().setAttribute("NoteToVendor",localOAViewObjectImpl.getCurrentRow().getAttribute("NoteToVendor")+" ");
                          GECMLogUtil.log(paramOAPageContext,"Appended space to note to vendor");
    Error Facing in page:
    ## Detail 0 ##
    java.lang.ClassCastException: oracle.apps.zx.taxintegration.appinteg.server.MaintainDetFactorsAMImpl cannot be cast to oracle.apps.po.document.server.DocumentAMImpl
    Could you please tell me how to get the VO instance.
    Regards,
    Ram

    Hi Gurus,
    Can anyone please reply for the above qstn whether we can get the vo instance for retained AM true?
    Regards,
    Ram

  • How to get the process instance key so as to retry a rejected task through api while ad provisoing?

    Hi All,
    How to get the process instance key so as to retry a rejected task through API while AD provisioing state?
    API URL - http://docs.oracle.com/cd/E27559_01/apirefs.1112/e28159/toc.htm
    Thanks

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

  • Unable to get the composite instance for the invocation. This could be because instance has not yet been created or because the audit level for the SOA infra has been set to Off

    I am on Oracle 11.1.1.7 BPM suite on W8 64 bit. I can't launch the flow trace and get the error "Unable to get the composite instance for the invocation. This could be because instance has not yet been created or because the audit level for the SOA infra has been set to Off".  I have set the audit level to development at the soa-infra>SOA Administration> Common Properties > Audit level set to development and Capture Composite Instance State is Checked.
    Can somebody advice.
    Thanks

    Can you please confirm me the following steps...
    Log in to the EM console, Expand soa-infra (soa_server1) , go to the partition where your composite is been deployed, Click on your composite, On the right, click on the dropdown Settings and choose Composite Audit Level. you can choose to set the Audit Level for this composite. If you choose Inherit, it will take the settings to what the server is being set to. Otherwise, we can override it by choosing Off, Production, or Development.
    Make sure your setting for that composite is not Off, keep inherit or production or development.
    Thanks,
    N

  • BPM an Mapping: Get the workflow instance number?

    Hi everybody,
    wen need in some cases the message-ID that was generated in message-mapping.
    But when I take this message-ID and try to find it via SXMB_MONI the message could'nt be found due to reasons I do not know.
    So now I would like to capture the BPM instance number. Is this possible in message-mapping?
    Thanks regards
    Mario

    I doubt you would be able to get the BPM instance no. However, I don't understand why u r facing problem with message ID.
    Regards,
    Prateek

  • Get the Process Instance as a process variable

    Hi,
    is there a way on a Workflow Process to get the process instance in order to save it as a process variable (and then store it via a backend call).
    In other words: I have many processes designed via NWDS Process Composer and I'd like to get the process instance ID in order to save it for faster retrieval of the process in the NWA's Manage Process application.
    Thank you,
    Pietro.

    Does it work if the process instance is already created?
    Can you give me an example?
    I've put as the first step of every workflow a callback method that is executed that calls an RFC to confirm, backend-side, that the process has been created.

  • How to get the activity instance id and process id

    Dear All,
    For my case, my boss require the workflow program processor can be runtime assigned . After research, I found the coding example like below:
    // dynamically assign a user to a role
    rtm.addRuntimeDefinedUserToRole(
                      // process instance
                      prInstance,
                      // role name
                      "Processor",
                      // user that is assigned (IUser)
                      user,
                      // user context (IGPUserContext)
                      userContext);
    // dynamically change the user assigned to a role for a particular task
    String prInstanceID = prInstance.getID();
    rtm.changeTaskProcessor(
                      // process instance ID
                      prInstanceID,
                      // activity instance ID
                      activityInstanceID,
                      // current user (IGPUserContext)
                      currentProcessorContext,
                      // new user (IGPUserContext)
                      newProcessorContext);
    But I don't know how to get the process instance ID and activity instance ID before I can apply this api in my webdynpro application.
    Any gentllement can give me an idea.
    Thank you.
    Regards
    Eric

    process =  GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                  // by specifying its ID "CCD2C3F1BED111DD9DFA005056A9416C",/
                                                 /* and the user accessing it */ userContext);
         //          retrieve the Runtime Manager
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         // create an empty role assignment list
         IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
         //Initialising the input params
         IGPStructure params =GPStructureFactory.getStructure(process.getInputParameters());
         params.setAttributeValue("Name",value);
         //Starting the process
         IGPProcessInstance prInstance = rtm.startProcess(process,"Process Name","Process name",user,roles,params,user);

  • Problem getting the # of instances in Numeric Field

    Hi there,
    I've created a form on which a user can add / duplicate the subform.  That subform is located in another subform.
    SO the hierarchy is like:
    Subform 1
         Subform 2
              Table with fields
         Delete button
    Add button
    Numeric Field
    The numeric field has to display the number of instances of Subform 2.
    I selected the field and added the code:
    Subform2.instancaManager.count;
    But that doesn't work at all. The field doesn't display anything.
    The subform has a minimal count of 1. So in my logic it should display 1. But I ain't a scripter at all...so frankly I must think of it in a wrong way.
    Can someone help me get this numeric field to calculate the subform2 instances? In dummy language please :-)

    Hi,
    Since the numeric field is outside Subform1, you have not provided a full enought reference from the numeric field to Subform2. See here for a description: http://assure.ly/kUP02y.
    This should work in the calculate event of the numeric field:
    this.rawValue = Subform1.Subform2.instanceManager.count;
    If the subform did not have a minimum count, then you would use the underscore shortcut for instanceManager _:
    this.rawValue = Subform1._Subform2.count;
    Both options are JavaScript. I prefer using the _ shortcut everytime I am working with repeating instances. 
    Hope that helps,
    Niall

  • Using RowID to get the first instance of a value in a table

    I have a table of the structure
    SECURITY(
    COMPANY_ID NUMBER,
    SECURITY_ID NUMBER,
    CUSIP
    One company can have many CUSIPs asociated with it and I want to find the best way to find any valid CUSIP for the company_id using PL/SQL.
    Here is my approach, I would like any other suggestions or comments.
    SELECT
    rowid INTO v_row_id
    FROM
    SECURITY
    where COMPANY_ID=v_company_id
    and rownum<2
    SELECT
    CUSIP INTO v_cusip
    FROM
    SECURITY
    where rowid=v_row_id

    Hello
    If you don't specify an order you will let oracle decide what the "first" row is. It may be the first row that was inserted, it could be the last, or it could be any other row for that company. If the execution plan for the query changes (or a number of other things) the first row returned could change. This may of course not matter to you at all but it's worth pointing out I think:
    create table dt_test_SECURITY(
    COMPANY_ID NUMBER,
    SECURITY_ID NUMBER,
    CUSIP varchar2(20)
    --generate some test data
    SQL> insert into dt_test_security select mod(rownum,200)+1,mod(rownum,10)+1,to_char(rownum) from dba_objects where rownum <2001;
    2000 rows created.
    SQL>
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1;
    CUSIP
    2000
    200
    400
    600
    800
    1000
    1200
    1400
    1600
    1800
    10 rows selected.
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1
      7  and
      8     rownum<2;
    CUSIP
    2000
    create index dt_test_security_idx2 on dt_test_security(company_id,cusip);
    exec dbms_stats.gather_table_stats(ownname=>user,tabname=>'DT_TEST_SECURITY',method_opt=>'FOR TABLE FOR ALL INDEXES FOR ALL INDEXED COLUMNS');
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1;
    CUSIP
    1000
    1200
    1400
    1600
    1800
    200
    2000
    400
    600
    800
    SQL> SELECT
      2     CUSIP
      3  FROM
      4     dt_test_SECURITY
      5  where
      6     COMPANY_ID=1
      7  and
      8     rownum<2;
    CUSIP
    1000If you use MAX(cusip), you will get the highest cusip against the company which is much more specific. Is that what you want? How are you intend to determin which is the first row, or doesn't it matter?
    HTH
    David

  • Get the process instance ID

    Hey,
    I've build a Process DC with subprocesses. I would like to retrieve my process instance ID, this way, when I am in a subprocess, I could still put a link to the diagram of the main process !
    Does anyone have any idea how to obtain it ?
    Any help would be appreciated!

    Hi Lynne,
    another question. Did you get the funtion "sendNotification()" running? At line push.pushSharedItem(procon, item, users); I get the error "null null"
    I already checked objects and they seems to be created correct. Might there be any attribute wrong due to the fact that this example is originally for CE 7.0?
    //Setup connection
    IUWLService uwlService = findService();
    final int sessionIdleTimeout = 60;
    UWLContext uwlContext = new UWLContext();
    IWDClientUser clientUser;
    clientUser = WDClientUser.getLoggedInClientUser();
    IUser user = clientUser.getSAPUser();
    uwlContext.setUser(user);
    uwlContext.setLocale(Locale.getDefault());
    IUWLSession uwlSession;
    uwlSession = uwlService.beginSession(uwlContext, sessionIdleTimeout);
    uwlContext.setSession(uwlSession);
    IUWLItemManager itemManager = uwlService.getItemManager(uwlContext);
    //Setup provider conn
    IPushChannel push = uwlService.getPushChannel();
    IProviderConnector procon = uwlService.getRegisterProviderConnector(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID);
    IUserFactory usf = UMFactory.getUserFactory();
    IUser sendToUser = usf.getUserByLogonID(wdContext.nodeNotifData().currentNotifDataElement().getUserId());
    //Setup item
    Item item = new Item(IProviderConnector.ADHOC_WORKFLOW_CONNECTOR_ID,IProviderConnector.ADHOC_WORKFLOW_SYSTEM, "" + new Date().getTime(), sendToUser.getUniqueID());
    item.setUser(sendToUser.getUniqueID());
    item.setSubject(wdContext.nodeNotifData().currentNotifDataElement().getSubject());
    item.setDescription(wdContext.nodeNotifData().currentNotifDataElement().getDescription());
    item.setItemType(ItemType.UWL_ITEM_NOTIFICATION);
    item.setCreatedDate(new Date());
    // item.setDueDate(new Date());
    item.setCreatorId(user.getUniqueID());
    item.setStatus(StatusEnum.NEW);
    item.setCompletedDate(new Date());
    // External Type is used to filter the notifications according to
    // application
    item.setExternalType("UWLNotification");
    //Send item
    Set users = new HashSet();
    users.add(sendToUser.getUniqueID());
    // users.add("USER.PRIVATE_DATASOURCE.un:testuser1");
    push.pushSharedItem(procon, item, users);
    wdComponentAPI.getMessageManager().reportSuccess("Notification Sent");
    Regards

  • StackOverFlow Exception while getting the context

    Here is my problem.
    Environment : WLS 4.5.1 SP 9
    We are hosting a set of servlets in our environment. We started seeing problems in the recent past that after sometime, WLS Server throws StackOverFlow Exception for getInitialContext:
    getInitialContext method :
    private Context getInitialContext(String urlValue) throws Exception {
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.T3InitialContextFactory");
    p.put(Context.PROVIDER_URL, urlValue);
    return new InitialContext(p);
    The service runs for 2 to 3 hours, after all of a sudden, it fails with the following exception.
    Our service fails at different place in our application, but all related to getting the initial context.
    Any help would be appreciated.
    Thanks
    Siva
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.lang.System.getProperty(Compiled Code)
    at weblogic.jndi.Environment.getProperty(Compiled Code)
    at weblogic.jndi.Environment.getProviderClient(Compiled Code)
    at weblogic.jndi.Environment.getSecurityUser(Compiled Code)
    at weblogic.jndi.toolkit.WLContextStub.<init>(Compiled Code)
    at weblogic.common.internal.ClassTableEntry.newInstance(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compiled Code)
    at weblogic.rmi.extensions.AbstractInputStream2.readObject(Compiled Code)
    at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Compiled Code)
    at weblogic.jndi.internal.RemoteContextFactoryImpl_ServiceStub.getContext(Compiled Code)
    at weblogic.jndi.WLInitialContextFactory.newContext(Compiled Code)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
    at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
    at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
    at javax.naming.InitialContext.<init>(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBean.getInitialContext(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBean.getPutSchedule(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBeanEOImpl.getPutSchedule(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBeanEOImpl_ServiceStub.getPutSchedule(Compiled Code)
    at sbs.ebservices.servlet.GetPutSchedule.doPost(Compiled Code)
    at sbs.ebservices.servlet.EBServletAdaptor.doGet(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)

    We are using JDK117.
    Rob Woollen <[email protected]> wrote:
    What JDK are you using? The stack overflow occurs in JDK code not WLS
    code.
    -- Rob
    Sivakumar Anna wrote:
    Here is my problem.
    Environment : WLS 4.5.1 SP 9
    We are hosting a set of servlets in our environment. We started seeing problems in the recent past that after sometime, WLS Server throws StackOverFlow Exception for getInitialContext:
    getInitialContext method :
    private Context getInitialContext(String urlValue) throws Exception {
    Properties p = new Properties();
    p.put(Context.INITIAL_CONTEXT_FACTORY, "weblogic.jndi.T3InitialContextFactory");
    p.put(Context.PROVIDER_URL, urlValue);
    return new InitialContext(p);
    The service runs for 2 to 3 hours, after all of a sudden, it fails with the following exception.
    Our service fails at different place in our application, but all related to getting the initial context.
    Any help would be appreciated.
    Thanks
    Siva
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.util.Properties.getProperty(Compiled Code)
    at java.lang.System.getProperty(Compiled Code)
    at weblogic.jndi.Environment.getProperty(Compiled Code)
    at weblogic.jndi.Environment.getProviderClient(Compiled Code)
    at weblogic.jndi.Environment.getSecurityUser(Compiled Code)
    at weblogic.jndi.toolkit.WLContextStub.<init>(Compiled Code)
    at weblogic.common.internal.ClassTableEntry.newInstance(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readLeftover(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectBody(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readObject(Compiled Code)
    at weblogic.common.internal.WLObjectInputStreamBase.readObjectWL(Compiled Code)
    at weblogic.rmi.extensions.AbstractInputStream2.readObject(Compiled Code)
    at weblogic.jndi.internal.RemoteContextFactoryImpl_WLStub.getContext(Compiled Code)
    at weblogic.jndi.internal.RemoteContextFactoryImpl_ServiceStub.getContext(Compiled Code)
    at weblogic.jndi.WLInitialContextFactory.newContext(Compiled Code)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
    at weblogic.jndi.WLInitialContextFactory.getInitialContext(Compiled Code)
    at javax.naming.spi.NamingManager.getInitialContext(Compiled Code)
    at javax.naming.InitialContext.getDefaultInitCtx(Compiled Code)
    at javax.naming.InitialContext.<init>(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBean.getInitialContext(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBean.getPutSchedule(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBeanEOImpl.getPutSchedule(Compiled Code)
    at sbs.ebservices.EBTBean.server.EBTBeanEOImpl_ServiceStub.getPutSchedule(Compiled Code)
    at sbs.ebservices.servlet.GetPutSchedule.doPost(Compiled Code)
    at sbs.ebservices.servlet.EBServletAdaptor.doGet(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at javax.servlet.http.HttpServlet.service(Compiled Code)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at weblogic.servlet.internal.ServletContextImpl.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.invokeServlet(Compiled Code)
    at weblogic.socket.MuxableSocketHTTP.execute(Compiled Code)
    at weblogic.t3.srvr.ExecuteThread.run(Compiled Code)

Maybe you are looking for

  • Java with MYSQL in Linux

    i am using JSP in Linux Platform. when i connected to mysql with mysql driver for odbc by using the following code, import java.sql.*; public class TestMysql public static void main(String args[]) { try {           Connection con;           String co

  • My MBP won't detect a projector even when I reboot the system.

    I can connect to a monitor, so I know the adapter and cable are working, and my old HP will connect to the projector so I know it's not the projector, but my MBP will not even detect that a projector is connected..  I have tried multiple projectors a

  • List output to PDF download

    Hi experts, Is there other way that a list output screen can be saved in PDF without using spool ? I am working on the report that using the code "write: " , and the report output in list.  I am searching the solution to save the output list in PDF f

  • Why does dictation stop working?

    worked great and then nothing - .need restart often?  no pattern i can figure out-.[speakable items is fine] imac2009, osx10.8.5

  • Can't find the constructor

    i have the following code   static java.lang.Comparable [] d;   //a constructor to fill up the d array   sortingClass(java.lang.Comparable data[]) {     d = data;   int findLargest() {     java.lang.Comparable largestSoFar = d[0];     int where = 0;