By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,106 Members | 2,335 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,106 IT Pros & Developers. It's quick & easy.

Unexpected behavior while forwarding request to the servlets.

P: 14
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.ClassCastException: com.ibm.ws.cache.servlet.CacheProxyRequest
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java(Compiled Code))
at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:464)
at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled Code))

[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:464)
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:68)
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled 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
Jan 8 '07 #1
Share this Question
Share on Google+
19 Replies


10K+
P: 13,264
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.ClassCastException: com.ibm.ws.cache.servlet.CacheProxyRequest
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java(Compiled Code))
at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:464)
at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:68)
at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled Code))

[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:464)
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:68)
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
[1/5/07 17:09:34:531 IST] 0000018c SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled 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.
Jan 8 '07 #2

P: 14
roh
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.
Jan 8 '07 #3

10K+
P: 13,264
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 MUProfileServlet with line 464 higlighted.

If it is too long just post the code for the area around line 464.
Jan 8 '07 #4

P: 14
roh
Yes we do have access to code.
Can you post code for the performTask method in the servlet MUProfileServlet 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.toUpperCase().equals("SELECTED"))
{

try
{
/* Check for authorised User */
if (access == true || access2 == true)
{
String UserID = null;
String UserTypeIs = null;
String User = UtilBean.getParameter(getServletConfig(),request, "selUser", true, false, false, "NA");
System.out.println("************** Sel User ---> " + User);

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

/* Check the UserType and forward to respective servlet */
if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);
//System.out.println("ClassName --> " + request.getClass().toString() );
System.out.println("Using request dispatcher");
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet");
rd.forward(request,response);
//UtilBean.pageForward(getServletContext(),request, response, "servlet/disProfile.DisProfileServlet");

}
else /* sales force */
//if(UserTypeIs.toUpperCase().equals("ASM") || UserTypeIs.toUpperCase().equals("NSM") || UserTypeIs.toUpperCase().equals("RSM") || UserTypeIs.toUpperCase().equals("SRFO"))
{
//System.out.println("****************************** ******************");
request.setAttribute("mode", "Update");
request.setAttribute("UserID", UserID);
//System.out.println("***User ID--->" + UserID);
request.setAttribute("UserType", UserTypeIs);
//System.out.println("***User Type--->" + UserTypeIs);
System.out.println("Using Utilbean page forward");
UtilBean.pageForward(getServletContext(),request, response, "servlet/salesProfile.SalesProfileControlServlet");
//RequestDispatcher rd = getServlet.getRequestDispatcher("salesProfile.Sale sProfileControlServlet");
//rd.forward(request,response);
}

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

}
}
catch (Exception e)
{
Message = "CE00024";
e.printStackTrace(System.out);
errorOccured(request,response,mUBean,userType,Mess age,retURL);
}
finally
{
try
{
mUBean.closeConnection();
}catch(Exception e)
{}
}


let me know if any additional information is required.

Thanks
Jan 8 '07 #5

P: 14
roh
if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);
// Line no . 464

Thanks.
Jan 8 '07 #6

10K+
P: 13,264
Please find following code.


else if (queryValue.toUpperCase().equals("SELECTED"))
{

try
{
/* Check for authorised User */
if (access == true || access2 == true)
{
String UserID = null;
String UserTypeIs = null;
String User = UtilBean.getParameter(getServletConfig(),request, "selUser", true, false, false, "NA");
System.out.println("************** Sel User ---> " + User);

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

/* Check the UserType and forward to respective servlet */
if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);
//System.out.println("ClassName --> " + request.getClass().toString() );
System.out.println("Using request dispatcher");
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet");
rd.forward(request,response);
//UtilBean.pageForward(getServletContext(),request, response, "servlet/disProfile.DisProfileServlet");

}
else /* sales force */
//if(UserTypeIs.toUpperCase().equals("ASM") || UserTypeIs.toUpperCase().equals("NSM") || UserTypeIs.toUpperCase().equals("RSM") || UserTypeIs.toUpperCase().equals("SRFO"))
{
//System.out.println("****************************** ******************");
request.setAttribute("mode", "Update");
request.setAttribute("UserID", UserID);
//System.out.println("***User ID--->" + UserID);
request.setAttribute("UserType", UserTypeIs);
//System.out.println("***User Type--->" + UserTypeIs);
System.out.println("Using Utilbean page forward");
UtilBean.pageForward(getServletContext(),request, response, "servlet/salesProfile.SalesProfileControlServlet");
//RequestDispatcher rd = getServlet.getRequestDispatcher("salesProfile.Sale sProfileControlServlet");
//rd.forward(request,response);
}

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

}
}
catch (Exception e)
{
Message = "CE00024";
e.printStackTrace(System.out);
errorOccured(request,response,mUBean,userType,Mess age,retURL);
}
finally
{
try
{
mUBean.closeConnection();
}catch(Exception e)
{}
}


