Java thread that start executing everyday on given time

Hello
I need to write an java file using thread
that can start executing everyday on given time say everyday 14:00.
Can any one have any example..?

If on a Windows platform, you could run your Java class via a [Task Scheduler|http://support.microsoft.com/kb/308569].

Similar Messages

  • A Java program that runs automatically at a given time of day

    Okay Iam at the ending stages of a Java Assignment that is a MySql database, Hibernate for Mapping with a Java Server Faces front-end. All I need to do now is send emails at set time every week. Normally I know what to search for but frankly Iam stumped. Iam really just looking for a starting point for something that can run a Java Program at a set time of the week. PS my OS is Ubuntu if that is relevant but I was hoping for something that isn't platform specific so that it is portable.
    Cheers in advance.

    You can use the possibilities of your operating system, in this case Ubuntu.
    Just drop a shell script that runs your java program in the /etc/cron.weekly directory.
    --janeiros                                                                                                                                                                                                                                                                                                                                                                   

  • Getting two midi threads to start at exactly the same time

    Hello, is it possible to get two threads to start at exactly the same time because when I start two threads or more at the same time that playback midi using a synthesizer, they never start at exactly the same time.
    Any help would be appreciated.

    Use the Behavior framework for making changes in the scene. This uses an internal j3d thread which is in sync with the rendering thread.
    See chapter 4 (Interaction) and 5 (Animation) in the 2nd module of the j3d tutorial (this may not be the correct chapters, since i have a rather old version of the tutorial)

  • I want to execute other java thread in the JNI.

    Hi!
    I would like to execute other java native thread concurrently in the Java Native Interface.
    When a Java thread called a native thread to use java native interface, Java thread is blocking for processing native thread.
    So, other java threads don't execute because they are blocking.
    Why do these problems occur at JVM(personal basis profile:CVM)?
    I hope you explain this reason in detail.
    Regard.
    Message was edited by:
    peeppeep

    Cross post
    http://forum.java.sun.com/thread.jspa?threadID=786857&messageID=4471999#4471999

  • Basic query in JAVA Threads....Please reply !!

    I have a class (say ABC) which extends Thread...This class basically
    reads some file which provides some start-time and stop-time information..
    File structure is like:-
    ===========================================
    <Entry1>Starttime = A and Stoptime = B
    ===========================================
    Logic is that thread sleeps till time A arrived, then do some operations (which are written
    in it's run() method) till stoptime..
    The object of ABC class is being constructed in some other class.
    Now there is a change....File can have multiple entries like..
    ======================================
    <Entry1>starttime = A and stoptime = B
    <Entry2>starttime = X and stoptime = Z
    <Entry3>starttime = A and stoptime = B
    <Entryn>starttime = X and stoptime = Z
    ======================================
    The start-time and stop-time of any two Entries can be same or different.
    The operations should start executing at the defined time..
    In this case, multiple threads are required, which can do the operations
    mentioned in Entry1,2 etc.....But how should it be implemented..
    My query is:-
    1) Can I have a common-wrapper class, which reads the file and based on
    the number of Entries, instantiates that much number of threads...
    But how to do that....I am new to JAVA...Should that class be a simple
    class...or should it also implement Thread/Runnable interface.....
    Or can I implement it as ThreadGroup......
    Please give soem suggestions....Thanks...

    e.g.
            ScheduledExecutorService exec = Executors.newScheduledThreadPool(2);
            exec.schedule(new Runnable() {
                public void run() {
                    runTask();
            }, delay, TimeUnit.MILLISECONDS);

  • Java Server unavailable (in yellow )- status "starting apps for a long time

    Hi Gurus,
    J2ee Server unavailable in the NWDS instance and the dispatcher is running but the status of the Java Server is "Starting Apps " for a long time( in yellow).can anyone help me out in this ,solutions rewarded
    We are having the 2 server nodes
    Trace of node o:
    stdout/stderr redirect
    node name : server0
    pid : 4168
    system name : KDS
    system nr. : 00
    started at : Thu Dec 20 14:27:26 2007
    Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    Thr 2904 MtxInit: -2 0 0
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
    CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue
    CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode
    CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode
    CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto
    SAP J2EE Engine Version 7.00 PatchLevel 108458.44 is starting...
    Loading: LogManager ... 3190 ms.
    Loading: PoolManager ... 16 ms.
    Loading: ApplicationThreadManager ... 265 ms.
    Loading: ThreadManager ... 47 ms.
    Loading: IpVerificationManager ... 32 ms.
    Loading: ClassLoaderManager ... 31 ms.
    Loading: ClusterManager ... 719 ms.
    Loading: LockingManager ... 125 ms.
    Loading: ConfigurationManager ... 12946 ms.
    Loading: LicensingManager ... 47 ms.
    Loading: CacheManager ... 469 ms.
    Loading: ServiceManager ...
    Loading services.:
    Service cafeuodi~mnuacc started. (0 ms).
    Service cross started. (16 ms).
    Service memory started. (16 ms).
    Service file started. (16 ms).
    Service DQE started. (0 ms).
    Service cafeucc~api started. (16 ms).
    Service userstore started. (15 ms).
    Service runtimeinfo started. (266 ms).
    Service jmx_notification started. (188 ms).
    Service timeout started. (360 ms).
    Service trex.service started. (313 ms).
    Service p4 started. (954 ms).
    Service classpath_resolver started. (15 ms).
    Service log_configurator started. (22420 ms).
    Service locking started. (16 ms).
    Service http started. (1141 ms).
    Service naming started. (1329 ms).
    Service failover started. (109 ms).
    Service appclient started. (266 ms).
    Service jmsconnector started. (329 ms).
    Service javamail started. (798 ms).
    Service ts started. (375 ms).
    Service licensing started. (15 ms).
    Service connector started. (548 ms).
    Service webservices started. (1219 ms).
    Service iiop started. (766 ms).
    Service deploy started. (71073 ms).
    Service MigrationService started. (1110 ms).
    Service configuration started. (141 ms).
    Service bimmrdeployer started. (203 ms).
    service MobileSetupGeneration ================= ERROR =================
    Service MobileArchiveContainer started. (31 ms).
    Service dbpool started. (3924 ms).
    Service cafeugpmailcf started. (78 ms).
    Service com.sap.security.core.ume.service started. (8364 ms).
    Service tcdisdic~srv started. (1297 ms).
    Service security started. (6926 ms).
    Service classload started. (266 ms).
    Service applocking started. (281 ms).
    Service ejb started. (656 ms).
    Service shell started. (563 ms).
    Service tceCATTPingservice started. (125 ms).
    Service telnet started. (1266 ms).
    Service cafummetadata~imp started. (2204 ms).
    Service webdynpro started. (1782 ms).
    Service developmentserver started. (2579 ms).
    Service servlet_jsp started. (3846 ms).
    Service dsr started. (3283 ms).
    Service keystore started. (3330 ms).
    Service ssl started. (0 ms).
    Service tcseccertrevoc~service started. (391 ms).
    Service tcsecsecurestorage~service started. (516 ms).
    Service cafeugp~model started. (32 ms).
    Service cafeuer~service started. (0 ms).
    Service tceujwfuiwizsvc started. (0 ms).
    Service cafruntimeconnectivity~impl started. (98747 ms).
    Service cafumrelgroups~imp started. (3815 ms).
    Service jmx started. (4080 ms).
    Service tclmctcconfsservice_sda started. (1048 ms).
    Service CUL started. (1126 ms).
    Service rfcengine started. (3143 ms).
    Service basicadmin started. (5065 ms).
    Service com.adobe~LicenseService started. (954 ms).
    Service tcsecwssec~service started. (10319 ms).
    Service com.adobe~DocumentServicesBinaries2 started. (5518 ms).
    Service com.adobe~PDFManipulation started. (3236 ms).
    Service com.adobe~DocumentServicesLicenseSupportService started. (3251 ms).
    Service com.adobe~DataManagerService started. (5550 ms).
    Service com.adobe~FontManagerService started. (5612 ms).
    Service adminadapter started. (1626 ms).
    Service com.sap.portal.pcd.gl started. (16 ms).
    Service apptracing started. (2846 ms).
    Service monitor started. (1298 ms).
    Service tcsecdestinations~service started. (13054 ms).
    Service sld started. (13492 ms).
    Service com.sap.portal.prt.sapj2ee started. (1923 ms).
    Service pmi started. (1610 ms).
    Service com.adobe~XMLFormService started. (8302 ms).
    Service prtbridge started. (11335 ms).
    Service com.adobe~DocumentServicesDestProtoService started. (1767 ms).
    Service tcsecvsi~service started. (6300 ms).
    Service jms_provider started. (15931 ms).
    Service com.adobe~DocumentServicesConfiguration started. (12366 ms).
    Service com.adobe~TrustManagerService started. (188 ms).
    Service tc.monitoring.logviewer started. (23701 ms).
    ServiceManager started for 142475 ms.
    Framework started for 161863 ms.
    SAP J2EE Engine Version 7.00 PatchLevel 108458.44 is running!
    PatchLevel 108458.44 May 05, 2007 14:23 GMT
    Trace of Node 1:
    stdout/stderr redirect
    node name : server1
    pid : 4168
    system name : KDS
    system nr. : 00
    started at : Thu Dec 20 14:27:26 2007
    Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    Thr 6244 MtxInit: -2 0 0
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
    CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue
    CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode
    CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode
    CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto
    SAP J2EE Engine Version 7.00 PatchLevel 108458.44 is starting...
    Loading: LogManager ... 1720 ms.
    Loading: PoolManager ... 16 ms.
    Loading: ApplicationThreadManager ... 250 ms.
    Loading: ThreadManager ... 78 ms.
    Loading: IpVerificationManager ... 31 ms.
    Loading: ClassLoaderManager ... 16 ms.
    Loading: ClusterManager ... 500 ms.
    Loading: LockingManager ... 704 ms.
    Loading: ConfigurationManager ... 10491 ms.
    Loading: LicensingManager ... 31 ms.
    Loading: CacheManager ... 235 ms.
    Loading: ServiceManager ...
    Loading services.:
    0.000: [GC 0.000: DefNew: 87040K->8111K(130560K), 0.0858880 secs] 87040K->8111K(1005056K), 0.0860550 secs
    Service cafeuodi~mnuacc started. (0 ms).
    Service DQE started. (297 ms).
    Service cafeucc~api started. (109 ms).
    Service cross started. (390 ms).
    Service file started. (390 ms).
    Service runtimeinfo started. (422 ms).
    Service userstore started. (376 ms).
    Service memory started. (673 ms).
    Service jmx_notification started. (453 ms).
    Service timeout started. (875 ms).
    Service trex.service started. (704 ms).
    Service p4 started. (656 ms).
    Service classpath_resolver started. (46 ms).
    14.066: [GC 14.066: DefNew: 95151K->10393K(130560K), 0.0932969 secs] 95151K->10393K(1005056K), 0.0934684 secs
    19.895: [GC 19.896: DefNew: 97433K->11125K(130560K), 0.0509232 secs] 97433K->11125K(1005056K), 0.0511944 secs
    Service log_configurator started. (24420 ms).
    Service locking started. (16 ms).
    25.557: [GC 25.557: DefNew: 98165K->13919K(130560K), 0.0770372 secs] 98165K->13919K(1005056K), 0.0771960 secs
    Service http started. (1282 ms).
    Service naming started. (1392 ms).
    Service failover started. (1235 ms).
    Service appclient started. (1485 ms).
    Service javamail started. (1829 ms).
    Service ts started. (1767 ms).
    Service jmsconnector started. (1876 ms).
    Service licensing started. (110 ms).
    Service connector started. (907 ms).
    Service iiop started. (532 ms).
    Service webservices started. (2438 ms).
    48.200: [GC 48.200: DefNew: 100959K->25542K(130560K), 0.1360955 secs] 100959K->25542K(1005056K), 0.1363436 secs
    54.474: [GC 54.474: DefNew: 112582K->20164K(130560K), 0.1008394 secs] 112582K->20164K(1005056K), 0.1009996 secs
    69.199: [GC 69.200: DefNew: 107204K->22875K(130560K), 0.1197005 secs] 107204K->22875K(1005056K), 0.1200568 secs
    Service deploy started. (72543 ms).
    Service configuration started. (140 ms).
    Service bimmrdeployer started. (31 ms).
    Service MigrationService started. (562 ms).
    Service MobileArchiveContainer started. (1516 ms).
    Service MobileSetupGeneration started. (1595 ms).
    Service dbpool started. (5206 ms).
    Service cafeugpmailcf started. (63 ms).
    Service com.sap.security.core.ume.service started. (8161 ms).
    87.782: [GC 87.782: DefNew: 109911K->29413K(130560K), 0.1891978 secs] 109911K->29413K(1005056K), 0.1893808 secs
    Service tcdisdic~srv started. (1282 ms).
    Service security started. (3033 ms).
    Service classload started. (156 ms).
    Service applocking started. (157 ms).
    Service shell started. (313 ms).
    Service tceCATTPingservice started. (94 ms).
    Service telnet started. (312 ms).
    Service ejb started. (922 ms).
    Service developmentserver started. (453 ms).
    Service webdynpro started. (547 ms).
    Service servlet_jsp started. (1173 ms).
    Service dsr started. (1063 ms).
    Service keystore started. (1344 ms).
    Service ssl started. (16 ms).
    Service tcseccertrevoc~service started. (578 ms).
    Service jmx started. (1110 ms).
    Service tcsecsecurestorage~service started. (1047 ms).
    94.120: [GC 94.120: DefNew: 116453K->43520K(130560K), 0.2516995 secs] 116453K->55613K(1005056K), 0.2519682 secs
    Service tclmctcconfsservice_sda started. (2580 ms).
    Service CUL started. (3549 ms).
    Service cafummetadata~imp started. (6254 ms).
    Service cafeugp~model started. (1329 ms).
    Service rfcengine started. (3737 ms).
    Service cafeuer~service started. (0 ms).
    Service tceujwfuiwizsvc started. (16 ms).
    Service com.adobe~DocumentServicesLicenseSupportService started. (4300 ms).
    Service com.adobe~FontManagerService started. (5425 ms).
    Service com.adobe~DataManagerService started. (5582 ms).
    Service com.adobe~DocumentServicesBinaries2 started. (5910 ms).
    Service com.adobe~PDFManipulation started. (4315 ms).
    Service basicadmin started. (7254 ms).
    Service cafruntimeconnectivity~impl started. (100294 ms).
    Service com.adobe~LicenseService started. (297 ms).
    Service prtbridge started. (8098 ms).
    Service apptracing started. (3643 ms).
    Service tcsecwssec~service started. (8208 ms).
    Service adminadapter started. (1532 ms).
    Service cafumrelgroups~imp started. (5613 ms).
    Service com.sap.portal.pcd.gl started. (438 ms).
    104.035: [GC 104.036: DefNew: 130560K->43520K(130560K), 0.4183386 secs] 142653K->62215K(1005056K), 0.4185225 secs
    Service com.adobe~XMLFormService started. (9162 ms).
    Service monitor started. (3268 ms).
    Service sld started. (12382 ms).
    Service com.sap.portal.prt.sapj2ee started. (125 ms).
    106.513: [GC 106.513: DefNew: 130545K->40021K(130560K), 0.2210693 secs] 149241K->63511K(1005056K), 0.2212475 secs
    Service com.adobe~DocumentServicesConfiguration started. (7645 ms).
    Service com.adobe~TrustManagerService started. (94 ms).
    Service tcsecdestinations~service started. (14790 ms).
    110.328: [GC 110.329: DefNew: 126991K->37367K(130560K), 0.1896564 secs] 150481K->64176K(1005056K), 0.1898111 secs
    Service pmi started. (1939 ms).
    Service com.adobe~DocumentServicesDestProtoService started. (78 ms).
    Service tcsecvsi~service started. (2079 ms).
    114.407: [GC 114.407: DefNew: 124395K->38325K(130560K), 0.1181515 secs] 151204K->65134K(1005056K), 0.1183338 secs
    119.591: [GC 119.591: DefNew: 125360K->39243K(130560K), 0.1979451 secs] 152169K->66052K(1005056K), 0.1981060 secs
    122.205: [GC 122.205: DefNew: 126283K->39785K(130560K), 0.1415175 secs] 153092K->66851K(1005056K), 0.1416860 secs
    Service tc.monitoring.logviewer started. (30502 ms).
    Service jms_provider started. (31486 ms).
    ServiceManager started for 142552 ms.
    Framework started for 158391 ms.
    SAP J2EE Engine Version 7.00 PatchLevel 108458.44 is running!
    PatchLevel 108458.44 May 05, 2007 14:23 GMT
    145.476: [GC 145.476: DefNew: 126825K->40239K(130560K), 0.1088881 secs] 153891K->69357K(1005056K), 0.1090310 secs
    154.856: [GC 154.856: DefNew: 127279K->41929K(130560K), 0.1665652 secs] 156397K->74781K(1005056K), 0.1667231 secs
    402.301: [GC 402.301: DefNew: 128878K->18046K(130560K), 0.1411321 secs] 161730K->73978K(1005056K), 0.1413031 secs
    404.085: [GC 404.085: DefNew: 105086K->18796K(130560K), 0.0750212 secs] 161018K->74729K(1005056K), 0.0751696 secs
    409.852: [GC 409.852: DefNew: 105836K->26140K(130560K), 0.1006458 secs] 161769K->82072K(1005056K), 0.1008288 secs
    regards,
    S.Rajeshkumar
    Edited by: Rajesh kumar on Dec 20, 2007 3:18 PM

    Hi Mahesh,
    trc file: "D:\usr\sap\KDS\DVEBMGS00\work\dev_server0", trc level: 1, release: "700"
    node name   : ID3439450
    pid         : 4012
    system name : KDS
    system nr.  : 00
    started at  : Tue Dec 25 16:58:17 2007
    arguments       :
           arg[00] : D:\usr\sap\KDS\DVEBMGS00\exe\jlaunch.exe
           arg[01] : pf=D:\usr\sap\KDS\SYS\profile\KDS_DVEBMGS00_kaar-server3
           arg[02] : -DSAPINFO=KDS_00_server
           arg[03] : pf=D:\usr\sap\KDS\SYS\profile\KDS_DVEBMGS00_kaar-server3
           arg[04] : -DSAPSTART=1
           arg[05] : -DCONNECT_PORT=1107
           arg[06] : -DSAPSYSTEM=00
           arg[07] : -DSAPSYSTEMNAME=KDS
           arg[08] : -DSAPMYNAME=kaar-server3_KDS_00
           arg[09] : -DSAPPROFILE=D:\usr\sap\KDS\SYS\profile\KDS_DVEBMGS00_kaar-server3
           arg[10] : -DFRFC_FALLBACK=ON
           arg[11] : -DFRFC_FALLBACK_HOST=localhost
    [Thr 2576] Tue Dec 25 16:58:17 2007
    [Thr 2576] *** WARNING => INFO: Unknown property [instance.box.number=KDSDVEBMGS00kaar-server3] [jstartxx.c   841]
    [Thr 2576] *** WARNING => INFO: Unknown property [instance.en.host=kaar-server3] [jstartxx.c   841]
    [Thr 2576] *** WARNING => INFO: Unknown property [instance.en.port=3201] [jstartxx.c   841]
    [Thr 2576] *** WARNING => INFO: Unknown property [instance.system.id=0] [jstartxx.c   841]
    JStartupReadInstanceProperties: read instance properties [D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties]
    -> ms host    : kaar-server3
    -> ms port    : 3901
    -> OS libs    : D:\usr\sap\KDS\DVEBMGS00\j2ee\os_libs
    -> Admin URL  :
    -> run mode   : normal
    -> run action : NONE
    -> enabled    : yes
    Used property files
    -> files [00] : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    Instance properties
    -> ms host    : kaar-server3
    -> ms port    : 3901
    -> os libs    : D:\usr\sap\KDS\DVEBMGS00\j2ee\os_libs
    -> admin URL  :
    -> run mode   : normal
    -> run action : NONE
    -> enabled    : yes
    Bootstrap nodes
    -> [00] bootstrap            : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    -> [01] bootstrap_ID3439400  : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    -> [02] bootstrap_ID3439450  : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    -> [03] bootstrap_ID3439451  : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    Worker nodes
    -> [00] ID3439400            : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    -> [01] ID3439450            : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    -> [02] ID3439451            : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\instance.properties
    [Thr 2576] JLaunchRequestQueueInit: create named pipe for ipc
    [Thr 2576] JLaunchRequestQueueInit: create pipe listener thread
    [Thr 4124] WaitSyncSemThread: Thread 4124 started as semaphore monitor thread.
    [Thr 4120] JLaunchRequestFunc: Thread 4120 started as listener thread for np messages.
    [Thr 2576] NiInit3: NI already initialized; param 'maxHandles' ignored (1;1002)
    [Thr 2576] CPIC (version=700.2006.09.13)
    [Thr 2576] [Node: server0] java home is set by profile parameter
         Java Home: C:\j2sdk1.4.2_09
    [Thr 2576] JStartupICheckFrameworkPackage: can't find framework package D:\usr\sap\KDS\DVEBMGS00\exe\jvmx.jar
    JStartupIReadSection: read node properties [ID3439450]
    -> node name          : server0
    -> node type          : server
    -> node execute       : yes
    -> jlaunch parameters :
    -> java path          : C:\j2sdk1.4.2_09
    -> java parameters    : -Djava.io.tmpdir=D:\ep_temp -Dcm.tmpdir=D:\ep_temp -Djava.security.policy=./java.policy -Djava.security.egd=file:/dev/urandom -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy -XX:MaxPermSize=192M -XX:PermSize=192M -XX:NewSize=170M -XX:MaxNewSize=170M -XX:DisableExplicitGC -verbose:gc -Xloggc:GC.log -XX:PrintGCDetails -XX:PrintGCTimeStamps -Djava.awt.headless=true -Dsun.io.useCanonCaches=false -XX:SoftRefLRUPolicyMSPerMB=1 -XX:SurvivorRatio=2 -XX:TargetSurvivorRatio=90 -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer -XX:UseTLAB -XX:+UseParNewGC -Dorg.xml.sax.driver=com.sap.engine.lib.xml.parser.SAXParser
    -> java vm version    : 1.4.2_09-b05
    -> java vm vendor     : Java HotSpot(TM) Server VM (Sun Microsystems Inc.)
    -> java vm type       : server
    -> java vm cpu        : x86
    -> heap size          : 1024M
    -> init heap size     : 1024M
    -> root path          : D:\usr\sap\KDS\DVEBMGS00\j2ee\cluster\server0
    -> class path         : .\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> OS libs path       : D:\usr\sap\KDS\DVEBMGS00\j2ee\os_libs
    -> main class         : com.sap.engine.boot.Start
    -> framework class    : com.sap.bc.proj.jstartup.JStartupFramework
    -> registr. class     : com.sap.bc.proj.jstartup.JStartupNatives
    -> framework path     : D:\usr\sap\KDS\DVEBMGS00\exe\jstartup.jar;D:\usr\sap\KDS\DVEBMGS00\exe\jvmx.jar
    -> shutdown class     : com.sap.engine.boot.Start
    -> parameters         :
    -> debuggable         : no
    -> debug mode         : no
    -> debug port         : 50021
    -> shutdown timeout   : 120000
    [Thr 2576] JLaunchISetDebugMode: set debug mode [no]
    [Thr 4152] JLaunchIStartFunc: Thread 4152 started as Java VM thread.
    JHVM_LoadJavaVM: VM Arguments of node [server0]
    -> stack   : 262144 Bytes
    -> arg[  0]: exit
    -> arg[  1]: abort
    -> arg[  2]: vfprintf
    -> arg[  3]: -Djava.io.tmpdir=D:\ep_temp
    -> arg[  4]: -Dcm.tmpdir=D:\ep_temp
    -> arg[  5]: -Djava.security.policy=./java.policy
    -> arg[  6]: -Djava.security.egd=file:/dev/urandom
    -> arg[  7]: -Dorg.omg.CORBA.ORBClass=com.sap.engine.system.ORBProxy
    -> arg[  8]: -Dorg.omg.CORBA.ORBSingletonClass=com.sap.engine.system.ORBSingletonProxy
    -> arg[  9]: -Djavax.rmi.CORBA.PortableRemoteObjectClass=com.sap.engine.system.PortableRemoteObjectProxy
    -> arg[ 10]: -XX:MaxPermSize=192M
    -> arg[ 11]: -XX:PermSize=192M
    -> arg[ 12]: -XX:NewSize=170M
    -> arg[ 13]: -XX:MaxNewSize=170M
    -> arg[ 14]: -XX:+DisableExplicitGC
    -> arg[ 15]: -verbose:gc
    -> arg[ 16]: -Xloggc:GC.log
    -> arg[ 17]: -XX:+PrintGCDetails
    -> arg[ 18]: -XX:+PrintGCTimeStamps
    -> arg[ 19]: -Djava.awt.headless=true
    -> arg[ 20]: -Dsun.io.useCanonCaches=false
    -> arg[ 21]: -XX:SoftRefLRUPolicyMSPerMB=1
    -> arg[ 22]: -XX:SurvivorRatio=2
    -> arg[ 23]: -XX:TargetSurvivorRatio=90
    -> arg[ 24]: -Dorg.omg.PortableInterceptor.ORBInitializerClass.com.sap.engine.services.ts.jts.ots.PortableInterceptor.JTSInitializer
    -> arg[ 25]: -XX:+UseTLAB
    -> arg[ 26]: -XX:+UseParNewGC
    -> arg[ 27]: -Dorg.xml.sax.driver=com.sap.engine.lib.xml.parser.SAXParser
    -> arg[ 28]: -Dsys.global.dir=D:\usr\sap\KDS\SYS\global
    -> arg[ 29]: -Dapplication.home=D:\usr\sap\KDS\DVEBMGS00\exe
    -> arg[ 30]: -Djava.class.path=D:\usr\sap\KDS\DVEBMGS00\exe\jstartup.jar;D:\usr\sap\KDS\DVEBMGS00\exe\jvmx.jar;.\bin\boot\boot.jar;.\bin\boot\jaas.jar;.\bin\system\bytecode.jar;.
    -> arg[ 31]: -Djava.library.path=C:\j2sdk1.4.2_09\jre\bin\server;C:\j2sdk1.4.2_09\jre\bin;C:\j2sdk1.4.2_09\bin;D:\usr\sap\KDS\DVEBMGS00\j2ee\os_libs;D:\usr\sap\KDS\SYS\profile;D:\usr\sap\KDS\SCS01\exe;D:\usr\sap\KDS\SYS\exe\nuc\NTI386;C:\WINDOWS\system32;C:\Program Files\Microsoft SQL Server\90\Tools\binn\;C:\Program Files\Microsoft SQL Server\90\DTS\Binn\;C:\Program Files\Microsoft SQL Server\90\Tools\Binn\VSShell\Common7\IDE\;C:\j2sdk1.4.2_09\bin
    -> arg[ 32]: -Dmemory.manager=1024M
    -> arg[ 33]: -Xmx1024M
    -> arg[ 34]: -Xms1024M
    -> arg[ 35]: -DLoadBalanceRestricted=no
    -> arg[ 36]: -Djstartup.mode=JCONTROL
    -> arg[ 37]: -Djstartup.ownProcessId=4012
    -> arg[ 38]: -Djstartup.ownHardwareId=G1140690284
    -> arg[ 39]: -Djstartup.whoami=server
    -> arg[ 40]: -Djstartup.debuggable=no
    -> arg[ 41]: -DSAPINFO=KDS_00_server
    -> arg[ 42]: -DSAPSTART=1
    -> arg[ 43]: -DCONNECT_PORT=1107
    -> arg[ 44]: -DSAPSYSTEM=00
    -> arg[ 45]: -DSAPSYSTEMNAME=KDS
    -> arg[ 46]: -DSAPMYNAME=kaar-server3_KDS_00
    -> arg[ 47]: -DSAPPROFILE=D:\usr\sap\KDS\SYS\profile\KDS_DVEBMGS00_kaar-server3
    -> arg[ 48]: -DFRFC_FALLBACK=ON
    -> arg[ 49]: -DFRFC_FALLBACK_HOST=localhost
    -> arg[ 50]: -DSAPSTARTUP=1
    -> arg[ 51]: -DSAPSYSTEM=00
    -> arg[ 52]: -DSAPSYSTEMNAME=KDS
    -> arg[ 53]: -DSAPMYNAME=kaar-server3_KDS_00
    -> arg[ 54]: -DSAPDBHOST=KAAR-SERVER3
    -> arg[ 55]: -Dj2ee.dbhost=KAAR-SERVER3
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
    CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue
    CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode
    CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode
    CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto
    [Thr 4152] Tue Dec 25 16:58:18 2007
    [Thr 4152] JHVM_LoadJavaVM: Java VM created OK.
    JHVM_BuildArgumentList: main method arguments of node [server0]
    [Thr 3560] Tue Dec 25 16:58:38 2007
    [Thr 3560] JHVM_RegisterNatives: registering methods in com.sap.bc.krn.perf.PerfTimes
    [Thr 3560] Tue Dec 25 16:58:39 2007
    [Thr 3560] JHVM_RegisterNatives: registering methods in com.sap.bc.proj.jstartup.JStartupFramework
    [Thr 3560] Tue Dec 25 16:58:40 2007
    [Thr 3560] JLaunchISetClusterId: set cluster id 3439450
    [Thr 3560] Tue Dec 25 16:58:41 2007
    [Thr 3560] JLaunchISetState: change state from [Initial (0)] to [Waiting for start (1)]
    [Thr 3560] JLaunchISetState: change state from [Waiting for start (1)] to [Starting (2)]
    [Thr 3100] Tue Dec 25 17:01:33 2007
    [Thr 3100] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.driver.CpicDriver
    [Thr 3100] Tue Dec 25 17:01:34 2007
    [Thr 3100] JHVM_RegisterNatives: registering methods in com.sap.i18n.cp.ConverterJNI
    [Thr 3100] Tue Dec 25 17:01:35 2007
    [Thr 3100] JHVM_RegisterNatives: registering methods in com.sap.mw.rfc.engine.Compress
    [Thr 2068] Tue Dec 25 17:02:00 2007
    [Thr 2068] JHVM_RegisterNatives: registering methods in com.sap.security.core.server.vsi.service.jni.VirusScanInterface
    [Thr 3560] Tue Dec 25 17:03:18 2007
    [Thr 3560] JLaunchISetState: change state from [Starting (2)] to [Starting applications (10)]
    stdout/stderr redirect
    node name   : server0
    pid         : 628
    system name : KDS
    system nr.  : 00
    started at  : Tue Dec 25 16:58:17 2007
    Reserved 1610612736 (0x60000000) bytes before loading DLLs.
    [Thr 2576] MtxInit: -2 0 0
    CompilerOracle: exclude com/sapportals/portal/pb/layout/taglib/ContainerTag addIviewResources
    CompilerOracle: exclude com/sap/engine/services/keystore/impl/security/CodeBasedSecurityConnector getApplicationDomain
    CompilerOracle: exclude com/sap/engine/services/rmi_p4/P4StubSkeletonGenerator generateStub
    CompilerOracle: exclude com/sapportals/portal/prt/util/StringUtils escapeToJS
    CompilerOracle: exclude com/sapportals/portal/prt/core/broker/PortalServiceItem startServices
    CompilerOracle: exclude com/sap/engine/services/webservices/server/deploy/WSConfigurationHandler downloadFile
    CompilerOracle: exclude com/sapportals/portal/prt/jndisupport/util/AbstractHierarchicalContext lookup
    CompilerOracle: exclude com/sapportals/portal/navigation/cache/CacheNavigationNode getAttributeValue
    CompilerOracle: exclude com/sapportals/portal/navigation/TopLevelNavigationiView PrintNode
    CompilerOracle: exclude com/sapportals/wcm/service/ice/wcm/ICEPropertiesCoder encode
    CompilerOracle: exclude com/sap/lcr/pers/delta/importing/ObjectLoader loadObjects
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readElement
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/InstanceBuilder readSequence
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/TypeMappingImpl initializeRelations
    CompilerOracle: exclude com/sap/engine/services/webservices/jaxrpc/encoding/GeneratedComplexType _loadInto
    SAP J2EE Engine Version 7.00   PatchLevel 108458.44 is starting...
    Loading: LogManager ... 10652 ms.
    Loading: PoolManager ... 0 ms.
    Loading: ApplicationThreadManager ... 131 ms.
    Loading: ThreadManager ... 49 ms.
    Loading: IpVerificationManager ... 50 ms.
    Loading: ClassLoaderManager ... 16 ms.
    Loading: ClusterManager ... 1754 ms.
    Loading: LockingManager ... 229 ms.
    Loading: ConfigurationManager ... 5326 ms.
    Loading: LicensingManager ... 99 ms.
    Loading: CacheManager ... 246 ms.
    Loading: ServiceManager ...
    Loading services.:
      Service memory started. (32 ms).
      Service timeout started. (81 ms).
      Service DQE started. (0 ms).
      Service runtimeinfo started. (32 ms).
      Service cross started. (505 ms).
      Service file started. (733 ms).
      Service cafeuodi~mnuacc started. (0 ms).
      Service trex.service started. (49 ms).
      Service p4 started. (3569 ms).
      Service classpath_resolver started. (65 ms).
      Service cafeucc~api started. (10739 ms).
      Service userstore started. (0 ms).
      Service jmx_notification started. (33 ms).
      Service log_configurator started. (29268 ms).
      Service locking started. (0 ms).
      Service http started. (619 ms).
      Service naming started. (2754 ms).
      Service ts started. (81 ms).
      Service licensing started. (82 ms).
      Service appclient started. (326 ms).
      Service failover started. (358 ms).
      Service javamail started. (1499 ms).
      Service jmsconnector started. (864 ms).
      Service iiop started. (2592 ms).
      Service connector started. (179 ms).
      Service webservices started. (15579 ms).
      Service deploy started. (129447 ms).
      Service MigrationService started. (97 ms).
      Service configuration started. (97 ms).
      Service bimmrdeployer started. (17 ms).
      Service MobileArchiveContainer started. (453 ms).
      Service MobileSetupGeneration started. (695 ms).
      Service dbpool started. (6056 ms).
      Service cafeugpmailcf started. (129 ms).
      Service com.sap.security.core.ume.service started. (10109 ms).
      Service security started. (2100 ms).
      Service jmx started. (388 ms).
      Service basicadmin started. (501 ms).
      Service adminadapter started. (145 ms).
      Service classload started. (355 ms).
      Service applocking started. (48 ms).
      Service servlet_jsp started. (1437 ms).
      Service cafruntimeconnectivity~impl started. (137824 ms).
      Service tclmctcconfsservice_sda started. (48 ms).
      Service CUL started. (904 ms).
      Service com.sap.portal.pcd.gl started. (0 ms).
      Service com.adobe~LicenseService started. (2842 ms).
      Service cafummetadata~imp started. (2745 ms).
      Service keystore started. (7073 ms).
      Service shell started. (5846 ms).
      Service tcsecsecurestorage~service started. (114 ms).
      Service tcseccertrevoc~service started. (145 ms).
      Service com.adobe~DataManagerService started. (888 ms).
      Service ssl started. (0 ms).
      Service tceCATTPingservice started. (0 ms).
      Service tcsecdestinations~service started. (840 ms).
      Service telnet started. (2972 ms).
      Service cafumrelgroups~imp started. (969 ms).
      Service prtbridge started. (4554 ms).
      Service pmi started. (16 ms).
      Service tcsecvsi~service started. (258 ms).
      Service dsr started. (6540 ms).
      Service apptracing started. (10077 ms).
      Service ejb started. (8478 ms).
      Service monitor started. (3132 ms).
      Service webdynpro started. (20622 ms).
      Service com.adobe~DocumentServicesDestProtoService started. (17683 ms).
      Service com.adobe~DocumentServicesLicenseSupportService started. (25370 ms).
      Service com.adobe~DocumentServicesBinaries2 started. (25483 ms).
      Service com.adobe~XMLFormService started. (25030 ms).
      Service developmentserver started. (17505 ms).
      Service rfcengine started. (14179 ms).
      Service com.adobe~DocumentServicesConfiguration started. (21397 ms).
      Service jms_provider started. (25547 ms).
      Service tcsecwssec~service started. (18103 ms).
      Service sld started. (22157 ms).
      Service com.adobe~TrustManagerService started. (81 ms).
      Service tcdisdic~srv started. (34510 ms).
      Service com.adobe~PDFManipulation started. (27356 ms).
      Service com.sap.portal.prt.sapj2ee started. (24849 ms).
      Service cafeugp~model started. (16 ms).
      Service cafeuer~service started. (0 ms).
      Service tceujwfuiwizsvc started. (19869 ms).
      Service com.adobe~FontManagerService started. (58277 ms).
      Service tc.monitoring.logviewer started. (83829 ms).
    ServiceManager started for 271069 ms.
    Framework started for 290933 ms.
    SAP J2EE Engine Version 7.00   PatchLevel 108458.44 is running!
    PatchLevel 108458.44 May 05, 2007 14:23 GMT
    regards,
    S.Rajeshkumar

  • A blocking problem of java thread.

    Hi!
    I would like to execute native thread concurrently in the Java Native Interface.
    When a Java thread called a native thread to use java native interface, Java thread is blocking for processing native thread.
    So, other java threads don't execute because they are blocking.
    Why do these problems occur at JVM(personal basis profile:CVM)?
    Regard.
    Message was edited by:
    peeppeep

    you need to explaing the problem more clearly, maybe post the code?

  • Exception in thread "Main Thread" java.lang.NoClassDefFoundError: start

    Hi
    I am Migrating my app from weblogic 8.1 to 10.3 . I am trying to run the startWeblogic.sh file its failing with below error .Please suggest me am unable to resolve
    CLASSPATH=:/opt/bea/patch_wlw1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_wls1030/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/patch_cie660/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/opt/bea/jrockit_160_14/lib/tools.jar:/opt/bea/wlserver_10.3/server/lib/weblogic_sp.jar:/opt/bea/wlserver_10.3/server/lib/weblogic.jar:/opt/bea/modules/features/weblogic.server.modules_10.3.0.0.jar:/opt/bea/wlserver_10.3/server/lib/webservices.jar:/opt/bea/modules/org.apache.ant_1.6.5/lib/ant-all.jar:/opt/bea/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/opt/bea/wlserver_10.3/common/eval/pointbase/lib/pbclient57.jar:/opt/bea/wlserver_10.3/server/lib/xqrl.jar::
    PATH=/opt/bea/wlserver_10.3/server/bin:/opt/bea/modules/org.apache.ant_1.6.5/bin:/opt/bea/jrockit_160_14/jre/bin:/opt/bea/jrockit_160_14/bin:/usr/local/bin:/bin:/usr/bin:/home/quoteapp/bin:/prod/qcquoting/bin:/home/quoteapp/bin/apache-ant-1.6.5/bin:/opt/bea/jrockit_160_14/bin
    * To start WebLogic Server, use a username and *
    * password assigned to an admin-level user. For *
    * server administration, use the WebLogic Server *
    * console at http://hostname:port/console *
    starting weblogic with Java version:
    java version "1.6.0_14"
    Java(TM) SE Runtime Environment (build 1.6.0_14-b08)
    BEA JRockit(R) (build R27.6.5-32_o-121899-1.6.0_14-20091001-2113-linux-x86_64, compiled mode)
    Starting WLS with line:
    /opt/bea/jrockit_160_14/bin/java -jrockit -Xms256m -Xmx512m -Xverify:none -da -Dplatform.home=/opt/bea/wlserver_10.3 -Dwls.home=/opt/bea/wlserver_10.3/server -Dweblogic.home=/opt/bea/wlserver_10.3/server -Dweblogic.management.discover=true -Dwlw.iterativeDev= -Dwlw.testConsole= -Dwlw.logErrorsToConsole= -Dweblogic.ext.dirs=/opt/bea/patch_wlw1030/profiles/default/sysext_manifest_classpath:/opt/bea/patch_wls1030/profiles/default/sysext_manifest_classpath:/opt/bea/patch_cie660/profiles/default/sysext_manifest_classpath -Dweblogic.Name=quoting -Djava.security.policy=/opt/bea/wlserver_10.3/server/lib/weblogic.policy start weblogic.Server
    Exception in thread "Main Thread" java.lang.NoClassDefFoundError: start
    Could not find the main class: start. Program will exit.
    am attaching my sh file aslo below
    !/bin/sh
    # WARNING: This file is created by the Configuration Wizard.
    # Any changes to this script may be lost when adding extensions to this configuration.
    # --- Start Functions ---
    stopAll()
         # We separate the stop commands into a function so we are able to use the trap command in Unix (calling a function) to stop these services
         if [ "X${ALREADY_STOPPED}" != "X" ] ; then
              exit
         fi
         # STOP POINTBASE (only if we started it)
         if [ "${POINTBASE_FLAG}" = "true" ] ; then
              echo "Stopping PointBase server..."
              ${WL_HOME}/common/bin/stopPointBase.sh -port=${POINTBASE_PORT} -name=${POINTBASE_DBNAME} >"${DOMAIN_HOME}/pointbaseShutdown.log" 2>&1
              echo "PointBase server stopped."
         fi
         ALREADY_STOPPED="true"
         # Restore IP configuration the node manager starts IP Migration
         if [ "${SERVER_IP}" != "" ] ; then
              ${WL_HOME}/common/bin/wlsifconfig.sh -removeif "${IFNAME}" "${SERVER_IP}"
         fi
    # --- End Functions ---
    # This script is used to start WebLogic Server for this domain.
    # To create your own start script for your domain, you can initialize the
    # environment by calling @USERDOMAINHOME/setDomainEnv.
    # setDomainEnv initializes or calls commEnv to initialize the following variables:
    # BEA_HOME - The BEA home directory of your WebLogic installation.
    # JAVA_HOME - Location of the version of Java used to start WebLogic
    # Server.
    # JAVA_VENDOR - Vendor of the JVM (i.e. BEA, HP, IBM, Sun, etc.)
    # PATH - JDK and WebLogic directories are added to system path.
    # WEBLOGIC_CLASSPATH
    # - Classpath needed to start WebLogic Server.
    # PATCH_CLASSPATH - Classpath used for patches
    # PATCH_LIBPATH - Library path used for patches
    # PATCH_PATH - Path used for patches
    # WEBLOGIC_EXTENSION_DIRS - Extension dirs for WebLogic classpath patch
    # JAVA_VM - The java arg specifying the VM to run. (i.e.
    # - server, -hotspot, etc.)
    # USER_MEM_ARGS - The variable to override the standard memory arguments
    # passed to java.
    # PRODUCTION_MODE - The variable that determines whether Weblogic Server is started in production mode.
    # POINTBASE_HOME - Point Base home directory.
    # POINTBASE_CLASSPATH
    # - Classpath needed to start PointBase.
    # Other variables used in this script include:
    # SERVER_NAME - Name of the weblogic server.
    # JAVA_OPTIONS - Java command-line options for running the server. (These
    # will be tagged on to the end of the JAVA_VM and
    # MEM_ARGS)
    # For additional information, refer to the WebLogic Server Administration
    # Console Online Help(http://e-docs.bea.com/wls/docs103/ConsoleHelp/startstop.html).
    # Call setDomainEnv here.
    DOMAIN_HOME=/prod/qcquoting/int/builds/qoaquoting
    . ${DOMAIN_HOME}/bin/setDomainEnv.sh $*
    SAVE_JAVA_OPTIONS="${JAVA_OPTIONS}"
    SAVE_CLASSPATH="${CLASSPATH}"
    # Start PointBase
    PB_DEBUG_LEVEL="0"
    if [ "${POINTBASE_FLAG}" = "true" ] ; then
         ${WL_HOME}/common/bin/startPointBase.sh -port=${POINTBASE_PORT} -debug=${PB_DEBUG_LEVEL} -console=false -background=true -ini=${DOMAIN_HOME}/pointbase.ini >"${DOMAIN_HOME}/pointbase.log" 2>&1
    fi
    JAVA_OPTIONS="${SAVE_JAVA_OPTIONS}"
    SAVE_JAVA_OPTIONS=""
    CLASSPATH="${SAVE_CLASSPATH}"
    SAVE_CLASSPATH=""
    trap 'stopAll' 1 2 3 15
    if [ "${PRODUCTION_MODE}" = "true" ] ; then
         WLS_DISPLAY_MODE="Production"
    else
         WLS_DISPLAY_MODE="Development"
    fi
    if [ "${WLS_USER}" != "" ] ; then
         JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.username=${WLS_USER}"
    fi
    if [ "${WLS_PW}" != "" ] ; then
         JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.management.password=${WLS_PW}"
    fi
    CLASSPATH="${CLASSPATH}${CLASSPATHSEP}${MEDREC_WEBLOGIC_CLASSPATH}"
    CLASSPATH="${CLASSPATH}${CLASSPATHSEP}./config/order_properties/"
    echo "."
    echo "."
    echo "JAVA Memory arguments: ${MEM_ARGS}"
    echo "."
    echo "WLS Start Mode=${WLS_DISPLAY_MODE}"
    echo "."
    echo "CLASSPATH=${CLASSPATH}"
    echo "."
    echo "PATH=${PATH}"
    echo "."
    echo "***************************************************"
    echo "* To start WebLogic Server, use a username and *"
    echo "* password assigned to an admin-level user. For *"
    echo "* server administration, use the WebLogic Server *"
    echo "* console at http://hostname:port/console *"
    echo "***************************************************"
    # Set up IP Migration related variables.
    # Set interface name.
    if [ "${Interface}" != "" ] ; then
         IFNAME="${Interface}"
    else
         IFNAME=""
    fi
    # Set IP Mask.
    if [ "${NetMask}" != "" ] ; then
         IPMASK="${NetMask}"
    else
         IPMASK=""
    fi
    # Perform IP Migration if SERVER_IP is set by node manager.
    if [ "${SERVER_IP}" != "" ] ; then
         ${WL_HOME}/common/bin/wlsifconfig.sh -addif "${IFNAME}" "${SERVER_IP}" "${IPMASK}"
    fi
    # START WEBLOGIC
    echo "starting weblogic with Java version:"
    ${JAVA_HOME}/bin/java ${JAVA_VM} -version
    if [ "${WLS_REDIRECT_LOG}" = "" ] ; then
         echo "Starting WLS with line:"
         echo "${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}"
         ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS}
    else
         echo "Redirecting output from WLS window to ${WLS_REDIRECT_LOG}"
         ${JAVA_HOME}/bin/java ${JAVA_VM} ${MEM_ARGS} ${JAVA_OPTIONS} -Dweblogic.Name=${SERVER_NAME} -Djava.security.policy=${WL_HOME}/server/lib/weblogic.policy ${PROXY_SETTINGS} ${SERVER_CLASS} >"${WLS_REDIRECT_LOG}" 2>&1
    fi
    stopAll
    popd
    # Exit this script only if we have been told to exit.
    if [ "${doExitFlag}" = "true" ] ; then
         exit
    fi

    I can not see main class weblogic.jar file in your class path.
    Under MW_HOME there is a file by name configure.cmd/sh, run it to set acl and class path. Then try to start weblogic server. U can edit the startWeblogic.sh/cmd so that every time it will execute after calling configure.sh/cmd file.

  • How can I use an java based app that starts via an inf or bat file?

    I have java exe application that is started using a .bat file and a java exe application that is started using an inf file. Both the .bat and inf prevent the respective application from kicking off.  Is there a way to convert these file types so that they execute on  my MacBook?

    I didn't expect you to have your customer run the command. I would expect you to create the executable and install it. However, there wouldn't be any difference in what you are creating and the .jar file. Either way it is a faceless icon. For that matter, it is no different than a batch file on Windows. I'm not sure what they wouldn't understand with, "copy the Vocab.jar file to wherever you want and double-click it to run the program." In addition, you probably ought to point out that Java is not installed on Mac OS X Lion (10.7.x) and when they double-click the jar file (or whatever you send them), the system will ask if they want to install Java.
    What you really need to do is package up the app inside a Mac application package and provide the user with the application on a .dmg (disk image). Take a look here: http://developer.apple.com/library/mac/#documentation/Java/Conceptual/Jar_Bundle r/Introduction/Introduction.html#//apple_ref/doc/uid/TP40000884
    I also found this which uses ANT to create the bundle: http://informagen.com/JarBundler/

  • Request filter on thread that I started

    Referring
    this related thread.
    Btw, sometimes I want to find old threads that I started and see whether there are replies that I missed. My last question is like 20+ pages in "My thread" page so I have difficulty to find them. It'd be great if we can have this filter option.

    Because the two versions have different titles and different feed URLs they are seen as two separate podcasts. The URLs you've given are the iTunes Store pages.
    To clarify the situation:
    'Outside My Head'
    Store page http://itunes.apple.com/us/podcast/outside-my-head/id438372030
    Feed http://feeds.feedburner.com/ThoughtsOutsideMyHead
    'Running & Other Stuff'
    Store page http://itunes.apple.com/us/podcast/running-other-stuff/id439282630
    Feed http://runningandotherstuff.podbean.com/feed/
    'Outside My Head' has only the two most recent episodes; these are also in 'Running & Other Stuff', which has some earlier episodes as well. Not quite sure how you've achieved all this: the Feedburner feed is presumably the Podbean Feed submitted to Feedburner and then the feed created from that by them submitted to iTunes - or did you create it entirely in Feedburner? - actually the descriptions are different so that seems more likely, or that you submitted another feed to Feedburner.
    So, you want to keep the 'Running & Other Stuff'' version and get rid of 'Outside My Head'? You can ask to have a podcast removed from the Store - details here.
    Are you happy to keep the existing feed for ''Running...'? If so, that's all you need do. Feedburner won't come into it.
    If you want to do it through Feedburner it gets more complicated:
    Submit the Podbean feed to Feedburner. It will rewrite the feed and give you a new URL.
    In the Podbean feed, which is being read by iTunes, add the 'itunes:new-feed-url' tag as described here, pointing to the new Feedburner feed (not the one in use for the other version of the podcast). However it's quite possible that Podbean will not allow you to do this, in which case you are stuck with their feed and will have to forget about Feedburner.

  • I just downloaded and instaled firefox 4. Now, everytime I institute a command I get a po[p-up from Java script that tells me to uninstal set. I cannot go on untin I press ok and then I am good for one more command and it starts with the pop-up again.

    I'm not even sure if this is an extension or plug-in and all I can tell you is what I have already stated. I can only make one command at a time and after each one I get a pop-up from Java script that says uninstal set. I must depress ok to move on, but only for one more command and it starts over again. This also happened when I tried to instal firefox 4 a couple months ago and I deleted the program and went back to an earlier version.

    Mail troubleshooting - Yosemite
    Troubleshooting sending and receiving email messages
    Troubleshooting sending email messages
    SMTP servers keep going offline

  • Java stack not starting in a PI 7.1 instance

    Hi experts,
    We are facing a probling while starting a PI 7.1 instance. the Java stack is not getting up. It is coming up to the phase 'starting apps' and failing from there. We had recently updated the support pack of the instance from 6 to 7. But the instance was running fine for around 12 hours after the application. Now, suddenly we seem to have got this issue. PF below the applications log. Request you to please check this and suggest what the problem might be. thanks in advance.
    applications log
    <!LOGHEADERSTART/>
    <!HELPManual modification of the header may cause parsing problem!/>
    <!LOGGINGVERSIONhttp://1.5.7.1006/>
    <!NAMEhttp://./log/applications_00.log/>
    <!PATTERNhttp://applications_00.log/>
    <!FORMATTERhttp://com.sap.tc.logging.ListFormatter/>
    <!ENCODINGUTF8/>
    <!FILESET0, 5, 10485760/>
    <!PREVIOUSFILEhttp://applications_00.4.log/>
    <!NEXTFILEhttp://applications_00.1.log/>
    <!LOGHEADEREND/>
    #1.5 #001D090E4BBE000400000003000038E2007915DA69909431#1234724420487#/Applications/DI/SDIC##com.sap.di.sdic.state.store.migration.support.SystemCopyInfo#######System 27##0#0#Info#1#com.sap.di.sdic.state.store.migration.support.SystemCopyInfo#Plain###SystemCopy folder not found under the system global folder /usr/sap/P7R/SYS/global.#
    #1.5 #001D090E4BBE000400000004000038E2007915DA69909431#1234724420529#/Applications/DI/SDIC##com.sap.di.sdic.srv.java.SDICServiceFrame#######System 27##0#0#Info#1#com.sap.di.sdic.srv.java.SDICServiceFrame#Plain###Successfully started SDIC service.#
    #1.5 #001D090E4BBE002900000000000038E2007915DA69A84A81#1234724438423#/Applications/ExchangeInfrastructure/Security##com.sap.aii.security.SecurityServiceFrame.SecurityServiceFrame.getServiceProperties()#######System 26##0#0#Info#1#com.sap.aii.security.SecurityServiceFrame#Java###QUEUE_CONNECTION_FACTORY: , ERROR_QUEUE: , QUEUE: , JARM_PREFIX: , JARM_USER: , JARM_ENABLED: , CLEAN_INTERVAL: .#7#jmsfactory/default/QueueConnectionFactory#jmsqueues/default/MessageSecurityErrorQueue#jmsqueues/default/MessageSecurityQueue#XI:Security:#XISecurityUser#false#12#
    #1.5 #001D090E4BBE002900000001000038E2007915DA69A84A81#1234724438423#/Applications/ExchangeInfrastructure/Security##com.sap.aii.security.SecurityServiceFrame.SecurityServiceFrame.getServiceProperties()#######System 26##0#0#Info#1#com.sap.aii.security.SecurityServiceFrame#Java###PROTECTION_DOMAIN: .#1#sap.com/com.sap.aii.adapter.soap.app#
    #1.5 #001D090E4BBE003600000000000038E2007915DA69A8DB09#1234724439825#/Applications/ExchangeInfrastructure##com.sap.aii.utilxi.sld.XIIntegrationServer#J2EE_GUEST#13#####Application 23##0#0#Error#1#com.sap.aii.utilxi.sld.XIIntegrationServer#Java###Failed to create access client for SLD, central app server set to null
    Thrown:
    com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
    at com.sap.lcr.api.cimclient.HttpRequestSender.newClientException(HttpRequestSender.java:710)
    at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:599)
    at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:345)
    at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:200)
    at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:148)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:445)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:749)
    at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:982)
    at com.sap.aii.utilxi.sld.SldProxy.getInstances(SldProxy.java:380)
    at com.sap.aii.utilxi.sld.SldProxy.getCentralAppServerHost(SldProxy.java:609)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.provideCentralAppServerHost(XIIntegrationServer.java:641)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.constructSldInstanceName(XIIntegrationServer.java:424)
    at com.sap.aii.utilxi.sld.XISubSystem.getSldInstanceName(XISubSystem.java:1004)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.getSldInstanceName(XIIntegrationServer.java:672)
    at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:114)
    at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
    at com.sap.aii.af.lib.sld.impl.SLDAccessor.getISData(SLDAccessor.java:248)
    at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getISData(SLDAccessImpl.java:47)
    at com.sap.aii.adapter.xi.ms.SLDReader.fire(SLDReader.java:79)
    at com.sap.aii.adapter.xi.ms.SLDReader.run(SLDReader.java:182)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    #1.5 #001D090E4BBE003600000002000038E2007915DA69A8DB09#1234724439880#/Applications/ExchangeInfrastructure##com.sap.aii.utilxi.sld.XIIntegrationServer#J2EE_GUEST#13#####Application 23##0#0#Error#1#com.sap.aii.utilxi.sld.XIIntegrationServer#Java###Failed to create access client for SLD, central app server set to null
    Thrown:
    com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
    at com.sap.lcr.api.cimclient.HttpRequestSender.newClientException(HttpRequestSender.java:710)
    at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:599)
    at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:345)
    at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:200)
    at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:148)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:445)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:749)
    at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:982)
    at com.sap.aii.utilxi.sld.SldProxy.getInstances(SldProxy.java:380)
    at com.sap.aii.utilxi.sld.SldProxy.getCentralAppServerHost(SldProxy.java:609)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.provideCentralAppServerHost(XIIntegrationServer.java:641)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.constructSldInstanceName(XIIntegrationServer.java:424)
    at com.sap.aii.utilxi.sld.XISubSystem.getSldInstanceName(XISubSystem.java:1004)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.getSldInstanceName(XIIntegrationServer.java:672)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.readFromSld(XIIntegrationServer.java:229)
    at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:120)
    at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
    at com.sap.aii.af.lib.sld.impl.SLDAccessor.getISData(SLDAccessor.java:248)
    at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getISData(SLDAccessImpl.java:47)
    at com.sap.aii.adapter.xi.ms.SLDReader.fire(SLDReader.java:79)
    at com.sap.aii.adapter.xi.ms.SLDReader.run(SLDReader.java:182)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    #1.5 #001D090E4BBE003600000004000038E2007915DA69A8DB09#1234724439991#/Applications/ExchangeInfrastructure##com.sap.aii.utilxi.sld.XIIntegrationServer#J2EE_GUEST#13#####Application 23##0#0#Error#1#com.sap.aii.utilxi.sld.XIIntegrationServer#Java###Failed to create access client for SLD, central app server set to null
    Thrown:
    com.sap.lcr.api.cimclient.CIMClientException: HTTP response code: 503 (Service Unavailable)
    at com.sap.lcr.api.cimclient.HttpRequestSender.newClientException(HttpRequestSender.java:710)
    at com.sap.lcr.api.cimclient.HttpRequestSender.processResponse(HttpRequestSender.java:599)
    at com.sap.lcr.api.cimclient.HttpRequestSender.send(HttpRequestSender.java:345)
    at com.sap.lcr.api.cimclient.CIMOMClient.sendImpl(CIMOMClient.java:200)
    at com.sap.lcr.api.cimclient.CIMOMClient.send(CIMOMClient.java:148)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstancesImpl(CIMOMClient.java:445)
    at com.sap.lcr.api.cimclient.CIMOMClient.enumerateInstances(CIMOMClient.java:749)
    at com.sap.lcr.api.cimclient.CIMClient.enumerateInstances(CIMClient.java:982)
    at com.sap.aii.utilxi.sld.SldProxy.getInstances(SldProxy.java:380)
    at com.sap.aii.utilxi.sld.SldProxy.getCentralAppServerHost(SldProxy.java:609)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.provideCentralAppServerHost(XIIntegrationServer.java:641)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.constructSldInstanceName(XIIntegrationServer.java:424)
    at com.sap.aii.utilxi.sld.XISubSystem.getSldInstanceName(XISubSystem.java:1004)
    at com.sap.aii.utilxi.sld.XIIntegrationServer.getSldInstanceName(XIIntegrationServer.java:672)
    at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:124)
    at com.sap.aii.utilxi.sld.XIEntityInSld.syncFromSld(XIEntityInSld.java:142)
    at com.sap.aii.af.lib.sld.impl.SLDAccessor.getISData(SLDAccessor.java:248)
    at com.sap.aii.af.lib.sld.impl.SLDAccessImpl.getISData(SLDAccessImpl.java:47)
    at com.sap.aii.adapter.xi.ms.SLDReader.fire(SLDReader.java:79)
    at com.sap.aii.adapter.xi.ms.SLDReader.run(SLDReader.java:182)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    #1.5 #001D090E4BBE002900000005000038E2007915DA69A96F79#1234724440265#/Applications/ExchangeInfrastructure/AdapterFramework/Services/ADAPTER##com.sap.aii.adapter.mail.service.XIMailAdapter.init(Channel,XIMailAdapterManager)#######System 26##0#0#Error#1#com.sap.aii.adapter.mail.service.XIMailAdapter#Java### failed to initialize the channel #2#:file_file:mail_receiver#com.sap.aii.af.sdk.xi.util.URI$MalformedURIException: invalid port number: imailchn.satyam.com#
    #1.5 #001D090E4BBE00010000000100003AC0007915DA69909FE9#1234724476269#/Applications/DI/SDIC##com.sap.di.sdic.state.store.migration.support.SystemCopyInfo#######System 11##0#0#Info#1#com.sap.di.sdic.state.store.migration.support.SystemCopyInfo#Plain###SystemCopy folder not found under the system global folder /usr/sap/P7R/SYS/global.#
    #1.5 #001D090E4BBE00010000000200003AC0007915DA69909FE9#1234724476301#/Applications/DI/SDIC##com.sap.di.sdic.srv.java.SDICServiceFrame#######System 11##0#0#Info#1#com.sap.di.sdic.srv.java.SDICServiceFrame#Plain###Successfully started SDIC service.#
    #1.5 #001D090E4BBE00090000000200003AC0007915DA69A80049#1234724490690#/Applications/ExchangeInfrastructure/Security##com.sap.aii.security.SecurityServiceFrame.SecurityServiceFrame.getServiceProperties()#######System 34##0#0#Info#1#com.sap.aii.security.SecurityServiceFrame#Java###QUEUE_CONNECTION_FACTORY: , ERROR_QUEUE: , QUEUE: , JARM_PREFIX: , JARM_USER: , JARM_ENABLED: , CLEAN_INTERVAL: .#7#jmsfactory/default/QueueConnectionFactory#jmsqueues/default/MessageSecurityErrorQueue#jmsqueues/default/MessageSecurityQueue#XI:Security:#XISecurityUser#false#12#
    #1.5 #001D090E4BBE00090000000300003AC0007915DA69A80049#1234724490690#/Applications/ExchangeInfrastructure/Security##com.sap.aii.security.SecurityServiceFrame.SecurityServiceFrame.getServiceProperties()#######System 34##0#0#Info#1#com.sap.aii.security.SecurityServiceFrame#Java###PROTECTION_DOMAIN: .#1#sap.com/com.sap.aii.adapter.soap.app#
    #1.5 #001D090E4BBE00360000000000003AC0007915DA69A890D1#1234724491588#/Applications/ExchangeInfrastructure##com.sap.aii.utilxi.sld.XIIntegrationServer#J2EE_GUEST#13#####Application 43##0#0#Error#1#com.sap.aii.utilxi.sld.XIIntegrationServer#Java###Failed to create access client for SLD, central app server set to null
    Regards,
    Basker

    27##0#0#Info#1#com.sap.di.sdic.state.store.migration.support.SystemCopyInfo#Plain###SystemCopy folder not found under the system global folder /usr/sap/P7R/SYS/global.#
    Is that folder existing?
    Markus

  • Killing a Thread that runs a C code

    Hi,
    In my Java application, i use a library written in C++ using JNI. The tasks that are executed by the C library sometimes take a lot of time, so I was considering adding an option for the user to be able to stop it. As these tasks are running in a thread, i was wondering whether there is a way to safely do this?
    I have searched the forum, but did not manage to find some post with similar problem. As far as I could see, stopping a thread in general is not safe...
    Suggestions guys?
    Thanks

    shashi_rajak wrote:
    you can stop the thread by setting the value of thread to null.---------------> the thread will not be stopped immediately.So setting it to null won't change anything at all. Yes, that's correct, but that isn't what you said previously.
    better put a guarded block in the thread code .What's a guarded block?
    so that thread will not process the rest of code.Ah, you mean that you need some kind of flag, latch or other way to signal. That's correct, but you never said that (you actually still haven't said that)
    >
    >
    user can again start the thread by starting the thread.-----------------> its mean by creating a new thread object. We aren't mind readers. Calling start of a new thread will of course work, but that isn't what you said.
    since you cannot start a already started thread its throws invalid State Exception.Yes, we knew that. That's why we corrected you.
    this current forum is not for beginner . Eh. Hmm.. Ok, so I registered in 2000, and have quite many posts, and you came to the conclusion that I'm a beginner?
    It has the heading Java Programming " not "New to java". please use your brain.Did you use yours?

  • Java Thread.. System Clock gets slower..

    Hello All!
    I have never came accross such problem in my last 4 years of java development but right now its sucking my brain like any thing..
    Let me clerify what my application is doing.
    A node which is basically thread is executed and as it performs its job it is stopped by breaking the while loop like logic and then a method isRunnable() is called to calculate the time to run the thread again on the basis of pre-defined schedule (e.g. after 1 minute). so what i was doing in this method i was calling wait (sheduledMinutes*60*1000).
    There are multiple nodes which can be run in parallel. Problem occured when some nodes started immediately or after a time much shorter than the value defined in wait() method.
    So as an alternative way i decided to not rely on wait() and wrote my own implementaion i.e. i call wait(1000) in isRunnable() and the check if the current system time is less then the scheduled time. But it didn't work either.
    The problem revealed when i printed the valued of current time taken by the system and the scheduled one. The System clock gives the current time which is less than the actual System time shown on windows clock. I dont know why but it seems like as my threads continue to run the system clock gets slower or something and returns an old time. Hence nodes start immediately.
    Any solution to this problem would be highly appreciable.
    Regards,

    Well yeah u r right. I figured it out that it was just my threads running slowly. But the threads ran immediately there was another reason for that. My threads were waiting for the sheduled minutes to run again. In the mean while if i presed the stop button to stop the thread i was just setting the stop variable value to true. Which was basically the check in the while loop in run method. U can notice the thread still sleeping due to the call to wait method. And then if again mean while i press start button i called System.gc(). and then pass the current thread to new Thread like Threa t = new Thread(node); t.start();
    Now u can c another thread has been created but the last one was not collected by the garbage collector as it was still waiting and doing something ofcourse not dead. So now when new thread stops these was a possiblity of last thread ( one in waiting state) to run according to schedule and it make the current thread run immediately.
    I hope u can understand how difficult it was for me to figure this thing out :)
    But after 3/4 hours hair tearing i got the bug and then when i was stopping a thread i infact broke the waiting loop as well. Now the thread was dead and collected by garbage collector before new thread could start :)
    Hhhhhhhhhhhhhh sometimes programmign really sucks.
    Have fun. and thanx for ur concern..
    Regards

  • Some Java Thread error in Xp (Urgent)

    HI all,
    I am working on a 3 tier software and it is running fine on all machines except one "The XP Machine",
    The problem is when i m going tru http://appserv:13000 it starts executing but in between an error comes that shows that some java thread or null pointer error and execution stops, i have faced similar type of error in WIN 98 but after installing java virtual machine it was sorted.
    but on this perticular machine i have already installed this JVM, but still problem is as it is.
    Please help me to sort this problem,
    Thanks & regards
    Tehzeeb Ahmed

    Tehzeeb,
    this is an Oracle Forms discussion forum. General Java questions are best answered on teh J2EE forum or the JDeveloper forum.
    Btw.: You need to be more specific when describing the problem.
    Frank

