tomcat应用迁移到was出错 servlet获取不到parameter呀 大家帮我看看
j2ee应用部署到tomcat是正常的 但是迁移到was上就报错功能大概是:
客户端传送xml文件及url参数给服务器端servlet doPost()
错误出现在服务器端servlet的doPost getParameter()
客户端代码如:
……
URL url = new URL("http://192.168.2.65:9080/ex_server/sendzip?actioncode=2&billid=2&checkorg=370100");
URLConnection urlconn = url.openConnection();
urlconn.setDoOutput(true);
……
服务器端代码如:
protected void doPost(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException {
ServletInputStream inputStream = request.getInputStream();
50行------------String checkOrg = request.getParameter("checkorg");
String actionCode = request.getParameter("actioncode");
String billId = request.getParameter("billid");
……
异常如下:
[2/22/08 15:12:34:613 CST] 00000029 ServletWrappe E SRVE0068E: Could not invoke the service() method on servlet exReceivePackageFromClient. Exception thrown : java.lang.IllegalArgumentException
at com.ibm.ws.webcontainer.servlet.RequestUtils.parseName(RequestUtils.java:446)
at com.ibm.ws.webcontainer.servlet.RequestUtils.parseQueryString(RequestUtils.java:309)
at com.ibm.ws.webcontainer.servlet.RequestUtils.parsePostData(RequestUtils.java:565)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters(SRTServletRequest.java:1390)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.getParameter(SRTServletRequest.java:975)
at com.ninetowns.exserver.inte易做图ceclient.servlet.ExReceivePackageFromClientServlet.doPost(ExReceivePackageFromClientServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3177)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
[2/22/08 15:12:34:615 CST] 00000029 LocalTranCoor E WLTC0017E: Resources rolled back due to setRollbackOnly() being called.
[2/22/08 15:12:34:618 CST] 00000029 WebApp E SRVE0026E: [Servlet Error]-[exReceivePackageFromClient]: java.lang.IllegalArgumentException
at com.ibm.ws.webcontainer.servlet.RequestUtils.parseName(RequestUtils.java:446)
at com.ibm.ws.webcontainer.servlet.RequestUtils.parseQueryString(RequestUtils.java:309)
at com.ibm.ws.webcontainer.servlet.RequestUtils.parsePostData(RequestUtils.java:565)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.parseParameters(SRTServletRequest.java:1390)
at com.ibm.ws.webcontainer.srt.SRTServletRequest.getParameter(SRTServletRequest.java:975)
at com.ninetowns.exserver.inte易做图ceclient.servlet.ExReceivePackageFromClientServlet.doPost(ExReceivePackageFromClientServlet.java:52)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:763)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.service(ServletWrapper.java:1572)
at com.ibm.ws.webcontainer.servlet.ServletWrapper.handleRequest(ServletWrapper.java:762)
at com.ibm.ws.webcontainer.webapp.WebApp.handleRequest(WebApp.java:3177)
at com.ibm.ws.webcontainer.webapp.WebGroup.handleRequest(WebGroup.java:253)
at com.ibm.ws.webcontainer.VirtualHost.handleRequest(VirtualHost.java:229)
at com.ibm.ws.webcontainer.WebContainer.handleRequest(WebContainer.java:1970)
at com.ibm.ws.webcontainer.channel.WCChannelLink.ready(WCChannelLink.java:114)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleDiscrimination(HttpInboundLink.java:472)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.handleNewInformation(HttpInboundLink.java:411)
at com.ibm.ws.http.channel.inbound.impl.HttpInboundLink.ready(HttpInboundLink.java:288)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.sendToDiscriminaters(NewConnectionInitialReadCallback.java:207)
at com.ibm.ws.tcp.channel.impl.NewConnectionInitialReadCallback.complete(NewConnectionInitialReadCallback.java:109)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.requestComplete(WorkQueueManager.java:566)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.attemptIO(WorkQueueManager.java:619)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager.workerRun(WorkQueueManager.java:952)
at com.ibm.ws.tcp.channel.impl.WorkQueueManager$Worker.run(WorkQueueManager.java:1039)
at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1471)
--------------------编程问答-------------------- 请用IBM的打包工具打包后,在发布到WAS上! 列 WSAD RAD6.0 7.0 --------------------编程问答-------------------- 帮顶 --------------------编程问答-------------------- 没遇到过这种情况. --------------------编程问答-------------------- --------------------编程问答-------------------- --------------------编程问答-------------------- 楼主 问题解决吗,我也遇到同样的问题了,是怎么解决的啊,
如果解决了,贴出解决办法好吗?
在下感激不尽!!!!
谢谢
补充:企业软件 , WebSphere