Catch event when Application Server is shutdown

Hi All,
Actually I want to catch an event do something when weblogic server is shutdown.
How can I catch the event.
Any help would be highly appreciated.
I tried by implementing ServletContextListener interface, but in that I can only catch the event when weblogic is started, but not when it is shutdown.

Create a class that implements the ServletContextListener interface:
     public class myServletContextListener implements ServletContextListener
The ServletContextListener interface has two methods that must be implemented:
     public void contextInitialized(ServletContextEvent sce)
     public void contextDestoyed(ServletContextEvent sce)
Register the listener in the web.xml:
     <web-app>
          <context-param>
               <param-name>param1</param-name>
               <param-value>paramValue1<param-value>
          </context-param>
          <listener>
                                                 <listener-class>
                                                            com.listeners.MyServletContextAttributeListener
                 </listener-class>
          </listener>
          <servlet>
               <servlet-name>test</servlet-name>
               <servlet-class>com.test</servlet-class>
               <init-param>
                    <param-name>param1</param-name>
                    <param-value>paramValue1</param-value>
               </init-param>
               <load-on-startup>1</load-on-startup>
          </servlet>
          <servlet-mapping>
               <servlet-name>test</servlet-name>
               <url-pattern>/test</url-pattern>
          </servlet-mapping>
     </web-app>When the server starts up the servlet context (usually on server start up) it will call the contextInitialized method of your myServletContextListener class. When the server shuts down the servlet context (usually on server shutdown) it will call the contextDestroyed method of your myServletContextListener class.
With in these methods you can usually assume that the server is starting/stopping and do what it is you wish to do.
However there are two things to bear in mind:
1- Most servers offer a manager app that allows individual servlet contexts to be stopped/started without shutting down the server o you may get false results depending on you is managing the server.
2- I am not sure if the methods will be called if the server suffers a catastrophic error and crashes. For example a out of memory error. So you may miss a server shut down but the error should be logged in the tomcat log files.

