Windows Service Hosted workflow, Stop it with ServiceOperation call?

I am working on a POC for Scheduling Workflows. I have a workflow hosted with Workflow Services Host. Using a While activity I loop while KeepRunning = true. Using Pick-->PickBranch I have two ServiceOperations running in Receive activities in each
Branch.  There is a StartWorkflow ServiceOperation in one branch and a StopWorkflow ServiceOperation in another branch. The StartWorkflow operation basically just runs another Workflow called RunWorkflow with a calculated Delay activity between each
completion. It will loop indefinitely on that RunWorkflow activity until the KeepRunning is set to false. The StopWorkflow ServiceOperation is what changes the KeepRunning flag to false. My problem is that the StartWorkflow operation never completes so that
the Messaging directed to StopWorkflow can take place. I have used a CorrelationHandle to group the two ServiceOperations together set to a Guid property on the incoming DataContracts (requests). Is there someway to get the StartWorkflow operation to stop
in this scenario?

HI Les G. Kinney,
Welcome to WorkFlow forum.
Workflow tracing offers a way to capture diagnostic information using .NET Framework trace listeners. Tracing can be enabled if a problem is detected with the application and then disabled again once the problem is resolved.
According to your description above, it's recommended to enable
workflow tracing first, it will give some hints why this happens.
Windows Workflow scheduling services manage how workflow instances are scheduled by the workflow runtime engine. This resource is also available. See:
https://msdn.microsoft.com/en-us/library/vstudio/ms735790(v=vs.90).aspx
Best regards,
Angie
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey.

