473,320 Members | 1,979 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Unexpected behavior while forwarding request to the servlets.

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
19 2815
r035198x
13,262 8TB
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
roh
14
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
r035198x
13,262 8TB
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
roh
14
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
roh
14
if(UserTypeIs.toUpperCase().equalsIgnoreCase("DIST RIBUTOR"))
{
request.setAttribute("id", "Update");
request.setAttribute("UserID", UserID);
// Line no . 464

Thanks.
Jan 8 '07 #6
r035198x
13,262 8TB
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
roh
14
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
r035198x
13,262 8TB
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
roh
14
Thanks for your suggestion i will handle that exception .

Yes , Servlet is forwarding request to the another servlet.
Jan 8 '07 #10
r035198x
13,262 8TB
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
roh
14
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
roh
14
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
roh
14
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
roh
14
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
r035198x
13,262 8TB
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
roh
14
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
roh
14
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
r035198x
13,262 8TB
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
roh
14
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

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

Similar topics

6
by: Agoston Bejo | last post by:
Hi. x1.asp: <form method="post" action="x2.asp"> .... </form> x2.asp: DoSomeAdministration() Response.Redirect "x3.asp?" & Request.Form x3.asp: further processsing of data
8
by: John J | last post by:
Thankyou to those people in this newsgroup that have answered my questions and helped me to learn whilst developing my yacht race classes. I have now completed the three classes (Yacht, Race and...
6
by: Samuel M. Smith | last post by:
I have been playing around with a subclass of dict wrt a recipe for setting dict items using attribute syntax. The dict class has some read only attributes that generate an exception if I try to...
3
by: Rahul Anand | last post by:
As per our requirements we have a web service which internally connects (Simple HTTP Post Request) to a remote server to initiate some work. We are calling the web service method asynchronously...
0
by: Mahesh Devjibhai Dhola | last post by:
Hi, I am getting the following exception when using webservice.. "The underlying connection was closed: An unexpected error occurred on a receive" I am not getting any innerexception so no clue...
5
by: shreya | last post by:
I have a jsp CustomerLogin.jsp which takes customerid and a servlet forwarding request object to another jsp records.jsp. In this records.jsp i have a button calling another jsp Customer.jsp.I...
1
by: thomas | last post by:
Hello all, It seems like subdomain forwarding prevents ASP.Net session state from working correctly. Example: two websites http://www.jgphotographers.com/test and...
2
by: Dimitri Furman | last post by:
SQL Server 2000 SP4. Running the script below prints 'Unexpected': ----------------------------- DECLARE @String AS varchar(1) SELECT @String = 'z' IF @String LIKE ''
6
by: mcl | last post by:
I have a domain name which is set up for web forwarding with a frame. I have a link on one of the site's pages to an external site. When I select the link the external site is displayed correctly...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.