Shutdown Application Gracefully

Hi,
I have multiple threads running in application. Before killing application (forcefully), I want to make sure all threads have executed successfully. Following is the code abstract:
    public class MainClass {
    private static Thread1;
    private static Thread2;
    public static void main(String args[]) {
        thread1 = new Thread1();
        thread2 = new Thread2();
public class Thread1 implements Runnable {
    private ThreadPoolExecutor threadPoolExecutor;
    private final LinkedBlockingQueue<Runnable> blockingQueue = new LinkedBlockingQueue<Runnable>();
    public Thread1() {
        threadPoolExecutor = new ThreadPoolExecutor(10,100, 50000, TimeUnit.SECONDS, blockingQueue);
        Thread thread = new Thread(this);
        thread.start();
    public void run() {
        // some processing...
public class Thread2 implements Runnable {
    private ThreadPoolExecutor threadPoolExecutor;
    private final LinkedBlockingQueue<Runnable> blockingQueue = new LinkedBlockingQueue<Runnable>();
    public Thread2() {
        threadPoolExecutor = new ThreadPoolExecutor(10,100, 50000, TimeUnit.SECONDS, blockingQueue);
        Thread thread = new Thread(this);
        thread.start();
    public void run() {
        // some processing...
}Requirement is that all executing threads must be able to finish their task before the MainClass is stopped. Any help, with appropriate example, would be appreciated.
PS: I'm using Springframework too.

Dear TechSawi,
I am still a concurrency student and not an expert, but perhaps this could help.
In Java 5 there are some new components/tools for concurrency that seem very usefull. One of those is a CyclicBarrier. A CyclicBarrier lets you run an amounts of threads and the barrier has a blocking thread as well. The blocking thread is only executed when all the other threads are finished.
I have almost no experience with this object, but perhaps if you lookup how it works it might be of help. I have no idea if it will be usefull at all...
salutations,
Nicholas

Similar Messages

  • Failed to shutdown DBConsole Gracefully

    Hi everyone... I can't stop my dbconsole, this is my output
    ----Failed to shutdown DBConsole Gracefully----
    Failed
    My OS is linux, my database is      10.2.0.1.0 and it's a production server...
    Has anybody an idea....?
    Regards
    Carlos Julio.

    See this note on metalink:
    Database Control emctl stop dbconsole failing with error: Failed to shutdown DBConsole Gracefully
    Doc ID:335532.1
    Werner

  • Quiting applications gracefully from within LV

    Hello,
    Attached is an example VI that can be used to open and close a third party application. It does this using the System Exec vi and the windows comand line 'tskill'. The VI will prompt the user to go back to the application and save any changes.
    Is there an alternative comand line or method which will close the application gracefully, so it asks the user to save changes directly (the same as when the application is quit manually or it is closed by windows shutting down)?
    I am using XP sp3 and LV 8.6 (not very familiar with Windows comand lines etc though).
    Thanks,
    Blue 
    Attachments:
    Open close app from LV example.vi ‏24 KB

    Hello smercurio thanks for that link, very welcome! i have spent the last couple of days searching for something like that with no success. It contains the building blocks to do what i need.
    The comments below are so that hopefully some other nubie will come across the solution more easily than i did... (as search terms are easy once you know them - eg searching the forum for user32 and lvutil32 gives me no hits).
    How to begin to interact and manipulate with third party applications and windows from a LabView VI.
    The 'Call Library Function Node' alows LV to communicate with .dll (dynamic link library) files.
    The Windows API .dll for interacting with desktop windows is called 'user32.dll'
    Examples of LabView VIs calling user32.dll can be found in Lvutil32 at:
    http://zone.ni.com/devzone/cda/epd/p/id/2556 
    The VIs in Lvutil32 use both user32.dll and lvutil32.dll.
    User32.dll is part of Windows.
    Lvutil32.dll is not part of windows and will need to be included with any VIs that call it. 
    For VIs using windows command lines to launch applications it is necessary to include the full path to the application. Obviously moving the application from the path will cause an error. Alternatively you can edit the 'Path' entry in Control Panel > System Properties > Advanced > Environmental Variables > System Variables > Path to include the path to the application to be launched. This will mean that only the name of the application executable is needed.
    A great VI for experimenting sending simulated key strokes to the active application is Virtual Keyboard.vi posted at the link below by Peter (though you may need to reduce the 'Delay' input).
    http://forums.ni.com/ni/board/message?board.id=270&message.id=839&query.id=2019#M839 
    Comments, additions and corrections welcomed.
    Thanks again for the support, Blue 

  • "Ignore Sessions During Shutdown" and "Graceful Shutdown Sequence"

    Hi
    I have J2EE application consisting of WEB and EJB layers deployed on WL 8.1
    I start the Graceful Shutdown Sequence with Ignore Sessions During Shutdown option set. sessionDestroyed() method of registered HttpSessionListener is fired but at this moment JNDI tree is already empty, EJB module undeployed and the listener is not able to get to application's EJBs.
    In the documentation (http://e-docs.bea.com/wls/docs81/adminguide/overview_lifecycle.html#1045901) Ignore Sessions During Shutdown option is explained as follows:
    "If you enable this option WebLogic Server will drop all HTTP sessions immediately, rather than waiting for them to complete or timeout."
    What does "drop" mean here? Is this some exception to Graceful Shutdown Sequence and the following excerpt from the documentation? : "During a graceful shutdown, subsystems complete in-flight work and suspend themselves in a specific sequence and in a synchronized fashion, so that back-end subsystems like JDBC connection pools are available when front-end subsystems are suspending themselves."
    Regards

    Hi,
    You can use tcodes
    SMQR --> To register a queue
    SMQS --> To register a destination in Queue Schedular
    SMQ1 --> OutBound Queue Details
    SMQ2 --> Inbound Queue Details
    SXMB_ADMIN --> Manage Queue to register,deregister and activate the queue.
    Check the link for more details : http://help.sap.com/saphelp_nw04/helpdata/en/59/d9fa40ee14f26fe10000000a1550b0/frameset.htm
    For step details for server start/stop you can search on google for more details. And for an idea check the section Managing the SAP Start-Up Service via the SAP MMC Snap-In in the link https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/3e3fad90-0201-0010-2f91-c8907db40bfe
    Thanks!
    Edited by: sudhir tiwari on Nov 12, 2008 12:00 PM

  • Stoping JMS application graceful

    Hi
    I have one flat java JMS application starts with command line. Application is consumer of one queue and split messages in to many and finally insert into DataBase. Application also have two other threads.
    Here I am struggling with problem how to graceful stop this application with out any lost or fail.
    Currently I use �kill -9 pid� to stop this which is not proper.
    Kapil

    Hi,
    The process for creating/deploying "application resource" type JMS Modules are different from the "system" type modules.
    To create the module itself, users need to
    1) use any standard XML editor/IDE using the JMS module schema (http://www.bea.com/ns/weblogic/weblogic-jms/1.0/weblogic-jms.xsd)
    2) Use the WebLogic Admin console to create a "system resource" type module then copy/rename/edit the corresponding JMS module descriptor file (which gets created under DOMAIN/config/jms" dir) as needd and delete the corresponding "system resource" module using the Admin console abefore attempting to deploy the "application resource" module.
    For more information on this topic, please look at :
    http://e-docs.bea.com/wls/docs103/jms_admin/deployjms.html
    PS: Please note that the use of "default" targeting is not a recommended best practice when its comes to JMS resource targeting as it can quickly become very complicated when there are more than one JMS Servers in the domain.
    A list of best practice recommendations can be found at: (though this is listed under the context of Automatic Service Migration, it still applies to general JMS configuration process).
    http://e-docs.bea.com/wls/docs103/cluster/service_migration.html#wp1067914
    Hope this helps.

  • Graceful Shutdown of a Content Engine (CE510, CE565)

    May I come back to y.lo's message from January this year. He asked for a shutdown or halt command for CEs.
    There is a possibility to shutdown the NM-CE-BP (network module) with the service-module command form the IOS. There must be something similar in ACNS! In the manuals there is quite often a referenc to "orderly shutdown" or "gracefully shutdown", but I couldn't find the appropriate command anywhere near these references.
    Thanks.

    Its not exactly graceful but I've always done a reload with the console plugged in, then when the BIOS messages come up for accessing the flash (before the disk scan), I power it off. The theory is the disks have been cleanly shutdown and the linux subsystem will flushed the filesystems and the content engine isn't actually running. If there is a command I'd like to know it as well.
    regards
    Mark

  • Auto shutdown of idle applications

    We have a lot of older applications that are periodically used by our user group. These applications may be used once in the morning then sit idle, taking up memory and system resources for the rest of the day until all applications are stopped for the backup process. Is there a way to configure Essbase to shutdown applications that have been idle for a specified period of time?
    Thanks.
    Glenn

    API is overkill for this, MaxL can do it just fine. Here is an example using the Essbase.py module (code is similar for the Essbase Perl module)
    import Essbase
    esb = Essbase.Essbase()
    esbUser, esbPwd, esbSvr = 'UserId', 'mysupersecretpassword', 'localhost'
    esb.connect(esbUser, esbPwd, esbSvr)
    # Get set of active applications and databases
    stmt = "display database all"
    esb.do(stmt)
    actDbs = set([tuple(row[0:2]) for row in esb.rows() if row[31] == 2])
    actApps = set([dbs[0] for dbs in actDbs])
    # Get all session databases
    stmt = "display session all"
    esb.do(stmt)
    sessions = [row for row in esb.rows()]
    sessionDbs = set([tuple(row[3:5]) for row in sessions if row[4]])
    sessionApps = set([row[0] for row in sessionDbs])
    # Active but not in a session = Inactive
    inactiveDbs = actDbs - sessionDbs
    inactiveApps = actApps - sessionApps
    # Unload inactive databases
    for app, db in inactiveDbs:
    stmt = "alter application '%s' unload database '%s'" % (app, db)
    esb.execute(stmt,timefmt="%m/%d/%Y %H:%M:%S")
    # Unload inactive applications
    for app in inactiveApps:
    stmt = "alter system unload application '%s'" % app
    esb.execute(stmt,timefmt="%m/%d/%Y %H:%M:%S")
    esb.disconnect()
    Essbase.py is available at http://essbasepy.googlecode.com
    Edited by: dwelden on Dec 10, 2010 11:45 AM

  • Shutdown doesn't shutdown

    I have an annoying issue on my SunBlade 1000 running Solaris 9. and whenever I need to reboot/shutdown this box (which doesn't happen often) I run into it.
    When I use the shutdown command I see the warning message and that is it. The machine keeps running along merily. Using init doesn't help either.
    So far the only way I fount to shut this box down is using:
    sync
    sync
    halt
    But I'd like to close things a bit cleaner. Anyone got a suggestion what might be causing this?
    thanx

    The "sync; sync; halt" commands use to be fairly common back in the SunOS 4.x days. I wouldn't recommend it now. Although it will sync filesystems, it certainly won't shutdown any applications gracefully.
    The shutdown command (depending on the options) indirectly runs through the scripts in your various /etc/rc*.d directories. The default run level in solaris is typically run level three. shutdown will step you down from this level by issuing running calling the /etc/rc2 script with a stop option.
    My first suggestion would be to call this script manually.
    /etc/rc2 stop
    -This script will then go through the /etc/rc2.d directory and run each script which starts with a capital K (which stands for kill) in alphabetical/numerical order.
    Your system could be hanging on one of these scripts. If it continues, try the next run level stop script.
    /etc/rc1 stop
    /etc/rc0 stop
    Even if this doesn't show you what is screwing up shutdown, it'll be a much cleaner way to shutdown your system.
    Good luck!

  • Is there a way to have external drives automatically eject on shutdown?

    Hello. First post. I've owned this laptop for about eight months now. I just purchased a second external firewire drive, and today I forgot to eject either drive before shutting down. The Mac froze up, and I had to use Applejack (which I had luckily just installed) to bring it back. I'm worried I'll do this again, and with a videography business, this could result in a possible loss of data. I've googled and looked around here a bit...but as the post title says...is there a way to add this functionality to a Mac to avoid this in the future? Thanks.

    Hi Alex Matson-
    Greetings and welcome to the Apple Discussion boards
    As mentioned, selecting "shutdown" should gracefully close the drives.
    As an aside, I have a video business, and I find that 3 backups of all of my data has saved my rear more than once. One backup sits on my desktop, one is in a fireproof safe, and one is stored at a different location entirely.
    Should something catastrophic happen, like a flood, you will still have all of your data available on the off-site drive.
    You should also power your drives from the same UPS as your Mac.
    Luck-
    -DaddyPaycheck

  • Need input on developing cluster agent for java application

    I am new to Sun Cluster and i wanted to develop agent for failover for one of my Java application which sits on one of the node of sun cluster 3.1. Can you guys help me in this.
    My Java application is based on n-tier client server model. and this needs to failover.
    I have two sun machine having solaris 9, which is clustered with 3.1 sun cluster software.
    As i know there are two mwthods for developing the agent for your application.
    1) Generic Data services
    2) Sun Plex agent builder
    i wanted to use Sunplex agent builder with Ksh. Can you please tell me what all things required for starting it and how do i proceed.
    thanks in advance.

    Using GDS will be the simplest solution.
    You can write atleast one script - to start application:
    say '/MYAPP/start'
    This script can setup JAVA_HOME and other environment variables and start the application in background.
    # scrgadm -a -t SUNW.gds
    # scrgadm -a -g rg1
    # scrgadm -a -L -g rg1 -l hhead
    # scrgadm -a -t SUNW.gds -g rg1 -j app-rs \
    -x Start_command="/MYAPP/start"
    # scswitch -Z -g rg1
    # scstat -g
    Refer to GDS man page http://docs.sun.com/app/docs/doc/819-0582/6n30g7il4?q=GDS+&a=view
    and Data services developer's guide http://docs.sun.com/app/docs/doc/819-0581/6n30f91v4?a=view
    If you want custome probe or you want to stop application gracefully, then you can write stop and probe scripts and provide them in 'scrgadm' command as described in SUNW.gds man page.
    If you want to productize the agent, then you can consider using agent builder.

  • Shutdown / startup question

    Hi,
    If i have to shutdown the host machine and restart, is it advisable to stop the database using srvctl and then shutdown the OS ?
    Or, host shutdown will gracefully shutdown the db also ?
    Thanks
    Sunil

    If a RAC instance does not "survive" a normal o/s shutdown and reboot, then you have serious underlying problems. (and as mentioned, a shutdown provides running processes with the opportunity to gracefully terminate, before the kernel forcible kills the remaining processes).
    There should not be any concerns in this regard.
    My experience - the problem is very seldom with the RAC or ASM instances, but with h/w and driver layer. For example, a storage array change have been made. This change only becomes visible when a server physically resets it HBA channel to the storage system. This means that after a reboot, a RAC server node may now see a different (and correct) configuration than existing running RAC nodes (that see the older configuration). Depending on what changes have been made, it could potentially impact the startup of CRS and RAC on that rebooted node.. or could cause this node to start an eviction process of the other nodes.
    But 99% of the time, you should not have the slightest concern of hitting a server node with a shutdown command. If you do.. then there are unresolved problems with your cluster's configuration and setup.

  • SYNC TIME ON APPLICATION SERVERS AND DATABASE SERVERS

    Our case is:
    We have system used for north america (NA) and system used for Europe (EUP).
    North American users are using NA systems (say P510 system), Europe users are using EUP systems (say P710 system).The system time on NA systems are EDT, the system time on EUP systems are CEST
    for exmaple:
    NA systems:
    [CA096658@st1lx014 ~]$ date
    Tue Sep 29 20:45:31 EDT 2009
    EUP systems:
    [CA096658@st1lx008 ~]$ date
    Wed Sep 30 02:29:28 CEST 2009
    P510 is the production system for NA, there are 4 application servers, 2 database servers, RAC, the system time show up on the os on these 6 servers are not sync, we want to sync the system time on these 6 servers to be the same EDT time. same thing to EUP systems, we want to sync the system time to be the same CEST time.
    We need to change that at the unix level, my question is:
    1) do we need to change anything at the database and application level ?
    2) before we change the time at the unix level, do we need to shutdown application and database ?

    >
    1) do we need to change anything at the database and application level ?
    >
    AFAIK, you do not have to change anything. EBS has the capability to perform timezone conversion. Pl see MOS Doc 330075.1 (User Preferred Time Zone Support Guidelines for Applications 11i10CU2)
    >
    2) before we change the time at the unix level, do we need to shutdown application and database ?
    >
    It is best practice to shut down all applications/databases before changing server time.
    HTH
    Srini

  • Grep applprod after shutdown

    Hai all,
    EBS version is 11.5.10.2
    DB 9R2P6
    appsuser : applprod
    whenever am shutting down EBS ,, even after 10 mins..
    ps -ef | grep applprod | wc -l
    command shows 50 or 45..
    when am queryin for FND like
    ps -ef | grep FND | wc -l
    it shows 1..
    is this normal ?..
    Comments please
    Yusuf

    whenever am shutting down EBS ,, even after 10 mins..
    ps -ef | grep applprod | wc -l
    command shows 50 or 45.. If you shutdown application services then the above should return zero entries (Or one if you include the grep command).
    when am queryin for FND like
    ps -ef | grep FND | wc -l
    it shows 1..
    is this normal ?.. This also should return no records (Or just one record for the grep command).
    Assuming that you have a different ower (i.e oracle) for the database tier.

  • OC4J_DBConsole_test_orcl not found

    Hi
    I am facing a problem to start enterprise manger
    ----------------- it is single instance 10.2.0.5.0 OEL5.0
    I wan
    -bash-3.2$ emctl start dbconsole
    TZ set to Asia/Karachi
    OC4J Configuration issue. /ora/app/oracle/product/102/db1/oc4j/j2ee/OC4J_DBConsole_test_orcl not found
    but when i see
    -bash-3.2$ cd /ora/app/oracle/product/102/db1/oc4j/j2ee/
    -bash-3.2$ ll
    total 40
    -rw-r--r-- 1 oracle oinstall 504 Oct 15 2010 deploy_db.ini
    drwxr-x--- 15 oracle oinstall 4096 Sep 23 2010 home
    drwxr-x--- 9 oracle oinstall 4096 Sep 23 2010 isqlplus
    drwxr-x--- 3 oracle oinstall 4096 Sep 23 2010 oc4j_applications
    -rw-r----- 1 oracle oinstall 735 Nov 8 23:03 sqlnet.log
    there is not such file like "OC4J_DBConsole_test_orcl"
    ++++++++++++++++++++++++++++++++++++++++++++++
    I have tried such
    -bash-3.2$ emca -config dbcontrol db -repos recreate
    STARTED EMCA at Nov 10, 2011 12:06:55 AM
    EM Configuration Assistant, Version 10.2.0.5.0 Production
    Copyright (c) 2003, 2009, Oracle. All rights reserved.
    Enter the following information:
    Database SID: orcl
    Listener port number: 1521
    Password for SYS user:
    Password for DBSNMP user:
    Password for SYSMAN user:
    Email address for notifications (optional):
    Outgoing Mail (SMTP) server for notifications (optional):
    You have specified the following settings
    Database ORACLE_HOME ................ /ora/app/oracle/product/102/db1
    Local hostname ................ test
    Listener port number ................ 1521
    Database SID ................ orcl
    Email address for notifications ...............
    Outgoing Mail (SMTP) server for notifications ...............
    WARNING : While repository is dropped the database will be put in quiesce mode.
    Do you wish to continue? [yes(Y)/no(N)]: Y
    Nov 10, 2011 12:07:22 AM oracle.sysman.emcp.EMConfig perform
    INFO: This operation is being logged at /ora/app/oracle/product/102/db1/cfgtoollogs/emca/orcl/emca_2011-11-10_12-06-55-AM.log
    Nov 10, 2011 12:07:36 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Dropping the EM repository (this may take a while) ...
    Nov 10, 2011 12:07:36 AM oracle.sysman.emcp.EMReposConfig dropRepository
    INFO: Dropping the EM repository (this may take a while) ...
    Nov 10, 2011 12:11:44 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully dropped
    Nov 10, 2011 12:11:44 AM oracle.sysman.emcp.EMReposConfig createRepository
    INFO: Creating the EM repository (this may take a while) ...
    Nov 10, 2011 12:16:41 AM oracle.sysman.emcp.EMReposConfig invoke
    INFO: Repository successfully created
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.util.FileUtil setAttributeInXML
    SEVERE: Error parsing XML file /ora/app/oracle/product/102/db1/oc4j/j2ee/OC4J_DBConsole/config/server.xml
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating OC4J configuration files
    Refer to the log file at /ora/app/oracle/product/102/db1/cfgtoollogs/emca/orcl/emca_2011-11-10_12-06-55-AM.log for more details.
    Could not complete the configuration. Refer to the log file at /ora/app/oracle/product/102/db1/cfgtoollogs/emca/orcl/emca_2011-11-10_12-06-55-AM.log for more details.
    +++++++++++++++++++++++++++++++LOG SHOWS FOLLOWING ++++++++++++++++++++++++++++++++
    CONFIG: Completed copying file /ora/app/oracle/product/102/db1/sysman/config/emoms.properties.emca to /ora/app/oracle/product/102/db1/sysman/config/emoms.properties
    Nov 10, 2011 12:16:51 AM oracle.sysman.emcp.util.FileUtil _copyFile
    CONFIG: Completed copying file /ora/app/oracle/product/102/db1/sysman/config/emoms.properties.emca.util.tmp to /ora/app/oracle/product/102/db1/sysman/config/emoms.properties
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.ParamsManager getParam
    CONFIG: No value was set for the parameter ORACLE_HOSTNAME.
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.util.FileUtil setAttributeInXML
    SEVERE: Error parsing XML file /ora/app/oracle/product/102/db1/oc4j/j2ee/OC4J_DBConsole/config/server.xml
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.util.FileUtil setAttributeInXML
    CONFIG: Stack Trace:
    java.io.FileNotFoundException: /ora/app/oracle/product/102/db1/oc4j/j2ee/OC4J_DBConsole/config/server.xml (No such file or directory)
    at java.io.FileInputStream.open(Native Method)
    at java.io.FileInputStream.<init>(FileInputStream.java:106)
    at java.io.FileInputStream.<init>(FileInputStream.java:66)
    at java.io.FileReader.<init>(FileReader.java:41)
    at oracle.sysman.emcp.util.FileUtil.setAttributeInXML(FileUtil.java:969)
    at oracle.sysman.emcp.EMDBCConfig.instantiateOC4JConfigFiles(EMDBCConfig.java:933)
    at oracle.sysman.emcp.EMDBCConfig.performConfiguration(EMDBCConfig.java:405)
    at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:162)
    at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:136)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:172)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:494)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1161)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:478)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:426)
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.EMDBCConfig instantiateOC4JConfigFiles
    CONFIG: Failed to set value in server.xml for application-server tag
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.EMConfig perform
    SEVERE: Error instantiating OC4J configuration files
    Refer to the log file at /ora/app/oracle/product/102/db1/cfgtoollogs/emca/orcl/emca_2011-11-10_12-06-55-AM.log for more details.
    Nov 10, 2011 12:16:52 AM oracle.sysman.emcp.EMConfig perform
    CONFIG: Stack Trace:
    oracle.sysman.emcp.exception.EMConfigException: Error instantiating OC4J configuration files
    at oracle.sysman.emcp.EMDBCConfig.performConfiguration(EMDBCConfig.java:409)
    at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:162)
    at oracle.sysman.emcp.EMDBCConfig.invoke(EMDBCConfig.java:136)
    at oracle.sysman.emcp.EMConfig.perform(EMConfig.java:172)
    at oracle.sysman.emcp.EMConfigAssistant.invokeEMCA(EMConfigAssistant.java:494)
    at oracle.sysman.emcp.EMConfigAssistant.performConfiguration(EMConfigAssistant.java:1161)
    at oracle.sysman.emcp.EMConfigAssistant.statusMain(EMConfigAssistant.java:478)
    at oracle.sysman.emcp.EMConfigAssistant.main(EMConfigAssistant.java:426)
    If any body know about it kindly help
    Regards
    SREHMAN

    Hi
    I did install again database but now problem is that :
    [oracle@test bin]$ emctl status dbconsole
    TZ set to Asia/Karachi
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    https://test.oracle.com:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    Logs are generated in directory /ora/app/oracle/product/102/db1/test.oracle.com_prod/sysman/log
    [oracle@test bin]$ emctl start dbconsole
    TZ set to Asia/Karachi
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    https://test.oracle.com:1158/em/console/aboutApplication
    - An instance of Oracle Enterprise Manager 10g Database Control is already running.
    +++++++++++++++++++++++++++++++++
    while when i try to check the status it shows following
    [oracle@test bin]$ emctl status dbconsole
    TZ set to Asia/Karachi
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    https://test.oracle.com:1158/em/console/aboutApplication
    Oracle Enterprise Manager 10g is not running.
    when i try to stop it :
    [oracle@test bin]$ emctl stop dbconsole
    TZ set to Asia/Karachi
    Oracle Enterprise Manager 10g Database Control Release 10.2.0.5.0
    Copyright (c) 1996, 2010 Oracle Corporation. All rights reserved.
    https://test.oracle.com:1158/em/console/aboutApplication
    Stopping Oracle Enterprise Manager 10g Database Control ...
    --- Failed to shutdown DBConsole Gracefully ---
    it is amazing for me
    when i try to open em it login successfully but show following error
    Server Error
    java.util.MissingResourceException: Can't find resource for bundle oracle.sysman.db.rsc.LoginResource, key connectStringError
         at java.util.ResourceBundle.getObject(ResourceBundle.java:325)
         at java.util.ResourceBundle.getObject(ResourceBundle.java:322)
         at java.util.ResourceBundle.getString(ResourceBundle.java:285)
         at oracle.sysman.emo.adm.LoginBean.getErrMsg(LoginBean.java:416)
         at oracle.sysman.emo.adm.LoginBean.validate(LoginBean.java:241)
         at oracle.sysman.emo.adm.LoginBean.login(LoginBean.java:268)
         at oracle.sysman.db.adm.LoginController.doLogin(LoginController.java:572)
         at oracle.sysman.db.adm.BaseController.redirectIfNotLoggedIn(BaseController.java:915)
         at oracle.sysman.db.adm.BaseController.handleEvent(BaseController.java:1019)
         at oracle.sysman.emSDK.svlt.PageHandler.handleRequest(PageHandler.java:376)
         at oracle.sysman.db.adm.RootController.handleRequest(RootController.java:172)
         at oracle.sysman.db.adm.DBControllerResolver.handleRequest(DBControllerResolver.java:129)
         at oracle.sysman.emSDK.svlt.EMServlet.myDoGet(EMServlet.java:688)
         at oracle.sysman.emSDK.svlt.EMServlet.doGet(EMServlet.java:291)
         at oracle.sysman.eml.app.Console.doGet(Console.java:315)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:65)
         at oracle.sysman.eml.app.BrowserVersionFilter.doFilter(BrowserVersionFilter.java:98)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:16)
         at oracle.sysman.emSDK.svlt.EMRedirectFilter.doFilter(EMRedirectFilter.java:101)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.db.adm.inst.HandleRepDownFilter.doFilter(HandleRepDownFilter.java:151)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:20)
         at oracle.sysman.eml.app.ContextInitFilter.doFilter(ContextInitFilter.java:304)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:600)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:317)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:793)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:270)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].server.http.HttpRequestHandler.run(HttpRequestHandler.java:112)
         at com.evermind[Oracle Application Server Containers for J2EE 10g (9.0.4.1.0)].util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:186)
         at java.lang.Thread.run(Thread.java:534)
    Have you any suggestion
    Regards
    X

  • Server versus Server Admin

    The installation of Lion Server on top of Snow Leopard went smoothly but configuring it is a nightmare. It tried some features I did not use before and thenI started to lose users, groups connections and my patience. I have OS server up and running, configuring it myself. Although there are some fundamental problems, it works for the family at home.
    One basic problem I have is when to use Server and when Server Admin. They do not seem to use the same data so that means for me they do not work together. I am talking about a basic thing like hostname. They cannot be the same as Admin Server Admin creates it's own name. When linking the network account server in the user settings it gives within 5 minutes without changing anything the name from the server and then the name from the server admin program. What is wrong.
    Thanks for your response

    Graceful shutdown using weblogic.Admin SHUTDOWN has it advantages. It allows
    WLS to invoke the shutdown class as also undeploy applications gracefully. If
    you have SNMP Agent running then it can send a shutdown trap to the trap
    receiver.
    A Unix kill goes directly to the java process and WLS cannot do anything on
    that.
    So, the option depends upon whether you have to do any cleanup while shutting
    down or immediately shut down without any clean up.
    cheers,
    Mihir
    Eric F wrote:
    What's the advantage of using java weblogic.Admin SHUTDOWN to shutdown a
    server versus simply issuing a UNIX kill on the process? We've just
    recently started using the SHUTDOWN command versus kill, but our developers
    don't like how much time it takes to perform the graceful shutdown versus a
    hard kill.
    Thanks,
    Eric