let me know if any additional information is required.

Thanks
Can you indicate which one is line 464?
Jan 8 '07 #7

P: 14
roh
Can you indicate which one is line 464?
Sorry,

else if (queryValue.toUpperCase().equals("SELECTED"))
{

try
{
/* Check for authorised User */
if (access == true || access2 == true)
{
String UserID = null;
String UserTypeIs = null;
String User = UtilBean.getParameter(getServletConfig(),request, "selUser", true, false, false, "NA");
System.out.println("************** Sel User ---> " + User);

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

/* Check the UserType and forward to respective servlet */
if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);//System.out.println("ClassName --> " + request.getClass().toString() );
System.out.println("Using request dispatcher");
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet");
rd.forward(request,response);
//UtilBean.pageForward(getServletContext(),request, response, "servlet/disProfile.DisProfileServlet");

}
else /* sales force */
//if(UserTypeIs.toUpperCase().equals("ASM") || UserTypeIs.toUpperCase().equals("NSM") || UserTypeIs.toUpperCase().equals("RSM") || UserTypeIs.toUpperCase().equals("SRFO"))
{
//System.out.println("****************************** ******************");
request.setAttribute("mode", "Update");
request.setAttribute("UserID", UserID);
//System.out.println("***User ID--->" + UserID);
request.setAttribute("UserType", UserTypeIs);
//System.out.println("***User Type--->" + UserTypeIs);
System.out.println("Using Utilbean page forward");
UtilBean.pageForward(getServletContext(),request, response, "servlet/salesProfile.SalesProfileControlServlet");
//RequestDispatcher rd = getServlet.getRequestDispatcher("salesProfile.Sale sProfileControlServlet");
//rd.forward(request,response);
}

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

}
}
catch (Exception e)
{
Message = "CE00024";
e.printStackTrace(System.out);
errorOccured(request,response,mUBean,userType,Mess age,retURL);
}
finally
{
try
{
mUBean.closeConnection();
}catch(Exception e)
{}
}
Jan 8 '07 #8

10K+
P: 13,264
Sorry,

else if (queryValue.toUpperCase().equals("SELECTED"))
{

try
{
/* Check for authorised User */
if (access == true || access2 == true)
{
String UserID = null;
String UserTypeIs = null;
String User = UtilBean.getParameter(getServletConfig(),request, "selUser", true, false, false, "NA");
System.out.println("************** Sel User ---> " + User);

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

/* Check the UserType and forward to respective servlet */
if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);//System.out.println("ClassName --> " + request.getClass().toString() );
System.out.println("Using request dispatcher");
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet");
rd.forward(request,response);
//UtilBean.pageForward(getServletContext(),request, response, "servlet/disProfile.DisProfileServlet");

}
else /* sales force */
//if(UserTypeIs.toUpperCase().equals("ASM") || UserTypeIs.toUpperCase().equals("NSM") || UserTypeIs.toUpperCase().equals("RSM") || UserTypeIs.toUpperCase().equals("SRFO"))
{
//System.out.println("****************************** ******************");
request.setAttribute("mode", "Update");
request.setAttribute("UserID", UserID);
//System.out.println("***User ID--->" + UserID);
request.setAttribute("UserType", UserTypeIs);
//System.out.println("***User Type--->" + UserTypeIs);
System.out.println("Using Utilbean page forward");
UtilBean.pageForward(getServletContext(),request, response, "servlet/salesProfile.SalesProfileControlServlet");
//RequestDispatcher rd = getServlet.getRequestDispatcher("salesProfile.Sale sProfileControlServlet");
//rd.forward(request,response);
}

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

}
}
catch (Exception e)
{
Message = "CE00024";
e.printStackTrace(System.out);
errorOccured(request,response,mUBean,userType,Mess age,retURL);
}
finally
{
try
{
mUBean.closeConnection();
}catch(Exception 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.closeConnection();
}catch(Exception 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?
Jan 8 '07 #9

P: 14
roh
Thanks for your suggestion i will handle that exception .

Yes , Servlet is forwarding request to the another servlet.
Jan 8 '07 #10

10K+
P: 13,264
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.
Jan 8 '07 #11

P: 14
roh
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.getParameter(getServletConfig(),request, "selUser", true, false, false, "NA");

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

StringTokenizer st = new StringTokenizer(User,":");
if (st.hasMoreTokens())
{
UserID = st.nextToken();
System.out.println("UserId " + UserID);}
if (st.hasMoreTokens())
{
UserTypeIs = st.nextToken();
System.out.println("UserTypeIs " + UserTypeIs);}

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

Thanks for help

Regards,
Roh.
Jan 8 '07 #12

P: 14
roh
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:DISTRIBUTOR
[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.ClassCastException: com.ibm.ws.cache.servlet.CacheProxyRequest
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:250)
at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:471)
at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled Code))