Similar Messages

  • Trap event when Application server is shutdown

    Hi All,
    Actually I want to catch an event do something when weblogic server is shutdown.
    How can I catch the event.
    Any help would be highly appreciated.
    I tried by implementing ServletContextListener interface, but in that I can only catch the event when weblogic is started, but not when it is shutdown.

    Why not? ServletContextListener.contextDestroyed() will always be triggered when the container is shutting down.

  • Application Server instance shutdown for no apparent reason

    Hi Experts,
    Our production ECC 6.0 Application server instance work process ended by itself, and this is the second time it happens;
    Our Platform is;
    Windows 2003 server, ECC 6.0, SQL Server 2005,
    Kernel Release : 150
    here are the sm21, dev_disp, dev_icm, dev_rd, dev_w0 logs;
    How can i prevent this error,
    Regards
    sm21 logs;
    03:02:49 RD                                  Q0  I Operating system call recv failed (error no. 10054)
    03:02:49 RD                                  Q0  I Operating system call recv failed (error no. 10054)
    03:02:49 RD                                  Q0  I Operating system call recv failed (error no. 10054)
    03:02:49 RD                                  Q0  I Operating system call recv failed (error no. 10054)
    03:02:50 RD                                  S3  0 SAP gateway was closed
    03:03:00 DP                                  Q0  M Message server disconnected
    03:03:00 DP                                  Q0  5 Stop SAP System, Dispatcher Pid 28
    dev_disp;
    Tue Aug 12 21:15:12 2008
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 7 / sock 164
        (SI_ECONN_BROKEN/10054; I4; ST; 192.168.0.211:1592) [nixxi.cpp    4424]
    Network error of client T28, NiBufReceive (-6: NIECONN_BROKEN), dp_tm_status=3
    Client address of T28 is 192.168.0.211(192.168.0.211)
    ***LOG Q04=> DpRTmPrep, NiBufReceive (11539HASANS 28 EnAltDepo ) [dpxxdisp.c   11577]
    RM-T28, U11539, 100       HASANS, EnAltDepo, 21:14:47, M1, W1,     , 3/1
    Wed Aug 13 03:02:48 2008
    DpSigInt: caught signal 2
    DpHalt: shutdown server >sapapp1_KEC_00                          < (normal)
    DpModState: change server state from ACTIVE to SHUTDOWN
    Stop work processes
    Wed Aug 13 03:02:49 2008
    Stop gateway
    Stop icman
    Terminate gui connections
    wait for end of work processes
    wait for end of gateway
    waiting for termination of gateway ...
    Wed Aug 13 03:02:50 2008
    wait for end of icman
    waiting for termination of icman ...
    Wed Aug 13 03:02:51 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:52 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:53 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:54 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:55 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:56 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:57 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:58 2008
    waiting for termination of icman ...
    Wed Aug 13 03:02:59 2008
    DpStartStopMsg: send stop message (myname is >sapapp1_KEC_00                          <)
    DpStartStopMsg: stop msg sent
    Wed Aug 13 03:03:00 2008
    DpHalt: sync with message server o.k.
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   12213]
    MBUF state OFF
    MBUF component DOWN
    cleanup EM
    ***LOG Q05=> DpHalt, DPStop ( 2804) [dpxxdisp.c   10461]
    dev_rd ;
    Thu Aug 07 10:51:11 2008
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 13 / sock 464
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:3707) [nixxi.cpp    4424]
    Wed Aug 13 03:02:34 2008
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 43 / sock 468
        (SI_ECONN_BROKEN/10054; I4; ST; 192.168.0.201:2898) [nixxi.cpp    4424]
    Wed Aug 13 03:02:49 2008
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 14 / sock 440
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2503) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 5 / sock 44
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:4669) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 38 / sock 52
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2508) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 3 / sock 492
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2421) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 8 / sock 420
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2480) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 9 / sock 408
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2481) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 10 / sock 396
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2482) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 11 / sock 384
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2483) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 37 / sock 72
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:3043) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 41 / sock 40
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2657) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 4 / sock 480
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:3318) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 40 / sock 48
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:3462) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 13 / sock 464
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:4059) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 12 / sock 372
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2862) [nixxi.cpp    4424]
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 15 / sock 340
        (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:2548) [nixxi.cpp    4424]
    Wed Aug 13 03:02:50 2008
    ***LOG S30=> GwStopGateway, gateway stopped () [gwxxrd.c     14656]
    dev_icm ;
    trc file: "dev_icm", trc level: 1, release: "700"
    sysno      00
    sid        KEC
    systemid   562 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    148
    intno      20050900
    make:      multithreaded, Unicode, 64 bit, optimized
    pid        3012
    [Thr 3008] started security log to file dev_icm_sec
    [Thr 3008] ICM running on: sapapp1.koyuncu.com.tr
    [Thr 3008] MtxInit: 30001 0 2
    [Thr 3008] IcmInit: listening to admin port: 65000
    [Thr 3008] DpSysAdmExtCreate: ABAP is active
    [Thr 3008] DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    [Thr 3008] Thu Jul 10 09:14:17 2008
    [Thr 3008] DpShMCreate: sizeof(wp_adm)          42016     (1616)
    [Thr 3008] DpShMCreate: sizeof(tm_adm)          5652128     (28120)
    [Thr 3008] DpShMCreate: sizeof(wp_ca_adm)          24000     (80)
    [Thr 3008] DpShMCreate: sizeof(appc_ca_adm)     8000     (80)
    [Thr 3008] DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
    [Thr 3008] DpShMCreate: sizeof(comm_adm)          552080     (1088)
    [Thr 3008] DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    [Thr 3008] DpShMCreate: sizeof(slock_adm)          0     (104)
    [Thr 3008] DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    [Thr 3008] DpShMCreate: sizeof(file_adm)          0     (72)
    [Thr 3008] DpShMCreate: sizeof(vmc_adm)          0     (1864)
    [Thr 3008] DpShMCreate: sizeof(wall_adm)          (41664/36752/64/192)
    [Thr 3008] DpShMCreate: sizeof(gw_adm)     48
    [Thr 3008] DpShMCreate: SHM_DP_ADM_KEY          (addr: 0000000001FB0050, size: 6365440)
    [Thr 3008] DpShMCreate: allocated sys_adm at 0000000001FB0050
    [Thr 3008] DpShMCreate: allocated wp_adm at 0000000001FB2150
    [Thr 3008] DpShMCreate: allocated tm_adm_list at 0000000001FBC570
    [Thr 3008] DpShMCreate: allocated tm_adm at 0000000001FBC5D0
    [Thr 3008] DpShMCreate: allocated wp_ca_adm at 0000000002520470
    [Thr 3008] DpShMCreate: allocated appc_ca_adm at 0000000002526230
    [Thr 3008] DpShMCreate: allocated comm_adm at 0000000002528170
    [Thr 3008] DpShMCreate: system runs without slock table
    [Thr 3008] DpShMCreate: system runs without file table
    [Thr 3008] DpShMCreate: allocated vmc_adm_list at 00000000025AEE00
    [Thr 3008] DpShMCreate: allocated gw_adm at 00000000025AEE80
    [Thr 3008] DpShMCreate: system runs without vmc_adm
    [Thr 3008] DpShMCreate: allocated ca_info at 00000000025AEEB0
    [Thr 3384] IcmProxyWatchDog: proxy watchdog started
    [Thr 3008] CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 0
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 1
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 2
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 3
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 4
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 5
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 6
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 7
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 8
    [Thr 3008] IcmCreateWorkerThreads: created worker thread 9
    [Thr 3428] IcmWatchDogThread: watchdog started
    [Thr 3432] *** WARNING => HttpPlugInInit: Parameter icm/HTTPS/trust_client_with_issuer or icm/HTTPS/trust_client_with_subject not set => do not trust any intermediary
    X.509 cert data will be removed from header [http_plg.c   720]
    [Thr 3432] ISC: created 400 MB disk cache.
    [Thr 3432] ISC: created 50 MB memory cache.
    [Thr 3432] HttpSubHandlerAdd: Added handler HttpCacheHandler(slot=0, flags=12293) for /:0
    [Thr 3432] HttpExtractArchive: files from archive E:\usr\sap\KEC\D00\exe/icmadmin.SAR in directory E:/usr/sap/KEC/D00/data/icmanroot are up to date
    [Thr 3432] HttpSubHandlerAdd: Added handler HttpAdminHandler(slot=1, flags=4101) for /sap/admin:0
    [Thr 3432] CsiInit(): Initializing the Content Scan Interface
    [Thr 3432]            PC with Windows NT (mt,unicode,SAP_CHAR/size_t/void* = 16/64/64)
    [Thr 3432] CsiInit(): CSA_LIB = "E:\usr\sap\KEC\D00\exe\sapcsa.dll"
    [Thr 3432] Thu Jul 10 09:14:18 2008
    [Thr 3432] HttpSubHandlerAdd: Added handler HttpAuthHandler(slot=2, flags=12293) for /:0
    [Thr 3432] HttpSubHandlerAdd: Added handler HttpSAPR3Handler(slot=3, flags=1052677) for /:0
    [Thr 3432] Started service 8000 for protocol HTTP on host "sapapp1.koyuncu.com.tr"(on all adapters) (processing timeout=60, keep_alive_timeout=30)
    [Thr 3432] Thu Jul 10 09:14:24 2008
    [Thr 3432] *** WARNING => IcmNetCheck: NiAddrToHost(10.0.0.1) took 6 seconds [icxxman.c    4578]
    [Thr 3432] *** WARNING => IcmNetCheck: 1 possible network problems detected - please check the network/DNS settings [icxxman.c    4634]
    [Thr 3008] Tue Jul 22 16:47:29 2008
    [Thr 3008] *** WARNING => IcmMsgProcess: connection to WP 1 broken (rc=-8,nirc=-6)
    [Thr 3008] Tue Jul 22 16:49:43 2008
    [Thr 3008] *** WARNING => IcmMsgProcess: connection to WP 2 broken (rc=-8,nirc=-6)
    [Thr 3008] Wed Jul 23 15:06:44 2008
    [Thr 3008] *** WARNING => IcmMsgProcess: connection to WP 1 broken (rc=-8,nirc=-6)
    [Thr 3008] Wed Jul 23 15:23:34 2008
    [Thr 3008] *** WARNING => IcmMsgProcess: connection to WP 1 broken (rc=-8,nirc=-6)
    [Thr 3008] Wed Jul 23 16:54:47 2008
    [Thr 3008] *** WARNING => IcmMsgProcess: connection to WP 2 broken (rc=-8,nirc=-6)
    [Thr 3008] Thu Aug 07 09:50:19 2008
    [Thr 3008] *** WARNING => IcmMsgProcess: connection to WP 0 broken (rc=-8,nirc=-6)
    [Thr 3384] Wed Aug 13 03:02:58 2008
    [Thr 3384] IcmProxyWatchDog: Shutdown request received
    [Thr 3384] *** IcmProxyWatchDog: exit thread ***
    [Thr 3428] Wed Aug 13 03:02:59 2008
    [Thr 3428] IcmWatchDogThread: Shutdown request received
    [Thr 3428] *** IcmWatchDogThread: exit thread ***
    [Thr 3008] IcmLoop: Shutdown request received
    [Thr 3008] Deactivated service 8000 for protocol HTTP on host: "sapapp1.koyuncu.com.tr"(on all adapters) (timeout=30)
    [Thr 3008] Deactivated service 0 for protocol SMTP on host: "sapapp1.koyuncu.com.tr"(on all adapters) (timeout=30)
    [Thr 3008] Removed service 8000 for protocol HTTP on host: "sapapp1.koyuncu.com.tr"(on all adapters) (timeout=30)
    [Thr 3008] Removed service 0 for protocol SMTP on host: "sapapp1.koyuncu.com.tr"(on all adapters) (timeout=30)
    [Thr 3008] *** ICM shutdown completed (pid: 3012) ***
    dev_w0
    A Mon Aug 11 09:32:57 2008
    A  GENER starting inline generation: AQA0SYSTQV000006ZFI_MBL_001=== (reason: explicit generation).

    A Mon Aug 11 09:35:51 2008
    A  GENER starting remote generation: /1BCDWB/SAPLIQ000000000079 (requested by W1).

    M Mon Aug 11 11:08:35 2008
    M  *** WARNING => ThSndDelUser: delete client/user 100/HIKMETB      (T100) on server sapapp1_KEC_00     

    M Mon Aug 11 11:40:23 2008
    M  *** WARNING => ThSndDelUser: delete client/user 100/MURATU       (T81) on server sapapp2_KEC_00     

    M Mon Aug 11 11:51:37 2008
    M  *** WARNING => ThSndDelUser: delete client/user 100/HIKMETB      (T28) on server sapapp1_KEC_00     

    M Mon Aug 11 12:21:53 2008
    M  *** WARNING => ThSndDelUser: delete client/user 100/HIKMETB      (T99) on server sapapp1_KEC_00     

    A Mon Aug 11 22:28:59 2008
    A  GENER starting remote generation: SAPL0F21 (requested by W1).

    M Tue Aug 12 09:47:58 2008
    M  *** WARNING => PfStatWrite: missing STAT_END for opcode STAT_GUI [pfxxstat.c   4133]

    M Tue Aug 12 15:34:33 2008
    M  ***LOG US1=> Login, Wrong Password (UMITK ) [sign.c       4523]

    M Wed Aug 13 03:02:48 2008
    M  in_ThErrHandle: 1
    M  ThIErrHandle: new stat of W0 is WP_SHUTDOWN   
    M  ThIErrHandle: I'm during shutdown
    M  PfStatDisconnect: disconnect statistics
    M  Entering ThSetStatError
    M  ThCallDbBreak: use db_sqlbreak
    C  SQLBREAK: DBSL_CMD_SQLBREAK: CbOnCancel was not set. rc: 1
    M  ThIErrHandle: don't try rollback again
    M  ThShutDownServer: shutdown server
    M  PfStatIndInit: Initializing Index-Record
    M  PfWriteIntoFile: copied shared buf (0 bytes) to local buf
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    B  Disconnecting from ALL connections:
    B  Wp  Hdl ConName          ConId     ConState     TX  PRM RCT TIM MAX OPT Date     Time   DBHost         
    B  000 000 R/3              000000000 INACTIVE     NO  YES NO  000 255 255 20080807 095145 SAPDB          

    B Wed Aug 13 03:02:49 2008
    B  Disconnected from connection 0
    B  statistics db_con_commit (com_total=252484, com_tx=21560)
    B  statistics db_con_rollback (roll_total=984, roll_tx=11)
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 4192) [dpnttool.c   333]

    Hi, i have the equal problem :
    Fri Sep 11 11:51:48 2009
    TRACE FILE TRUNCATED ( pid =     2328 )
    sysno      00
    sid        PRD
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    201
    intno      20050900
    make:      multithreaded, ASCII, optimized
    pid        2328
    kernel runs with dp version 242(ext=110) (@(#) DPLIB-INT-VERSION-242)
    length of sys_adm_ext is 364 bytes
    Fri Sep 11 12:01:34 2009
    SoftCancel request for T39 U9644 M2 received from REMOTE_TERMINAL
    Fri Sep 11 12:05:20 2009
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 24 / sock 808
        (SI_ECONN_BROKEN/10054; I4; ST; 192.168.254.87:2122) [nixxi.cpp    4424]
    Network error of client T28, NiBufReceive (-6: NIECONN_BROKEN), dp_tm_status=3
    Client address of T28 is 192.168.254.87(192.168.254.87)
    ***LOG Q04=> DpRTmPrep, NiBufReceive (9645 MAGAZZ-ORIO 28 paolo ) [dpxxdisp.c   12205]
    RM-T28, U9645, 200  MAGAZZ-ORIO, paolo, 12:05:20, M2, W5,     , 3/1
    Fri Sep 11 12:18:01 2009
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) [nixxi.cpp 4424]
    ERROR => NiIRead: SiRecv failed for hdl 23 / sock 1120
        (SI_ECONN_BROKEN/10054; I4; ST; 192.168.254.98:1542) [nixxi.cpp    4424]
    Network error of client T80, NiBufReceive (-6: NIECONN_BROKEN), dp_tm_status=3
    Client address of T80 is 192.168.254.98(192.168.254.98)
    ***LOG Q04=> DpRTmPrep, NiBufReceive (9730 MAGAZZ-ORIO 80 HP-DIREZIONE) [dpxxdisp.c   12205]
    RM-T80, U9730, 200  MAGAZZ-ORIO, HP-DIREZIONE, 12:17:23, M0, W10, SP02, 2/1
    Fri Sep 11 13:21:19 2009
    DpHdlDeadWp: restart wp (pid=4152) automatically
    Fri Sep 11 14:06:55 2009
    SoftCancel request for T56 U9281 M4 received from REMOTE_TERMINAL

  • Euro symbol not displayed/stored correctly when Application Server on AIX

    Hi,
    Up till now we have an BC4J/ServiceFile/UIX application (generated with JHeadstart)running on Windows OS (Application Server and Database).
    The customer has decided to move the Application Server (10g) to an AIX machine.
    When testing the application we find:
    1) Euro symbol (€) is displayed en stored correctly when stored in varchar2 db-columns
    2) The Euro symbol is not stored correctly when stored within a CLOB db-column AND when the AS runs on an AIX.
    When the Application Server runs on a Windows-platform the euro symbol is displayed and stored correctly.
    Our first guess was some NLS_LANG configuration problems on the AIX-machine. We tried however to set the NLS-LANG to "DUTCH_THE NETHERLANDS.WE8MSWIN1252". This had no visible effect.
    Are there other (if any) NLS-settings which influence the way the CLOB-columns are dealt with?
    When connecting to the same database from a Windows-Application Server no problems occur, thus showing that the problem is AS/OS specific.....
    Our guess is that is related to BC4J and how BC4J communicates with the database.
    Is this problem a known bug/issue?
    Any ideas how to solve this problem?
    We are using JDeveloper 9.0.3.1 (build 1107), Business Components Version is 9.0.3.10.62
    Thanks,
    Anthonie

    Sorry, I'm having difficulty understanding what's happening here. Let me see if I get it.
    You have an application that stores the euro symbol in a CLOB. When the server that handles this application is on AIX, the euro is not properly displayed in the client. When the server is on Windows, it displays properly.
    Is that the issue? If so, it could be a number of things, but it's probably related to the character set differences between the two database servers.
    Have you been able to reproduce this without using Business Components?
    -SteveA

  • When Application server started

    Hi,
    in Tools 8.50 on Windows 2003, in which log file can I see the start time of Application server ?
    I looked in APPSRV_0804.LOG and TUXLOG.080411 but did not see.
    Thanks.

    Has it been started today ? What about ?
    grep "Server started" $PS_HOME/appserv/<domain_name>/LOGS/APPSRV_*Nicolas.

  • Catch events when documents change

    Hi. We would like to do realtime indexing of content in our km engine. Is there a way to create a listener which is triggered anytime a document changes, so that we can inform our "TREX" (or a 3rd party search engine)?
    Next step would be to also catch an event everytime permissions for a document change.
    I would appreciate, if someone could elaborate on the possibilities.

    Hi Sebastian,
    yes, you can implement an IEventReceiver an listen to certain events:
    public class MyEventReceiver implements IResourceEventReceiver {
        public MyEventReceiver() {
         IResourceEventBroker broker = resource.getRepositoryManager().getEventBroker();
            broker.register(this, IResourceEvent.RENAME_EVENT, IEventBroker.PRIO_MIN, true);
        public void received(IEvent event) {
         if( event instanceof IResourceEvent ) {
          IResourceEvent resourceEvent = (IResourceEvent)event;
          IResource resource = resourceEvent.getResource();
    See JavaDoc here: https://media.sdn.sap.com/html/submitted_docs/nw_kmc/javadoc/com/sapportals/wcm/util/events/package-summary.html
    KMC Developer Guide Eventing intro: https://media.sdn.sap.com/html/submitted_docs/nw_kmc/introduction/rf/concepts/rf_concepts.html#events
    Regards,
    Thilo

  • Catch event when user add an Invoice (push the Add button)

    i have User Defined Table(@User_Table1)
    so i like too whenever user click the Add Button, beside add an invoice..it write to the @User_Table1..
    at the moment, i using Screen Painter to make the form not using the existing one like A/R Invoice for example
    thanks

    I dont know about possibility how to continue the process of adding in case, that there will be some user input like msgbox, inputbox or something else. The only way how to do it (in my oppinion) is to at the end of the code set bubbleevent to true (maybe the msgbox sets it to false).  You have 2 choices how to recevie invoice details:
    - in case of beforeaction = true receive it from active form
    - in case of beforaction = false receive number of invoice and through object get details of invoice
    Petr

  • Application Server 11g?

    Does anyone know when Application Server 11g will be released? Even a timeframe would be nice.

    Note that JDeveloper 11gR1 (part of Oracle Fusion Middleware 11gR1) has already been released.
    http://download.oracle.com/docs/cd/E12839_01/index.htm
    The full release is expected to be released within current calendar year.
    Thanks
    Shail

  • Problem with application server shutdown when connecting

    Hi Friends,
    I am new to J2EE applications.
    I developed a web application that uses jxl and mysql for reading excel sheets. The host I am working on is supposed to be the server. The application I am running is working absolutely fine, by creating a directory and saving the excel file in my webapps folder and inserting the data to the database. But the minute I send the file from client system, there is a sudden shutdown in my server.
    I am sending the jsp and java code related to this application and related log file..
    I guess the main problem is with sending the exact path from the remote client, rest all is fine including excel and database interactions.
    I commented the database interaction class just for now as I don't think there is a problem with it.
    I am using Tomcat 4.1, MySQL 3.23
    ====================================================
    JSP FILE
    =====================================================
    <%@ page language="java" import="pdss.*"%>
    <html>
    <head><title>File Upload</title></head>
    <body>
    <%     String action=request.getParameter("go");
    String message=request.getParameter("msg");
    String str="";
    if(message!=null)
         str="Please enter valid filename!";
    ExcelInteraction xlInt=new ExcelInteraction();
    if(action==null)
    %>
    <center><font color="red"><%=str%></font></center>
    <form name="myform" method="post">
    <input type="file" name="filename"></input>
    <input type="submit" name="go" value="Send">
    </form>
    <%
    else if("send".equalsIgnoreCase(action))
         String filename=request.getParameter("filename");
         int ex=0;
         System.out.println("************"+filename.endsWith(".xls"));
         if(filename!=null && (filename.endsWith(".xls")))
              ex=xlInt.fileTransfer(filename, getServletContext());
         else if(filename==null || ("".equals(filename)) || filename.endsWith(".xls")==false)
              response.sendRedirect("uploadFile.jsp?msg=a");
         if(ex>0)
    %>          DONE
    <%     }
         else
    %>          Data Inconsistency found
    <%     }
    %>
    </body>
    </html>
    ======================================================
    JAVA FILES
    ======================================================
    ExcelInteraction:
    package pdss;
    import pdss.*;
    import java.io.*;
    import java.lang.*;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class ExcelInteraction
         //PDSSUtilities pdsUtil=new PDSSUtilities();
         public int fileTransfer(String readFile, ServletContext app) throws Exception
              int i=0, j=0;
              String strDirectory = "pdssexcelfiles";
              System.out.println("..............ReadFile..."+readFile);
              File srcFile=new File(readFile);
              System.out.println(".................Created source file."+srcFile.getAbsolutePath());
              File destFile=null;
              String newDirStr="",srcFileName="",destFileLoc="", realPath="";
              try{
                   realPath=app.getRealPath("/");
                   System.out.println("newDirStr..........."+realPath);
                   newDirStr=realPath+strDirectory;
                   System.out.println("newDirStr..........."+newDirStr);
                   if((new File(newDirStr)).exists()==false)
                        boolean success = (new File(newDirStr)).mkdir();
                        System.out.println("....................success..."+success);
                        if (success) {
                             System.out.println(".................Directory...: " + strDirectory + " created");
                   srcFileName = srcFile.getName();
                   destFileLoc=newDirStr+"\\"+srcFileName;
                   System.out.println("DestFileLoc............"+destFileLoc);
                   if(srcFile.exists()){
                        destFile=new File(destFileLoc);
                        InputStream in = new FileInputStream(srcFile);
                        OutputStream out = new FileOutputStream(destFile);
                        byte[] buf = new byte[1024];
                        int len=0;
                        while ((len = in.read(buf)) > 0){
                             out.write(buf, 0, len);
                        in.close();
                        out.close();
                   System.out.println("............File copied to... "+destFile.getAbsolutePath());
                   System.out.println("......Closing Streams......");
                   /*if(destFile.exists())
                        j=pdsUtil.readXlData(destFileLoc);
                        System.out.println("..........j::"+j+"rows affected");
              catch(Exception e)
                   e.printStackTrace();
                   System.exit(0);
              return j;
    =====================================================
    LOG FILE FROM HOST SYSTEM:
    =====================================================
    2008-09-16 16:53:52 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:53:52 StandardContext[pdss]: Trying exact match
    2008-09-16 16:53:52 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:53:52 StandardContext[pdss]: Trying extension match
    2008-09-16 16:53:52 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    2008-09-16 16:54:01 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:54:01 StandardContext[pdss]: Trying exact match
    2008-09-16 16:54:01 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:54:01 StandardContext[pdss]: Trying extension match
    2008-09-16 16:54:01 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    =====================================================
    LOG FILE FROM CLIENT SYSTEM:
    2008-09-16 16:54:41 StandardContext[pdss]: Mapping contextPath='/pdss' with requestURI='/pdss/uploadFile.jsp' and relativeURI='/uploadFile.jsp'
    2008-09-16 16:54:41 StandardContext[pdss]: Trying exact match
    2008-09-16 16:54:41 StandardContext[pdss]: Trying prefix match
    2008-09-16 16:54:41 StandardContext[pdss]: Trying extension match
    2008-09-16 16:54:41 StandardContext[pdss]: Mapped to servlet 'jsp' with servlet path '/uploadFile.jsp' and path info 'null' and update=true
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping filters
    2008-09-16 16:54:42 StandardContext[pdss]: Processing standard container shutdown
    2008-09-16 16:54:42 ContextConfig[pdss]: ContextConfig: Processing STOP
    2008-09-16 16:54:42 StandardWrapper[pdss:jsp]: Waiting for 1 instance(s) to be deallocated
    2008-09-16 16:54:42 StandardContext[pdss]: Sending application stop events
    2008-09-16 16:54:42 StandardContext[pdss]: Stopping complete
    =====================================================
    Regards
    Vasumitra

    The VERY FIRST message in the server log gives you a hint as to what the problem might be. The server thinks you have spaces in your PATH to the application server. Therefore, the solution is to kill the server however you need to (task manager, whatever) and then reinstall it in a path that doesn't contain spaces. That's the low-hanging fruit here; if that doesn't work, well, then we will have to find some other solution.

  • SAP Gui Logon - application server shutdown

    Hi!
    I'have installed SAP Netweaver 7.0 Abap TRIAL on my Windows XP Service Pack 3.
    After lunching NSP-->Start Application Server, all is ok.
    But when i try to Logon with Sap Gui 7.10, i get this error :
    application server shutdown
    Component     DPTM
    Release                710
    Version             10
    Return Code     -17
    Counter             1
    Could you please help me?
    Thanks a lot!

    Hi!
    MaxDB seems to start correctly :
    http://www.fabiocavallo.it/sap/maxdb.jpg
    ...here comes dev_w0 :
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, MJ

    B Thu May 22 19:58:50 2008
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll' ...
    M  *** ERROR => DlLoadLib: LoadLibrary(C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll) Error 126 [dlnt.c       237]
    M          Error 126 = "Impossibile trovare il modulo specificato."
    B  *** ERROR => Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'
    [dbcon.c      4726]
    M sysno      00
    M sid        NSP
    M systemid   560 (PC with Windows NT)
    M relno      7000
    M patchlevel 0
    M patchno    95
    M intno      20050900
    M make:      multithreaded, ASCII, optimized
    M pid        3376
    M
    M  kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    M  length of sys_adm_ext is 360 bytes
    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3376) [dpxxdisp.c   1301]
    I  MtxInit: 30000 0 0
    M  DpSysAdmExtCreate: ABAP is active
    M  DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active

    M Thu May 22 19:58:51 2008
    M  DpShMCreate: sizeof(wp_adm)          6328     (904)
    M  DpShMCreate: sizeof(tm_adm)          3605136     (17936)
    M  DpShMCreate: sizeof(wp_ca_adm)          1200     (60)
    M  DpShMCreate: sizeof(appc_ca_adm)     1200     (60)
    M  DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    M  DpShMCreate: sizeof(comm_adm)          528048     (1048)
    M  DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M  DpShMCreate: sizeof(slock_adm)          0     (96)
    M  DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M  DpShMCreate: sizeof(file_adm)          0     (72)
    M  DpShMCreate: sizeof(vmc_adm)          0     (1280)
    M  DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    M  DpShMCreate: sizeof(gw_adm)     48
    M  DpShMCreate: SHM_DP_ADM_KEY          (addr: 06420040, size: 4205552)
    M  DpShMCreate: allocated sys_adm at 06420040
    M  DpShMCreate: allocated wp_adm at 06421A28
    M  DpShMCreate: allocated tm_adm_list at 064232E0
    M  DpShMCreate: allocated tm_adm at 06423310
    M  DpShMCreate: allocated wp_ca_adm at 067935A0
    M  DpShMCreate: allocated appc_ca_adm at 06793A50
    M  DpShMCreate: allocated comm_adm at 06793F00
    M  DpShMCreate: system runs without slock table
    M  DpShMCreate: system runs without file table
    M  DpShMCreate: allocated vmc_adm_list at 06814DB0
    M  DpShMCreate: allocated gw_adm at 06814DF0
    M  DpShMCreate: system runs without vmc_adm
    M  DpShMCreate: allocated ca_info at 06814E20
    M  DpShMCreate: allocated wall_adm at 06814E28
    X  EmInit: MmSetImplementation( 2 ).
    X  MM global diagnostic options set: 0
    X  <ES> client 0 initializing ....
    X  Using implementation view
    M  <EsNT> Memory Reset disabled as NT default
    X  ES initialized.
    M  ThInit: running on host PCFABIO

    M Thu May 22 19:58:52 2008
    M  calling db_connect ...
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll' ...
    M  *** ERROR => DlLoadLib: LoadLibrary(C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll) Error 126 [dlnt.c       237]
    M          Error 126 = "Impossibile trovare il modulo specificato."
    B  *** ERROR => Couldn't load library 'C:\SAP\NSP\SYS\exe\run\dbsdbslib.dll'
    [dbcon.c      4726]
    M  ***LOG R19=> ThInit, db_connect ( DB-Connect 008192) [thxxhead.c   1426]
    M  in_ThErrHandle: 1
    M  *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   10240]

    M  Info for wp 0

    M    stat = WP_RUN
    M    waiting_for = NO_WAITING
    M    reqtype = DP_RQ_DIAWP
    M    act_reqtype = NO_REQTYPE
    M    rq_info = 0
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = 65535
    M    rq_source =
    M    last_tid = 0
    M    last_mode = 0
    M    semaphore = 0
    M    act_cs_count = 0
    M    csTrack = 0
    M    csTrackRwExcl = 0
    M    csTrackRwShrd = 0
    M    control_flag = 0
    M    int_checked_resource(RFC) = 0
    M    ext_checked_resource(RFC) = 0
    M    int_checked_resource(HTTP) = 0
    M    ext_checked_resource(HTTP) = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <
    M    vm = no VM

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server PCFABIO_NSP_00 on host PCFABIO (wp 0)
    M  *  ERROR       ThInit: db_connect
    M  *
    M  *  TIME        Thu May 22 19:58:52 2008
    M  *  RELEASE     700
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        10439
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  PfStatDisconnect: disconnect statistics
    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   720]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  260]
    M  Entering ThSetStatError
    M  ThIErrHandle: do not call ThrCoreInfo (no_core_info=0, in_dynp_env=0)
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 3376) [dpnttool.c   327]
    Thanks again, Sergo!
    Regards.
    Fabio

  • TRIALSP11 Application server Shutdown at SAP LOGON

    This is my first adventure with SAP or ABAP..
    1. I installed and followed the  SAPNW2004sABAPTrialSP11 install instructions.
    2. The installation instructions went fine from the
    /people/manfred.lutz/blog/2007/03/16/new-blog-series-abap-trial-version-for-newbies
    3. SAMMMC has MSG_SERVER.exe and DISP_WORK.EXE both green when I stared the SAP Logon.
    4. After I start the SAP the waiting for response shows up.
    5. SAP GUI comes up with a error saying application server shutdown.
    6. my disp+work.exe goes to stopped state.
    7. Error message says componet is 710, version 10, return code -17, counter 1.
    The Log is attached. Any help is rewarded.
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno      00
    sid        NSP
    systemid   560 (PC with Windows NT)
    relno      7000
    patchlevel 0
    patchno    95
    intno      20050900
    make:      multithreaded, ASCII, optimized
    pid        2192
    Fri Jun 29 21:56:47 2007
    kernel runs with dp version 224(ext=109) (@(#) DPLIB-INT-VERSION-224)
    length of sys_adm_ext is 360 bytes
    SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (00 2192) [dpxxdisp.c   1239]
    Fri Jun 29 21:56:48 2007
         shared lib "dw_xml.dll" version 95 successfully loaded
         shared lib "dw_xtc.dll" version 95 successfully loaded
         shared lib "dw_stl.dll" version 95 successfully loaded
         shared lib "dw_gui.dll" version 95 successfully loaded
         shared lib "dw_mdm.dll" version 95 successfully loaded
    rdisp/softcancel_sequence :  -> 0,5,-1
    use internal message server connection to port 3900
    Fri Jun 29 21:56:52 2007
    WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings [dpxxtool2.c  5355]
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >kiranmtop_NSP_00                        <
    DpShMCreate: sizeof(wp_adm)          6328     (904)
    DpShMCreate: sizeof(tm_adm)          3605136     (17936)
    DpShMCreate: sizeof(wp_ca_adm)          1200     (60)
    DpShMCreate: sizeof(appc_ca_adm)     1200     (60)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/8/528040/528048
    DpShMCreate: sizeof(comm_adm)          528048     (1048)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm)          0     (96)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm)          0     (72)
    DpShMCreate: sizeof(vmc_adm)          0     (1280)
    DpShMCreate: sizeof(wall_adm)          (22440/34344/56/100)
    DpShMCreate: sizeof(gw_adm)     48
    DpShMCreate: SHM_DP_ADM_KEY          (addr: 059B0040, size: 4205552)
    DpShMCreate: allocated sys_adm at 059B0040
    DpShMCreate: allocated wp_adm at 059B1A28
    DpShMCreate: allocated tm_adm_list at 059B32E0
    DpShMCreate: allocated tm_adm at 059B3310
    DpShMCreate: allocated wp_ca_adm at 05D235A0
    DpShMCreate: allocated appc_ca_adm at 05D23A50
    DpShMCreate: allocated comm_adm at 05D23F00
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 05DA4DB0
    DpShMCreate: allocated gw_adm at 05DA4DF0
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 05DA4E20
    DpShMCreate: allocated wall_adm at 05DA4E28
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    Fri Jun 29 21:56:53 2007
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 1024 kByte.
    Using implementation view
    <EsNT> Memory Reset disabled as NT default
    <ES> 127 blocks reserved for free list.
    ES initialized.
    rdisp/http_min_wait_dia_wp : 1 -> 1
    Fri Jun 29 21:56:54 2007
    ***LOG Q0K=> DpMsAttach, mscon ( kiranmtop) [dpxxdisp.c   11663]
    Fri Jun 29 21:56:55 2007
    DpStartStopMsg: send start message (myname is >kiranmtop_NSP_00                        <)
    DpStartStopMsg: start msg sent
    Fri Jun 29 21:56:56 2007
    CCMS: alert/MONI_SEGM_SIZE = 0   monitoring and alerting switched off.
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet [dpxxmbuf.c   1050]
    DpMsgAdmin: Set patchno for this platform to 95
    Release check o.K.
    Fri Jun 29 21:57:35 2007
    ERROR => W0 (pid 2268) died [dpxxdisp.c   14318]
    ERROR => W1 (pid 2276) died [dpxxdisp.c   14318]
    ERROR => W2 (pid 2284) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x9f --> 0x9e
    ERROR => W3 (pid 2292) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x9e --> 0x9c
    ERROR => W4 (pid 2300) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x9c --> 0x98
    ERROR => W5 (pid 2308) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x98 --> 0x90
    ERROR => W6 (pid 2316) died [dpxxdisp.c   14318]
    my types changed after wp death/restart 0x90 --> 0x80
    DP_FATAL_ERROR => DpWPCheck: no more work processes
    DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:45 2007
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long)               Sat Jun 30 04:57:45 2007
    ========================
    No Ty. Pid      Status  Cause Start Err Sem CPU    Time  Program  Cl  User         Action                    Table
    0 DIA     2268 Ended         no      1   0             0                                                             
    1 DIA     2276 Ended         no      1   0             0                                                             
    2 DIA     2284 Ended         no      1   0             0                                                             
    3 UPD     2292 Ended         no      1   0             0                                                             
    4 ENQ     2300 Ended         no      1   0             0                                                             
    5 BTC     2308 Ended         no      1   0             0                                                             
    6 SPO     2316 Ended         no      1   0             0                                                             
    Dispatcher Queue Statistics               Sat Jun 30 04:57:45 2007
    ===========================
    --------++++--
    +
    Typ
    now
    high
    max
    writes
    reads
    --------++++--
    +
    NOWP
    0
    2
    2000
    5
    5
    --------++++--
    +
    DIA
    5
    5
    2000
    5
    0
    --------++++--
    +
    UPD
    0
    0
    2000
    0
    0
    --------++++--
    +
    ENQ
    0
    0
    2000
    0
    0
    --------++++--
    +
    BTC
    0
    0
    2000
    0
    0
    --------++++--
    +
    SPO
    0
    0
    2000
    0
    0
    --------++++--
    +
    UP2
    0
    0
    2000
    0
    0
    --------++++--
    +
    max_rq_id          12
    wake_evt_udp_now     0
    wake events           total     7,  udp     4 ( 57%),  shm     3 ( 42%)
    since last update     total     7,  udp     4 ( 57%),  shm     3 ( 42%)
    Dump of tm_adm structure:               Sat Jun 30 04:57:45 2007
    =========================
    Term    uid  man user    term   lastop  mod wp  ta   a/i (modes)
    RM-T7, U8,                 , kiranmtop, 21:57:24, M0, W-1,     , 1/0
    Workprocess Comm. Area Blocks               Sat Jun 30 04:57:45 2007
    =============================
    Slots: 20, Used: 2, Max: 1
    --------++--
    +
    id
    owner
    pid
    eyecatcher
    --------++--
    +
    0
    DISPATCHER
    -1
    WPCAAD000
    1
    DISPATCHER
    -1
    WPCAAD001
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:50 2007
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >kiranmtop_NSP_00                        < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIModState: change state to SHUTDOWN
    DpModState: change server state from STARTING to SHUTDOWN
    Switch off Shared memory profiling
    ShmProtect( 57, 3 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RW
    ShmProtect( 57, 1 )
    ShmProtect(SHM_PROFILE, SHM_PROT_RD
    DpWakeUpWps: wake up all wp's
    Stop work processes
    Stop gateway
    killing process (2252) (SOFT_KILL)
    Stop icman
    killing process (2260) (SOFT_KILL)
    Terminate gui connections
    send SHUTDOWN to REM TM 7
    blks_in_queue/wp_ca_blk_no/wp_max_no = 2/20/7
    LOCK WP ca_blk 2
    return errno (-17) to T7
    errormsg without overhead: take mode 0
    NiBufIAlloc: malloc NiBufadm, to 0 bytes
    try to send 14 to M0
    NiBufSend starting
    NiIWrite: hdl 5 sent data (wrt=14,pac=1,MESG_IO)
    REL WP ca_blk 2
    set status of T7 to TM_DISCONNECTED
    NiBufISelUpdate: new MODE -- (r-) for hdl 5 in set0
    SiSelNSet: set events of sock 1508 to: ---
    NiBufISelRemove: remove hdl 5 from set0
    SiSelNRemove: removed sock 1508
    NiSelIRemove: removed hdl 5
    DpDelSocketInfo: del info for socket 5 (type=3)
    NiICloseHandle: shutdown and close hdl 5 / sock 1508
    NiBufIClose: clear extension for hdl 5
    dp_tm_adm[7].stat = DP_SLOT_FREE
    DpGetSchedule: next schedule 1183179475/922000
    Fri Jun 29 21:57:51 2007
    DpGetSchedule: no schedule found
    DpITmSlotRelease: release slot 7
    DpListInsert: insert elem 7 into tmadm_free_list (at begin)
    DpListInsert: 194 elems in tmadm_free_list
    DpListRemove: remove elem 7 from tmadm_inuse_list
    DpListRemove: 7 elems in tmadm_inuse_list
    wait for end of work processes
    wait for end of gateway
    [DpProcDied] Process died  (PID:2252  HANDLE:1592)
    wait for end of icman
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:52 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:53 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:54 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:55 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:56 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:57 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:58 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:57:59 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:58:00 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:58:01 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:58:02 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process lives  (PID:2260  HANDLE:1608)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=1629
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Fri Jun 29 21:58:03 2007
    NiISelect: TIMEOUT occured (1000ms)
    [DpProcDied] Process died  (PID:2260  HANDLE:1608)
    DpStartStopMsg: send stop message (myname is >kiranmtop_NSP_00                        <)
    NiIMyHostName: hostname = 'kiranmtop'
    AdGetSelfIdentRecord: >                                                                           <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 4 (AD_STARTSTOP), ser 0, ex 0, errno 0
    DpConvertRequest: net size = 189 bytes
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=562,pac=1,MESG_IO)
    MsINiWrite: sent 562 bytes
    send msg (len 110+452) to name                    -, type 4, key -
    DpStartStopMsg: stop msg sent
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 274 bytes
    MSG received, len 110+164, flag 1, from MSG_SERVER          , typ 0, key -
    DpHalt: received 164 bytes from message server
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    NiIRead: read for hdl 2 timed out (0ms)
    DpHalt: no more messages from the message server
    DpHalt: send keepalive to synchronize with the message server
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=114,pac=1,MESG_IO)
    MsINiWrite: sent 114 bytes
    send msg (len 110+4) to name           MSG_SERVER, type 0, key -
    MsSndName: MS_NOOP ok
    Send 4 bytes to MSG_SERVER
    NiIRead: hdl 2 received data (rcd=114,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=114
    NiBufIIn: packet complete for hdl 2
    NiBufReceive starting
    MsINiRead: received 114 bytes
    MSG received, len 110+4, flag 3, from MSG_SERVER          , typ 0, key -
    Received 4 bytes from MSG_SERVER                             
    Received opcode MS_NOOP from msg_server, reply MSOP_OK
    MsOpReceive: ok
    MsSendKeepalive : keepalive sent to message server
    NiIRead: hdl 2 recv would block (errno=EAGAIN)
    Fri Jun 29 21:58:04 2007
    NiIPeek: peek for hdl 2 timed out (r; 1000ms)
    NiIRead: read for hdl 2 timed out (1000ms)
    DpHalt: no more messages from the message server
    DpHalt: sync with message server o.k.
    detach from message server
    ***LOG Q0M=> DpMsDetach, ms_detach () [dpxxdisp.c   11976]
    NiBufSend starting
    NiIWrite: hdl 2 sent data (wrt=110,pac=1,MESG_IO)
    MsINiWrite: sent 110 bytes
    MsIDetach: send logout to msg_server
    MsIDetach: call exit function
    DpMsShutdownHook called
    NiBufISelUpdate: new MODE -- (r-) for hdl 2 in set0
    SiSelNSet: set events of sock 1556 to: ---
    NiBufISelRemove: remove hdl 2 from set0
    SiSelNRemove: removed sock 1556 (pos=2)
    SiSelNRemove: removed sock 1556
    NiSelIRemove: removed hdl 2
    MBUF state OFF
    AdGetSelfIdentRecord: >                                                                           <
    AdCvtRecToExt: opcode 60 (AD_SELFIDENT), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    AdCvtRecToExt: opcode 40 (AD_MSBUF), ser 0, ex 0, errno 0
    blks_in_queue/wp_ca_blk_no/wp_max_no = 2/20/7
    LOCK WP ca_blk 2
    make DISP owner of wp_ca_blk 2
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 15)
    MBUF component DOWN
    NiICloseHandle: shutdown and close hdl 2 / sock 1556
    NiBufIClose: clear extension for hdl 2
    MsIDetach: detach MS-system
    cleanup EM
    EsCleanup ....
    EmCleanup() -> 0
    Es2Cleanup: Cleanup ES2
    ***LOG Q05=> DpHalt, DPStop ( 2192) [dpxxdisp.c   10333]
    Good Bye .....

    Hi Russell,
    I am also facing the same problem as Kiran.
    I have attached dev_w0 file, with this msg.
    can you please tell me where the problem lies?
    =============================================================
    trc file: "dev_w0", trc level: 1, release: "620"
    ACTIVE TRACE LEVEL           1
    ACTIVE TRACE COMPONENTS      all, M

    B Sun Jul 01 18:13:56 2007
    B  create_con (con_name=R/3)
    B  Loading DB library 'C:\usr\sap\TEK\SYS\exe\run\dboraslib.dll' ...
    B  Library 'C:\usr\sap\TEK\SYS\exe\run\dboraslib.dll' loaded
    B  Version of 'C:\usr\sap\TEK\SYS\exe\run\dboraslib.dll' is "620.02", patchlevel (0.112)
    B  New connection 0 created
    M  systemid   560 (PC with Windows NT)
    M  relno      6200
    M  patchlevel 0
    M  patchno    251
    M  intno      20020600
    M  pid        3464

    M  ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 3464) [dpxxdisp.c   1016]
    I  MtxInit: -2 0 0

    X Sun Jul 01 18:13:58 2007
    X  EmInit: MmSetImplementation( 2 ).
    X  <ES> client 0 initializing ....
    X  Using implementation std
    M  <EsNT> Memory Reset enabled as NT default
    X  ES initialized.

    M Sun Jul 01 18:14:07 2007
    M  calling db_connect ...
    C  Got ORACLE_HOME=C:\oracle\ora81 from environment

    C Sun Jul 01 18:14:12 2007
    C  Client NLS settings: AMERICAN_AMERICA.WE8DEC
    C  Logon as OPS$-user to get SAPTEK's password
    C  Connecting as /@TEK on connection 0 ...
    C  Attaching to DB Server TEK (con_hdl=0,svchp=06AA97F8,svrhp=06AA9604)

    C Sun Jul 01 18:14:13 2007
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    [dboci.c      3566]
    C  *** ERROR => CONNECT failed with sql error '12541'
    [dboci.c      9536]
    C  Try to connect with default password
    C  Connecting as SAPTEK/<pwd>@TEK on connection 0 ...
    C  Attaching to DB Server TEK (con_hdl=0,svchp=06AA97F8,svrhp=06AA9410)

    C Sun Jul 01 18:14:14 2007
    C  *** ERROR => OCI-call 'OCIServerAttach' failed: rc = 12541
    [dboci.c      3566]
    C  *** ERROR => CONNECT failed with sql error '12541'
    [dboci.c      9536]
    B  ***LOG BY2=> sql error 12541  performing CON [dbsh#2 @ 962] [dbsh    0962 ]
    B  ***LOG BY0=> ORA-12541: TNS:no listener [dbsh#2 @ 962] [dbsh    0962 ]
    B  ***LOG BY2=> sql error 12541  performing CON [dblink#1 @ 419] [dblink  0419 ]
    B  ***LOG BY0=> ORA-12541: TNS:no listener [dblink#1 @ 419] [dblink  0419 ]
    M  ***LOG R19=> tskh_init, db_connect ( DB-Connect 000256) [thxxhead.c   1098]
    M  in_ThErrHandle: 1
    M  *** ERROR => tskh_init: db_connect (step 1, th_errno 13, action 3, level 1) [thxxhead.c   8277]

    M  Info for wp 0

    M    stat = 4
    M    reqtype = 1
    M    act_reqtype = -1
    M    tid = -1
    M    mode = 255
    M    len = -1
    M    rq_id = -1
    M    rq_source = 255
    M    last_tid = 0
    M    last_mode = 0
    M    rfc_req = 0
    M    report = >                                        <
    M    action = 0
    M    tab_name = >                              <

    M  *****************************************************************************
    M  *
    M  *  LOCATION    SAP-Server sapsrv_TEK_00 on host sapsrv (wp 0)
    M  *  ERROR       tskh_init: db_connect
    M  *
    M  *  TIME        Sun Jul 01 18:14:14 2007
    M  *  RELEASE     620
    M  *  COMPONENT   Taskhandler
    M  *  VERSION     1
    M  *  RC          13
    M  *  MODULE      thxxhead.c
    M  *  LINE        8408
    M  *  COUNTER     1
    M  *
    M  *****************************************************************************

    M  Entering TH_CALLHOOKS
    M  ThCallHooks: call hook >SAP-Trace buffer write< for event BEFORE_DUMP
    M  ThCallHooks: call hook >ThrSaveSPAFields< for event BEFORE_DUMP
    M  *** ERROR => ThrSaveSPAFields: no valid thr_wpadm [thxxrun1.c   672]
    M  *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed [thxxtool3.c  235]
    M  Entering ThSetStatError
    M  Entering ThReadDetachMode
    M  call ThrShutDown (1)...
    M  ***LOG Q02=> wp_halt, WPStop (Workproc 0 3464) [dpnttool.c   345]

  • Please Help! ERROR: Application Server failed. when Refreshing

    Please help on this below issue. Thanks.
    We have a requirement that using ASP.NET (C#), we need to open saved .rpt file (saved with data and the rpt file is assigned to the web page as query string) and let the users refresh themselves with latest data by clicking at refresh icon of the CrystalReportViewer. But it throws 'The Report Application Server failed' error message. What could cause this message. below is the piece of code we are using to configure the report.
    private void ConfigureCrystalReports()
    string reportPath = Server.MapPath("Reports
    SEMS0001_UBS.rpt");
    this.CrystalReportSource2.ReportDocument.Load(reportPath);
    CrystalReportViewer1.Visible = false;
    SetDBLogonForReport(this.CrystalReportSource2.ReportDocument);
    int i = 0;
    foreach (ParameterField field in this.CrystalReportSource2.ReportDocument.ParameterFields)
    field.HasCurrentValue = true;
    //this.CrystalReportSource2.ReportDocument.Refresh();
    CrystalReportViewer1.ParameterFieldInfo = this.CrystalReportSource2.ReportDocument.ParameterFields;
    CrystalReportViewer1.Visible = true;
    public void SetDBLogonForReport(ReportDocument reportDocument)
    Tables tables = reportDocument.Database.Tables;
    connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
    connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
    connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
    //foreach (CrystalDecisions.Shared.IConnectionInfo connection in reportDocument.DataSourceConnections)
    // connection.SetConnection(ConfigurationManager.AppSettings["DBServer"], "", ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
    // connection.SetLogon(ConfigurationManager.AppSettings["DBUser"], ConfigurationManager.AppSettings["DBPassword"]);
    foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
    TableLogOnInfo tableLogonInfo = table.LogOnInfo;
    tableLogonInfo.ConnectionInfo = connectionInfo;
    table.ApplyLogOnInfo(tableLogonInfo);
    //reportDocument.Database.Tables[0].ApplyLogOnInfo(tableLogonInfo);

    Attaching full code ... Our case is the RPT files are stored wih default parameters and saved data. We need to let users just refresh the rpt files with latest db data and overwrite with the same rpt files. But this code keep showing The application server failed mesg. when the refresh icon of viewer is clicked.
    Attaching the code as it is not properly attached in my previous reply ...
    =======================
    Begin - aspx.cs code
    =======================
    using System;
    using System.Data;
    using System.Data.OleDb;
    using System.Configuration;
    using System.Web;
    using System.Web.Security;
    using System.Web.UI;
    using System.Web.UI.WebControls;
    using System.Web.UI.WebControls.WebParts;
    using System.Web.UI.HtmlControls;
    using CrystalDecisions.CrystalReports.Engine;
    using CrystalDecisions.CrystalReports;
    using CrystalDecisions.Shared;
    using CrystalDecisions.Web;
    public partial class _Default : System.Web.UI.Page
        private ConnectionInfo connectionInfo = new ConnectionInfo();
        protected void Page_Load(object sender, EventArgs e)
            if (!IsPostBack)
                //ConfigureCrystalReports();
        protected void  CrystalReportViewer1_Init(object sender, EventArgs e)
            ConfigureCrystalReports();
        private void ConfigureCrystalReports()
            string reportPath = Server.MapPath(@"Reports\Report1.rpt");
            this.CrystalReportSource1.ReportDocument.Load(reportPath);
            CrystalReportViewer1.Visible = false;
            SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
            foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
                field.HasCurrentValue = true;
            //this.CrystalReportSource1.ReportDocument.Refresh();
            CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
            CrystalReportViewer1.Visible = true;
        public void ReportDocument_RefreshReport(object sender, EventArgs e)
            try
    SetDBLogonForReport(this.CrystalReportSource1.ReportDocument);
    CrystalReportViewer1.ReuseParameterValuesOnRefresh = true;
                this.CrystalReportSource1.ReportDocument.SetDatabaseLogon("user", "passwd", "server", "");
                foreach (ParameterField field in this.CrystalReportSource1.ReportDocument.ParameterFields)
                    field.HasCurrentValue = true;
                    field.AllowCustomValues = true;
                    //field.EnableNullValue = true;               
                this.CrystalReportSource1.ReportDocument.Refresh();
                       this.CrystalReportSource1.ReportDocument.SaveAs(@"C:\Inetpub\wwwroot\XsiteRpt\Reports\Report1.RPT", true);
            catch (Exception ex)
                Msg.Text = ex.Message;
        public void SetDBLogonForReport(ReportDocument reportDocument)
            Tables tables = reportDocument.Database.Tables;
            connectionInfo.ServerName = "server"; //ConfigurationManager.AppSettings["DBServer"];
            connectionInfo.UserID = "user"; //ConfigurationManager.AppSettings["DBUser"];
            connectionInfo.Password = "passwd"; //XsiteWinRpt.ConnUtil.GetOnlyPasswordOfConnString(); //ConfigurationManager.AppSettings["DBPassword"];
            foreach (CrystalDecisions.CrystalReports.Engine.Table table in reportDocument tables)
                TableLogOnInfo tableLogonInfo = table.LogOnInfo;
                tableLogonInfo.ConnectionInfo = connectionInfo;
                table.ApplyLogOnInfo(tableLogonInfo);
    =======================
    End - aspx.cs.code
    =======================
    =======================
    Begin - Assemblies
    =======================
    <assemblies>
                        <add assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Shared, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.ReportSource, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Framework, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.Desktop.Report, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.CrystalReports.Engine, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/>
                        <add assembly="CrystalDecisions.Enterprise.InfoStore, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692FBEA5521E1304"/><add assembly="CrystalDecisions.ReportAppServer.ClientDoc, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"/>
          </assemblies>
    =======================
    End - Assemblies
    =======================
    =======================
    Begin - aspx
    =======================
    <%@ Page Language="C#" AutoEventWireup="true"  CodeFile="Xsite.aspx.cs" Inherits="_Default" %>
    <%@ Register Assembly="CrystalDecisions.Web, Version=10.2.3600.0, Culture=neutral, PublicKeyToken=692fbea5521e1304"
        Namespace="CrystalDecisions.Web" TagPrefix="CR" %>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
        <title>Refresh Report</title>
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
        <link href="/aspnet_client/System_Web/2_0_50727/CrystalReportWebFormViewer3/css/default.css"
            rel="stylesheet" type="text/css" />
    </head>
    <body>
        <form id="form1" runat="server">
        <div>
            <asp:Panel ID="PanelMsg" runat="server">
            <br />
            <asp:Label ID="Msg" runat="server" Font-Bold="False" Font-Names="Verdana" ForeColor="Navy"></asp:Label>
            <br />
            </asp:Panel>
            <asp:Panel ID="PanelViewer" runat="server">
            <CR:CrystalReportViewer ID="CrystalReportViewer1" OnReportRefresh="ReportDocument_RefreshReport" runat="server" AutoDataBind="True"
                EnableDatabaseLogonPrompt="False" EnableParameterPrompt="False" ReuseParameterValuesOnRefresh="True" HasRefreshButton="True" Height="820px" OnInit="CrystalReportViewer1_Init" ReportSourceID="CrystalReportSource1" ShowAllPageIds="True" Width="1215px" />
            <CR:CrystalReportSource ID="CrystalReportSource1" runat="server">           
            </CR:CrystalReportSource>
            </asp:Panel>
        </div>
        </form>
    </body>
    </html>
    =======================
    End - aspx
    =======================

  • JDeveloper - Error when trying to create an application server connection

    Hello everyone,
    I am trying to use JDeveloper to create a connection an Oracle WebLogic Server configured for Oracle SOA Suite. When I navigate to Connections and click on Application Server Connection, JDeveloper produces and error with the diagnostics shown below. I'm new to using JDeveloper so any help or advice on how to start to resolve this issue would be greatly appreciated. Fore the record I'm using JDeveloper 11G R2 (11.1.2.1.0) running on a Linux Red Hat 5 64 bit server.
    Performing action (39) Close All [ from  ] [ for ( <none>, MasterBuildScript.jpr, Infrastructure.jws ) ]
    Performing action (272) New Application... [ from ExplorerWindowImpl ] [ for ( <none>, MasterBuildScript.jpr, Infrastructure.jws ) ]
    Invoking command: [ from ExplorerWindowImpl ] [ for ( <none>, MasterBuildScript.jpr, Infrastructure.jws ) ]
    18-Oct-2011 10:37:02 oracle.adfinternal.rc.connection.AdfConnectionContextProvider getConnectionContext()
    SEVERE:
    oracle.adf.rc.exception.CatalogRuntimeException: error while obtaining a connection context using connection context provider [oracle.adfinternal.rc.connection.AdfConnectionContextProvider] Root Cause=[]
         at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:92)
         at oracle.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
         at oracle.jdeveloper.rescat2.model.registry.RescatContext.getConnectionContext(RescatContext.java:220)
         at oracle.jdeveloper.rcasadapter.rescat2.RescatContextStore.<init>(RescatContextStore.java:56)
         at oracle.jdeveloper.asnav.wizard.RescatAppServerWizard.setResourcePaletteStore(RescatAppServerWizard.java:99)
         at oracle.jdeveloper.asnav.wizard.RescatAppServerWizard.createWizardControl(RescatAppServerWizard.java:87)
         at oracle.jdeveloper.rcasadapter.wizard.AppServerProviderWizard.invoke(AppServerProviderWizard.java:93)
         at oracle.ide.wizard.WizardManager.invokeWizard(WizardManager.java:446)
         at oracle.ide.wizard.WizardManager$1.run(WizardManager.java:530)
         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
         at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:642)
         at java.awt.EventQueue.access$000(EventQueue.java:85)
         at java.awt.EventQueue$1.run(EventQueue.java:603)
         at java.awt.EventQueue$1.run(EventQueue.java:601)
         at java.security.AccessController.doPrivileged(Native Method)
         at java.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
         at java.awt.EventQueue.dispatchEvent(EventQueue.java:612)
         at oracle.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
         at oracle.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
         at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
         at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
         at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
         at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
         at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by: java.lang.NullPointerException
         at oracle.adfinternal.rc.connection.UncloseableContextWrapper.wrapContext(UncloseableContextWrapper.java:59)
         at oracle.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:79)
         ... 24 more
    oracle.adf.rc.exception.CatalogRuntimeException: error while obtaining a connection context using connection context provider [oracle.adfinternal.rc.connection.AdfConnectionContextProvider] Root Cause=[]
    o.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:92)
    o.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
    o.j.rescat2.model.registry.RescatContext.getConnectionContext(RescatContext.java:220)
    o.j.rcasadapter.rescat2.RescatContextStore.<init>(RescatContextStore.java:56)
    o.j.asnav.wizard.RescatAppServerWizard.setResourcePaletteStore(RescatAppServerWizard.java:99)
    o.j.asnav.wizard.RescatAppServerWizard.createWizardControl(RescatAppServerWizard.java:87)
    o.j.rcasadapter.wizard.AppServerProviderWizard.invoke(AppServerProviderWizard.java:93)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:642)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:612)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Caused by:
    java.lang.NullPointerException
    o.adfinternal.rc.connection.UncloseableContextWrapper.wrapContext(UncloseableContextWrapper.java:59)
    o.adfinternal.rc.connection.AdfConnectionContextProvider.getConnectionContext(AdfConnectionContextProvider.java:79)
    o.adfinternal.rc.connection.ConnectionManagerImpl.getConnections(ConnectionManagerImpl.java:385)
    o.j.rescat2.model.registry.RescatContext.getConnectionContext(RescatContext.java:220)
    o.j.rcasadapter.rescat2.RescatContextStore.<init>(RescatContextStore.java:56)
    o.j.asnav.wizard.RescatAppServerWizard.setResourcePaletteStore(RescatAppServerWizard.java:99)
    o.j.asnav.wizard.RescatAppServerWizard.createWizardControl(RescatAppServerWizard.java:87)
    o.j.rcasadapter.wizard.AppServerProviderWizard.invoke(AppServerProviderWizard.java:93)
    o.i.wizard.WizardManager.invokeWizard(WizardManager.java:446)
    o.i.wizard.WizardManager$1.run(WizardManager.java:530)
    j.a.event.InvocationEvent.dispatch(InvocationEvent.java:209)
    j.a.EventQueue.dispatchEventImpl(EventQueue.java:642)
    j.a.EventQueue.access$000(EventQueue.java:85)
    j.a.EventQueue$1.run(EventQueue.java:603)
    j.a.EventQueue$1.run(EventQueue.java:601)
    j.security.AccessController.doPrivileged(Native Method)
    j.security.AccessControlContext$1.doIntersectionPrivilege(AccessControlContext.java:87)
    j.a.EventQueue.dispatchEvent(EventQueue.java:612)
    o.javatools.internal.ui.EventQueueWrapper._dispatchEvent(EventQueueWrapper.java:169)
    o.javatools.internal.ui.EventQueueWrapper.dispatchEvent(EventQueueWrapper.java:151)
    j.a.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
    j.a.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
    j.a.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
    j.a.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
    j.a.EventDispatchThread.run(EventDispatchThread.java:122)
    Thanks,
    Shaun.

    Not sure if this is a cause for your error, but JDev11.1.2.1.0 doesn't work with SOA right now. For SOA you need to use jdev11.1.1.5.0 or lower.
    Timo

  • Application server crashes when using JCO

    Hi,
    I am currently dealing with JCO Version 2.1.8.
    For testing purposes, I want to receive data from a Remote Function Module existing in our SAP development system.
    Therefore I created a simple Java servlet:
    public class POA_EDS_Servlet extends HttpServlet {
       private static final long serialVersionUID = 1L;
    protected void doGet(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
       response.setContentType("text/html");
       PrintWriter out = response.getWriter();
       out.println("<html>");
         protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
         response.setContentType("text/html");
         PrintWriter out = response.getWriter();
         String uri = request.getParameter("uri");
         JCO.Client connection;
         connection = JCO.createClient("200",
                   "DAHMSMA",
                   "EN",
                   "vmw3063.wdf.sap.corp",
                                  "00");
         try {
            connection.connect();
         catch (Exception ex) {
              ex.printStackTrace();
              System.exit(1);
    After deploying and when running this servlet, the application server is crashing. That means I have to restart the server via Remote Desktop Connection.
    Can anybode provide some help?
    Regards
    Marco
    Edited by: Marco Dahms on Sep 8, 2009 3:30 PM
    Edited by: Marco Dahms on Sep 8, 2009 3:33 PM

    Hello there,
    Can you please paste your defaultrace.log here. This log file will show the exception occured before the crash.
    For better debugging always using a logging mechanism and log the messages to a particular file.
    Regards,
    Vivek

  • How to trigger a Report when a file is placed in Application server

    Hi All,
    How to triggger a Report and get executed when a new file is placed in the application server.?
    It will be helpful if a Navigation is provided for the EVENT.
    Thanks in advance
    Chakri

    Hi,
    Check what is the frequency of the file coming to the application server.
    Schedule your program in SM36 giving data and time make it periodic . select the check box Periodic Job
    and then select the period values and give the period values as per the frequency of the file coming to app server.
    Thanks,
    Harini

Maybe you are looking for

  • I cal day and end hours in week view

    I just installed Tiger and am having trouble getting the hours that I want (7 a.m. to 8 p.m.) to only show in my week view. I followed the iCal help and set it up under preferences, yet is shows the day starting and ending at midnight. Help?

  • Lot of core files are generated in webserver machine.......

    we have a iplanet webserver running in our production environment........it is creating lot of entries in the file /var/adm/messages............... Aug 11 13:00:01 uk17 sendmail[1449]: [ID 702911 mail.warning] gethostbyaddr(192.168.245.62) failed: 1

  • Clearing a Stuck Execute Thread

    HI. If you get a stuck execute thread, is there anyway of clearing it or rolling it back so the action (a POST in this case) can be repeated again? STUCK] ExecuteThread: '16' for queue: 'weblogic.kernel.Default (self-tuning)' 684959 weblogic.servlet.

  • Only 71 of my 437 notes sync from my iPhone to iCloud.  Is this some kind of limit?

    It doesn't really make sense for them to cap what would presumably be very small text files... and if so, why cap it at the bizzarre number of 71? If notes cannot sync all of my notes between devices I'll have to copy-paste all of my notes into the e

  • Regrading full windows drag in remoteapp

    Hi, I've set up the "disable full window drag:i:1" setting in the rdp file for a remoteapp program, but it does not work. Using windows 7, RDP 7.1 (haven't upgraded to 8.0). Doesn't this setting work for remoteapps? Thanks