Starting GP Process through Webdynpro

Hello,
I started a GP Process through the Webdynpro code in the wdDoInit() method of the Component Controller......the process is getting started since i see a workitem for it in the worklist but i don;t see the options to Attach Documents and GP Left Contextual Panel....it just opens up as a normal Webdynpro Application.....am i missing anything....?
Any help would be highly appreciated.
Regards,
Anil

Hello,
I started a GP Process through the Webdynpro code in the wdDoInit() method of the Component Controller......the process is getting started since i see a workitem for it in the worklist but i don;t see the options to Attach Documents and GP Left Contextual Panel....it just opens up as a normal Webdynpro Application.....am i missing anything....?
Any help would be highly appreciated.
Regards,
Anil

Similar Messages

  • Start GP Process through Webdynpro using GP APIs

    Hello,
    I am using GP APIs to start my process programatically in webdynpro using the link :
    http://help.sap.com/SAPHELP_NW70EHP1/helpdata/EN/33/198141f906040de10000000a1550b0/frameset.htm
    The first screen is a Webdynpro For Java Callable Object which has a Submit button ...on the click of this button i have written the code to start the process.....the process is getting started alright which i checked in NWA -> Guided Procedures -> Process Instance...but then it does not move to the next screen.....but just stays there........the structure params i am sending as blank since my process does not expose any input parameters.(as specified in the Library)....
    Any help would be highly appreciated...
    Regards,
    Anil

    Hi,
    Try this code:
    //@@begin startProcess()
         wdContext.currentContextElement().setProcessID("/Process ID of GP process/");
         IUser adminUser = null;
         IUser userRequesterUser = null;
         try {
              IWDClientUser clientUser = null;
              try {
                   clientUser = WDClientUser.getCurrentUser();
              } catch (WDUMException e) {
                   // TODO Auto-generated catch block
                   e.printStackTrace();
              IUser user = clientUser.getSAPUser();
              String loginUser = user.getUniqueName();
              adminUser = UMFactory.getUserFactory().getUserByLogonID(/*Owner of process */);
              userRequesterUser = UMFactory.getUserFactory().getUserByLogonID(loginUser);
         } catch (UMException e1) {
              wdComponentAPI.getMessageManager().reportException("UME ERR " + e1.getMessage(),true);
              // TODO Auto-generated catch block
              e1.printStackTrace();
         try {
              IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(adminUser);
              IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(wdContext.currentContextElement().getProcessID(), userContext);
              IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
              int rolenum = process.getRoleInfoCount();
              String strRoleName = "";
              IGPStructure userStruct = null;
              // iterate over the required roles
              for (int i = 0; i < rolenum; i++) {
                   // create a new role instance by specifying the role's unique name
                   IGPProcessRoleInstance roleInstance = roles.createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                   strRoleName = process.getRoleInfo(i).getRoleName();
    //               wdComponentAPI.getMessageManager().reportSuccess("Roles - " + process.getRoleInfo(i).getRoleName());
                   // add a user to the role instance
                   if (strRoleName.startsWith("Requester")) {
                        roleInstance.addUser(userRequesterUser);
                   } else if (strRoleName.startsWith("role.")) {
                        roleInstance.addUser(adminUser);
                   Collection users = roleInstance.getUserAsCollection();
                   IUser usr = null;
                   Iterator ietr = users.iterator();
                   while (ietr.hasNext()) {
                        usr = (IUser) ietr.next();
                   roles.addProcessRoleInstance(roleInstance);
              //add values to the input parameters of the process
              IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
              params.setAttributeValue("/*Parameter Group Name of Process /", /Value to be passed*/);
              IGPProcessInstance prInstance = rtm.startProcess(process, "/Name of Process/", "This process has been started using the GP public API", userRequesterUser, roles, params, userRequesterUser);
         catch (ConnectionException e) {
               //TODO Auto-generated catch block
              e.printStackTrace();
         } catch (CommandException e) {
               //TODO Auto-generated catch block
              e.printStackTrace();
         } catch (GPInvocationException e12) {
              wdComponentAPI.getMessageManager().reportException("Invok ERR " + e12.getMessage(),true);
               //TODO Auto-generated catch block
              e12.printStackTrace();
         } catch (GPEngineException e2) {
              wdComponentAPI.getMessageManager().reportException("Invok ERR 2 " + e2.getMessage(),true);
               //TODO Auto-generated catch block
              e2.printStackTrace();
    //@@end
    Regards,
    Niraj
    Edited by: Niraj Kumar on Dec 4, 2009 8:32 AM

  • Random SP2 error when starting oracle process through SHELL script

    Hi All,
    I am trying to process data in n-Number of tables through a package. The package is called through a shell script to create start data processing. All calls to the package are in a sql script which is basically exec calls-
    exec package.process ('T1','some param');
    exec package.process ('T1','some param');
    exec package.process ('T..n','some param');
    I have a shell script which I use to execute commands from the sql script. There is a reason behind using shell script. For some strange reason, I keep on getting -
    ERROR: logon denied - check for valid user with valid privileges
    SP2-0640: Not connected
    SP2-0641: "EXECUTE" requires connection to server
    SP2-0640: Not connected
    for some EXEC calls. Problem is, errors are generated at random. So in one run, I get error for T10,T11 and then in next run I might get for some other tables.
    However, when I am running the sql script from the sql prompt, all calls to the package are executed without any problem.
    This makes me think, it is something to do with the way database connection being initiated through UNIX.
    Has anyone faced similar issue? Your help/gudence is much appreciated.
    DB: Oracle 10.2.0.5
    OS: SUN Solaris 10
    Thanks in advance.

    Login credentials are provided inside the shell script.
    I did put a sleep(10) after EOF but no help. As mentioned if I run script file from sql promt, it runs without any hiccup. So it is the connection through the UNIX that is causing issue.
    As pointed out by Sybrand, I agree that it does not make a sense to connect and commit after every sql statement. So decided to change the shell script and so far, the result from my initial tests on a sample data is quite encouraging. Hopefully I will have a solution.
    But it will be nice to know why SHELL is doing what it is doing!!
    Legacy prog are sometime big time eye-openers..;)

  • To start the process by external program.

    I'm using Guided Procedure
    I want to start GP Process from external program.
    I've tried Java API and it worked well.
    But, I'm looking for the other way that starts Process of GP (ex, Web Service, URL,,,?)
    Please let me know how to start processes.
    Best regards,
    Koji

    Hi,
    Yes. You can start a process through a web services that can be triggered from a method in a class or FM etc.
    You can refer this link that has a step by step process for the same.
    http://help.sap.com/erp2005_ehp_03/helpdata/EN/44/44c59fd7c72e84e10000000a155369/frameset.htm
    Hope this helps.
    Cheers,
    Mandrake

  • Problem in Starting a GP Process from Webdynpro Code

    Hi Experts
    I have a problem in starting a GP Process from webdynpro code. I have imported the following used DCs in my Webdynpro DC
    caf/eu/gp/api/wd
    caf/eu/gp/api (external)
    com.sap.security.api.sda
    Once I deploy I get the following error. No Syntax, Build errors in the application.
    java.lang.NoClassDefFoundError: com/sap/caf/eu/gp/process/rt/api/IGPRuntimeManager
    I have used the following code to start the GP Process - getUserDetails Context is of type IUser
              //Starting GP Process
    try {
    IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
    IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
    IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(
         wdContext.currentContextElement().getUserDetails());
    IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                        "00A897714C5A11DE8E33005056A260C3", userContext);
    IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
    IGPProcessInstance prInstance = rtm.startProcess(process,
                        "New User Registration Process",
                        "New User Registration Process",
                        wdContext.currentContextElement().getUserDetails(),
                        roles,
                        params,
                        wdContext.currentContextElement().getUserDetails());
    } catch (Exception e) {
         e.printStackTrace();
    Please do the needful EXPERTS.
    FYI... SP17
    Thank you
    Best Regards
    Ramamoorthy D

    Hi Ram,
    You have to add Library reference to your DC.
    in the context menu of your DC select
    properties->webdynproReferences->LibraryReference
    add sap.com/cafeugp~api as refernce.
    I hope this will solve your problem.
    Regards,
    Rajesh

  • Error when starting a Process

    Hi everyone,
    I am using NetWeaver 7.0 SP13, and I am trying to start a process that was created previously, however I get the following exception:
    com.sap.caf.eu.gp.exception.api.GPEngineException: Error filling role role.administrator of role type 3 during instantiation at
    com.sap.caf.eu.gp.process.rt.impl.GPRuntimeManager.checkRoleList(GPRuntimeManager.java:307) at
    com.sap.caf.eu.gp.process.rt.impl.GPRuntimeManager.startProcess(GPRuntimeManager.java:125) at
    com.sap.test.process.StartProcess.startProcess(StartProcess.java:311) at
    com.sap.test.process.wdp.InternalStartProcess.startProcess(InternalStartProcess.java:153) at
    com.sap.test.process.view.StartProcessView.onActionstartProcess(StartProcessView.java:145) at
    com.sap.test.process.view.wdp.InternalStartProcessView.wdInvokeEventHandler(InternalStartProcessView.java:140)
    at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:87) at om.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:67) at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doHandleActionEvent(WindowPhaseModel.java:420) at
    com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:132) at
    Here is the code I´m using, the line that rises the exception is this:
    rtm.startProcess(process,
                             "API test by me", "This process has been started by me... :p",
                             user, roles, params, user);
    The error reported above is " role role.administrator of role type 3" which I do not understand or found information
    about it on help.sap.com.
              IWDClientUser wdUser = WDClientUser.getCurrentUser();
              user = wdUser.getSAPUser();
              IGPUserContext userContext2 = GPContextFactory.getContextManager().createUserContext(user);
              IGPProcess process =GPProcessFactory.getDesigntimeManager().getActiveTemplate( processId, userContext2 );
              IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
              int rolenum = process.getRoleInfoCount();
              for (int i = 0; i < rolenum; i++) {
                   IGPProcessRoleInstance roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                   roleInstance.addUser(user);
                   roles.addProcessRoleInstance(roleInstance);
              params = GPStructureFactory.getStructure(process.getInputParameters());
              wdComponentAPI.getMessageManager().reportSuccess( params.toString() );
              String name = process.getAdminRole().getRoleName();
              IGPProcessRoleInstance roleInstance = roles.createProcessRoleInstance(name);
              roleInstance.addRuntimeDefinedUser(user);
              roles.addProcessRoleInstance(roleInstance);
              Date date2 = new Date();
              params.setAttributeValue("data", date2);
              rtm.startProcess(process,
                             "API test by me", "This process has been started by me... :p",
                             user, roles, params, user);
    Thanks in advance!
    Cheers,
    Francisco

    -> press '''CTRL''' + '''SHIFT''' + '''ESC''' to Open Task Manager -> Processes tab -> right-click '''firefox.exe''' and click '''End Process Tree''' -> close Task Manager
    Troubleshooting extensions and themes
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20extensions%20and%20themes
    Troubleshooting plugins
    * https://support.mozilla.com/en-US/kb/Troubleshooting%20plugins
    Check and tell if its working.

  • A lot of problem for an error: Cannot start Managed Server through NM

    Hi, all. Thank for coming here.
    My main problem is cannot start Manager server through Node Manager. I've configured with the same way on my friend's network and It's works but It's wrong with mine.
    my weblogic domain:
    Machine 1: Administration Server + 1 Managed server
    Machine 2: 1 Managed server
    all of these servers communicate through SSL protocol. When I try to start Managed Server on remote machine:
    output from console which was invoked startWebLogic.sh
    +<Sep 9, 2010 12:09:53 PM> <INFO> <devdomain> <MS01> <Server failed during startup so will not be restarted>+
    Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.ServerManager log
    INFO: Server failed during startup so will not be restarted
    +<Sep 9, 2010 12:09:53 PM> <WARNING> <Exception while starting server 'MS01'>+
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.Handler handleStart
    WARNING: Exception while starting server 'MS01'
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    And this is MS01 log:
    starting weblogic with Java version:
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    +JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]+
    The application has requested the JVM to exit with an fatal error from JNI. Error message:
    JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    Starting WLS with line:
    +/opt/Oracle/Middleware/jrockit_160_14_R27.6.5-32/bin/java -jrockit -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8453,server=y,suspend=n -Djava.compiler=NONE -Xms512m -Xmx512m -Dweblogic.Name=MS01 -Djava.security.policy=/opt/Oracle/Middleware/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.system.BootIdentityFile=/opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/data/nodemanager/boot.properties -Dweblogic.nodemanager.ServiceEnabled=true -Dweblogic.security.SSL.ignoreHostnameVerification=true -Dweblogic.ReverseDNSAllowed=false -Xrs -Xverify:none -ea -da:com.bea... -da:javelin... -da:weblogic... -ea:com.bea.wli... -ea:com.bea.broker... -ea:com.bea.sbconsole... -Dplatform.home=/opt/Oracle/Middleware/wlserver_10.3 -Dwls.home=/opt/Oracle/Middleware/wlserver_10.3/server -Dweblogic.home=/opt/Oracle/Middleware/wlserver_10.3/server -Dweblogic.wsee.bind.suppressDeployErrorMessage=true -Dweblogic.wsee.skip.async.response=true -Dweblogic.management.discover=false -Dweblogic.management.server=http://192.168.1.35:7001 -Dwlw.iterativeDev=true -Dwlw.testConsole=true -Dwlw.logErrorsToConsole=true -Dweblogic.ext.dirs=/opt/Oracle/Middleware/patch_wls1032/profiles/default/sysext_manifest_classpath:/opt/Oracle/Middleware/patch_wlp1032/profiles/default/sysext_manifest_classpath:/opt/Oracle/Middleware/wlportal_10.3/p13n/lib/system:/opt/Oracle/Middleware/wlportal_10.3/light-portal/lib/system:/opt/Oracle/Middleware/wlportal_10.3/portal/lib/system:/opt/Oracle/Middleware/wlportal_10.3/info-mgmt/lib/system:/opt/Oracle/Middleware/wlportal_10.3/analytics/lib/system:/opt/Oracle/Middleware/wlportal_10.3/apps/lib/system:/opt/Oracle/Middleware/wlportal_10.3/info-mgmt/deprecated/lib/system:/opt/Oracle/Middleware/wlportal_10.3/content-mgmt/lib/system -Dweblogic.alternateTypesDirectory=/opt/Oracle/Middleware/wlportal_10.3/portal/lib/security weblogic.Server+
    ERROR: transport error 202: bind failed: Address already in use
    ERROR: JDWP Transport dt_socket failed to initialize, TRANSPORT_INIT(510)
    +JDWP exit error AGENT_ERROR_TRANSPORT_INIT(197): No transports initialized [../../../src/share/back/debugInit.c:690]+
    The application has requested the JVM to exit with an fatal error from JNI. Error message:
    JDWP No transports initialized, jvmtiError=AGENT_ERROR_TRANSPORT_INIT(197)
    Stopping PointBase server...
    PointBase server stopped.
    And this is output from console which node manager runs on:
    +<Sep 9, 2010 12:09:53 PM> <INFO> <devdomain> <MS01> <Server failed during startup so will not be restarted>+
    Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.ServerManager log
    INFO: Server failed during startup so will not be restarted
    +<Sep 9, 2010 12:09:53 PM> <WARNING> <Exception while starting server 'MS01'>+
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    Sep 9, 2010 12:09:53 PM weblogic.nodemanager.server.Handler handleStart
    WARNING: Exception while starting server 'MS01'
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    I tried to start Managed server some times again, but I face up to strange issue, this is output from console which Admin Server runs on (these exception messages throws continuously):
    +<Sep 9, 2010 12:42:53 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "portalDataSourceNeverXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
    +<Sep 9, 2010 12:42:57 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgDataSource": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
    +<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "cgDataSource-nonXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
    +<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "p13nDataSource": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
    +<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "portalDataSource": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
    +<Sep 9, 2010 12:42:58 PM EDT> <Warning> <JDBC> <BEA-001129> <Received exception while creating connection for pool "portalDataSourceAlwaysXA": SQL-server rejected establishment of SQL-connection. Pointbase Server may not be running on localhost at port 9093.>+
    I can ensure that all of these connection pool has configured to run on 9093 port already. Then I view the DOMAIN_NAME/pointbase.log, it said:
    Unable to start the server. start server error: java.net.BindException: Address already in use
    I cannot understand what's run on pointbase address ?
    All of these error make me angry, because I've configured with the same way on other system and It's work. I've spent all of week to fix these bug, but I'm having nothing :((
    Please help me.

    Thank Jay SenSharma.
    I've looked for these JAVA_OPTION values you said, but I cant found them. That value is content of JAVA_DEBUG option, not JAVA_OPTION. In my situation, JAVA_DEBUG=" " (it's not set by default).
    Please re-view my error log:
    Node Manager output:
    +<Sep 9, 2010 11:32:44 PM> <WARNING> <Exception while starting server 'MS01'>+
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    Sep 9, 2010 11:32:44 PM weblogic.nodemanager.server.Handler handleStart
    WARNING: Exception while starting server 'MS01'
    java.io.IOException: Server failed to start up. See server output log for more details.
    at weblogic.nodemanager.server.ServerManager.start(ServerManager.java:331)
    at weblogic.nodemanager.server.Handler.handleStart(Handler.java:541)
    at weblogic.nodemanager.server.Handler.handleCommand(Handler.java:118)
    at weblogic.nodemanager.server.Handler.run(Handler.java:70)
    at java.lang.Thread.run(Thread.java:619)
    Managed server MS01's log:
    +<Sep 9, 2010 11:45:05 PM> <INFO> <NodeManager> <Server output log file is '/opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.out'>+
    +<Sep 9, 2010 11:45:07 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with BEA JRockit(R) Version R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-ia32 from BEA Systems, Inc.>+
    +<Sep 9, 2010 11:45:09 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server Temporary Patch for 9216172 Tue Jan 12 02:07:27 PST 2010+
    WebLogic Server 10.3.2.0  Tue Oct 20 12:16:15 PDT 2009 1267925 >
    +<Sep 9, 2010 11:45:13 PM EDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing /opt/Oracle/Middleware/user_projects/domains/devdomain/config/config.xml - Invalid xsi:type qname: 'wsrp:wsrp-identity-asserterType' in element realm@http://xmlns.oracle.com/weblogic/domain>+
    +<Sep 9, 2010 11:45:13 PM EDT> <Error> <Management> <BEA-141244> <Schema validation errors while parsing /opt/Oracle/Middleware/user_projects/domains/devdomain/config/config.xml - /opt/Oracle/Middleware/user_projects/domains/devdomain/<unknown>:11:9: error: failed to load java type corresponding to t=wsrp-identity-asserterType@http://www.bea.com/ns/wlp/90/security/wsrp>+
    +<Sep 9, 2010 11:45:14 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to STARTING>+
    +<Sep 9, 2010 11:45:14 PM EDT> <Info> <WorkManager> <BEA-002900> <Initializing self-tuning thread pool>+
    +<Sep 9, 2010 11:45:14 PM EDT> <Notice> <LoggingService> <BEA-320400> <The log file /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log will be rotated. Reopen the log file if tailing has stopped. This can happen on some platforms like Windows.>+
    +<Sep 9, 2010 11:45:14 PM EDT> <Notice> <LoggingService> <BEA-320401> <The log file has been rotated to /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log00002. Log messages will continue to be logged in /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log.>+
    +<Sep 9, 2010 11:45:14 PM EDT> <Notice> <Log Management> <BEA-170019> <The server log file /opt/Oracle/Middleware/user_projects/domains/devdomain/servers/MS01/logs/MS01.log is opened. All server side log events will be written to this file.>+
    +<Sep 9, 2010 11:45:17 PM EDT> <Error> <Security> <BEA-090870> <The realm "myrealm" failed to be loaded: weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory". See the nested exception for details..+
    weblogic.security.service.SecurityServiceException: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory".  See the nested exception for details.
    +     at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:342)+
    +     at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: com.bea.common.engine.ServiceInitializationException: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory".  See the nested exception for details.
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:365)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)+
    +     at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)+
    +     at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal internal error> org.apache.openjpa.util.InternalException: There was an error when invoking the static getInstance method on the named factory class "kodo.jdbc.kernel.KodoJDBCBrokerFactory".  See the nested exception for details.
    +     at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:95)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate$StoreSerivceHelper.getPersistenceManagerFactory(StoreServiceDelegate.java:347)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:145)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)+
    +     at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)+
    +     Truncated. see log file for complete stacktrace+
    Caused By: java.lang.RuntimeException: There were errors initializing your configuration: <openjpa-1.1.1-SNAPSHOT-r422266:807362 fatal store error> org.apache.openjpa.util.StoreException: com.pointbase.jdbc.jdbcUniversalDriver
    +     at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:123)+
    +     at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.createConnectionFactory(JDBCConfigurationImpl.java:776)+
    +     at org.apache.openjpa.jdbc.conf.JDBCConfigurationImpl.getConnectionFactory(JDBCConfigurationImpl.java:683)+
    +     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 org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:288)+
    +     at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)+
    +     at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)+
    +     at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)+
    +     at kodo.jdbc.kernel.KodoJDBCBrokerFactory.getInstance(KodoJDBCBrokerFactory.java:43)+
    +     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 org.apache.openjpa.kernel.Bootstrap.invokeFactory(Bootstrap.java:124)+
    +     at org.apache.openjpa.kernel.Bootstrap.getBrokerFactory(Bootstrap.java:90)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate$StoreSerivceHelper.getPersistenceManagerFactory(StoreServiceDelegate.java:347)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate.initJDO(StoreServiceDelegate.java:145)+
    +     at com.bea.common.security.storeservice.util.StoreServiceDelegate.<init>(StoreServiceDelegate.java:98)+
    +     at com.bea.common.security.internal.service.StoreServiceImpl.init(StoreServiceImpl.java:76)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:363)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.findOrStartService(ServiceEngineImpl.java:315)+
    +     at com.bea.common.engine.internal.ServiceEngineImpl.lookupService(ServiceEngineImpl.java:257)+
    +     at com.bea.common.engine.internal.ServicesImpl.getService(ServicesImpl.java:72)+
    +     at weblogic.security.service.internal.WLSIdentityServiceImpl.initialize(WLSIdentityServiceImpl.java:47)+
    +     at weblogic.security.service.CSSWLSDelegateImpl.initializeServiceEngine(CSSWLSDelegateImpl.java:300)+
    +     at weblogic.security.service.CSSWLSDelegateImpl.initialize(CSSWLSDelegateImpl.java:221)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.InitializeServiceEngine(CommonSecurityServiceManagerDelegateImpl.java:1783)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealm(CommonSecurityServiceManagerDelegateImpl.java:442)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.loadRealm(CommonSecurityServiceManagerDelegateImpl.java:840)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initializeRealms(CommonSecurityServiceManagerDelegateImpl.java:869)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1028)+
    +     at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)+
    +     at weblogic.security.SecurityService.start(SecurityService.java:141)+
    +     at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)+
    Caused by: java.lang.ClassNotFoundException: com.pointbase.jdbc.jdbcUniversalDriver
    +     at java.lang.Class.forName0(Native Method)+
    +     at java.lang.Class.forName(Class.java:169)+
    +     at org.apache.openjpa.jdbc.schema.DataSourceFactory.newDataSource(DataSourceFactory.java:85)+
    +     ... 38 more+
    +     at org.apache.openjpa.lib.conf.ConfigurationImpl.instantiateAll(ConfigurationImpl.java:302)+
    +     at org.apache.openjpa.conf.OpenJPAConfigurationImpl.instantiateAll(OpenJPAConfigurationImpl.java:1409)+
    +     at org.apache.openjpa.kernel.AbstractBrokerFactory.makeReadOnly(AbstractBrokerFactory.java:646)+
    +     at org.apache.openjpa.kernel.AbstractBrokerFactory.pool(AbstractBrokerFactory.java:131)+
    +     at kodo.jdbc.kernel.KodoJDBCBrokerFactory.getInstance(KodoJDBCBrokerFactory.java:43)+
    +     Truncated. see log file for complete stacktrace+
    +>+
    +<Sep 9, 2010 11:45:17 PM EDT> <Notice> <Security> <BEA-090082> <Security initializing using security realm myrealm.>+
    +<Sep 9, 2010 11:45:17 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:+
    There are 1 nested errors:
    +weblogic.security.service.SecurityServiceRuntimeException: [Security:090399]Security Services Unavailable+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:916)+
    +     at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1050)+
    +     at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:875)+
    +     at weblogic.security.SecurityService.start(SecurityService.java:141)+
    +     at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)+
    +     at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)+
    +     at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)+
    +>+
    +<Sep 9, 2010 11:45:17 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>+
    +<Sep 9, 2010 11:45:17 PM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>+
    +<Sep 9, 2010 11:45:17 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>+
    +<Sep 9, 2010 11:45:17 PM> <FINEST> <NodeManager> <Waiting for the process to die: 16443>+
    +<Sep 9, 2010 11:45:17 PM> <INFO> <NodeManager> <Server failed during startup so will not be restarted>+
    +<Sep 9, 2010 11:45:18 PM> <FINEST> <NodeManager> <runMonitor returned, setting finished=true and notifying waiters>+
    ps:
    I've come your weblog and found alot of tips for debugging WebLogic Server exceptions. It's really helpful. Thanks.
    Edited by: Doubt_Man on Sep 10, 2010 10:49 AM
    Edited by: Doubt_Man on Sep 10, 2010 3:54 PM

  • How to start BPM process WSDL from WDA

    Hello,
    I need to start BPM Process from SRM ECC with WDA; i have been through this link ;
    http://forums.sdn.sap.com/thread.jspa?threadID=1643425
    also followed the pdf named 'Triggering NetWeaver BPM Process from ABAP' provided from SAP but still stuck on some issues;
    - I have a WSDL in order to start BPM process and works fine as i successfully call it from EP Java AS with WDJ..
    - What i need to do is to trigg it from SRM Screens so i need to call this WSD from ECC, so;
        When i try to create a consumer proxy using external wsdl option, after putting in WSDL Url it throws an error;
    Exception occurred in communication framework:Error in HTTP Framework:405 Method Not Allowed http://xxx.local:50000/bpm/de
    mosapcom/dccategoryappbpm/StartCatAppSI
    Exception of class CX_SLIB_HTTP_FAIL
    And this is error from BPM Logs for the same action;
    process()
    [EXCEPTION]
    com.sap.engine.interfaces.webservices.runtime.RuntimeProcessException: com.sap.engine.services.webservices.espbase.server.additions.wsa.WSAddressingException: com.sap.SOA.wsr.030104 - Expected request method POST. Found GET.
    at com.sap.engine.services.webservices.espbase.server.additions.SOAPHTTPTransportBinding.getAction(SOAPHTTPTransportBinding.java:581)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.overwriteConfiguration(RuntimeProcessingEnvironment.java:894)
    at com.sap.engine.services.webservices.espbase.server.runtime.RuntimeProcessingEnvironment.preProcess(RuntimeProcessingEnvironment.java:469)
    Also i found this link : http://wiki.sdn.sap.com/wiki/display/TechTSG/(WSR)Problems-P06/
    But no help so far,
    So, is there anyone faced similar or the same issue? Any suggestion will be appreciated.
    Regards,
    Yasin

    Hi soujanya,
    BPM server is not open to the internet but only intranet, so i will copy the WSDL code for you,
    will be glad if you can help;
    - <wsdl:definitions xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:http="http://schemas.xmlsoap.org/wsdl/http/" xmlns:mime="http://schemas.xmlsoap.org/wsdl/mime/" xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:tns="http://www.koczer.com/StartCatAppSI/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" name="StartCatAppSI" targetNamespace="http://www.koczer.com/StartCatAppSI/">
    - <wsdl:types>
    - <xsd:schema targetNamespace="http://www.koczer.com/StartCatAppSI/">
    - <xsd:complexType name="DetailsType">
    - <xsd:sequence>
      <xsd:element name="Category_ID" type="xsd:int" />
      <xsd:element name="Category_Text" type="xsd:string" />
      <xsd:element name="User" type="xsd:string" />
      <xsd:element name="Manager" type="xsd:string" />
      </xsd:sequence>
      </xsd:complexType>
    - <xsd:element name="NewOperation">
    - <xsd:complexType>
    - <xsd:sequence>
      <xsd:element name="Details" type="tns:DetailsType" />
      </xsd:sequence>
      </xsd:complexType>
      </xsd:element>
      </xsd:schema>
      </wsdl:types>
    - <wsdl:message name="NewOperationRequest">
      <wsdl:part element="tns:NewOperation" name="parameters" />
      </wsdl:message>
    - <wsdl:portType name="StartCatAppSI">
    - <wsdl:operation name="NewOperation">
      <wsdl:input message="tns:NewOperationRequest" />
      </wsdl:operation>
      </wsdl:portType>
    - <wsdl:binding name="StartCatAppSISOAP" type="tns:StartCatAppSI">
      <soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http" />
    - <wsdl:operation name="NewOperation">
      <soap:operation soapAction="http://www.koczer.com/StartCatAppSI/NewOperation" />
    - <wsdl:input>
      <soap:body use="literal" />
      </wsdl:input>
      </wsdl:operation>
      </wsdl:binding>
    - <wsdl:service name="StartCatAppSI">
    - <wsdl:port binding="tns:StartCatAppSISOAP" name="StartCatAppSISOAP">
      <soap:address location="http://zerbpmts.koczer.local:50000/bpm/demosapcom/dccategoryappbpm/StartCatAppSI" />
      </wsdl:port>
      </wsdl:service>
      </wsdl:definitions>

  • Unable to start Oracle Process manager (instance1) service.

    When I try to start this service I get the following error in Event Manager:
    Faulting application opmn.exe, version 11.0.0.0, time stamp 0x4ed8d1e8, faulting module yod.dll, version 6.0.6002.18541, time stamp 0x4ec3e855, exception code 0xc0000135, fault offset 0x00000000000b6fc8, process id 0x1ca4, application start time 0x01cd660277503c3a.
    But if I try through the command prompt 'opmnctl start' it works just fine. The problem is now I have to stay logged into the machine, if I log out opmn shuts down.
    This is happening on two servers we have this installed on. Windows Server 2008 (NOT R2) 24gb ram. Otherwise it is running just fine.
    Very little help on google for this issue. Any help would be great.

    Sorry if I was not clear on my issues, but it is when I try to start the windows service, (Oracle Process Manager (instance1), that I get this error in the Event Logs.
    Does anyon know the difference between the commands for starting this service through Windows Services and 'opmnctl start'?
    Edited by: 844667 on Jul 20, 2012 8:05 AM
    Edited by: 844667 on Jul 20, 2012 8:06 AM

  • Cannot start BPM process, "Start process" button is disabled: Why?

    Dear all,
    I am working on the BPM example "Modeling Your First Process with SAP NetWeaver Business Process Management" with the "Purchase process". I did everything as mentioned in the tutorial.
    At the end, I would like to start the process using
    NWA > Configuration management > Processes and Tasks > Process Repository
    I can see my WD example that I have deployed and I see the my task definitions and my process definition. In the tutorial it says, that I can select the process definition and click "Start process". But the button "Start process" is always disabled. I cannot click the button. I don't know why. Did I miss something?
    I am logged in as Administrator. I am using NW AS 7.2 and I am developing with NWDS 7.1 SP04.
    Anyone has an idea what can I do to start the process?
    Thanks in advance
    Edited by: Patrick Beck on Jun 25, 2010 4:55 PM

    Thanks for the link.
    I added the new context attribute in the XSD files (under Process Modeling > Data Types > XSD Files).
    Since I added a new context attribute "Comment" of type String in my Web Dynpro, I added the following on the corrent position of the XSD files:
                             <xsd:element name="Comment" type="com.sap.dictionary.string">
                   <xsd:annotation>
                        <xsd:appinfo>
                             <xsd:attribute name="ReadOnly" type="xsd:boolean" fixed="false"/>
                                                                          </xsd:appinfo>
                   </xsd:annotation>
              </xsd:element>     
    I also edited input and output mapping of the human and automated activities to support the new attribute "Comment". I thought this is enough to pass the new "Comment" parameter from activity to activity.
    But when I started the process, I filled in the comment field in Web Dynpro and went to the next step in the process. Seems like the new attribute value for "Comment" got lost. It does not appear in the next process step.
    Did I miss something?
    These are the steps I did:
    - edit Web Dynpro UI to support the new context attribute "Comment". created new input field and mapped to the Comment context attribute (that is defined in my WDP interface).
    - edited XSD files (one for each human activity) to support the new Comment attribute as mentioned above.
    - edited the mapping between the activities to support pass-through of the new Comment attribute between the activities
    But it seems like it's not saved in the context attribute "Comment". It got lost after the first step.
    Any ideas?

  • Start GP Process using GP APIs

    Hello,
    I am using GP APIs to start my process programatically in webdynpro.
    When I test it in Web Service navigator I get PortalRuntimeException.
    The exception occurs when execute
         IGPContextManager gpCtxManager = GPContextFactory.getContextManager();
    I have used the following code to start the GP Process:
    IGPProcessInstance procInstance;
    try {
         userFactory = UMFactory.getUserFactory();
         IUser user = userFactory.getUserByLogonID(user);
         IGPContextManager gpCtxManager = GPContextFactory.getContextManager();
         IGPUserContext userContext = gpCtxManager.createUserContext(user);
         IGPProcess process =
              GPProcessFactory.getDesigntimeManager().getActiveTemplate(
              processTemplateId, userContext);
         IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
         IGPProcessRoleInstanceList roles =
              rtm.createProcessRoleInstanceList();
         IGPStructure processParams =
              GPStructureFactory.getStructure(process.getInputParameters());
         processParams.setAttributeValue(
              requestIdParam,
              req_id);
         IGPRuntimeManager gpRuntimeManager =
              GPProcessFactory.getRuntimeManager();
         procInstance =
              gpRuntimeManager.startProcess(
                   process,
                   processName,
                   processDescr,
                   user,
                   roles,
                   processParams,
                   user
         } catch (Exception e) {
              return e.getMessage();
    Any help would be highly appreciated..
    Thanks and regards,
    Lyudmila

    Hi,
    Hope this code will help you,
         String ProcessID = "<Process ID>";
         IUser adminUser = null;
         IUser userRequesterUser = null;
         try {
           adminUser = UMFactory.getUserFactory().getUserByLogonID("<User Id of Process Admin>");
           userRequesterUser = UMFactory.getUserFactory().getUserByLogonID(RequesterUID);
              IGPUserContext userContext = GPContextFactory.getContextManager().createUserContext(adminUser);
              IGPProcess process = GPProcessFactory.getDesigntimeManager().getActiveTemplate(
                                            ProcessID, userContext);
              IGPRuntimeManager rtm = GPProcessFactory.getRuntimeManager();
              IGPProcessRoleInstanceList roles = rtm.createProcessRoleInstanceList();
              int rolenum = process.getRoleInfoCount();
              String strRoleName = "";
              // iterate over the required roles
              for (int i = 0; i < rolenum; i++) {
                   // create a new role instance by specifying the role's unique name
                   IGPProcessRoleInstance roleInstance = roles. createProcessRoleInstance(process.getRoleInfo(i).getRoleName());
                   strRoleName = process.getRoleInfo(i).getRoleName();
                   if(strRoleName.startsWith("role.")) {
                        roleInstance.addUser(adminUser);
                   Collection users = roleInstance.getUserAsCollection();
                   IUser usr = null;
                   Iterator ietr = users.iterator();
                   while(ietr.hasNext()) {
                        usr = (IUser)ietr.next();
                   roles.addProcessRoleInstance(roleInstance);
              //add values to the input parameters of the process
              IGPStructure params = GPStructureFactory.getStructure(process.getInputParameters());
              params.setAttributeValue("<Attribute Name>",<attribute value>);
                //initiate the process template by passing the process template
                IGPProcessInstance prInstance = rtm.startProcess(process,"<Process Name>",
                                "This process has been started using the GP public API", userRequesterUser,roles,params,userRequesterUser);
           } catch (GPInvocationException e12) {
    //            wdComponentAPI.getMessageManager().reportSuccess("Invok ERR " + e12.getMessage());
                // TODO Auto-generated catch block
                e12.printStackTrace();
           } catch (GPEngineException e2) {
                wdComponentAPI.getMessageManager().reportException("Invok ERR 2 - " + e2.getMessage(),true);
                // TODO Auto-generated catch block
                e2.printStackTrace();
           } catch (Exception e2) {
                wdComponentAPI.getMessageManager().reportException("Invok ERR 3 - " + e2.getMessage(),true);
                // TODO Auto-generated catch block
                e2.printStackTrace();
    Regards,
    Niraj

  • Parallel Processing through ABAP program

    Hi,
    We are trying to do the parallel processing through ABAP. As per SAP documentation we are using the CALL FUNCTION STARTING NEW TASK DESTINATION.
    We have one Z function Module and as per SAP we are making this Function module (FM)as Remote -enabled module.
    In this FM we would like to process data which we get it from internal table and would like to send back the processed data(through internal table) to the main program where we are using CALL FUNCTION STARTING NEW TASK DESTINATION.
    Please suggest how to achieve this.
    We tried out EXPORT -IMPORT option meaning we used EXPORT internal table in the FM with some memory ID and in the main program using IMPORT internal table with the same memory ID.  But this option is not working even though ID and name of the internal table is not working.
    Also, SAP documentation says that we can use RECEIVE RESULTS FROM FUNCTION 'RFC_SYSTEM_INFO'
    IMPORTING RFCSI_EXPORT = INFO in conjunction with CALL FUNCTION STARTING NEW TASK DESTINATION. Documentation also specifies that "RECEIVE is needed to gather IMPORTING and TABLE returns of an asynchronously executed RFC Function module". But while creating the FM remote-enabled we cant have EXPORT or IMPORT parameters.
    Please help !
    Thanks in advance
    Santosh

    <i>We tried out EXPORT -IMPORT option meaning we used EXPORT internal table in the FM with some memory ID and in the main program using IMPORT internal table with the same memory ID. But this option is not working even though ID and name of the internal table is not working</i>
    I think that this is not working because that memory does not work across sessions/tasks.  I think that the
    IMPORT FROM SHARED BUFFER and EXPORT TO SHARED BUFFER would work.  I have used these in the past and it works pretty good.
    Also,
    here is a quick sample of the "new task" and "recieve" functionality.   You can not specify the importing parameters when call the FM.  You specify them at the recieving end.
    report zrich_0001 .
    data: session(1) type c.
    data: ccdetail type bapi0002_2.
    start-of-selection.
    * Call the transaction in another session...control will be stop
    * in calling program and will wait for response from other session
      call function 'BAPI_COMPANYCODE_GETDETAIL'
               starting new task 'TEST' destination 'NONE'
                   performing set_session_done on end of task
        exporting
          companycodeid             = '0010'
    * IMPORTING
    *   COMPANYCODE_DETAIL        = ccdetails
    *   COMPANYCODE_ADDRESS       =
    *   RETURN                    =
    * wait here till the other session is done
      wait until session = 'X'.
      write:/ ccdetail.
    *       FORM SET_session_DONE
    form set_session_done using taskname.
    * Receive results into messtab from function.......
    * this will also close the session
      receive results from function 'BAPI_COMPANYCODE_GETDETAIL'
        importing
           companycode_detail        = ccdetail.
    * Set session as done.
      session = 'X'.
    endform.
    Hope this helps.
    Rich Heilman

  • A problem with initiating a BPEL process through its web service interface

    hi,
    i am trying to initiate the helloWorld BPEL process through its web service interface. i use a proxy class that i wrote and i use it from J#.net.
    this is the relevant code part:
    hello.HelloWorldBinding wsProxy = new hello.HelloWorldBinding();
    wsProxy.initiate("Hello");
    and the server shows the following message:
    ORABPEL-05002
    Message handle error.
    An exception occurred while attempting to process the message "com.collaxa.cube.
    engine.dispatch.message.invoke.InvokeInstanceMessage"; the exception is: Cannot
    decode properties.
    The process domain was unable to decode the properties for message guid 10, whic
    h are stored in column String index out of range: 3094; the exception reported i
    s: {2}.
    sql statement: SELECT conv_id, message_guid, domain_ref, process_id, revision_ta
    g, operation_name, receive_date, state, priority, properties FROM invoke_message
    WHERE message_guid = ?
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(Dispatc
    hHelper.java:152)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseSche
    duledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java
    :86)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDriven
    BeanInvocation.java:123)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome
    .java:755)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:
    928)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(Relea
    sableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    <2006-05-10 21:21:15,171> <ERROR> <default.collaxa.cube.engine.data> <BaseDeliveryPersistenceAdaptor::loadInvokeMetaDa
    java.lang.StringIndexOutOfBoundsException: String index out of range: 3094
    at java.lang.String.substring(String.java:1441)
    at com.collaxa.common.util.LVDecoder.decodeElement(LVDecoder.java:152)
    at com.collaxa.common.util.LVDecoder.decodeToMap(LVDecoder.java:45)
    at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadInvokeMetaData(BaseDeliveryPersi
    r.java:2186)
    at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.__loadInvoke(BaseDeliveryPersistence
    :2112)
    at com.collaxa.cube.engine.adaptors.common.BaseDeliveryPersistenceAdaptor.loadInvoke(BaseDeliveryPersistenceAd
    079)
    at com.collaxa.cube.engine.data.DeliveryPersistenceMgr.loadInvoke(DeliveryPersistenceMgr.java:357)
    at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:465)
    at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:335)
    at ICubeDeliveryLocalBean_StatelessSessionBeanWrapper16.handleInvoke(ICubeDeliveryLocalBean_StatelessSessionBe
    java:1796)
    at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHa
    7)
    at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:125)
    at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    at com.evermind.server.ejb.MessageDrivenBeanInvocation.run(MessageDrivenBeanInvocation.java:123)
    at com.evermind.server.ejb.MessageDrivenHome.onMessage(MessageDrivenHome.java:755)
    at com.evermind.server.ejb.MessageDrivenHome.run(MessageDrivenHome.java:928)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
    at java.lang.Thread.run(Thread.java:534)
    what is the problem? how come i can't initiate the process?
    i will be happy if i could get help..
    thanks in advance

    can you initate the process from the bpel console successfully?
    if so can you use obtunnel from the installation to trace the soap message (that goes over the wire), my best guess in this case is a problem with a header (holding the wsa information) ..
    after starting obtunnel it will liesten to a custom port, and will forward the request to the engine, so you need to point your client to this new port..
    hth clemens

  • How to start a process via web service with automatically run first screen

    Hi guys,
    we want to start the process via web service and skip the inbox presentation of the first human activity of the process. It means that the first activity should start automatically by clicking the link (wsdl link).
    Is there any opportunity to realize this thought?
    THX
    Regrads
    Phil

    Hi Phil,
    You may refer to my blog series for steop by step procedure on how to initiate a BPM workflow through webservice. Below are the links:
    /people/arafat.farooqui/blog/2009/08/13/introduction-to-sap-netweaver-bpm-part-4
    /people/arafat.farooqui/blog/2010/06/23/introduction-to-sap-netweaver-bpm-part-5
    Hope this helps!!
    Regards,
    Arafat

  • Implement callback for an asynchronous BPEL process through Java

    Hi ,
    I am trying to implement a callback functionality for an asynchronous BPEL process through java.
    I found the code in the samples folder of SOA suite installation folder .
    <SOA_HOME>\bpel\samples\tutorials\102.InvokingProcesses\rmi\com\otn\samples\async.
    There is an AsyncInstanceWatchdog object which registers a callback object(in this case an object of AsyncCallbackImpl class) for a specific CONVERSATION_ID.
    String convId = GUIDGenerator.generateGUID();
    nm.setProperty(NormalizedMessage.CONVERSATION_ID, convId);
    deliveryService.post(proc_name, "initiate", nm);
    // register the callback
    watchdog.registerAsyncCallback(convId, testAsyncHandler,
    locator.getDomainAuth());
    // start it
    watchdog.start();
    There is no problem till the last line. But once the BPEL process returns the control( does a callback), it throws the following error.
    May 25, 2010 3:36:06 PM oracle.j2ee.rmi.RMIMessages EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
    WARNING: Exception returned by remote server: {0}
    ORABPEL-02118
    Variant not found.
    The variant "output" has not been declared in the current scope. All variants must be declared in the scope before being accessed.
    Please check that the variant "output" is properly declared; otherwise there may be a misspelling in the name of the variant.
         at com.collaxa.cube.engine.core.Scope.getVariantRV(Scope.java:535)
         at com.collaxa.cube.engine.CubeEngine.getFieldValue(CubeEngine.java:2668)
    For your reference the variable output is declared in the definition of AsyncCallbackImpl (which implements the IAsyncInstanceCallback interface).
    There are 2 methods defined in the AsyncCallbackImpl class.
    public void onResult(Map pResultMessage) {
    System.out.println("called back! ");
    Iterator iTest = pResultMessage.keySet().iterator();
    while (iTest.hasNext()) {
    String key = (String)iTest.next();
    System.out.println(XMLHelper.elementToString((Element)pResultMessage.get(key)));
    public String getVariableName() {
    return "output";
    The variable name is same given in the sample code. And the BPEL process returns variable named output. So the name should not be a problem.
    Is it because of the scope of the variable.. If so, how do I change it.
    Any help would be appreciated.
    Edited by: saptarishi on May 25, 2010 4:24 PM
    Edited by: saptarishi on May 26, 2010 4:45 PM

    Solved it by some googling .... :)
    Here is the link:-
    [http://abhishek-soablog.blogspot.com/2008/09/orabpel-02118.html]
    or
    [http://beautifulwaste.blogspot.com/2008/04/calling-asynchronous-bpel-process.html]
    Both gives the same solution..
    In pre 10.1.3.3 release the default behaviour were to keep global variable information along with the instance information for completed BPEL processes.
    In 10.1.3.3 or later, this behaviour changed for performance reasons so that the default behaviour is now, not to keep any global variables for a BPEL process once the BPEL process has completed.
    You can configure this behaviour on a process level basis by using the parameter keepGlobalVariables in the bpel.xml file for the specific process:
    <BPELSuitcase>
    <BPELProcess src=".........." id="...........">
    <configurations>
    <property name="keepGlobalVariables">true</property>
    </configurations>
    </BPELProcess>
    </BPELSuitcase>
    Thanks
    saptarishi

Maybe you are looking for

  • I can't update iTunes software due to "Invalid Signature" issue

    Everytime I try to update my iTunes software it says it has an "Invalid Signature" and won't be installed. For the latest big update I had to totally remove it and reinstall it from scratch.  Now I still can't update it and of course I keep getting m

  • Unable to enter maintenance mode - dtrt1000

    Over the last few weeks my box is almost useless.  With frequency it only part records, freezes requiring rebooting, momintary screen blanks, and is generally a pain in the rear.  I've tried to get into maintenance mode to try and reset it, but follo

  • Select Query Scenario

    Hi all, I have a select query scenario. For example in a ztable I have two fields A and B it holds records like A     B 3     5 2     10 7     12 if my input is 4 I wrote a query like select * from ztab where ( a <= input and b >= input ). But its no

  • Url Link missing on Worklist Details

    In going to Worklist Details page in PeopleSoft Financials there is a LINK field that should have a url to click on to go to the document from the Worklist. The entry is missing the link. What am I missing?

  • Intuilink with NI 488.2

    I am using HP IntuiLink for oscilloscope screen capture and I switched from an HP I-O card to NI488.2 Now I do not see the NI488.2 in InuiLinks configure options. What can I do to get good screen capture again from the HP54645D Oscilloscope? Thanks i