Stop and re-start JCo Idoc Server

Hi
I created a JCO IDoc server (using the JCoIDocServer class) , so far it works fine for me to send and receive IDocs to R/3. The only issue is when I try to start and stop the JCO Idoc server at runtime. When I call the Stop method(). It seems like the service is stopped but if i call a Start method after that( even on a completely new class instance) I'm getting a nullpointer exception. I have seen documents on JCOServer says that use suspend method for stop the server, but this is not available for the JCoIDocServer class. How can I stop a server which is running, programaticalluy and restart it again ? (I dont mind if I have to reinstantiate the whole server class) . I use JCO and  IDoc libaray version 3.0 . Please help
Thanks

Hi,
Try using the abort() after your stop in a "if" condition. You need to provide a message as a parameter for the abort() method, so that the remote SAP System (in case the IDoc Server is still connected to it) knows the reason why the IDoc server shutdown without any warning.
So your code should look something like this (warning pseudo-code ) -
server.stop();
if(server.alive())
       server.abort("Forcing shutdown because its wakey wakey eggs and beccy time!");
Try logging the status of the server after the stop() and abort() methods to know what the server is doing. I hate people using the suspend() method to "stop" the server, because it does not stop the server. It only suspends operations, so your connection and session to the remote SAP System remains open.
After the time out (can be hours) on the remote System, the connection is closed, but until then, the remote SAP System keeps expecting your server to talk back to it. Open sessions are of course more dangerous than runaway trains, so avoid the suspend() method if you can.
T00th
Edited by: Sameer Jagirdar on Jan 21, 2010 1:14 PM --> fixed the code display thingy.
Edited by: Sameer Jagirdar on Jan 21, 2010 1:15 PM