Maybe you are looking for

  • Video not refreshing, looks garbled and choppy

    I have both an iPod Touch 3rd (4.1) and 4th Generation (4.1 and now 4.2). I also just upgraded iTunes from 10.1 to 10.2. My older Touch and iTunes on the MacBook display the videos properly (either in MPEG-4 or Quicktime formats). However, in the 4th

  • CS5.1: How do I create a new "User Defined" swatch palette.

    CS5.1: Under "Swatch Libraries" window, "User Defined" is grayed out, so I can't access my personal swatch palette. I have the data to recreate it, but do not find a "new palette" selection.

  • Hardware Build for CS6 Production Premium

    First: Thank you for all of the information in this forum. I've done a bunch of reading and there is lots of good information about a many issues. Second: I am looking for advice on a build for CS6 Production Premium. I don't want top of the line, bu

  • Highlighted items in sidebar

    The default items in the sidebar are highlighted when selected. Yet when an alias (not of a default) is placed inthe sidebar and then selected they are not highlighted. The alias will open and there are no problems but it is a convenience to have the

  • Cross Platform License

    I have contacted Adobe's ' support'  about swapping my CS4-win to CS4-mac. But they don't allow that because CS5 is out. And that is what Adobe refers to as ' support'. I'm a freelancer making very little profit so swap/upgrade to CS5 is really out o