REPOST: JSP problems!!!

Sorry about the repost,
I have been trying to get my JSP to work all night but with no success. At the moment it outputs the total set of data which I presume means that my queries aren't being executed properly. They work fine when typed directly into MySQL. Can anyone see the problem?
The methods that I am using and the jsp code are displayed below,
     public void roomsBooked(String arrivalDate, String departureDate) throws SQLException, Exception
          if (con != null)
            try
              Statement checkBookings = con.createStatement();
              String query = ("CREATE TEMPORARY TABLE roomsoccupied "
                    + "SELECT roombooked.room_id FROM roombooked, booking "
                    + "WHERE "
                    + "roombooked.booking_id = booking.booking_id "
                    + "AND "
                    + "booking.arrival_date <  '" + departureDate +"'"
                    + "AND "
                    + "booking.departure_date >  '" + arrivalDate +"'"
             checkBookings.executeUpdate(query);
            catch (SQLException sqle)
              error = ""+sqle;
              throw new SQLException(error);
            catch (Exception e)
                          error = ""+e;
                          throw new Exception(error);
          else
            error = "Exception: Connection to database was lost.";
            throw new Exception(error);
public ResultSet roomsAvailable() throws SQLException, Exception
          if (con != null)
            try
              Statement checkAvailability = con.createStatement();
              String query = ("SELECT rooms.room_no FROM rooms "
                    + "LEFT JOIN roomsoccupied ON rooms.room_no=roomsoccupied.room_id "
                    + "WHERE roomsoccupied.room_id IS NULL;"
             rs = checkAvailability.executeQuery(query);
            catch (SQLException sqle) {
              error = ""+sqle;
              throw new SQLException(error);
            catch (Exception e) {
                          error = ""+e;
                          throw new Exception(error);
          else {
            error = "Exception: Connection to database was lost.";
            throw new Exception(error);
       return rs;
  }JSP PAGE
<%
      javaBean.connect();
      String arrivalDate =  request.getParameter("ArrivalDate");
      String departureDate =  request.getParameter("DepartureDate");
      javaBean.roomsBooked(arrivalDate, departureDate);
      ResultSet rs = javaBean.roomsAvailable();
      while(rs.next())
      {  %> Room number <%= rs.getString(1) %>
       <P><% }
      javaBean.disconnect();
%>

Well here is the original code with the PreparedStatements,Looking at this code, I'd say you have to learn what PreparedStatements are for:
try
    String sql = "CREATE TEMPORARY TABLE roomsoccupied "
                      + "SELECT roombooked.room_id FROM roombooked, booked, booking "
                      + "WHERE "
                      + "roombooked.booking_id = booking.booking_id "
                      + "AND "
                      + "booking.arrival_date <  ? "                           
                      + "AND "
                      + "booking.departure_date > ?";
    PreparedStatement roomsBooked = con.prepareStatement(sql);
    roomsBooked.setDate(1, arrivalDate);   // This is what I mean by letting PS escape the dates for you
    roomsBooked.setDate(2, departureDate);
    roomsBooked.execute();
    roomsBooked.close();
} catch (SQLException sqle)
    sqle.printStackTrace();
    System.err.println("SQL state: " + sqle.getSQLState());
    System.err.println("SQL error: " + sqle.getErrorCode());
I'm assuming that you're passing java.sql.Dates to the method.  That's what PreparedStatement will require.  I'm also assuming that the columns in that table are of type date.
>
The queries work fine when run directly on the command
line into MySQL and I have used System.out.println
statements which tell me that both methods execute.
Which leads me to believe that the MySQL code in my
methods just isn't being entered into MySQL properly
which is why it is returning NULL.
Maybe.  It's good that the queries run in the MySQL command shell, but your problem is the JDBC code.
As far as the temporary table is concerned, one is
created for each connection to the database and it's
results depend on each users query, which is why it is
a temporary table rather then a permanent one. The
results of each users temporary table are then used by
the second method to obtain the needed results which
should then be output by the JSP.
I'll bet this could be done with a JOIN or a VIEW instead of a temporary table.  Sounds like the sign of a bad design, IMO. - MOD

Similar Messages

  • Help me to solve this Jsp problem

    //Class1.java
    package p1.p2;
    public class Class1 implements Serializable
    private String name1,name2;
    public void setName1(String name)
    name1=name;
    public String getName1()
    return name1;
    public void setName2(String name)
    name2=name;
    public String getName2()
    return name2;
    //Class2.java
    package p1.p2;
    public class Class2
    String name1,name2;
    public String insert(Class1 c1)
    name1 = c1.getName();
    name2 = c2.getName();
    return name1;
    //Class3.jsp
    <%@ page import="p1.p2.*" %>
    <html>
    <form action="/bobby/Class3.jsp" method=post>
    Name1 : <input type=text name="cn1">
    Name2 : <input type=text name="cn2">
    <input type=submit value="Click"/>
    </form>
    </html>
    <%! String a,b,c; %>
    <%
    Class1 c1 = new Class1();
    Class1 c2 = new Class2();
    a=request.getParameter("cn1");
    b=request.getParameter("cn2");
    c1.setName(a);
    c1.setName(b);
    c=c2.insert(c1);
    out.println(c);
    %>
    WHEN I RUN THE JSP PROGRAM I GOT THE FOLLOWING ERROR.TELL ME THE SOLUTION TO SOLVE THIS PROBLEM.
    javax.servlet.ServletException:
    p1.p2.Class2.insert(Lp1/p2/Class1;)Ljava/lang/String;
    org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl .java:825)
    org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.j ava:758)
    org.apache.jsp.Class3_jsp._jspService(Class3_jsp.java:76)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    root cause
    java.lang.NoSuchMethodError: p1.p2.Class2.insert(Lp1/p2/Class1;)Ljava/lang/String;
    org.apache.jsp.Class3_jsp._jspService(Class3_jsp.java:67)
    org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:94)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
    org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:298)
    org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:292)
    org.apache.jasper.servlet.JspServlet.service(JspServlet.java:236)
    javax.servlet.http.HttpServlet.service(HttpServlet.java:810)

    First, please put your code inside code tags. There's a nice little button. All you have to do is paste your code, highlight it and press the little code button. Thanks.
    I had to make some adjustments to your original post. Either you had some closing braces in the wrong place, or you hve no idea what you're doing. I'm going to assume that Class1 is in a file named p1/p2/Class1.java and Class2 is in p1/p2/Class2.java.
    //Class1.java
    package p1.p2;
    public class Class1 implements Serializable
        private String name1,name2;
        public void setName1(String name)
            name1=name;
        public String getName1()
            return name1;
        public void setName2(String name)
            name2=name;
        public String getName2()
            return name2;
    //Class2.java
    package p1.p2;
    public class Class2
        String name1,name2;
        public String insert(Class1 c1)
            name1 = c1.getName();
            name2 = c2.getName();
            return name1;
    //Class3.jsp
    <%@ page import="p1.p2.*" %>
    <html>
    <form action="/bobby/Class3.jsp" method=post>
    Name1 : <input type=text name="cn1">
    Name2 : <input type=text name="cn2">
    <input type=submit value="Click"/>
    </form>
    </html>
    <%! String a,b,c; %>
    <%
        Class1 c1 = new Class1();
        Class1 c2 = new Class2(); //<-- problem here, do you see it?
        a=request.getParameter("cn1");
        b=request.getParameter("cn2");
        c1.setName(a);
        c1.setName(b);
        c=c2.insert(c1);
        out.println(c);
    %>Note the I highlighted the problem above. HTH.

  • Repost-- Facing Problems while installation of SAP NW PT 7.0 on Oracle 10.2

    Hello Friend,
    Sorry Friends, for my last long.....long...Post.....
    Here , i m reposting the same matter...Please help.
    We are trying to Install SAP NW PI 7.0 on Windows 2003 Server Enterprise Edition x64, with Oracle 10.2 - 64bit Edition.
    On this host, we already have installed SAP NW CE 7.1 with the same Oracle 10.2
    SAP NW CE 7.1 is working fine on this Host.
    First, we tried to install SAP NW PI 7.0 with jdk 1.4.2.16(32 bit), which was giving the error, while installation using SAPInst. So We installed jdk 1.5.0.15 (64 bit), at own risk. But, the Installation was interrupted due to some unknown error something like "SDM failed to deploy some components...etc....etc.". So, we installed jdk 1.6.0.6( which is perfect for Windows x64). With this , jdk 1.6.0.6 the last problem did not come and we reached at 9th step (of total 98th step of SAP NW PI 7.0 Installation), and was at "Prepare to install minimal Configuration", and controling START and STOP of System. Bu We found that, the System was not able to even start, at that 95th Phase.
    After that, we did lot of R&Ds to come out from the trouble.
    I am attaching the requied TRACE files, they are as followed.
    dev_disp.
    %%%%%%%%%%%%%START of dev_disp%%%%%%%%%
    trc file: "dev_disp", trc level: 1, release: "700"
    sysno 02
    sid PI1
    systemid 562 (PC with Windows NT)
    relno 7000
    patchlevel 0
    patchno 144
    intno 20050900
    make: multithreaded, Unicode, 64 bit, optimized
    pid 3132
    Thu May 08 16:50:32 2008
    kernel runs with dp version 232000(ext=109000) (@(#) DPLIB-INT-VERSION-232000-UC)
    length of sys_adm_ext is 576 bytes
              o
                    + SWITCH TRC-HIDE on ***
    ***LOG Q00=> DpSapEnvInit, DPStart (02 3132) http://dpxxdisp.c 1243
    shared lib "dw_xml.dll" version 144 successfully loaded
    shared lib "dw_xtc.dll" version 144 successfully loaded
    shared lib "dw_stl.dll" version 144 successfully loaded
    shared lib "dw_gui.dll" version 144 successfully loaded
    shared lib "dw_mdm.dll" version 144 successfully loaded
    rdisp/softcancel_sequence : -> 0,5,-1
    use internal message server connection to port 3902
    Thu May 08 16:50:36 2008
              o
                    + WARNING => DpNetCheck: NiAddrToHost(1.0.0.0) took 4 seconds
    ***LOG GZZ=> 1 possible network problems detected - check tracefile and adjust the DNS settings http://dpxxtool2.c 5371
    MtxInit: 30000 0 0
    DpSysAdmExtInit: ABAP is active
    DpSysAdmExtInit: VMC (JAVA VM in WP) is not active
    DpIPCInit2: start server >vcerp99_PI1_02 <
    DpShMCreate: sizeof(wp_adm) 25168 (1480)
    DpShMCreate: sizeof(tm_adm) 5652128 (28120)
    DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
    DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
    DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
    DpShMCreate: sizeof(comm_adm) 552080 (1088)
    DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    DpShMCreate: sizeof(slock_adm) 0 (104)
    DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    DpShMCreate: sizeof(file_adm) 0 (72)
    DpShMCreate: sizeof(vmc_adm) 0 (1864)
    DpShMCreate: sizeof(wall_adm) (41664/36752/64/192)
    DpShMCreate: sizeof(gw_adm) 48
    DpShMCreate: SHM_DP_ADM_KEY (addr: 000000000EE70050, size: 6348592)
    DpShMCreate: allocated sys_adm at 000000000EE70050
    DpShMCreate: allocated wp_adm at 000000000EE72150
    DpShMCreate: allocated tm_adm_list at 000000000EE783A0
    DpShMCreate: allocated tm_adm at 000000000EE78400
    DpShMCreate: allocated wp_ca_adm at 000000000F3DC2A0
    DpShMCreate: allocated appc_ca_adm at 000000000F3E2060
    DpShMCreate: allocated comm_adm at 000000000F3E3FA0
    DpShMCreate: system runs without slock table
    DpShMCreate: system runs without file table
    DpShMCreate: allocated vmc_adm_list at 000000000F46AC30
    DpShMCreate: allocated gw_adm at 000000000F46ACB0
    DpShMCreate: system runs without vmc_adm
    DpShMCreate: allocated ca_info at 000000000F46ACE0
    DpShMCreate: allocated wall_adm at 000000000F46ACF0
    MBUF state OFF
    DpCommInitTable: init table for 500 entries
    ThTaskStatus: rdisp/reset_online_during_debug 0
    EmInit: MmSetImplementation( 2 ).
    MM global diagnostic options set: 0
    <ES> client 0 initializing ....
    <ES> InitFreeList
    <ES> block size is 4096 kByte.
    <ES> Info: em/initial_size_MB( 3966MB) not multiple of em/blocksize_KB( 4096KB)
    <ES> Info: em/initial_size_MB rounded up to 3968MB
    Using implementation view
    <EsNT> Using memory model view.
    <EsNT> Memory Reset disabled as NT default
    <ES> 991 blocks reserved for free list.
    ES initialized.
    J2EE server info
    start = TRUE
    state = STARTED
    pid = 704
    argv[0] = D:\usr\sap\PI1\DVEBMGS02\exe\jcontrol.EXE
    argv[1] = D:\usr\sap\PI1\DVEBMGS02\exe\jcontrol.EXE
    argv[2] = pf=D:\usr\sap\PI1\SYS\profile\PI1_DVEBMGS02_vcerp99
    argv[3] = -DSAPSTART=1
    argv[4] = -DCONNECT_PORT=65000
    argv[5] = -DSAPSYSTEM=02
    argv[6] = -DSAPSYSTEMNAME=PI1
    argv[7] = -DSAPMYNAME=vcerp99_PI1_02
    argv[8] = -DSAPPROFILE=D:\usr\sap\PI1\SYS\profile\PI1_DVEBMGS02_vcerp99
    argv[9] = -DFRFC_FALLBACK=ON
    argv10 = -DFRFC_FALLBACK_HOST=localhost
    start_lazy = 0
    start_control = SAP J2EE startup framework
    DpJ2eeStart: j2ee state = STARTED
    rdisp/http_min_wait_dia_wp : 1 -> 1
    ***LOG CPS=> DpLoopInit, ICU ( 3.0 3.0 4.0.1) http://dpxxdisp.c 1633
    ***LOG Q0K=> DpMsAttach, mscon ( vcerp99) http://dpxxdisp.c 11822
    DpStartStopMsg: send start message (myname is >vcerp99_PI1_02 <)
    DpStartStopMsg: start msg sent
    CCMS: AlInitGlobals : alert/use_sema_lock = TRUE.
    CCMS: Initalizing shared memory of size 60000000 for monitoring segment.
    Thu May 08 16:50:37 2008
    CCMS: start to initalize 3.X shared alert area (first segment).
    DpMsgAdmin: Set release to 7000, patchlevel 0
    MBUF state PREPARED
    MBUF component UP
    DpMBufHwIdSet: set Hardware-ID
    ***LOG Q1C=> DpMBufHwIdSet http://dpxxmbuf.c 1050
    DpMsgAdmin: Set patchno for this platform to 144
    Release check o.K.
    DpJ2eeLogin: j2ee state = CONNECTED
    Thu May 08 16:50:39 2008
    ***LOG Q0I=> NiIRead: recv (10054: WSAECONNRESET: Connection reset by peer) http://nixxi.cpp 4424
              o
                    + ERROR => NiIRead: SiRecv failed for hdl 4 / sock 184
    (SI_ECONN_BROKEN/10054; I4; ST; 127.0.0.1:3822) http://nixxi.cpp 4424
    DpJ2eeMsgProcess: j2ee state = CONNECTED (NIECONN_BROKEN)
    DpIJ2eeShutdown: send SIGINT to SAP J2EE startup framework (pid=704)
    DpIJ2eeShutdown: j2ee state = SHUTDOWN
    Thu May 08 16:51:16 2008
              o
                    + ERROR => DpHdlDeadWp: W0 (pid 4316) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W1 (pid 1536) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W2 (pid 3388) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W3 (pid 3980) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W4 (pid 2980) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W5 (pid 4164) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W6 (pid 4656) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W7 (pid 4516) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W8 (pid 2576) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W9 (pid 960) died http://dpxxdisp.c 14532
    my types changed after wp death/restart 0xbf --> 0xbe
              o
                    + ERROR => DpHdlDeadWp: W10 (pid 3764) died http://dpxxdisp.c 14532
    my types changed after wp death/restart 0xbe --> 0xbc
              o
                    + ERROR => DpHdlDeadWp: W11 (pid 636) died http://dpxxdisp.c 14532
    my types changed after wp death/restart 0xbc --> 0xb8
              o
                    + ERROR => DpHdlDeadWp: W12 (pid 3896) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W13 (pid 4696) died http://dpxxdisp.c 14532
                    + ERROR => DpHdlDeadWp: W14 (pid 4072) died http://dpxxdisp.c 14532
    my types changed after wp death/restart 0xb8 --> 0xb0
              o
                    + ERROR => DpHdlDeadWp: W15 (pid 4808) died http://dpxxdisp.c 14532
    my types changed after wp death/restart 0xb0 --> 0xa0
              o
                    + ERROR => DpHdlDeadWp: W16 (pid 2832) died http://dpxxdisp.c 14532
    my types changed after wp death/restart 0xa0 --> 0x80
              o
                    + DP_FATAL_ERROR => DpWPCheck: no more work processes
                    + DISPATCHER EMERGENCY SHUTDOWN ***
    increase tracelevel of WPs
    NiWait: sleep (10000ms) ...
    NiISelect: timeout 10000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:26 2008
    NiISelect: TIMEOUT occured (10000ms)
    dump system status
    Workprocess Table (long) Thu May 08 11:21:26 2008
    ========================
    No Ty. Pid Status Cause Start Err Sem CPU Time Program Cl User Action Table
    0 DIA 4316 Ended no 1 0 0
    1 DIA 1536 Ended no 1 0 0
    2 DIA 3388 Ended no 1 0 0
    3 DIA 3980 Ended no 1 0 0
    4 DIA 2980 Ended no 1 0 0
    5 DIA 4164 Ended no 1 0 0
    6 DIA 4656 Ended no 1 0 0
    7 DIA 4516 Ended no 1 0 0
    8 DIA 2576 Ended no 1 0 0
    9 DIA 960 Ended no 1 0 0
    10 UPD 3764 Ended no 1 0 0
    11 ENQ 636 Ended no 1 0 0
    12 BTC 3896 Ended no 1 0 0
    13 BTC 4696 Ended no 1 0 0
    14 BTC 4072 Ended no 1 0 0
    15 SPO 4808 Ended no 1 0 0
    16 UP2 2832 Ended no 1 0 0
    Dispatcher Queue Statistics Thu May 08 11:21:26 2008
    ===========================
    --------++++--
    +
    Typ      now      high      max      writes      reads
    --------++++--
    +
    NOWP      0      2      2000      6      6
    --------++++--
    +
    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 8, udp 7 ( 87%), shm 1 ( 12%)
    since last update total 8, udp 7 ( 87%), shm 1 ( 12%)
    Dump of tm_adm structure: Thu May 08 11:21:26 2008
    =========================
    Term uid man user term lastop mod wp ta a/i (modes)
    Workprocess Comm. Area Blocks Thu May 08 11:21:26 2008
    =============================
    Slots: 300, Used: 1, Max: 0
    --------++--
    +
    id      owner      pid      eyecatcher
    --------++--
    +
    0      DISPATCHER      -1      WPCAAD000
    NiWait: sleep (5000ms) ...
    NiISelect: timeout 5000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:31 2008
    NiISelect: TIMEOUT occured (5000ms)
    DpHalt: shutdown server >vcerp99_PI1_02 < (normal)
    DpJ2eeDisableRestart
    DpModState: buffer in state MBUF_PREPARED
    NiBufSend starting
    NiIWrite: hdl 3 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 (5080) (SOFT_KILL)
    Stop icman
    killing process (1036) (SOFT_KILL)
    Terminate gui connections
    wait for end of work processes
    wait for end of gateway
    DpProcDied Process lives (PID:5080 HANDLE:304)
    waiting for termination of gateway ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:32 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process died (PID:5080 HANDLE:304)
    wait for end of icman
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:33 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:34 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:35 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:36 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:37 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:38 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:39 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:40 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:41 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:42 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process lives (PID:1036 HANDLE:312)
    waiting for termination of icman ...
    NiWait: sleep (1000ms) ...
    NiISelect: timeout 1000ms
    NiISelect: maximum fd=337
    NiISelect: read-mask is NULL
    NiISelect: write-mask is NULL
    Thu May 08 16:51:43 2008
    NiISelect: TIMEOUT occured (1000ms)
    DpProcDied Process died (PID:1036 HANDLE:312)
    DpProcDied Process died (PID:704 HANDLE:288)
    DpStartStopMsg: send stop message (myname is >vcerp99_PI1_02 <)
    NiIMyHostName: hostname = 'vcerp99'
    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 3 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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 received data (rcd=274,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=274
    NiBufIIn: packet complete for hdl 3
    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 3 recv would block (errno=EAGAIN)
    NiIRead: read for hdl 3 timed out (0ms)
    DpHalt: no more messages from the message server
    DpHalt: send keepalive to synchronize with the message server
    NiBufSend starting
    NiIWrite: hdl 3 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 3 recv would block (errno=EAGAIN)
    NiIPeek: peek successful for hdl 3 (r)
    NiIRead: hdl 3 received data (rcd=114,pac=1,MESG_IO)
    NiBufIIn: NIBUF len=114
    NiBufIIn: packet complete for hdl 3
    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 3 recv would block (errno=EAGAIN)
    Thu May 08 16:51:44 2008
    NiIPeek: peek for hdl 3 timed out (r; 1000ms)
    NiIRead: read for hdl 3 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 () http://dpxxdisp.c 12168
    NiBufSend starting
    NiIWrite: hdl 3 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 3 in set0
    SiSelNSet: set events of sock 212 to: ---
    NiBufISelRemove: remove hdl 3 from set0
    SiSelNRemove: removed sock 212 (pos=3)
    SiSelNRemove: removed sock 212
    NiSelIRemove: removed hdl 3
    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 = 1/300/17
    LOCK WP ca_blk 1
    make DISP owner of wp_ca_blk 1
    DpRqPutIntoQueue: put request into queue (reqtype 1, prio LOW, rq_id 15)
    MBUF component DOWN
    NiICloseHandle: shutdown and close hdl 3 / sock 212
    NiBufIClose: clear extension for hdl 3
    MsIDetach: detach MS-system
    cleanup EM
    EsCleanup ....
    EmCleanup() -> 0
    Es2Cleanup: Cleanup ES2
    ***LOG Q05=> DpHalt, DPStop ( 3132) http://dpxxdisp.c 10421
    Good Bye .....
    %%%%%%%%%%%%%%END of dev_disp%%%%%%%%%
    dev_w0
    %%%%%%%%%%%%%%START of dev_w0 trace file%%%%
    trc file: "dev_w0", trc level: 1, release: "700"
    ACTIVE TRACE LEVEL 1
    ACTIVE TRACE COMPONENTS all, MJ
    B
    B Thu May 08 16:50:37 2008
    B create_con (con_name=R/3)
    B Loading DB library 'D:\usr\sap\PI1\DVEBMGS02\exe\dboraslib.dll' ...
    B Library 'D:\usr\sap\PI1\DVEBMGS02\exe\dboraslib.dll' loaded
    B Version of 'D:\usr\sap\PI1\DVEBMGS02\exe\dboraslib.dll' is "700.08", patchlevel (0.144)
    B New connection 0 created
    M sysno 02
    M sid PI1
    M systemid 562 (PC with Windows NT)
    M relno 7000
    M patchlevel 0
    M patchno 144
    M intno 20050900
    M make: multithreaded, Unicode, 64 bit, optimized
    M pid 4316
    M
    M kernel runs with dp version 232000(ext=109000) (@(#) DPLIB-INT-VERSION-232000-UC)
    M length of sys_adm_ext is 576 bytes
    M ***LOG Q0Q=> tskh_init, WPStart (Workproc 0 4316) http://dpxxdisp.c 1305
    I MtxInit: 30000 0 0
    M DpSysAdmExtCreate: ABAP is active
    M DpSysAdmExtCreate: VMC (JAVA VM in WP) is not active
    M DpShMCreate: sizeof(wp_adm) 25168 (1480)
    M DpShMCreate: sizeof(tm_adm) 5652128 (28120)
    M DpShMCreate: sizeof(wp_ca_adm) 24000 (80)
    M DpShMCreate: sizeof(appc_ca_adm) 8000 (80)
    M DpCommTableSize: max/headSize/ftSize/tableSize=500/16/552064/552080
    M DpShMCreate: sizeof(comm_adm) 552080 (1088)
    M DpSlockTableSize: max/headSize/ftSize/fiSize/tableSize=0/0/0/0/0
    M DpShMCreate: sizeof(slock_adm) 0 (104)
    M DpFileTableSize: max/headSize/ftSize/tableSize=0/0/0/0
    M DpShMCreate: sizeof(file_adm) 0 (72)
    M DpShMCreate: sizeof(vmc_adm) 0 (1864)
    M DpShMCreate: sizeof(wall_adm) (41664/36752/64/192)
    M DpShMCreate: sizeof(gw_adm) 48
    M DpShMCreate: SHM_DP_ADM_KEY (addr: 0000000010E70050, size: 6348592)
    M DpShMCreate: allocated sys_adm at 0000000010E70050
    M DpShMCreate: allocated wp_adm at 0000000010E72150
    M DpShMCreate: allocated tm_adm_list at 0000000010E783A0
    M DpShMCreate: allocated tm_adm at 0000000010E78400
    M DpShMCreate: allocated wp_ca_adm at 00000000113DC2A0
    M DpShMCreate: allocated appc_ca_adm at 00000000113E2060
    M DpShMCreate: allocated comm_adm at 00000000113E3FA0
    M DpShMCreate: system runs without slock table
    M DpShMCreate: system runs without file table
    M DpShMCreate: allocated vmc_adm_list at 000000001146AC30
    M DpShMCreate: allocated gw_adm at 000000001146ACB0
    M DpShMCreate: system runs without vmc_adm
    M DpShMCreate: allocated ca_info at 000000001146ACE0
    M DpShMCreate: allocated wall_adm at 000000001146ACF0
    M
    M Thu May 08 16:50:38 2008
    M ThTaskStatus: rdisp/reset_online_during_debug 0
    X EmInit: MmSetImplementation( 2 ).
    X MM global diagnostic options set: 0
    X <ES> client 0 initializing ....
    X Using implementation view
    X <EsNT> Using memory model view.
    M <EsNT> Memory Reset disabled as NT default
    X ES initialized.
    M ThInit: running on host vcerp99
    M
    M Thu May 08 16:50:39 2008
    M calling db_connect ...
    C Prepending D:\usr\sap\PI1\DVEBMGS02\exe to Path.
    C Oracle Client Version: '10.2.0.2.0'
    C Client NLS settings: AMERICAN_AMERICA.UTF8
    C Logon as OPS$-user to get SAPSR3's password
    C Connecting as /@PI1 on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
    C 0 UTF8 1 00000000138E8FA0 00000000138F11D0 000000001390D9F8
    C Attaching to DB Server PI1 (con_hdl=0,svchp=000000001390D8B8,srvhp=000000001390FCE8)
    C Starting user session (con_hdl=0,svchp=000000001390D8B8,srvhp=000000001390FCE8,usrhp=00000000138F19E8)
    C *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1033
    http://dboci.c 4532
    C Detaching from DB Server (con_hdl=0,svchp=000000001390D8B8,srvhp=000000001390FCE8)
    C *** ERROR => CONNECT failed with sql error '1033'
    http://dbsloci.c 11044
    C Try to connect with default password
    C Connecting as SAPSR3/<pwd>@PI1 on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    C Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
    C 0 UTF8 1 00000000138E8FA0 00000000138F11D0 000000001390D9F8
    C Attaching to DB Server PI1 (con_hdl=0,svchp=000000001390D8B8,srvhp=000000001390FCE8)
    C Starting user session (con_hdl=0,svchp=000000001390D8B8,srvhp=000000001390FCE8,usrhp=00000000138F19E8)
    C *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1033
    http://dboci.c 4532
    C Detaching from DB Server (con_hdl=0,svchp=000000001390D8B8,srvhp=000000001390FCE8)
    C *** ERROR => CONNECT failed with sql error '1033'
    http://dbsloci.c 11044
    B ***LOG BV3=> severe db error 1033 ; work process is stopped dbsh#2 @ 1199 dbsh 1199
    B ***LOG BY2=> sql error 1033 performing CON dblink#5 @ 431 dblink 0431
    B ***LOG BY0=> ORA-01033: ORACLE initialization or shutdown in progress dblink#5 @ 431 dblink 0431
    M ***LOG R19=> ThInit, db_connect ( DB-Connect 000256) http://thxxhead.c 1440
    M in_ThErrHandle: 1
    M *** ERROR => ThInit: db_connect (step 1, th_errno 13, action 3, level 1) http://thxxhead.c 10468
    M
    M Info for wp 0
    M
    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 mode_cleaned_counter = 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 attachedVm = no VM
    M
    M *****************************************************************************
    M *
    M * LOCATION SAP-Server vcerp99_PI1_02 on host vcerp99 (wp 0)
    M * ERROR ThInit: db_connect
    M *
    M * TIME Thu May 08 16:50:39 2008
    M * RELEASE 700
    M * COMPONENT Taskhandler
    M * VERSION 1
    M * RC 13
    M * MODULE thxxhead.c
    M * LINE 10688
    M * COUNTER 1
    M *
    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 http://thxxrun1.c 724
    M *** ERROR => ThCallHooks: event handler ThrSaveSPAFields for event BEFORE_DUMP failed http://thxxtool3.c 261
    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 4316) http://dpnttool.c 327
    %%%%%%%%%%END of dev_w0 file %%%%%%%%%%%%
    trans.log
    %%%%%%%%%%%%START of trans.log %%%%%%%%%
    4 ETW000 r3trans version 6.14 (release 700 - 14.02.08 - 14:55:00).
    4 ETW000 unicode enabled version
    4 ETW000 ===============================================
    4 ETW000
    4 ETW000 date&time : 08.05.2008 - 17:07:15
    4 ETW000 control file: <no ctrlfile>
    4 ETW000 R3trans was called as follows: r3trans -d
    4 ETW000 trace at level 2 opened for a given file pointer
    4 ETW000 dev trc ,00000 Thu May 08 17:07:17 2008 0 0.000000
    4 ETW000 dev trc ,00000 db_con_init called 0 0.000000
    4 ETW000 dev trc ,00000 create_con (con_name=R/3) 0 0.000000
    4 ETW000 dev trc ,00000 Loading DB library 'dboraslib.dll' ... 0 0.000000
    4 ETW000 dev trc ,00000 load shared library (dboraslib.dll), hdl 0 79007 0.079007
    4 ETW000 dev trc ,00000 using "D:\usr\sap\PI1\SYS\exe\uc\NTAMD64\dboraslib.dll"
    4 ETW000 25 0.079032
    4 ETW000 dev trc ,00000 Library 'dboraslib.dll' loaded 11 0.079043
    4 ETW000 dev trc ,00000 function DbSlExpFuns loaded from library dboraslib.dll
    4 ETW000 254 0.079297
    4 ETW000 dev trc ,00000 Version of 'dboraslib.dll' is "700.08", patchlevel (0.144)
    4 ETW000 27697 0.106994
    4 ETW000 dev trc ,00000 function dsql_db_init loaded from library dboraslib.dll
    4 ETW000 21 0.107015
    4 ETW000 dev trc ,00000 function dbdd_exp_funs loaded from library dboraslib.dll
    4 ETW000 24 0.107039
    4 ETW000 dev trc ,00000 New connection 0 created 18 0.107057
    4 ETW000 dev trc ,00000 0: name = R/3, con_id = -000000001 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000 32 0.107089
    4 ETW000 dev trc ,00000 db_con_connect (con_name=R/3) 14 0.107103
    4 ETW000 dev trc ,00000 find_con_by_name found the following connection for reuse:
    4 ETW000 13 0.107116
    4 ETW000 dev trc ,00000 0: name = R/3, con_id = 000000000 state = DISCONNECTED, perm = YES, reco = NO , timeout = 000, con_max = 255, con_opt = 255, occ = NO
    4 ETW000 17 0.107133
    4 ETW000 dev trc ,00000 CLIENT_ORACLE_HOME is not set as environment variable or
    4 ETW000 DIR_CLIENT_ORAHOME is not set as profile parameter.
    4 ETW000 assuming using instant client with unspecified location.
    4 ETW000 7122 0.114255
    4 ETW000 dev trc ,00000 Thu May 08 17:07:18 2008 252994 0.367249
    4 ETW000 dev trc ,00000 Oracle Client Version: '10.2.0.2.0' 21 0.367270
    4 ETW000 dev trc ,00000 -->oci_initialize (con_hdl=0) 12 0.367282
    4 ETW000 dev trc ,00000 Client NLS settings: AMERICAN_AMERICA.UTF8 191178 0.558460
    4 ETW000 dev trc ,00000 Logon as OPS$-user to get SAPSR3's password 22 0.558482
    4 ETW000 dev trc ,00000 Connecting as /@PI1 on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000 20 0.558502
    4 ETW000 dev trc ,00000 Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
    4 ETW000 7651 0.566153
    4 ETW000 dev trc ,00000 0 UTF8 1 0000000007534090 000000000030DF10 00000000003136D8
    4 ETW000 77 0.566230
    4 ETW000 dev trc ,00000 Allocating service context handle for con_hdl=0 9578 0.575808
    4 ETW000 dev trc ,00000 Allocating server context handle 29 0.575837
    4 ETW000 dev trc ,00000 Attaching to DB Server PI1 (con_hdl=0,svchp=0000000000313598,srvhp=00000000075530E8)
    4 ETW000 48 0.575885
    4 ETW000 dev trc ,00000 Assigning server context 00000000075530E8 to service context 0000000000313598
    4 ETW000 161629 0.737514
    4 ETW000 dev trc ,00000 Allocating user session handle 6490 0.744004
    4 ETW000 dev trc ,00000 Starting user session (con_hdl=0,svchp=0000000000313598,srvhp=00000000075530E8,usrhp=000000000030E728)
    4 ETW000 39 0.744043
    4 ETW000 http://dboci.c ,00000 *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1033
    4 ETW000 130057 0.874100
    4 ETW000 dev trc ,00000 server_detach(con_hdl=0,stale=1,svrhp=00000000075530E8)
    4 ETW000 16 0.874116
    4 ETW000 dev trc ,00000 Detaching from DB Server (con_hdl=0,svchp=0000000000313598,srvhp=00000000075530E8)
    4 ETW000 16 0.874132
    4 ETW000 dev trc ,00000 Deallocating server context handle 00000000075530E8
    4 ETW000 313 0.874445
    4 ETW000 http://dbsloci. ,00000 *** ERROR => CONNECT failed with sql error '1033'
    4 ETW000 9357 0.883802
    4 ETW000 dev trc ,00000 set_ocica() -> OCI or SQL return code 1033 13 0.883815
    4 ETW000 dev trc ,00000 Try to connect with default password 48 0.883863
    4 ETW000 dev trc ,00000 Connecting as SAPSR3/<pwd>@PI1 on connection 0 (nls_hdl 0) ... (dbsl 700 250407)
    4 ETW000 15 0.883878
    4 ETW000 dev trc ,00000 Nls CharacterSet NationalCharSet C EnvHp ErrHp ErrHpBatch
    4 ETW000 16 0.883894
    4 ETW000 dev trc ,00000 0 UTF8 1 0000000007534090 000000000030DF10 00000000003136D8
    4 ETW000 19 0.883913
    4 ETW000 dev trc ,00000 Allocating server context handle 9 0.883922
    4 ETW000 dev trc ,00000 Attaching to DB Server PI1 (con_hdl=0,svchp=0000000000313598,srvhp=00000000075530E8)
    4 ETW000 26 0.883948
    4 ETW000 dev trc ,00000 Assigning server context 00000000075530E8 to service context 0000000000313598
    4 ETW000 7460 0.891408
    4 ETW000 dev trc ,00000 Assigning username to user session 000000000030E728
    4 ETW000 19 0.891427
    4 ETW000 dev trc ,00000 Assigning password to user session 000000000030E728
    4 ETW000 27 0.891454
    4 ETW000 dev trc ,00000 Starting user session (con_hdl=0,svchp=0000000000313598,srvhp=00000000075530E8,usrhp=000000000030E728)
    4 ETW000 72 0.891526
    4 ETW000 http://dboci.c ,00000 *** ERROR => OCI-call 'OCISessionBegin' failed with rc=1033
    4 ETW000 37125 0.928651
    4 ETW000 dev trc ,00000 server_detach(con_hdl=0,stale=1,svrhp=00000000075530E8)
    4 ETW000 16 0.928667
    4 ETW000 dev trc ,00000 Detaching from DB Server (con_hdl=0,svchp=0000000000313598,srvhp=00000000075530E8)
    4 ETW000 16 0.928683
    4 ETW000 dev trc ,00000 Deallocating server context handle 00000000075530E8
    4 ETW000 313 0.928996
    4 ETW000 http://dbsloci. ,00000 *** ERROR => CONNECT failed with sql error '1033'
    4 ETW000 18 0.929014
    4 ETW000 dev trc ,00000 set_ocica() -> OCI or SQL return code 1033 9 0.929023
    4 ETW000 dblink ,00431 ***LOG BY2=>sql error 1033 performing CON dblink#5 @ 431
    4 ETW000 14700 0.943723
    4 ETW000 dblink ,00431 ***LOG BY0=>ORA-01033: ORACLE initialization or shutdown in progress dblink#5 @ 431
    4 ETW000 15 0.943738
    2EETW169 no connect possible: "DBMS = ORACLE --- dbs_ora_tnsname = 'PI1'"
    %%%%%%%%%%%END of trans.log %%%%%%%%%%%%%
    If u get more trace info, let me know, i will post them one by one.
    Thanks in Advance.
    Regards,
    Shroff Bhavik

    I am working on Windows 2003 Server Enterprise Edition x64.
    The Processor type is AMD Athelon X2 Dual Core.
    Whether JDK 1.4.2 for 64 bit is available ?
    I tried Lot of. Ultimately, I installed JDK 1.6.0.9 (for Windows x64 platform). 
    Anyway,
    My Problem is solved.
    Actually, in our PC, total 2 SATA Harddisks are installed and , u  know that, Control Files of Oracle  Instance is created & maintained ,simultaneously, at different location.
    One of th  HDD , was suddenly dismounted ,due to some technical reasons. origlogA and origlogB are  maintained on other (rather than System HDD).
    The problems related to version inconsistency of distributed CONTROL FIles occured while working, due to sudden dismount of other HDD.
    While the last stage of installation of SAP NW PI 7.0, the START and STOP of PI Server was occurred, but due to previously mentioned error, the Oracle instance (PI1) was not able to start, as the version of Control files was mismatched.
    I just notice the alert_PI1.log file , in which this Error was noticed.
    I just took one of the earlier version of Control File (that i thought was stable) from one of the location, and copied to the required location.
    Then again I tried to restart the Oracle  instance of PI1. It worked normally , and the PI1 Server started normally .
    Then, I resume the Installation of SAP NW PI 7.0, to complete those last 3-4 steps. The installation completed successfully with JDK 1.6.0.9 (for Windows x64 platform).
    Thanks a lot for your cooperations.

  • JSP problem after PDF Form Submit

    Hi,
    Our project team is using a PDF with Acrobat Form fields behind it to post form data to a java servlet, where it is parsed and written to a legacy system.
    Our problem: when we return a jsp confirmation page back to the user, we are getting intermittent responses - sometimes the user will see the page, sometimes not. Also of note - the URL address location in the browser is being changed to "C://TEMP/xxxxxx.html", instead of showing "http://myserver/myapp/confirmPage.jsp". In effect, it doesn't retain the server location from which the form data was submitted - instead, after the jsp on that server is rendered into html, it is being written to a temp location on the local hard drive as an .html page, then displayed from there.
    In my debug testing, I have bypassed the bulk of my application code, submitting into the servlet and returning the jsp right back to the user. It works properly when submitted from an HTML page, but goes to the C://TEMP... route when submitted from the PDF. Therefore, I can conclude that the bug is not in our java code and is not in the jsp code.
    On our PDF we are using an Adobe script submitForm() function, naming our servlet to send to (without appending #FDF on it) and specifying "false" as our second parameter, since we are passing the data as an HttpRequest instead of as FDF data.
    I suspect the problem may be caused by some differences in the headers in the HttpRequest object coming from the PDF. In comparing the Request headers from the PDF submit and those from an HTML page submit:
    From the PDF:
    content-type = application/x-www-form-urlencoded
    user-agent = Mozilla/4.0 (compatible; Adobe Acrobat Control Version 5.00 for ActiveX)
    From an HTML submit:
    content-type = text/html
    user-agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
    I have tried explicitly setting the headers to match those coming in from an HTML submit but this doesn't seem to make a difference.
    Has anyone experienced a similar problem? Any thoughts?
    jander

    This is a bug from Acrobat !
    The turnover is to send a FDF document with the file tag (/F) referencing the jsp page you want to display

  • Xml/html to jsp - problem with quotes in attribute values

    I am trying to convert a static html document into a jsp using an xsl stylesheet, but run into problems trying to use the jsp expression syntax inside of attribute values.
    Here is a sample of the source file:
    <input type="text" name="firstName" value=""/>
    Here is what I want the resulting jsp file to look like:
    <input type="text" name="firstName" value="<jsp:expression>customer.getField("firstName") </jsp:expression>">
    Here is what part of my stylesheet looks like:
    <xsl:template match="input">
    <xsl:copy>
    <xsl:copy-of select="@type"/>
    <xsl:copy-of select="@name"/>
    <xsl:attribute name="value">
    <xsl:text disable-output-escaping="yes"><jsp:expression></xsl:text>
    <xsl:text disable-output-escaping="yes">customer.getField(</xsl:text>
    <xsl:text disable-output-escaping="yes">"</xsl:text>
    <xsl:value-of select="@name"/> ")
    <xsl:text disable-output-escaping="yes">")</xsl:text>
    <xsl:text disable-output-escaping="yes"></jsp:expression></xsl:text>
    </xsl:attribute>
    </xsl:copy>
    </xsl:template>
    The problem i have is with the <%= customer.getField("firstName") %>. I have tried several different ways of inserting the double quotes around firstName, but no matter what I try, it always uses the entity reference instead of actually putting the " character. The jsp container will not accept the entity.
    I am assuming that the problem is with trying to place double quotes inside of an attribute value. Any ideas how to get around this?
    Thanks
    David

    Which App Server are you using?
    You should just be able to escape the double quotes.
    If that doesn't work, it's a bug in the app-server.
    Alternatively, you can use single quotes around the
    attribute value.
    Hope that helps,
    AlexSorry, I'm an idiot. By escaping you meant the unicode character escape "\u0022". I had not tried that. However, once i realized what you meant, I tried it, and it worked. Thanks for your help.
    David

  • Iplanet webserver 4.1 JSP problem

    Hi I am using iplanet webserver 4.1, whenever i change my jsp file, i have to restart my webserver instance otherwise ia gm getting error..is ther any way i can prevent to restart the webserver?

    this is the script.
    mv /logs/https-`uname -a`-443/access /logs/https-`uname -a`-443/access.yesterday
    compress /logs/https-`uname -a`-443/access.yesterday
    /opt/netscape/server4/https-`uname -a`-443/restart
    the moving and compressing works properly but the restart command doesn't actually kill the and restart the httpd process, and doesn't create the access or error log.
    The restart is a graceful restart will not ask for password, the same setting was working fine for a long time. it suddenly started to give this problem.
    the webserver is working fine(taking requests ,etc) except that the log files are not being written.
    i did a truss and the data collected is above i see that it is giving error #91 ERESTART many times
    there is another server with same settings which is working fine the only difference is that its patch level is lower.

  • Servlet/jsp problem

    hello i am using netbeans to create a simple login system using a servlet and a jsp. the jsp has the following code:
    <form action="login" method="get">
    <br>UserID <input type="text" name="userID" size="20" maxlength="20">
    <br>Password <input type="password" name="password" size="20" maxlength="20">
    <br><input type="submit" value="Login">
    </form>
    the servlet name is login and located under src/java/login.java
    however when i run it its just giving me this msg that it cannot find the servlet:
    type Status report
    message Servlet login is not available
    description The requested resource (Servlet login is not available) is not available.
    does anyone know what the problem might be?

    How have you defined this servlet in your web.xml ?
    For example it should be something like this:
        <servlet>
            <servlet-name>SomeServletAlias</servlet-name>
            <servlet-class>servletpackagename.ServletClassName</servlet-class>
        </servlet>
        <servlet-mapping>
            <servlet-name>SomeServletAlias</servlet-name>
            <url-pattern>/servleturlpattern</url-pattern>
        </servlet-mapping>If you have the URL Pattern as: /servleturlpattern , then in your form's action put action="/servleturlpattern" and not action="servleturlpattern"
    Where ever you reference the servlet, the URL for the servlet should match exactly as you specify it in the URL-Pattern. Otherwise it wont work.

  • JDeveloper 3.1 and JSP problems

    Hello everybody.
    I present myself. I am a French student in computer sciences who makes a training course in a French company. (You will excuse the bad quality of my English)
    I have some difficulties in the use of Oracle JDeveloper tool.
    1st problem:
    I encountered this problem during the creation of a JSP page for a simple Intranet application connected to an Oracle database.
    JDeveloper doesnt want to take into account the fact that one of my tables has two primary (composite) keys;(Each of these two keys is primary key of another table). That results on the one hand in an error during the loading of the default edition form (" JBO-25030: Failed to find or invalidate owning entity ") and in addition by impossibility of consulting the recordings of this table according to one of the two key parameters (selected in RowSetBrowser). Nevertheless, this last aspect works within the Oracle Business Component Browser.
    2nd problem:
    Imagine, for example, the following simplified conceptual diagram:
    Racks ---> Files ---> Sheets (they are tables)
    How on a JSP page, can I display in the easiest way (with a JSNavigatorTab and a RowSetBrowser), the recordings of the table Sheets of a particular File, without to use a selection at the table Racks level.
    (You choose directly, with a ComboBox or a RowSetBrowser, a File to display all the corresponding Sheets, without to choose a Rack before.)
    In fact, I try to have an application as simple and ergonomic as possible.
    I thank all those who will be able to inform me on these obscure points which slow down my project considerably.
    Regards.
    Guillaume Vidal
    null

    Hi,
    * For your 1st problem, try to uncheck the "composite association" checkbox in the association object linking your tables together, should work better.
    * For the second one,
    when you create the application module containing the rack/file and sheet views, add the file view at root level (i.e do not use the view link relationship, which would include it as a detail view for the racks view), then add the sheet view through the file/sheet viewLink.
    This way you'll be able to browse the entire file and sheet list in a basic master/detail view.
    Good luck, Remi
    by Guillaume Vidal:
    Hello everybody.
    I present myself. I am a French student in computer sciences who makes a training course in a French company. (You will excuse the bad quality of my English)
    I have some difficulties in the use of Oracle JDeveloper tool.
    1st problem:
    I encountered this problem during the creation of a JSP page for a simple Intranet application connected to an Oracle database.
    JDeveloper doesnt want to take into account the fact that one of my tables has two primary (composite) keys;(Each of these two keys is primary key of another table). That results on the one hand in an error during the loading of the default edition form (" JBO-25030: Failed to find or invalidate owning entity ") and in addition by impossibility of consulting the recordings of this table according to one of the two key parameters (selected in RowSetBrowser). Nevertheless, this last aspect works within the Oracle Business Component Browser.
    2nd problem:
    Imagine, for example, the following simplified conceptual diagram:
    Racks ---> Files ---> Sheets (they are tables)
    How on a JSP page, can I display in the easiest way (with a JSNavigatorTab and a RowSetBrowser), the recordings of the table Sheets of a particular File, without to use a selection at the table Racks level.
    (You choose directly, with a ComboBox or a RowSetBrowser, a File to display all the corresponding Sheets, without to choose a Rack before.)
    In fact, I try to have an application as simple and ergonomic as possible.
    I thank all those who will be able to inform me on these obscure points which slow down my project considerably.
    Regards.
    Guillaume Vidal
    null

  • Please Urgent sound applet in jsp problem

    Hi please any body hekp me urgently.
    I have a problem while playing a sound applet in the jsp file the error is class not found.
    My applet class file is in the com.mypack.common
    its code is
    public class PlayErrorSoundApplet extends Applet
    public PlayErrorSoundApplet()
    public void init()
    public void playSound()
    String soundObj = getParameter("soundObj");
    AudioClip sound = getAudioClip(getDocumentBase(), "success.wav");
    sound.play();
    in the jsp i have written the code like this
    <applet codebase="com.mypack.common" code="PlayErrorSoundApplet.class" name="soundApplet" width="0" height="0">
    <param name="soundObj" value="error.wav">
    </applet>
    In the applet console i got class not found error.
    please help me .....advanced thanks......

    actually, codbase is a directory. so
    <applet codebase="com/mypack/common" code="PlayErrorSoundApplet.class" name="soundApplet" width="0" height="0">
    <param name="soundObj" value="error.wav">
    </applet>this means you have something like
    pacakge com.mypack.common
    public class PlayErrorSoundApplet {
    Make sure to put the html file in the root directory of the package structure
    /myhtmlfile.html
       /com
          /mypack
               /common
                    PlayErrorSoundApplet.class                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Custom tags in jsp - problems with import in java pgm

    Hi,
    I am new to JSP and am facing some problems.
    I am trying to compile the foll. java program and it is giving an error saying 1."Package javax.servlet.jsp does not exist", 2."Package javax.servlet.jsp.tagext does not exist".
    I am using 1.j2sdk1.4.1_02, 2.j2sdkee1.3.1,and 3.Tomcat 4.1
    My java_home=C:\j2sdk1.4.1_02
    j2ee_home=C:\j2sdkee1.3.1
    path=%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;c:\j2sdkee1.3.1\bin;c:\j2sdk1.4.1_02\bin;c:\j2sdkee1.3.1\doc\api;c:\jakarta-ant-1.5.1\bin
    classpath=c:\j2sdkee1.3.1\bin;c:\j2sdk1.4.1_02\bin;c:\j2sdkee1.3.1\doc\api
    can anybody help me with it?
    Regards,
    newtojsp
    import java.io.IOException;
    import java.util.Date;
    import doc.api.javax.servlet.jsp.*;
    import javax.servlet.jsp.tagext.*;
    public class TestTag extends TagSupport
         public int doStartTag () throws JSPTagException
              String dateString = new Date().toString ();
              try
                   JspWriter out = page.context.getOut ();
                   out.println ("Welcome to the Loan Dept" + " <br>");
                   out.println ("Today is:" + dateString + "<br>");
                   return SKIP_BODY;
              } catch (IOException ee)
                   throw JspTagException ("Error Encountered");
         public int doEndTag () throws JSPTagException
              return EVAL_PAGE;

    I got the solution for this.
    Thanks
    Newtojsp

  • JSP PROBLEM...THEORETICAL QUESTION

    Hi as you all know by now im quite new to jsp and have struggled so far to get something decent working but now that i have im happy :D
    quick question for you all...
    imagine this scenario. when you submit an application for something...i.e. a job...your application status is 'pending' and when moved to the interview stage the status is changed to 'interview' and then if successful changes to 'job offer'
    these 3 'status' would be done as final int data types in java...ive done it before and thats not a problem. however how is one to approach that using jsp?? can it be done...if so, how??
    also when the user logs in to check the current status of his/her application they should be presented with this status either pending/interivew/job offer.
    any ideas??
    at the moment all i have done is an application submission which gets stored in an access database. i am nowworking on the part which manipulates the submitted applications according to criteria
    thanks!

    Level_ID Level_Name
    0 Pending
    1 Interview
    2 Offer
    3 Rejection
    how would i make a user who logs in to see his status
    as the word pending rather than 0?? i.e. how can i
    point the Level_ID in Login_Details table to find its
    corresponding Level_Name in the Levels table?Create a HashMap at init of your Main Servlet that is populated by this data, keyed by Integer. Make this table reloadable via an HTTP call, that way if you want to update the names you can do so without needing to restart your webserver.
    Then when its time to show the name, rather than the number, do :
    <%= servlet.statusTable.get( new Integer( user.getStatus() ) ) %>
    Probably would be a good idea to put this into a method so you can verify that the object exists, etc., call it showStatus(user)

  • Paper Layout in Report JSP - problem with anchors

    Hi,
    I am using an anchor to connect two frames. The frames are vertically expandable and horizontally fixed. When I run the report (PDF) as an rdf, I receive no errors, however when running the same report as a JSP, I get the following error : 'Object can never fit in within....<frame-name>'.
    What could be the reason? Is it a bug?
    Thanks,
    Bharat

    hi,
    i've not heared about this particular issue, but i think it might be a good idea to open a tar with oracle support. it could be, that some properties get mixed up in your particular case when saving the report as JSP and therefore the RDF works and the JSP doesn't. it is certainly not a generic issue, otherwise we would have already heared about it.
    another idea would be to apply the latest patchset (9.0.2.2) that contains a lot of fixes and it might fix your problem as well.
    regards,
    philipp

  • Servlet/JSP problems with WL 4.51

    Hi all
              I have a set of Servlets and JSPs running on NewAtlanta's ServletExec
              servlet engine. I am currently porting them to WebLogic. I am facing a
              few problems. I do not want to change any of my HTML/JSP/Java files
              immediately. I want the same files to work in WL as it is. Pl help.
              1. The servlets in ServletExec used to be invoked as
              http://host/servlet/servletName. But in weblogic they are invoked
              as http://host/servletName. I tried registering the servlet names
              in weblogic.properties as
              weblogic.httpd.register.servlet/XServlet=com.foo.XServlet
              weblogic.httpd.initArgs.servlet/XServlet=param=value
              Now I can call this servlet as http://host/servlet/XServlet and so
              I dont have to change any html/JSP files. Will this cause any
              problems in the future?
              2. Since we used to run ServletExec on IIS, we created a virtual
              directory called /jsp in IIS under which we had all the html and
              JSP files. Our servlets will get the http requests, get data from
              database, put the results in session/request variables and dispatch
              it to appropriate JSP page. So, all our servlet code looks like
              this:
              RequestDispatcher dispatcher =
              getServletContext().getRequestDispatcher("/jsp/test.jsp");
              dispatcher.forward(request, response);
              How do I make this code work with WebLogic? Is there any way to
              create virtual directory and make it work like in IIS?
              Thanks for any help.
              shiv
              [email protected]
              

    You might try
              weblogic.httpd.register.jsp/*.jsp=weblogic.servlet.JSPServlet
              but a better/ easier way would be to just move all of your jsp files to a 'jsp'
              subdirectory beneath public_html
              -rrc
              Shiv Kumar wrote:
              > Hi all
              >
              > I have a set of Servlets and JSPs running on NewAtlanta's ServletExec
              > servlet engine. I am currently porting them to WebLogic. I am facing a
              > few problems. I do not want to change any of my HTML/JSP/Java files
              > immediately. I want the same files to work in WL as it is. Pl help.
              >
              > 1. The servlets in ServletExec used to be invoked as
              > http://host/servlet/servletName. But in weblogic they are invoked
              > as http://host/servletName. I tried registering the servlet names
              > in weblogic.properties as
              >
              > weblogic.httpd.register.servlet/XServlet=com.foo.XServlet
              > weblogic.httpd.initArgs.servlet/XServlet=param=value
              >
              > Now I can call this servlet as http://host/servlet/XServlet and so
              > I dont have to change any html/JSP files. Will this cause any
              > problems in the future?
              >
              > 2. Since we used to run ServletExec on IIS, we created a virtual
              > directory called /jsp in IIS under which we had all the html and
              > JSP files. Our servlets will get the http requests, get data from
              > database, put the results in session/request variables and dispatch
              > it to appropriate JSP page. So, all our servlet code looks like
              > this:
              >
              > RequestDispatcher dispatcher =
              > getServletContext().getRequestDispatcher("/jsp/test.jsp");
              > dispatcher.forward(request, response);
              >
              > How do I make this code work with WebLogic? Is there any way to
              > create virtual directory and make it work like in IIS?
              >
              > Thanks for any help.
              > --
              > shiv
              > [email protected]
              Russell Castagnaro
              Chief Mentor
              SyncTank Solutions
              http://www.synctank.com
              Earth is the cradle of mankind; one does not remain in the cradle forever
              -Tsiolkovsky
              

  • JSP problem

    Hello,
    I have a problem regarding jsp.
    I have a html page called performance.html which has a link to month.jsp page.
    When the user enters Number 1, Number 2 into the text boxes in the jsp page and click submit, it must be displayed on the 1st month colum of the table in performance.html page. (one under the other)
    Give your sugessions on how to write the jsp code to implement the above.
    Here is my code.
    Performance.html
    <form method="POST" action=" ">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="100%" id="AutoNumber1">
    <tr>
    <td width="25%"> </td>
    <td width="25%">1st month</td>
    <td width="25%">2nd month</td>
    </tr>
    <tr>
    <td width="25%">Number 1</td>
    <td width="25%"> </td>
    <td width="25%"> </td>
    </tr>
    <tr>
    <td width="25%">Number 2</td>
    <td width="25%"> </td>
    <td width="25%"> </td>
    </tr>
    </table>
    <p> </p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>
    month.jsp
    <form method="POST" action="PrintToTable.jsp">
    <table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse" bordercolor="#111111" width="44%" id="AutoNumber1">
    <tr>
    <td width="19%">Number 1</td>
    <td width="19%"> </td>
    <td width="17%"><input type="text" name="T1" size="10"></td>
    </tr>
    <tr>
    <td width="19%">Number 2</td>
    <td width="19%"> </td>
    <td width="17%"><input type="text" name="T2" size="10"></td>
    </tr>
    </table>
    <p> </p>
    <p><input type="submit" value="Submit" name="B1"><input type="reset" value="Reset" name="B2"></p>
    </form>
    Please help me.

    month.jsp submits PrintToTable.jsp - what is PrintToTable.jsp suppose to do?

  • Arabic jsp problem

    Hi All
    I have problem with arabic encoding in jsp
    here is my problem
    I have jsp page and contains textfield
    user put some text and submit the page
    this text is compared with other text that read from text file
    if two texts are equal some message appears to user
    I have made sample project it works fin with English text
    but it fails with Arabic texts
    her is my sample code
    <%
        String txt=request.getParameter("txt");
        if(txt!=null){
           if(MyClass.test(txt)){
               out.println("values are equal");
           }else{
               out.println("values are not equal");
        %>and method test is static method from MyClass
    public static  boolean test(String x) throws FileNotFoundException, IOException{
            LineNumberReader reader=new LineNumberReader(new FileReader("c:\\test.txt"));
            String line=reader.readLine();
            return line.equals(x);
        }I have tried HTML metaTage with Arabic encoding -notworked-
    and also tried <%@page with Arabic encoding also not worked
    any help will be
    appreciated
    thanks

    You use a Reader without specifying an encoding there. So you are using the system's default encoding. Most likely this is an encoding that does not match the actual encoding of that file which contains Arabic characters.
    Change your code to use an InputStreamReader and specify the correct encoding.

Maybe you are looking for