Similar Messages

  • Insert Invitee email address..hit send...pop window shows..hit cancel..nothing..have to stop and re-start imail to send invite...spent 40 mins with cpu support for naught

    not sure if this is an ical or imal problem.  It appears there is some type of handshaking problem between them.  I can enter and invitee address and hit send...A pop up window shows, I hit the canel option, the window closes and that is it.  If I wish to send the invite I have to shut down Imail and re-start it.  At wich time the pop up window shows, I cancel it and then can send the invite.....is this normal?

    - ability to choose deletion of an email on handset only
    - desktop software working with all older BB's allowing drag and drop type of transferring data, contacts etc. (BB link doesn't recognize my old Storm) 
    - auto power on/off
    - contacts syncing with yahoo & Outlook (almost two weeks trying to work around it and no luck)

  • Stop and then start Listener from OEM

    Hi,
    I am new to Oracle. I notice after stopping listener using OEM on Windows XP, the TNSLNR.exe is terminated as I expected. At that point, all connections include OEM, iSQL*PLUS and SQL*PLUS should close connection.
    If this is right, how can one start listener from OEM? One needs listener work before using OEM to config something else. What is the purpose of Start button for listener on OEM? Even more perplexing me is that iSQL*PLUS is still works! Does iSQL*PLUS not use listener for connection?
    Your help will be appreciated,
    -Hong

    Hi
    i think its not possible to start the listener from oem, because the oem use the listener to communicate to the db.
    Regards
    Mirko

  • JCo IDOC Server - some IDOCs missing

    Hi All,
    I have created a JCoIDOC Server to receive IDOCs from SAP through tRFC. If one or two IDOCs are sent from SAP,
    my JCoIDOC server receives them properly. But if more IDOCs( say 20) are sent from SAP, my JCOIDOC server is not receiving all the IDOCs. Some IDOCs are missing. I don't know if they are lost forever.
    Did any of you face this problem before?If so, please explain what is happening? what could be the reason?
    Thanks and Regards,
    Vijaya Gopal.

    Did you ever get a solution to this?

  • How to skip source transactions when capture is stopped and re-started

    Due to a network issue I have stopped streams (capture/prop/apply) between a source-DB and target-DB. After 4 hours the network was back up again. I want to skip the transactions received in source-DB in this 4 hours time. When I re-start steams (capture/prop/apply), it should skip the transactions received in these 4 hours and start fresh capture. How can do that. Any help is much appreciated.
    Amal

    ids1ked,
    But you did not skip only ONE transaction. You probably skipped several tnx. I told exactly how to skip only one transaction.
    Actually, If you want to move current SCN to new one it is better to use incomplete recovery guide (I think you need to recreate propagation process - just check it)
    Regards,
    SergeR.

  • Microsoft Exchange Transport Service....Starting (Does not reach a running state, stops and tries starting again)

    Hi All,
    After installing the lovely update (https://technet.microsoft.com/library/security/ms14-068) that Microsoft released last week. I restarted my exchange 2013 server and now the Microsoft Exchange Transport Service will not start. It is pretty much constantly
    in a starting state. Tried all the standard stuff, restarting the server etc.
    Running on Server 2012 R2
    Hopefully someone can shed some light.
    Pete

    Hi,
    A few questions here :
    - Have you installed all roles on the same server ? ( MultiRole server )
    - If yes, do use the preconfigured receive connectors from Exchange or did you add custom connectors ?
    - Do you have any anti-spam service installed on the server that could be listening on port 25 ?

  • Re: motion paths, can they stop and then start again later?

    Hello
    Motion paths are working well but ...  I now want to do the following: I ahve moved an object on the screen ...can I delay for a few seconsd and move it back OFF the screen? (or to a different location ON the screen)
    Thanks in advance
    bob leonard- Detroit

    the answer is YES. I figured it out. I found it easier if I defined  ALL the motions upfront.

  • Songs randomly stop and than starts. what can i do? i have the latest version and already went to apple for a system reinstallation

    help !

    - You do have iTunes version 11 on the computer, right. Saying the latest is not sufficient.
    - Have you tried everthing here:
    iOS: Device not recognized in iTunes for Windows
    - You should
    Removing and Reinstalling iTunes, QuickTime, and other software components for Windows XP
    Your library/media will not be affected.
    - Does the iPod charge?

  • defunct process when stop and start web server

    Dear all,
    I am using Sun One Web Server 6.1 SP6. When i try to stop and then start the web server. The <defunct> process is generated (his parent PID points to webservd).
    The following is the result:
    1st stop and start the web server (defunct process is generated)
    2nd stop and start the web server (defunct process disappears)
    3rd stop and start the web server(defunct process is generated)
    4th stop and start the web server (defunct process disappears)
    Here is my magnus.conf
    ServerID www
    ServerName www.abc.edu.hk
    ErrorLog /i03_01/SUNWwbsvr616/https-www/logs/errors
    PidLog /i03_01/SUNWwbsvr616/https-www/logs/pid
    User nobody
    DNS off
    Security off
    ClientLanguage en
    AdminLanguage en
    DefaultLanguage en
    RqThrottle 512
    StackSize 131072
    Init fn="load-modules" funcs="caspreq,caspinit,casptrans" shlib="/i03_01/casp/module/sunos5_optimized/netscape_6.x/nes_casp2.so"
    Init fn="caspinit" casplib="/i03_01/casp/asp-server-3078"
    Init fn="load-modules" funcs="htaccess-init,htaccess-find" shlib="/i03_01/SUNWwbsvr616/plugins/htaccess/htaccess.so"
    Init fn="htaccess-init"
    Init access="/i03_01/SUNWwbsvr616/https-www/logs/access" format.access="%Ses->client.ip% - %Req->vars.auth-user% [%SYSDATE%] \"%Req->reqpb.clf-request%\" %Req->srvhdrs.clf-status% %Req->srvhdrs.content-length% \"%Req->headers.referer%\" \"%Req->headers.user-agent%\"" fn="flex-init"
    Init fn="load-modules" shlib="/i03_01/SUNWwbsvr616/bin/https/lib/libj2eeplugin.so" shlib_flags="(global|now)"
    TempDir /tmp/https-www-61c30017
    # Load modules for PHP
    Init fn="load-modules" funcs="php4_init,php4_execute,php4_auth_trans" shlib="/i03_01/SUNWwbsvr616/bin/libphp4.so"
    Init fn="php4_init" LateInit="yes" errorString="Failed to initialize PHP!" [php_ini="/i03_01/SUNWwbsvr616/https-www/config/php.ini"]
    # Enable statistics
    Init fn="stats-init" update-interval="5" virtual-servers="100" profiling="yes"
    any ideas? Thank

    - which OS & version are you running into this issue ?
    - By definition, defunct processes (or zombie processes) are processes that have exited prior to it's parent calling a wait() on it to get the return status .
    - couple of things I can think of to narrow down the cause of this issue
    1. disable ASP & php plugins and see if this still causes this issue
    2. try starting the web server with log level to finest and see fi you get any useful information from the server error logs
    hope this helps

  • Wiki (Web) start issue - have to stop and start to work

    On my server, I reboot servers weekly.  In order to get web services working (to get to wiki pages) I have to stop, then start the services.  If I do not, then when going to any wiki pages i get the message "server is starting".  to be clear, all other colaboration services are working (ie chat, ical, and address book).  After stopping and re-starting the web services, everything is happy untill the next reboot (does seem to be related to rebooting only, not stopping and then starting the services while the machine is running)
    Log: apache2/error_log
    Fri Jan 27 09:05:05 2012] [notice] Graceful restart requested, doing restart
    [Fri Jan 27 09:05:06 2012] [notice] Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 configured -- resuming normal operations
    [Fri Jan 27 09:05:06 2012] [warn] long lost child came home! (pid 330)
    [Fri Jan 27 09:05:40 2012] [notice] caught SIGTERM, shutting down
    [Fri Jan 27 09:05:42 2012] [notice] Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8r DAV/2 PHP/5.3.6 configured -- resuming normal operations
    [Fri Feb 03 17:12:31 2012] [notice] caught SIGTERM, shutting down
    [Fri Feb 03 17:13:43 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Feb 10 17:30:33 2012] [notice] caught SIGTERM, shutting down
    [Fri Feb 10 17:31:43 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Feb 17 17:06:22 2012] [notice] caught SIGTERM, shutting down
    [Fri Feb 17 17:07:14 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Mar 09 17:22:36 2012] [notice] caught SIGTERM, shutting down
    [Fri Mar 09 17:23:43 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Tue Mar 13 11:28:42 2012] [notice] caught SIGTERM, shutting down
    [Tue Mar 13 11:28:43 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Mar 23 17:02:27 2012] [notice] caught SIGTERM, shutting down
    [Fri Mar 23 17:03:39 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Mar 30 17:21:34 2012] [notice] caught SIGTERM, shutting down
    [Fri Mar 30 17:22:51 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Apr 06 17:15:52 2012] [notice] caught SIGTERM, shutting down
    [Fri Apr 06 17:16:51 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Apr 13 17:03:41 2012] [notice] caught SIGTERM, shutting down
    [Fri Apr 13 17:04:39 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Tue Apr 24 03:15:09 2012] [notice] SIGHUP received.  Attempting to restart
    [Tue Apr 24 03:15:09 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Fri Apr 27 17:09:53 2012] [notice] caught SIGTERM, shutting down
    [Fri Apr 27 17:22:54 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    [Tue May 01 11:54:11 2012] [notice] caught SIGTERM, shutting down
    [Tue May 01 11:54:13 2012] [notice] Apache/2.2.21 (Unix) mod_ssl/2.2.21 OpenSSL/0.9.8r DAV/2 PHP/5.3.8 configured -- resuming normal operations
    Log: /wikid/error.log
    2012-05-01 00:02:52-0400 [-] no groups
    2012-05-01 00:12:52-0400 [-] no groups
    2012-05-01 00:22:52-0400 [-] no groups
    2012-05-01 00:32:52-0400 [-] no groups
    2012-05-01 00:42:52-0400 [-] no groups
    2012-05-01 00:52:52-0400 [-] no groups
    2012-05-01 01:02:52-0400 [-] no groups
    2012-05-01 01:12:52-0400 [-] no groups
    2012-05-01 01:22:52-0400 [-] no groups
    2012-05-01 01:32:52-0400 [-] no groups
    2012-05-01 01:42:52-0400 [-] no groups
    2012-05-01 01:52:52-0400 [-] no groups
    2012-05-01 02:02:52-0400 [-] no groups
    2012-05-01 02:12:52-0400 [-] no groups
    2012-05-01 02:22:52-0400 [-] no groups
    2012-05-01 02:32:52-0400 [-] no groups
    2012-05-01 02:42:52-0400 [-] no groups
    2012-05-01 02:52:52-0400 [-] no groups
    2012-05-01 03:02:52-0400 [-] no groups
    2012-05-01 03:12:52-0400 [-] no groups
    2012-05-01 03:22:52-0400 [-] no groups
    2012-05-01 03:32:52-0400 [-] no groups
    2012-05-01 03:42:52-0400 [-] no groups
    2012-05-01 03:52:52-0400 [-] no groups
    2012-05-01 04:02:52-0400 [-] no groups
    2012-05-01 04:12:52-0400 [-] no groups
    2012-05-01 04:22:52-0400 [-] no groups
    2012-05-01 04:32:52-0400 [-] no groups
    2012-05-01 04:42:52-0400 [-] no groups
    2012-05-01 04:52:52-0400 [-] no groups
    2012-05-01 05:02:52-0400 [-] no groups
    2012-05-01 05:12:52-0400 [-] no groups
    2012-05-01 05:22:52-0400 [-] no groups
    2012-05-01 05:32:52-0400 [-] no groups
    2012-05-01 05:42:52-0400 [-] no groups
    2012-05-01 05:52:52-0400 [-] no groups
    2012-05-01 06:02:52-0400 [-] no groups
    2012-05-01 06:12:52-0400 [-] no groups
    2012-05-01 06:22:52-0400 [-] no groups
    2012-05-01 06:32:52-0400 [-] no groups
    2012-05-01 06:42:52-0400 [-] no groups
    2012-05-01 06:52:52-0400 [-] no groups
    2012-05-01 07:02:52-0400 [-] no groups
    2012-05-01 07:12:52-0400 [-] no groups
    2012-05-01 07:22:52-0400 [-] no groups
    2012-05-01 07:32:52-0400 [-] no groups
    2012-05-01 07:42:52-0400 [-] no groups
    2012-05-01 07:52:52-0400 [-] no groups
    2012-05-01 08:02:52-0400 [-] no groups
    2012-05-01 08:12:52-0400 [-] no groups
    2012-05-01 08:22:52-0400 [-] no groups
    2012-05-01 08:32:52-0400 [-] no groups
    2012-05-01 08:42:52-0400 [-] no groups
    2012-05-01 08:52:52-0400 [-] no groups
    2012-05-01 09:02:52-0400 [-] no groups
    2012-05-01 09:12:52-0400 [-] no groups
    2012-05-01 09:22:52-0400 [-] no groups
    2012-05-01 09:32:52-0400 [-] no groups
    2012-05-01 09:42:52-0400 [-] no groups
    2012-05-01 09:52:52-0400 [-] no groups
    2012-05-01 10:02:52-0400 [-] no groups
    2012-05-01 10:12:52-0400 [-] no groups
    2012-05-01 10:22:52-0400 [-] no groups
    2012-05-01 10:32:52-0400 [-] no groups
    2012-05-01 10:42:52-0400 [-] no groups
    2012-05-01 10:52:52-0400 [-] no groups
    2012-05-01 11:02:52-0400 [-] no groups
    2012-05-01 11:12:52-0400 [-] no groups
    2012-05-01 11:22:52-0400 [-] no groups
    2012-05-01 11:32:52-0400 [-] no groups
    2012-05-01 11:42:52-0400 [-] no groups
    2012-05-01 11:52:52-0400 [-] no groups
    2012-05-01 11:54:11-0400 [-] Received SIGTERM, shutting down.
    2012-05-01 11:54:11-0400 [-] Stopping
    2012-05-01 11:54:11-0400 [-] userPrefsFlushLooper stopped looping, doing final flush
    2012-05-01 11:54:11-0400 [-] mailingListFlushLooper stopped looping, doing final flush
    2012-05-01 11:54:11-0400 [-] no groups
    2012-05-01 11:54:11-0400 [-] Unhandled error in Deferred:
    2012-05-01 11:54:11-0400 [-] Unhandled Error
        Traceback (most recent call last):
          File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threadi ng.py", line 497, in __bootstrap
          File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threadi ng.py", line 522, in __bootstrap_inner
          File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/threadi ng.py", line 477, in run
        --- <exception caught here> ---
          File "/usr/share/caldavd/lib/python/twisted/python/threadpool.py", line 210, in _worker
            result = context.call(ctx, function, *args, **kwargs)
          File "/usr/share/caldavd/lib/python/twisted/python/context.py", line 59, in callWithContext
            return self.currentContext().callWithContext(ctx, func, *args, **kw)
          File "/usr/share/caldavd/lib/python/twisted/python/context.py", line 37, in callWithContext
            return func(*args,**kw)
          File "/usr/share/wikid/lib/python/apple_utilities/service.py", line 112, in delayedStart
            RepositoryManager.ensureRepository()
          File "/usr/share/wikid/lib/python/apple_utilities/RepositoryManager.py", line 55, in ensureRepository
            _ensureDirectoryWithReadWriteAccess(path)
          File "/usr/share/wikid/lib/python/apple_utilities/RepositoryManager.py", line 27, in _ensureDirectoryWithReadWriteAccess
            _ensureDirectory(inPath)
          File "/usr/share/wikid/lib/python/apple_utilities/RepositoryManager.py", line 24, in _ensureDirectory
            os.mkdir(inPath)
        exceptions.OSError: [Errno 2] No such file or directory: '/Volumes/Cota_Files/Library/Collaboration'
    2012-05-01 11:54:11-0400 [-] Main loop terminated.
    2012-05-01 11:54:11-0400 [-] Server Shut Down.
    2012-05-01 11:54:15-0400 [-] Log opened.
    2012-05-01 11:54:15-0400 [-] twistd 8.2.0 (/usr/bin/python 2.6.1) starting up.
    2012-05-01 11:54:15-0400 [-] reactor class: twisted.internet.selectreactor.SelectReactor.
    2012-05-01 11:54:15-0400 [-] Current log level is warn
    2012-05-01 11:54:15-0400 [-] twisted.web.server.Site starting on 8086
    2012-05-01 11:54:15-0400 [-] twisted.web2.channel.http.HTTPFactory starting on 8087
    2012-05-01 11:54:15-0400 [-] Starting
    2012-05-01 11:54:16-0400 [-] u"Couldn't load preferences for:traceyfarquharcotaoilcom at /Volumes/Cota_Files/Library/Collaboration/User Preferences/traceyfarquharcotaoilcom.plist"
    2012-05-01 11:54:17-0400 [-] in migration. repo version is: 23
    2012-05-01 11:54:17-0400 [-] Running
    2012-05-01 11:54:28-0400 [-] 127.0.0.1 - - [01/May/2012:15:54:27 +0000] "POST / HTTP/1.1" 200 130 "-" "Twisted/XMLRPClib"
    2012-05-01 11:54:28-0400 [HTTPChannel,1,127.0.0.1] 127.0.0.1 - - [01/May/2012:15:54:27 +0000] "POST / HTTP/1.1" 200 129 "http://aphrodite.cotaoil.net/groups/cotaedu/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    2012-05-01 11:54:28-0400 [-] 127.0.0.1 - - [01/May/2012:15:54:27 +0000] "POST / HTTP/1.1" 200 130 "-" "Twisted/XMLRPClib"
    2012-05-01 11:54:28-0400 [-] 127.0.0.1 - - [01/May/2012:15:54:27 +0000] "POST / HTTP/1.1" 200 57751 "http://aphrodite.cotaoil.net/groups/cotaedu/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    2012-05-01 11:54:29-0400 [HTTPChannel,3,127.0.0.1] 127.0.0.1 - - [01/May/2012:15:54:28 +0000] "POST / HTTP/1.1" 200 138 "http://aphrodite.cotaoil.net/groups/cotaedu/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    2012-05-01 11:54:29-0400 [-] 127.0.0.1 - - [01/May/2012:15:54:28 +0000] "POST / HTTP/1.1" 200 130 "-" "Twisted/XMLRPClib"
    2012-05-01 11:54:29-0400 [-] 127.0.0.1 - - [01/May/2012:15:54:28 +0000] "POST / HTTP/1.1" 200 130 "-" "Twisted/XMLRPClib"
    2012-05-01 12:44:29-0400 [-] 127.0.0.1 - - [01/May/2012:16:44:28 +0000] "POST / HTTP/1.1" 200 57751 "http://aphrodite.cotaoil.net/groups/cotaedu/" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    Log: wikid/access.log - this just shows my attemtps to hit a bookmark to /groups/cotaedu/wiki/167af/Adding_a_new_account.html not sure its relevant
    a/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    aphrodite.cotaoil.net - unauthenticated [01/May/2012:11:50:10 -0400] "GET /groups/cotaedu/wiki/167af/Adding_a_new_account.html HTTP/1.1" 503 1428 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    aphrodite.cotaoil.net - unauthenticated [01/May/2012:11:50:16 -0400] "GET /groups/cotaedu/wiki/167af/Adding_a_new_account.html HTTP/1.1" 503 1428 "-" "Mozilla/5.0 (Macintosh; Intel Mac OS X 10.7; rv:12.0) Gecko/20100101 Firefox/12.0"
    Thanks for any and all help.

    Apple Mobile Device not Starting
    ·   Windows Vista or Windows 7
    In the Start SearchServices.
    In the Programs
    Select Apple Mobile DeviceStop the service
    After the service has stopped, click Start the service.
    After the Apple Mobile Device service has started again, open iTunes and connect the device.

  • Command to Stop and Start the SBO Mailer Service

    Good day,
    I have an issue on my SAP server (SAP 2007 SP01 PL10) where the SBO Mailer server is intermittently stopping.  This is causing Emailed Alerts and emails from SAP to stop working.
    I want to create a Scheduled Task in Windows to run a batch file which will stop then restart the SBO Mailer service.
    Do you know the DOS command to stop and also start the SBO Mailer service?
    Thank you
    EvS

    Good Day,
    We have had the same problem. I Added this scheduled task to Validate if service is running and to Restart if Necessary..
    We are still working on this issue. I have a feeling itu2019s the SMTP rejecting the emails
    @echo off
    rem ***********************************************************************
    rem *                                                                     *
    rem *   This script will stop & restart the SAP SBO Mailer service        *
    rem *                                                                     *
    rem *   Created by Anthony Galvano from Syntax to recycle the service     *
    rem *   on Mar 22 2011                                                    *
    rem *                                                                     *
    rem ***********************************************************************
    call wmic /locale:ms_409 service where (name="B1LicenseService") get state /value | findstr State=Running
    if %ErrorLevel% EQU 0 (
        echo Running
    ) else (
        echo **** Now restarting SBOMailer service  ***
    net start SBOMail
    timeout /T 5
    Anthony

  • Stopping and starting database in 10G OEM

    Hello, has anyone run into an issue trying to stop and then start a database within the OEM console in 10G? We are able to stop and start the db with sql and windows services. We can stop the db in OEM but can't start it.

    When you come to the startup/shutdown:confirmation page before actually starting up the db, does the Operation parameter say "startup database in open mode" or is it "... in mount mode"?

  • Videos run intermitently; stop and start

    Videos do not run continuously. They stop and then start every few seconds. The same videos play fine on Internet Explorer.

    Reload the webpage while bypassing the cache
    *Hold down the ''Shift'' key and click the ''Reload'' button with a left click.
    *Press ''Ctrl'' + ''F5'' or ''Ctrl'' + ''Shift'' + ''R'' (Windows and Linux)
    *Press ''Command'' + ''Shift'' + ''R'' (Mac)
    Clear the cache and the cookies from sites that cause problems.
    '''Clear the Cache''': Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    '''Remove Cookies''' from sites causing problems:
    *Tools > Options > Privacy > Cookies: "Show Cookies"

  • How to make an effect stop and start again?

    How do I make an effect start stop and than start again?
    I'm trying to blur faces (I finally figured out how to do that---copy the video to a 2nd layer and use the mosiac and crop effects) but how do I make the effect only appear when the face is in the screen as multiple times throughout the video clip the subjects face goes off camera.  In the effect controls window it doesn't give me an option to add a blank keyframe.
    Any advice on how to have this effect start/stop multiple times in one clip??
    Thanks

    If the effect isn't keyable, try keyframing the transparency of the copy with the effects on it.

  • SSRS Report queries begin running slowly, have to stop and start report server to restore performance

    We have had a production issue crop up twice now where reports begin running slowly seemingly at random.  
    When this happens we can see from running SQL Profiler that the report queries are taking an extremely long time to execute.  The same queries when run directly in management studio run quickly.  
    Initially I suspected parameter sniffing, and tried using OPTION (RECOMPILE) in the reports, as well as clearing out the particular query from the plan cache and running the SQL in SSMS to try and get a better plan etc but no amount of jiggery pokery by
    me could get the queries to run any faster.
    The really weird thing - is that stopping and starting the report server via the reporting services configuration manager instantly cures the problem.  
    I'd really love to know - why this might be?  Is it something to do with the report server closing and re-opening its connections to the database? That's the only sort of thing I can think of...any ideas? Anyone? Any suggestions would be much appreciated.
    LucasF

    Hi LucasF,
    In your scenario, usually we can monitor the execution log in Report Database. If you run below query, you can get the results how long the report takes to render (TimeRendering), how long to process the report(TimeProcessing) and how long to retrieve data
    from Database(TimeData). You can check the starttime and endtime to know the total time for executing a report.
    SELECT TOP1000 *FROM[ReportServer].[dbo].[ExecutionLog2]
    More details information, please reference to similar thread below:
    Steps for troubleshooting a slow SSRS 2014 server
    Troubleshooting Reports: Report Performance
    In SQL Server Reporting Services, a job will be created by SQL Server Agent if any of the following processes is underway:
    query execution on a remote or local database server
    report processing
    report rendering
    To cancel a job that is running on the report server, we can cancel the job directly or reduce the report execution time-out value in the SQL Server Management Studio and then will stop query execution. Please refer to the steps below:
    Open SQL Server Management Studio, and connect to "Reporting Services".
    Under the Report Server node, right-click on the "Jobs" folder and select "Refresh". Then, right-click on "Jobs" again and click "Cancel All Jobs".
    Right-click on the Report Server node and open the "Server Properties" dialog.
    Click the "Execution" option, and set the "Limit report execution to the following number of seconds:" to a much smaller number. After this issue is resolved, this configuration should revert to the previous state.  
    Reference:
    Managing a Running Process
    Setting Time-out Values for Report and Shared Dataset Processing
    In addition, we can also use the KILL Transact-SQL statement to terminate a normal connection by terminating the transactions that are associated with the specified session ID. For the details information, you can refer to:
    KILL (Transact-SQL)
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • Old iBook with airport card

    Hi, I have a little problem and am an absolute novice in this field. I have a network set up at home with a Netgear router and 3 x G3/300 happily connected via wire. My son got himself an old iBook (in very good knick...) and the thing is equipped wi

  • Reg: Enqueue

    I have a module pool from where i am doing GR for a PO. I have to check whether that PO is opened or not. I use ENQUEUE_E_TABLE. But it is giving me sy-subrc 0 everytime, when ever a PO is open or close. Anyboy having idea how to check that.

  • How do I delete a print app

    Somehow I started a print app that I don't want, and it prints a newsletter everytime I start the printer and print an email or other document. How do I remove a print app, in this case the Sunday Times Digest. This question was solved. View Solution

  • How to enable Custome Attribute

    We wanted to create custome attribute for Version dimension in planning appliction but this option is disabled in planning web for this dimension property. How to enable the custome attribute option for version dimension in Hyperion Planning applicat

  • Restore album art from saved itunes or combine 2 itunes libraries

    I have two laptops, each with the same version of iTunes ( 11.2.0 ) but with different albums. There are no duplicates between the libraries. I can save and restore a single iTunes library with no problems. I get all the albums and all the cover art.