Similar Messages

  • Windows service host using 100% of cpu randomly

    I have noticed that seemingly randomly my computer will grind to a complete halt and I had no idea why. The problem first appeared when I was watching netflix and it would cause the video to completely halt and for fragmented sounds to play. Later it started
    to happen even when I was just using my computer to move documents around or browse the internet. I have done a few SFC /scannow and also scanned my computer for various malware with different programs including bitdefender and spybot.
    I have not installed any new programs that I noticed that caused a problem the problem appears to be mainly caused by service host:local service (4). I stopped windows from auto updating but the problem still persists so I re enabled it. Any help you could
    offer I would greatly appreciate.
    Ps: I remember reading about this being caused by a corrupt driver, I did a SFC /scannow and found a violation that could not be repaired initially but I ended up being able to repair it after restarting. (Not
    sure why this is all mini)

    Hi,
    Many factors can cause a high CPU (SVCHOST.EXE), auto update is only one of the possible causes. I sugegst you refer to the following link for troubleshooting, you can use Process Explorer to view the detailed process.
    This is the download link
    http://technet.microsoft.com/en-in/sysinternals/bb896653.aspx
    Reference links
    http://blogs.technet.com/b/yongrhee/archive/2012/06/28/how-to-troubleshoot-service-host-svchost-exe-related-problems.aspx
    http://blogs.technet.com/b/askperf/archive/2009/04/10/prf-high-cpu-svchost-exe.aspx
    Yolanda Zhu
    TechNet Community Support

  • Windows service does not stop when DB is shutdown from SQL*Plus

    I have a 11g XE DB in a Windows 7 machine.
    The installation has created a Windows service called OracleServiceXE. It's status is STARTED.
    I then login to SQLPLUS as sysdba and do a shutdown immediate;
    SQL> shutdown immediate
    Database closed.
    Database dismounted.
    ORACLE instance shut down.
    Problem is, when I refresh the services, the OracleServiceXE is still showing as STARTED.
    If I use the listener control to stop the listener the Windows service OracleXETNSListener changes status to BLANK.
    Why is this?

    tvCa-Oracle wrote:
    That service is a prerequisite Windows service to be able to start the database, but it is not the status of the database itself.
    When you do start the database, he may or may not start the service automatically (not sure there), but it is a needed service, for each database SID, on Windows.
    If you want to know what it is, open Task Manager or Process Explorer, only start the service (not the database), and see which OS process is launched.
    AFAIK, this is only on Windows, there's no comparable component on Linux/Unix for this.
    The Windows service OracleServiceXE has c:\app\oracle\product\11.2.0\server\bin\ORACLE.EXE XE as the Parth to executable.
    If I click on the Services tab in Task manager, then right-click the OracleServiceXE and click Go to process, it show the oracle.exe in the processes tab.
    If stop it, the service, from the Windows service control, the oracle.exe disappears and we cannot login to the DB.
    If we start the service from the windows service control, the oradim.exe appears, then a second later the oracle.exe appears. Once the DB status of the Windows service is STARTED, the oradim.exe disappears.
    So, I can start and stop the oracle DB with the Windows service. But If I stop the DB from sql*plus the the service is not stopped....

  • Windows service entered the stopped state

    hello,
    my windows service running on Windows Server 2008 R2 SP1 stopps two or three times per month undefined with the Event ID 7036 : service entered the stopped state. 10 mins later it starts again alone: service entered the running state.
    What I also see is that some other services enter in the stopped state and then enter the running state: with Event ID 7036, but more frequently, means several times per day:
    SoftwareProtectionService
    WindowsModuleInstaller
    ApplicationExperience
    WMI Performance Adapter
    Portable Device Enumerator Service
    What is the problem here, I could not find any solution yet.
    thx

    Hi,
    Sometimes services are started only when they are needed. Most services you listed are Manual in startup type which means they will be started manually when it is needed. 
    Also if you disable a service manually, dependency services will also be stopped. 
    Here are 2 threads which mentioned 2 services in your list and they are also start/stop even 10 minutes. 
    Windows Modules Installer Stops & Restarts Frequently
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/d8e192ed-92ff-451b-9646-add8214c4e84/windows-modules-installer-stops-restarts-frequently
    7036 - Service entered the stopped/started state Messages
    http://social.technet.microsoft.com/Forums/windowsserver/en-US/8360b321-8225-42f1-a3e8-a75020dad227/7036-service-entered-the-stoppedstarted-state-messages

  • Windows service start and stop automatically

    i'm trying to start windows service, which i installed via running beasvc with parameters. everything used to work fine, but yesterday somthing broke up: i press the start button in the control panel, service tries to start, but then it stops and the following message appears: "Weblogic 9.0 Workspace Service service on Local Computer started and then stopped. Some services stop automatically if they have no work to do, for example, the Performance Logs and Alerts service." sometimes it stops right after starting without giving any messages.
    any ideas what's wrong with it&

    If I run from a cmd box it shows a successful start, however when I look at the services through the MMC it is not started. Basically, it starts successfully and then immediately shuts off stating the message in the original post. This is after and only after I apply sp7 for BEA 7. If I roll the server back to just v 7, I don't have a problem. I have downloaded V7 twice, and I get the same result. I have followed the install instructions to a T and still the same result. I have also tested removing the user created pages, and I get the same exact error telling me either it's a generic error or, SP7 has issues. The only reason we are rolling to SP7 is because of a security issue, but for the time being we have locked down the firewall. Any other suggestions? I have had my Maximo Administrator contact BEA, and MRO about this problem (Maximo is the only system we use web logic for) and they default to the answer that it is a java issue. That V7 is not supported above java 1.3.xxx which is bull because we were running version 1.4, due to a security issue with JVM 1.3 and all worked well. I have replicated the install with JVM 1.3xxx for BEA 7 sp 7, and that did not solve the problem either. Sorry for the long post I just wanted to try to get all the info out.
    Thank you for you time and consideration
    Tanner

  • Windows 7 Home Premium stops working with ADobe Create PDF

    Windows 7 home premium after a year of working fine, today stopped working with create PDF printer. I print to the PDF printer, looks normal, but no file appears in my files of PDFs created on line. My laptop running Windows 7 Professional has had no such problem. Please advise.

    Windows 7 home premium after a year of working fine, today stopped working with create PDF printer. I print to the PDF printer, looks normal, but no file appears in my files of PDFs created on line. My laptop running Windows 7 Professional has had no such problem. Please advise.

  • How to log when windows service is being stopped by server restart c#

    I want to handle when windows service is killed by task manager or by system restart.
    I tried using below handler inside Timer_Elapsed method of the service timer
    public void Start()
    AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
    _myTimer= new Timer(10000);
    _myTimer.Elapsed += OnElapsed;
    _myTimer.AutoReset = false;
    _myTimer.Start();
    private void OnElapsed(object sender, ElapsedEventArgs e)
    try
    _myTimer.Stop();
    //Work
    finally
    _myTimer.Start();
    and even I have placed the same into Main() method of the console as I am using Topshelf for windows service.
    static void Main(string[] args)
    AppDomain.CurrentDomain.UnhandledException += CurrentDomain_UnhandledException;
    var exitCode = HostFactory.Run(hostConfigurator =>
    hostConfigurator.Service<MyService>(serviceConfigurator =>
    serviceConfigurator.ConstructUsing(() => new MyService());
    serviceConfigurator.WhenStarted(MyService => MyService.Start());
    serviceConfigurator.WhenStopped(MyService=> MyService.Stop());
    hostConfigurator.RunAsLocalSystem();
    hostConfigurator.SetDisplayName("MyService");
    hostConfigurator.SetDescription("MyService");
    hostConfigurator.SetServiceName("MyService");
    hostConfigurator.UseLog4Net();
    private static void CurrentDomain_UnhandledException(object sender, UnhandledExceptionEventArgs e)
    File.AppendAllText(@"C:\Crash.txt", "Main Termination");
    In either scenario the handler is not getting called when I kill the windows service process from task manager or system restart. Even TopShelf is not logging "UnhandledServiceException" exit code.
    I have searched for all possible ways but no luck. Could any one please help me in this.
    Thanks

    Hello RamJS,
    You could have a try to use the Process.Exited Event to handle such process end log:
    https://msdn.microsoft.com/en-us/library/system.diagnostics.process.exited(v=vs.110).aspx
    The Exited event indicates that the associated process exited. This occurrence means either that the process terminated (aborted) or successfully closed. This event can occur only if the value of the
    EnableRaisingEvents property is
    true.
    Regards.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Olite ODBC driver and windows service problems

    Hi,
    I use the SOA Suite 10.1.3 and when I try in my code to locate BPEL Processes by instances using the following code:
    WhereCondition where = new WhereCondition(SQLDefs.CX_index_1 + " = ?");
    where.setString(1, deployedId);
    // Find Instances
    IInstanceHandle[] instanceHandles = locator.listInstancesByIndex( where );
    I get this error message:
    <ERROR> <default.collaxa.cube.engine.data> <BaseCubeInstancePersistenceAdaptor::listInstanceMetaData>
    java.sql.SQLException: [ODBC S1002] invalid column number
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinSQLError(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.thinGetData(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.getVal(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getString(Unknown Source)
    <ERROR> <default.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "finder": Cannot find instances.
    An attempt to fetch the instances using the where condition "index_1 = ?" from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: SELECT * FROM admin_list_cx WHERE ci_domain_ref = 0 AND index_1 = ?
    ORABPEL-04002
    Cannot find instances.
    An attempt to fetch the instances using the where condition "index_1 = ?" from the datastore has failed. The exception reported is: [ODBC S1002] invalid column number
    Please check that the machine hosting the datasource is physically connected to the network. Otherwise, check that the datasource connection parameters (user/password) is currently valid.
    sql statement: SELECT * FROM admin_list_cx WHERE ci_domain_ref = 0 AND index_1 = ?
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor.listInstanceMetaData(BaseCubeInstancePersistenceAdaptor.java:1199)
         at com.collaxa.cube.engine.data.AdminFinder.__listInstanceMetaData(AdminFinder.java:387)
         at com.collaxa.cube.engine.data.AdminFinder.listInstancesByIndex(AdminFinder.java:629)
         at com.collaxa.cube.ejb.impl.FinderBean.listInstancesByIndex(FinderBean.java:250)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:622)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxNotSupportedInterceptor.invoke(TxNotSupportedInterceptor.java:43)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at FinderBean_RemoteProxy_4bin6i8.listInstancesByIndex(Unknown Source)
         at com.oracle.bpel.client.Locator.listInstancesByIndex(Locator.java:602)
         at com.oracle.bpel.client.Locator.listInstancesByIndex(Locator.java:571)
         at webUI.CheckProcStatus.findInstance(CheckProcStatus.java:85)
         at webUI.CheckProcStatus.doGet(CheckProcStatus.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:743)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
         at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:711)
         at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:368)
         at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:866)
         at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:448)
         at com.evermind.server.http.HttpRequestHandler.serveOneRequest(HttpRequestHandler.java:216)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:117)
         at com.evermind.server.http.HttpRequestHandler.run(HttpRequestHandler.java:110)
         at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
         at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
         at java.lang.Thread.run(Thread.java:595)
    Caused by: java.sql.SQLException: [ODBC S1002] invalid column number
         at oracle.lite.poljdbc.LiteThinJDBCConnection.thinSQLError(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.thinGetData(Unknown Source)
         at oracle.lite.poljdbc.LiteThinJDBCResultSet.getVal(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getString(Unknown Source)
         at oracle.lite.poljdbc.POLJDBCResultSet.getString(Unknown Source)
         at com.collaxa.cube.engine.util.DBUtils.sql_getString(DBUtils.java:63)
         at com.collaxa.cube.engine.data.AdminFinder$InstanceMetaDataLoader.load(AdminFinder.java:120)
         at com.collaxa.cube.engine.data.AdminFinder$IndexMetaDataLoader.load(AdminFinder.java:142)
         at com.collaxa.cube.engine.adaptors.common.BaseCubeInstancePersistenceAdaptor.listInstanceMetaData(BaseCubeInstancePersistenceAdaptor.java:1179)
         ... 39 more
    It looks like there is a problem with the ODBC driver of Olite. I tried to see the configuration parameters in the Windows ODBC Data Source Administrator but when I click on the Configure button, the window closes and nothing appears. When I use another program (Aqua Data Studio) to query the Olite DB, everything works fine as long as I use basic queries without a "where" clause. When I use a "where" clause, windows opens a message box complaining about memory access error from the "olsv2040.exe", which is the Olite windows service, and it stops the service.
    There is also this error message when I launch the SOA Suite and it comes to the part of loading the BPEL processes:
    Loading processes for BPEL domain "default" ...
    <2007-04-30 18:48:54,551> <INFO> <default.collaxa.cube.engine.deployment> Process "TaskManager" (revision "1.0") successfully loaded.
    07/04/30 18:48:55 30 Apr 2007 18:48:55 - org.apache.commons.transaction.file.FileResourceManager - EMERGENCY - Recovering status information from 'C:\product\10.1.3.1\OracleAS_1\integration\esb/oraesb/artifacts/work/metadata/[B@266395/transaction.log' failed! Could not find file
    07/04/30 18:48:55 30 Apr 2007 18:48:55 - org.apache.commons.transaction.file.FileResourceManager - EMERGENCY - java.io.FileNotFoundException: C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\work\metadata\[B@266395\transaction.log (The system cannot find the file specified)
    07/04/30 18:48:55 java.io.FileNotFoundException: C:\product\10.1.3.1\OracleAS_1\integration\esb\oraesb\artifacts\work\metadata\[B@266395\transaction.log (The system cannot find the file specified)
    07/04/30 18:48:55      at java.io.FileInputStream.open(Native Method)
    07/04/30 18:48:55      at java.io.FileInputStream.<init>(FileInputStream.java:106)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager$TransactionContext.recoverState(FileResourceManager.java:1471)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager.recoverContexts(FileResourceManager.java:1219)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager.recover(FileResourceManager.java:441)
    07/04/30 18:48:55      at org.apache.commons.transaction.file.FileResourceManager.start(FileResourceManager.java:394)
    07/04/30 18:48:55      at org.apache.slide.store.txfile.AbstractTxFileStoreService.connect(AbstractTxFileStoreService.java:135)
    07/04/30 18:48:55      at org.apache.slide.common.AbstractServiceBase.connect(AbstractServiceBase.java:120)
    07/04/30 18:48:55      at org.apache.slide.store.AbstractStore.connect(AbstractStore.java:216)
    07/04/30 18:48:55      at org.apache.slide.common.AbstractServiceBase.connectIfNeeded(AbstractServiceBase.java:192)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.connectService(Namespace.java:524)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.retrieveStore(Namespace.java:623)
    07/04/30 18:48:55      at org.apache.slide.common.Uri.parseUri(Uri.java:347)
    07/04/30 18:48:55      at org.apache.slide.common.Uri.<init>(Uri.java:66)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.getUri(Namespace.java:671)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.getUri(Namespace.java:651)
    07/04/30 18:48:55      at org.apache.slide.common.Namespace.loadBaseData(Namespace.java:782)
    07/04/30 18:48:55      at org.apache.slide.common.Domain.initNamespace(Domain.java:845)
    07/04/30 18:48:55      at org.apache.slide.common.Domain.init(Domain.java:432)
    07/04/30 18:48:55      at org.apache.slide.common.Domain.init(Domain.java:366)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.slide.SlideHandler.initializeSlide(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.slide.SlideHandler.checkSlideInit(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.setupRepoURLScheme(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.setupRuntime(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter.initializeESB(Unknown Source)
    07/04/30 18:48:55      at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter$PingTester.run(Unknown Source)
    07/04/30 18:48:55      at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    07/04/30 18:48:55      at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    07/04/30 18:48:55      at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    07/04/30 18:48:55      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    07/04/30 18:48:55      at java.lang.Thread.run(Thread.java:595)
    <2007-04-30 18:48:55,923> <INFO> <default.collaxa.cube.engine.deployment> Process "TaskActionHandler" (revision "1.0") successfully loaded.
    <2007-04-30 18:48:56,785> <INFO> <default.collaxa.cube.engine.deployment> Process "MainPatient" (revision "1.0") successfully loaded.
    A file transaction.log is missing. It's strange because when I installed the SOA Suite, it never complained about the installation of the files. How can I re-install this file or generate it without installing the whole SOA Suite?
    I am sorry if my message is too long, but all these problems are related to the Olite DB. Is there a way to re-install the ODBC drivers and the service without re-installing the whole SOA Suite?
    Any would be greatly appreciated.
    Amir                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Ok, after having installed the Oracle XE database and configured the data-sources of the BPEL PM. I still had the same error message complaining about invalid column number. I changed the code and put directly the connection pool:
    DataSource dataSource = (DataSource)_initialContext.lookup("java:comp/env/jdbc/BPELServerDataSource");
    Connection con = dataSource.getConnection();
    Statement stmt1 = con.createStatement(ResultSet.TYPE_SCROLL_INSENSITIVE, ResultSet.CONCUR_READ_ONLY);
    ResultSet rs1 = stmt1.executeQuery("SELECT cikey, process_id FROM admin_list_cx WHERE index_1='"+deployedId+"'");
    And now it works! The row is found and no error. I am wondering, is there a problem with my code (it worked with the former BPEL PM API 10.1.2) or is there a problem with the function listInstancesByIndex of the Locator object or something else (look at the Exception trace). Did somebody successfuly used this method of locating processe's instance using the index_1 parameter with the 10.1.3 API?
    Cheers.
    Amir

  • Question about oradim and windows services

    Hello.
    I have a db instance on my W-XP Pro machine that was created with this command:
    oradim -new -sid <my_sid> -startmode m -pfile <my_pfile>
    Since the creation I only used to need to start the windows service in order to work with the db.
    I decided to delete the instance.
    oradim -delete -sid <my_sid>
    Afterwards I recreated the instance:
    oradim -new -sid <my_sid> -startmode m -pfile <my_pfile>
    And now I have this strange situation:
    First I need to start the windows service (although it does not startup the db) and then starting the db with sqlplus.
    Would it be possible restoring to the initial situation?
    Thanks in advance.

    Did you tried changing the database startup as Auto
    oradim -edit -sid <my_sid> -startmode auto -SRVCSTART
    systemThanks.
    Although the above solution is working ok, I am also trying your solution but it seems there must be a syntax error:
    D:\>oradim -edit -sid <my_sid> -startmode auto -SRVCSTART system
    DIM-00036: Ha introducido una opci¾n no vßlida para el comando -DELETE
    D:\>oradim -edit -sid <my_sid> -startmode a -SRVCSTART system
    DIM-00003: Falta un argumento para el parßmetro
    (I am sorry but I do not understand all the oradim options).

  • Run windows services from java application

    can java application run a windows server
    i have a web server that runing using tomcat and mysql
    can i make a icon in the systray
    that give me the option to (using a menu)
    run the server ,wicth means : tomcat and mysql are runing
    stop the server
    get tomcat stacktrace in a window
    i was thinking about runing tomcat and mysql as services
    and write the systray application using java,
    the systray application should acces window services ,
    and run/stop requierd services.
    what happend on a machine thar runs linux?
    thanks
    shay

    Ok .so it's will be a diffrent way under linux..
    for systray i will use http://systray.sourceforge.net/
    and for services i'll use the
    "net start <Service>" and "net stop service"
    i need to keep track on the service status
    so my Systray status will be updated
    what is the command for getting the status of the proccess
    thanks shay

  • Forms 11g as a Window Service

    Hi,
    Does anyone know how to set up WLS_FORMS as a window service ?
    I'm ok with admin server and node manager, but can't get it work with WLS_FORMS.
    If I create the service without ADMIN_URL, I get this message : "Booting as admin server, but servername, WLS_FORMS, does not match the admin server name, AdminServer"
    If I create the service with ADMIN_URL, the server starts in ADMIN mode, not in RUNNING mode...
    Is there an option to start in Running mode ???
    Any help would be appreciated !!
    Thks

    Yes I did and that's how I succeeded with the AdminServer.
    At the present time I can't access the note on Metalink
    (Article cannot be displayed. Possible reasons are:
    The article is not classified as publicly accessible ("non-public") ...).
    I reported this to support, waiting for the answer...
    I hope the solution is in this note but I found this one on OTN : Link:Automatic startup of WLS_FORMS in Oracle Fusion Middleware
    I just can't understand why Oracle does not provide a simple running example to its customers...

  • Try to install new itunes software on my Windows XP system. Stop installing because cannot deinstall old version of bonjour.msi. What to do?

    Try to install new itunes software on my Windows XP system. Stop installing with the message cannot deinstall old version of Bonjour.msi. What to do? Cleaned already registry.
    KR,
    Bernd

    Download the Windows Installer CleanUp utility from the following page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    To install the utility, doubleclick the msicuu2.exe file you downloaded.
    Now run the utility ("Start > All Programs > Windows Install Clean Up"). In the list of programs that appears in CleanUp, select any Bonjour entries and click "Remove", as per the following screenshot:
    Quit out of CleanUp, restart the PC and try another install. Does it go through this time?

  • AIR app as Windows Service

    Hi!
    I have one question.
    Is it possible to create AIR application which will work like
    Windows Service (start and stop by request from other
    application)?

    I'm not sure if this will work, or even why you'd want to do
    it...
    but there is a program in the Windows server resource kit
    called SRVANY.EXE
    which allows a normal exe to operate as a service
    See
    http://support.microsoft.com/kb/137890

  • Debugging C# Windows Service

    I am trying to debug a C# Windows Service in Visual Studio 2005 with ODT as it accessing SP's on an Oracle 9.2 database. I would like to find out if it is possible to debug the Windows service as I have to install it, have it running, then attach to process.
    thanks

    Yes it will work just fine. Just use "External Application Debugging" and 2 instances of VS. Before the Oracle connection is first made by the service, make sure the ORA_DEBUG_JDWP environment variable is in the environment of the service. Use one instance of VS for debugging the service code, and a separate VS instance for PLSQL.
    The steps:
    1) Configure PL/SQL Debugging for first use. (See the doc/FAQ if you don't know how)
    2) Open 2 instances of VS
    3) In the one you use to debug PL/SQL, enable External Application Debugging and choose the port and set breakpoints
    4) In the one use to debug the Windows Service, attach before the Oracle connection is made and set the ORA_DEBUG_JDWP environment variable in the environment for the service. When this service connects to Oracle, you should see the other instance of VS note this in it's output window.. If that is not possible, just make sure that you set up the service to include this env variable and restart it.
    5) In the Windows Service, set a breakpoint before and after the stored procedure you are interested in.
    6) Run to the break point and when you call the SP, the other instance of VS should wake up at the breakpoint.

  • STOPPED JOBS with expdp and dbms_scheduler

    Hello.
    I am working with the 10g release 2 in a RAC enviroment, and i am trying to put an export job at the scheduler.
    To launch the export i have make a shell script, then first exec the export process and after launch a bzip2 command to compress the resultant dmp file.
    The problem is that the export process finish ok, but it don't compress the file, because the scheduler mark the job as STOPPED.
    The log say:
    REASON="Stop job with force called by user: 'SYS'"
    and the expdp S.O process that launch the extjobo stay runing for ever, like if it was waiting for the expdp to exit and it can`t so the script never arrive to the part that compress the file.
    I put the script that i make to export the schema:
    #!/bin/bash
    export ORACLE_HOME=/opt/oracle/product/10.2.0/db
    export PATH=$PATH:$ORACLE_HOME/bin
    export DIRBACK=/ORACLE/BACKUPS/BMR/Dumps
    export dia=`date +%d_%m_%Y_%H_%M_%S`
    export LOG=dump_backup_bmr_$dia.log
    cd $DIRBACK
    $ORACLE_HOME/bin/expdp userid=oracle_backup/orabck@BMR dumpfile="BMR_BMR_$dia.dmp" schemas=BMR directory=Dumps logfile=$LOG
    cd $DIRBACK
    /usr/bin/bzip2 -f --best ./BMR_BMR_$dia.dmp
    cd $DIRBACK
    /bin/mail -s "DUMP BACKUP BMR DIARIO [$dia]" [email protected] < ./dump_backup_bmr_$dia.log
    I have put several cd $DIRBACK to see if it fail because the script don`t find the dmp file.
    Any idea why it STOP after finish the script ?
    PD: sorry for my poor english.
    Regards

    Hi,
    A stop is only done in two cases - if the user calls dbms_scheduler.stop_job or if the database is shutdown while a job is running. Make sure the database is not being shutdown while the job is running or inside of the job.
    If expdp is still running then this suggests that it is hanging. One possibility for that is that expdp is generating a lot of standard error messages and hanging the job (this is a known issue in 10gR2). You can try redirecting standard output and error to files to see if this helps.
    e.g.
    $ORACLE_HOME/bin/expdp > /tmp/output 2> /tmp/errors
    Hope this helps,
    Ravi.

Maybe you are looking for

  • External Studio Monitor??

    I read the most recent thread regarding this subject but, suppose you are equipping a studio and money is not really that much of an object, then what would you guys suggest as a large screen external studio monitor. Currently we are using a professi

  • Problem with 10gR2 download for Windows

    I have tried downloading the above mentioned file from the site for several times but it seems like my download always get disconnected halfway like at 16MB or 34MB. May i know how can i finish downloading the whole file? Thanks

  • Bypassing Swing, strange?

    The company where I am working will use J2EE soon for their ERP. Programmers will not have to do anything with Swing. A company made a layer (tier? I don't know how you call it in English) in front of Swing which provides something like GUI templates

  • Saving completed file for opening in another program

    I have been using Pinnacle Studio 10.7 because it allows me to produce HD-DVD on regular DVDs. (The drawback is the approximate 20-minute time max on each DVD.) I'd like to start doing work in Premiere, then save my work to a file that I can simply o

  • Best Practice Regarding Large Mobility Groups

    I was reading the WLC Best Practices and was wondering if anyone could put a number to this statement regarding the largest number of APs, end users, and controllers which can contained in a Mobility Group. We would be deploying WiSMs in two geograph