[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:250)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:471)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:66)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled 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.
Jan 8 '07 #13

P: 14
roh
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:DISTRIBUTOR
[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.ClassCastException: com.ibm.ws.cache.servlet.CacheProxyRequest
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:250)
at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:471)
at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:66)
at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled Code))

[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.extension.InvokerExtension Processor.handleRequest(InvokerExtensionProcessor. java:179)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.webapp.WebAppRequestDispat cher.forward(WebAppRequestDispatcher.java:250)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUProfileServlet.performTask(MUProfile Servlet.java:471)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at editProfile.MUProfileServlet.doPost(MUProfileServl et.java:66)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java:763)
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at javax.servlet.http.HttpServlet.service(HttpServlet .java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.servicePro xied(ServletWrapper.java(Inlined Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleFragment( CacheHook.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.CacheHook.handleServlet(C acheHook.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.cache.servlet.ServletWrapper.service(Se rvletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.ser vice(ServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.ServletWrapper.han dleRequest(ServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.servlet.CacheServletWrappe r.handleRequest(CacheServletWrapper.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.WebContainer.handleRequest (WebContainer.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.webcontainer.channel.WCChannelLink.read y(WCChannelLink.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleDiscrimination(HttpInboundLink.java(Compi led Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpInboundLi nk.handleNewInformation(HttpInboundLink.java(Compi led Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.http.channel.inbound.impl.HttpICLReadCa llback.complete(HttpICLReadCallback.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.reque stComplete(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attem ptIO(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager.worke rRun(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worke r.run(WorkQueueManager.java(Compiled Code))
[1/8/07 16:43:42:281 IST] 000003b0 SystemOut O at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.j ava(Compiled 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
Jan 8 '07 #14

P: 14
roh
Hi,

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

if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);

//System.out.println("ClassName --> " + request.getClass().toString() );
System.out.println("Using request dispatcher");
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet");
rd.forward(request,response);
//Line no.471 //UtilBean.pageForward(getServletContext(),request, response, "servlet/disProfile.DisProfileServlet");

}



Regards,
Roh.
Jan 8 '07 #15

10K+
P: 13,264
Hi,

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

if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);

//System.out.println("ClassName --> " + request.getClass().toString() );
System.out.println("Using request dispatcher");
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet");
rd.forward(request,response);
//Line no.471 //UtilBean.pageForward(getServletContext(),request, response, "servlet/disProfile.DisProfileServlet");

}



Regards,
Roh.
I don't think this wil help but try
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet").include(request,response);

Are you sure the path "disProfile.DisProfileServlet" is correct?
Jan 8 '07 #16

P: 14
roh
You could also try initialising the user to some default user so that you are guaranteed User is never null.

Hi,

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.getParameter(getServletConfig(),request, "selUser", true, false, false, "NA");

System.out.println("************** Sel User ---> " + User);
StringTokenizer st = new StringTokenizer(User,":");
if (st.hasMoreTokens())
{
UserID = st.nextToken();
System.out.println("UserId " + UserID);}
if (st.hasMoreTokens())
{
UserTypeIs = st.nextToken();
System.out.println("UserTypeIs " + UserTypeIs);
}

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

Thanks for help

Regards,
Roh.
Jan 9 '07 #17

P: 14
roh
I don't think this wil help but try
RequestDispatcher rd = request.getRequestDispatcher("disProfile.DisProfil eServlet").include(request,response);

Are you sure the path "disProfile.DisProfileServlet" is correct?

Hi r035198x,

Thanks for u r reply.

Yes, path is correct i have tried with "/disProfile.DisProfileServlet" and "servlet/disProfile.DisProfileServlet" but both the times it gave nullpointer exception in trace.

Problem could be on websphere side , now I have made some changes in configuration lets hope for the better , i'll let you know if problem persist.

regards,
roh.
Jan 10 '07 #18

10K+
P: 13,264
Hi r035198x,

Thanks for u r reply.

Yes, path is correct i have tried with "/disProfile.DisProfileServlet" and "servlet/disProfile.DisProfileServlet" but both the times it gave nullpointer exception in trace.

Problem could be on websphere side , now I have made some changes in configuration lets hope for the better , i'll let you know if problem persist.

regards,
roh.
I simply never make my servlets call other servlets so I've never encountered such problems in websphere.
Jan 10 '07 #19

P: 14
roh
I simply never make my servlets call other servlets so I've never encountered such problems in websphere.
Hi,

In our applicattion all the servlets are forwarding request to the JSP , only in this
case where we are forwarding request to the another servlet.

I have made some changes in websphere configuration lets hope that will work.

If they don't I will try to forward request to some intermediate JSP page and then
to servlet.

Regards,
roh
Jan 11 '07 #20

Post your reply

Sign in to post your reply or Sign up for a free account.