Maybe you are looking for

  • Why do I get duplicate events in iCal when I input them on my iPhone?

    Every time I add a new event on my iPhone (as opposed to my iPad or desktop) I get a duplicate entry. This started to occur a few days ago for no apparent reason. This does not happen if I input the event on any other device. Is there a way to solve

  • My problem and why i used the word sabotage that got deleted

    i asked a gazzillion times how to deactivate the feature that auto redials the mised call...like at 4 in the morning if i go to iphone. i was told ....if you look through the plethora of begging by me,i was told it is not true...then another person s

  • How can i recover my iTunes library when i reformated mac

    The other day i decided to reformat my Macbook just becouse i wanted to start again clean. I put my iTunes library in an external drive like i should have done. But when i finished reinstaling OS X and i checked my external hard drive my iTunes libra

  • DVCPRO HD Varicam capture of 720/24p (not 23.978)

    Hi, I was hoping someone could help me, im hiring in a AJHD-1400 deck to digitise some footage shot on the AJ-HDC27 Varicam. It was shot at 720/24p at 60hz meaning that the frame rate is true 24fps not 23.978fps. I had limited access to one a while b

  • Windows Media file write failure

    Help, I'm using a Gateway computer with Windows XP Professional OS, version 2002 and Service Pack3. It has Intel Core CPU, 6600 @ 2.40GHz, 2.41 GHz, 2.00 GB of RAM. I have both Premiere Pro CS3 and CS4 installed. There's 54.1 GB of free space on my H