Unexpected behavior while forwarding request to the servlets.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • roh
    New Member
    • Dec 2006
    • 14

    Unexpected behavior while forwarding request to the servlets.

    Hi Folks,

    We have e-Biz application running on WebSphere Application Server Ver 6.0 using DB2 UDB Ver 8.1 . We are facing following issue in our application , any help from your side will be highly appreciated.

    Issue:
    =============== =============== =============== ===========
    Sometimes while browseing through the web pages we are facing following error.

    “We're sorry but the request could not be processed.The processing error message is:
    An unknown Error has occured while processing your request. Please try again later.”
    =============== =============== =============== ============

    Please find following stack trace:
    =============== =============== =============== ===========
    [1/5/07 17:09:34:516 IST] 0000018c LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly () being called.
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O java.lang.Class CastException: com.ibm.ws.cach e.servlet.Cache ProxyRequest
    at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
    at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a(Compiled Code))
    at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:464)
    at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:68 )
    at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
    at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
    at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
    at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
    at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
    at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
    at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
    at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
    at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
    at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
    at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
    at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))

    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:464)
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:68 )
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O Source Page is: /b2b/ErrorPage.jsp
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O Connection being closed
    =============== =============== =============== ============


    Let me know if any additional information is required .

    Thanks in advance.

    Rergards,
    Roh
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by roh
    Hi Folks,

    We have e-Biz application running on WebSphere Application Server Ver 6.0 using DB2 UDB Ver 8.1 . We are facing following issue in our application , any help from your side will be highly appreciated.

    Issue:
    =============== =============== =============== ===========
    Sometimes while browseing through the web pages we are facing following error.

    “We're sorry but the request could not be processed.The processing error message is:
    An unknown Error has occured while processing your request. Please try again later.”
    =============== =============== =============== ============

    Please find following stack trace:
    =============== =============== =============== ===========
    [1/5/07 17:09:34:516 IST] 0000018c LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly () being called.
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O java.lang.Class CastException: com.ibm.ws.cach e.servlet.Cache ProxyRequest
    at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
    at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a(Compiled Code))
    at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:464)
    at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:68 )
    at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
    at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
    at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
    at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
    at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
    at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
    at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
    at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
    at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
    at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
    at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
    at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
    at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))

    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:464)
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:68 )
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O Source Page is: /b2b/ErrorPage.jsp
    [1/5/07 17:09:34:531 IST] 0000018c SystemOut O Connection being closed
    =============== =============== =============== ============


    Let me know if any additional information is required .

    Thanks in advance.

    Rergards,
    Roh
    1.) Does the error occur for the same page always?
    2.)Do have access to code for the servlets.

    Comment

    • roh
      New Member
      • Dec 2006
      • 14

      #3
      Originally posted by r035198x
      1.) Does the error occur for the same page always?
      2.)Do have access to code for the servlets.
      Thanks for the reply.

      1.) Does the error occur for the same page always?
      yes,the error occur for the same page always then we need to restart the server
      to proceed further , after restarting the server we can access the same page with no errors.

      2.)Do have access to code for the servlets.[/QUOTE]
      Yes we do have access to code.

      Comment

      • r035198x
        MVP
        • Sep 2006
        • 13225

        #4
        Originally posted by roh
        Thanks for the reply.

        1.) Does the error occur for the same page always?
        yes,the error occur for the same page always then we need to restart the server
        to proceed further , after restarting the server we can access the same page with no errors.

        2.)Do have access to code for the servlets.
        Yes we do have access to code.[/QUOTE]

        Can you post code for the performTask method in the servlet MUProfileServle t with line 464 higlighted.

        If it is too long just post the code for the area around line 464.

        Comment

        • roh
          New Member
          • Dec 2006
          • 14

          #5
          Originally posted by r035198x
          Yes we do have access to code.
          Can you post code for the performTask method in the servlet MUProfileServle t with line 464 higlighted.

          If it is too long just post the code for the area around line 464.[/QUOTE]

          Please find following code.


          else if (queryValue.toU pperCase().equa ls("SELECTED") )
          {

          try
          {
          /* Check for authorised User */
          if (access == true || access2 == true)
          {
          String UserID = null;
          String UserTypeIs = null;
          String User = UtilBean.getPar ameter(getServl etConfig(),requ est, "selUser", true, false, false, "NA");
          System.out.prin tln("********** **** Sel User ---> " + User);

          StringTokenizer st = new StringTokenizer (User,":");
          if (st.hasMoreToke ns())
          {
          UserID = st.nextToken();
          }
          if (st.hasMoreToke ns())
          {
          UserTypeIs = st.nextToken();
          }

          /* Check the UserType and forward to respective servlet */
          if(UserTypeIs.t oUpperCase().eq ualsIgnoreCase( "DISTRIBUTO R"))
          {
          request.setAttr ibute("id", "Update");
          request.setAttr ibute("UserID", UserID);
          //System.out.prin tln("ClassName --> " + request.getClas s().toString() );
          System.out.prin tln("Using request dispatcher");
          RequestDispatch er rd = request.getRequ estDispatcher(" disProfile.DisP rofileServlet") ;
          rd.forward(requ est,response);
          //UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/disProfile.DisP rofileServlet") ;

          }
          else /* sales force */
          //if(UserTypeIs.t oUpperCase().eq uals("ASM") || UserTypeIs.toUp perCase().equal s("NSM") || UserTypeIs.toUp perCase().equal s("RSM") || UserTypeIs.toUp perCase().equal s("SRFO"))
          {
          //System.out.prin tln("********** *************** *************** ********");
          request.setAttr ibute("mode", "Update");
          request.setAttr ibute("UserID", UserID);
          //System.out.prin tln("***User ID--->" + UserID);
          request.setAttr ibute("UserType ", UserTypeIs);
          //System.out.prin tln("***User Type--->" + UserTypeIs);
          System.out.prin tln("Using Utilbean page forward");
          UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/salesProfile.Sa lesProfileContr olServlet");
          //RequestDispatch er rd = getServlet.getR equestDispatche r("salesProfile .SalesProfileCo ntrolServlet");
          //rd.forward(requ est,response);
          }

          }else /* Access denied to unathourised user */
          {
          Message = "MSG001";
          errorOccured(re quest,response, mUBean,userType ,Message,retURL );

          }
          }
          catch (Exception e)
          {
          Message = "CE00024";
          e.printStackTra ce(System.out);
          errorOccured(re quest,response, mUBean,userType ,Message,retURL );
          }
          finally
          {
          try
          {
          mUBean.closeCon nection();
          }catch(Exceptio n e)
          {}
          }


          let me know if any additional information is required.

          Thanks

          Comment

          • roh
            New Member
            • Dec 2006
            • 14

            #6
            if(UserTypeIs.t oUpperCase().eq ualsIgnoreCase( "DISTRIBUTO R"))
            {
            request.setAttr ibute("id", "Update");
            request.setAttr ibute("UserID", UserID);
            // Line no . 464

            Thanks.

            Comment

            • r035198x
              MVP
              • Sep 2006
              • 13225

              #7
              Originally posted by roh
              Please find following code.


              else if (queryValue.toU pperCase().equa ls("SELECTED") )
              {

              try
              {
              /* Check for authorised User */
              if (access == true || access2 == true)
              {
              String UserID = null;
              String UserTypeIs = null;
              String User = UtilBean.getPar ameter(getServl etConfig(),requ est, "selUser", true, false, false, "NA");
              System.out.prin tln("********** **** Sel User ---> " + User);

              StringTokenizer st = new StringTokenizer (User,":");
              if (st.hasMoreToke ns())
              {
              UserID = st.nextToken();
              }
              if (st.hasMoreToke ns())
              {
              UserTypeIs = st.nextToken();
              }

              /* Check the UserType and forward to respective servlet */
              if(UserTypeIs.t oUpperCase().eq ualsIgnoreCase( "DISTRIBUTO R"))
              {
              request.setAttr ibute("id", "Update");
              request.setAttr ibute("UserID", UserID);
              //System.out.prin tln("ClassName --> " + request.getClas s().toString() );
              System.out.prin tln("Using request dispatcher");
              RequestDispatch er rd = request.getRequ estDispatcher(" disProfile.DisP rofileServlet") ;
              rd.forward(requ est,response);
              //UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/disProfile.DisP rofileServlet") ;

              }
              else /* sales force */
              //if(UserTypeIs.t oUpperCase().eq uals("ASM") || UserTypeIs.toUp perCase().equal s("NSM") || UserTypeIs.toUp perCase().equal s("RSM") || UserTypeIs.toUp perCase().equal s("SRFO"))
              {
              //System.out.prin tln("********** *************** *************** ********");
              request.setAttr ibute("mode", "Update");
              request.setAttr ibute("UserID", UserID);
              //System.out.prin tln("***User ID--->" + UserID);
              request.setAttr ibute("UserType ", UserTypeIs);
              //System.out.prin tln("***User Type--->" + UserTypeIs);
              System.out.prin tln("Using Utilbean page forward");
              UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/salesProfile.Sa lesProfileContr olServlet");
              //RequestDispatch er rd = getServlet.getR equestDispatche r("salesProfile .SalesProfileCo ntrolServlet");
              //rd.forward(requ est,response);
              }

              }else /* Access denied to unathourised user */
              {
              Message = "MSG001";
              errorOccured(re quest,response, mUBean,userType ,Message,retURL );

              }
              }
              catch (Exception e)
              {
              Message = "CE00024";
              e.printStackTra ce(System.out);
              errorOccured(re quest,response, mUBean,userType ,Message,retURL );
              }
              finally
              {
              try
              {
              mUBean.closeCon nection();
              }catch(Exceptio n e)
              {}
              }


              let me know if any additional information is required.

              Thanks
              Can you indicate which one is line 464?

              Comment

              • roh
                New Member
                • Dec 2006
                • 14

                #8
                Originally posted by r035198x
                Can you indicate which one is line 464?
                Sorry,

                else if (queryValue.toU pperCase().equa ls("SELECTED") )
                {

                try
                {
                /* Check for authorised User */
                if (access == true || access2 == true)
                {
                String UserID = null;
                String UserTypeIs = null;
                String User = UtilBean.getPar ameter(getServl etConfig(),requ est, "selUser", true, false, false, "NA");
                System.out.prin tln("********** **** Sel User ---> " + User);

                StringTokenizer st = new StringTokenizer (User,":");
                if (st.hasMoreToke ns())
                {
                UserID = st.nextToken();
                }
                if (st.hasMoreToke ns())
                {
                UserTypeIs = st.nextToken();
                }

                /* Check the UserType and forward to respective servlet */
                if(UserTypeIs.t oUpperCase().eq ualsIgnoreCase( "DISTRIBUTO R"))
                {
                request.setAttr ibute("id", "Update");
                request.setAttr ibute("UserID", UserID);//System.out.prin tln("ClassName --> " + request.getClas s().toString() );
                System.out.prin tln("Using request dispatcher");
                RequestDispatch er rd = request.getRequ estDispatcher(" disProfile.DisP rofileServlet") ;
                rd.forward(requ est,response);
                //UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/disProfile.DisP rofileServlet") ;

                }
                else /* sales force */
                //if(UserTypeIs.t oUpperCase().eq uals("ASM") || UserTypeIs.toUp perCase().equal s("NSM") || UserTypeIs.toUp perCase().equal s("RSM") || UserTypeIs.toUp perCase().equal s("SRFO"))
                {
                //System.out.prin tln("********** *************** *************** ********");
                request.setAttr ibute("mode", "Update");
                request.setAttr ibute("UserID", UserID);
                //System.out.prin tln("***User ID--->" + UserID);
                request.setAttr ibute("UserType ", UserTypeIs);
                //System.out.prin tln("***User Type--->" + UserTypeIs);
                System.out.prin tln("Using Utilbean page forward");
                UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/salesProfile.Sa lesProfileContr olServlet");
                //RequestDispatch er rd = getServlet.getR equestDispatche r("salesProfile .SalesProfileCo ntrolServlet");
                //rd.forward(requ est,response);
                }

                }else /* Access denied to unathourised user */
                {
                Message = "MSG001";
                errorOccured(re quest,response, mUBean,userType ,Mess age,retURL);

                }
                }
                catch (Exception e)
                {
                Message = "CE00024";
                e.printStackTra ce(System.out);
                errorOccured(re quest,response, mUBean,userType ,Mess age,retURL);
                }
                finally
                {
                try
                {
                mUBean.closeCon nection();
                }catch(Exceptio n e)
                {}
                }

                Comment

                • r035198x
                  MVP
                  • Sep 2006
                  • 13225

                  #9
                  Originally posted by roh
                  Sorry,

                  else if (queryValue.toU pperCase().equa ls("SELECTED") )
                  {

                  try
                  {
                  /* Check for authorised User */
                  if (access == true || access2 == true)
                  {
                  String UserID = null;
                  String UserTypeIs = null;
                  String User = UtilBean.getPar ameter(getServl etConfig(),requ est, "selUser", true, false, false, "NA");
                  System.out.prin tln("********** **** Sel User ---> " + User);

                  StringTokenizer st = new StringTokenizer (User,":");
                  if (st.hasMoreToke ns())
                  {
                  UserID = st.nextToken();
                  }
                  if (st.hasMoreToke ns())
                  {
                  UserTypeIs = st.nextToken();
                  }

                  /* Check the UserType and forward to respective servlet */
                  if(UserTypeIs.t oUpperCase().eq ualsIgnoreCase( "DISTRIBUTO R"))
                  {
                  request.setAttr ibute("id", "Update");
                  request.setAttr ibute("UserID", UserID);//System.out.prin tln("ClassName --> " + request.getClas s().toString() );
                  System.out.prin tln("Using request dispatcher");
                  RequestDispatch er rd = request.getRequ estDispatcher(" disProfile.DisP rofileServlet") ;
                  rd.forward(requ est,response);
                  //UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/disProfile.DisP rofileServlet") ;

                  }
                  else /* sales force */
                  //if(UserTypeIs.t oUpperCase().eq uals("ASM") || UserTypeIs.toUp perCase().equal s("NSM") || UserTypeIs.toUp perCase().equal s("RSM") || UserTypeIs.toUp perCase().equal s("SRFO"))
                  {
                  //System.out.prin tln("********** *************** *************** ********");
                  request.setAttr ibute("mode", "Update");
                  request.setAttr ibute("UserID", UserID);
                  //System.out.prin tln("***User ID--->" + UserID);
                  request.setAttr ibute("UserType ", UserTypeIs);
                  //System.out.prin tln("***User Type--->" + UserTypeIs);
                  System.out.prin tln("Using Utilbean page forward");
                  UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/salesProfile.Sa lesProfileContr olServlet");
                  //RequestDispatch er rd = getServlet.getR equestDispatche r("salesProfile .SalesProfileCo ntrolServlet");
                  //rd.forward(requ est,response);
                  }

                  }else /* Access denied to unathourised user */
                  {
                  Message = "MSG001";
                  errorOccured(re quest,response, mUBean,userType ,Mess age,retURL);

                  }
                  }
                  catch (Exception e)
                  {
                  Message = "CE00024";
                  e.printStackTra ce(System.out);
                  errorOccured(re quest,response, mUBean,userType ,Mess age,retURL);
                  }
                  finally
                  {
                  try
                  {
                  mUBean.closeCon nection();
                  }catch(Exceptio n e)
                  {}
                  }
                  That line does not look like it can possibly throw a class cast exception unless maybe if the User id is not set in which case I'd expect a null pointer exception.

                  Note, however, that the code

                  try
                  {
                  mUBean.closeCon nection();
                  }catch(Exceptio n e)
                  {}

                  does not handle any exceptions, instead it hides it which is not good pratice. If an exception occurs there you cannot tell if it happened or not.
                  Back to that error Is that servlet trying to forward to another servlet?

                  Comment

                  • roh
                    New Member
                    • Dec 2006
                    • 14

                    #10
                    Thanks for your suggestion i will handle that exception .

                    Yes , Servlet is forwarding request to the another servlet.

                    Comment

                    • r035198x
                      MVP
                      • Sep 2006
                      • 13225

                      #11
                      Originally posted by roh
                      Thanks for your suggestion i will handle that exception .

                      Yes , Servlet is forwarding request to the another servlet.
                      You could also try initialising the user to some default user so that you are guaranteed User is never null.

                      Comment

                      • roh
                        New Member
                        • Dec 2006
                        • 14

                        #12
                        Originally posted by r035198x
                        You could also try initialising the user to some default user so that you are guaranteed User is never null.

                        Hi,

                        I have modified the code little bit so that next times any error occurred then I will in position to find out whether the UserID is getting null value.

                        Modified Code :
                        =============== =============== ===========
                        String User = UtilBean.getPar ameter(getServl etConfig(),requ est, "selUser", true, false, false, "NA");

                        System.out.prin tln("********** **** Sel User ---> " + User);

                        StringTokenizer st = new StringTokenizer (User,":");
                        if (st.hasMoreToke ns())
                        {
                        UserID = st.nextToken();
                        System.out.prin tln("UserId " + UserID);}
                        if (st.hasMoreToke ns())
                        {
                        UserTypeIs = st.nextToken();
                        System.out.prin tln("UserTypeIs " + UserTypeIs);}

                        I will let get back to you once I get the trace.

                        Thanks for help

                        Regards,
                        Roh.

                        Comment

                        • roh
                          New Member
                          • Dec 2006
                          • 14

                          #13
                          Hi,

                          I have got the trace and it showing that userid and usertype are getting correctly.

                          Please find following trace:
                          =============== =============== =============== ============
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O ************** Sel User ---> 101akash:DISTRI BUTOR
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O UserId 101akash
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O UserTypeIs DISTRIBUTOR
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O Using request dispatcher
                          [1/8/07 16:43:42:281 IST] 000003b0 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly () being called.
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O java.lang.Class CastException: com.ibm.ws.cach e.servlet.Cache ProxyRequest
                          at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                          at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
                          at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a:250)
                          at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:471)
                          at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:66 )
                          at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:763)
                          at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
                          at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
                          at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
                          at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
                          at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
                          at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
                          at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
                          at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                          at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
                          at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
                          at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
                          at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
                          at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
                          at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
                          at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
                          at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
                          at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
                          at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))

                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a:250)
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:471)
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:66 )
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:763)
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O Source Page is: /b2b/ErrorPage.jsp
                          [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O Connection being closed

                          1. How JSP page (Error.jsp) getting forwarded correctly?

                          let me know if any additional information is required.

                          Regards,
                          Roh.

                          Comment

                          • roh
                            New Member
                            • Dec 2006
                            • 14

                            #14
                            Originally posted by r035198x
                            You could also try initialising the user to some default user so that you are guaranteed User is never null.

                            Hi ,


                            Please find attached trace.
                            =============== ==========

                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O ************** Sel User ---> 101akash:DISTRI BUTOR
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O UserId 101akash
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O UserTypeIs DISTRIBUTOR
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O Using request dispatcher
                            [1/8/07 16:43:42:281 IST] 000003b0 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly () being called.
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O java.lang.Class CastException: com.ibm.ws.cach e.servlet.Cache ProxyRequest
                            at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                            at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
                            at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a:250)
                            at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:471)
                            at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:66 )
                            at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:763)
                            at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
                            at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
                            at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
                            at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
                            at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
                            at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
                            at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
                            at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                            at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
                            at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
                            at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
                            at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
                            at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
                            at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
                            at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
                            at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
                            at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
                            at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))

                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.extens ion.InvokerExte nsionProcessor. handleRequest(I nvokerExtension Processor.java: 179)
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.webapp .WebAppRequestD ispatcher.forwa rd(WebAppReques tDispatcher.jav a:250)
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUP rofileServlet.p erformTask(MUPr ofileServlet.ja va:471)
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUP rofileServlet.d oPost(MUProfile Servlet.java:66 )
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java:763)
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.h ttp.HttpServlet .service(HttpSe rvlet.java(Comp iled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ceProxied(Servl etWrapper.java( Inlined Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleFrag ment(CacheHook. java(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Cache Hook.handleServ let(CacheHook.j ava(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cach e.servlet.Servl etWrapper.servi ce(ServletWrapp er.java(Compile d Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.service(Servl etWrapper.java( Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.ServletWrappe r.handleRequest (ServletWrapper .java(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.servle t.CacheServletW rapper.handleRe quest(CacheServ letWrapper.java (Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.WebCon tainer.handleRe quest(WebContai ner.java(Compil ed Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webc ontainer.channe l.WCChannelLink .ready(WCChanne lLink.java(Comp iled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleD iscrimination(H ttpInboundLink. java(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpInbo undLink.handleN ewInformation(H ttpInboundLink. java(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http .channel.inboun d.impl.HttpICLR eadCallback.com plete(HttpICLRe adCallback.java (Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. requestComplete (WorkQueueManag er.java(Compile d Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. attemptIO(WorkQ ueueManager.jav a(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager. workerRun(WorkQ ueueManager.jav a(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp. channel.impl.Wo rkQueueManager$ Worker.run(Work QueueManager.ja va(Compiled Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.util .ThreadPool$Wor ker.run(ThreadP ool.java(Compil ed Code))
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O Source Page is: /b2b/ErrorPage.jsp
                            [1/8/07 16:43:42:281 IST] 000003b0 SystemOut O Connection being closed


                            User id and UserType is not null.,

                            1. How coulld jsp page (Error.jsp) page forwarded correctly.?


                            Let me know if any additional information is requierd.

                            Please Help!

                            Regards,
                            Roh

                            Comment

                            • roh
                              New Member
                              • Dec 2006
                              • 14

                              #15
                              Hi,

                              Please below find part of code that might useful to you.
                              =============== =============== ===========

                              if(UserTypeIs.t oUpperCase().eq ualsIgnoreCase( "DISTRIBUTO R"))
                              {
                              request.setAttr ibute("id", "Update");
                              request.setAttr ibute("UserID", UserID);

                              //System.out.prin tln("ClassName --> " + request.getClas s().toString() );
                              System.out.prin tln("Using request dispatcher");
                              RequestDispatch er rd = request.getRequ estDispatcher(" disProfile.DisP rofileServlet") ;
                              rd.forward(requ est,response);
                              //Line no.471 //UtilBean.pageFo rward(getServle tContext(),requ est, response, "servlet/disProfile.DisP rofileServlet") ;

                              }



                              Regards,
                              Roh.

                              Comment

                              Working...