1 Reply Latest reply: Dec 16, 2012 9:17 PM by 979671 RSS

    weblogic 10.3.5.0上传文件报错

    979671
      各位大牛们,这里有个棘手问题 继续解决
      1个java客户端程序,上传文件给服务器,这里服务器分别使用了tomcat和weblogic10.3.5.0,但是在tomcat上面上传是成功的,但是换成weblogic后就不行了。

      急需解决,在线等结果!!!!

      以下是weblogic和tomcat这两个服务器请求和响应的报文数据
      ====================weblogic环境下{失败}======================

      ==============
      Listen Port: 8765
      Target Host: 127.0.0.1
      Target Port: 8088
      ==== Request ====
      PUT /ca/services/api/dataExchange3 HTTP/1.1
      isCommit: true
      Content-Type: binary/octet-stream
      appName: mobile
      token: mobile124a67748fcb48a8a0863f30970a2a06
      method: MOBILE.UPLOAD
      sign: 7c0b1415b5e5fbf634c1adb4b871de20
      dataParams: <?xml version="1.0" encoding="utf-8"?><params><fileId>61096</fileId></params>
      offset: 0
      User-Agent: Java/1.6.0_24
      Host: 127.0.0.1:8765
      Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
      Connection: keep-alive
      Transfer-Encoding: chunked

      2b
      ⻪ȯ
      �
      ½¯Ԯƽ
      ѭХ

      lushuaifeng
      0

      ==== Response ====
      HTTP/1.1 200 OK
      Connection: close
      Date: Wed, 12 Dec 2012 07:48:01 GMT
      Transfer-Encoding: chunked
      Content-Type: text/html
      X-Powered-By: Servlet/2.5 JSP/2.1

      0047
      {
      "description": "数据写入异常",
      "params": [],
      "code": "120"
      }
      0000


      ==============

      ====================tomcat环境下{成功}======================


      ==============
      Listen Port: 8765
      Target Host: 127.0.0.1
      Target Port: 8081
      ==== Request ====
      PUT /ca/services/api/dataExchange3 HTTP/1.1
      isCommit: true
      Content-Type: binary/octet-stream
      appName: mobile
      token: mobile124a67748fcb48a8a0863f30970a2a06
      method: MOBILE.UPLOAD
      sign: 7c0b1415b5e5fbf634c1adb4b871de20
      dataParams: <?xml version="1.0" encoding="utf-8"?><params><fileId>61093</fileId></params>
      offset: 0
      User-Agent: Java/1.6.0_24
      Host: 127.0.0.1:8765
      Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2
      Connection: keep-alive
      Transfer-Encoding: chunked

      2b
      ⻪ȯ
      �
      ½¯Ԯƽ
      ѭХ

      lushuaifeng
      0

      ==== Response ====
      HTTP/1.1 200 OK
      Server: Apache-Coyote/1.1
      Content-Type: text/html
      Transfer-Encoding: chunked
      Date: Wed, 12 Dec 2012 07:39:18 GMT

      3d
      {
      "description": "success!",
      "params": [],
      "code": "100"
      }
      0


      ==============


      附上weblogic这里反馈的堆栈错误数据:
      <---start Upload--->
      ####<2012-12-3 下午01时30分27秒 CST> <Error> <HTTP> <App2Test> <AdminServer> <ExecuteThread: '1' for queue: 'weblogic.socket.Muxer'> <<WLS Kernel>> <> <> <1354512627250> <BEA-101215> <Malformed Request "/workflowLocal/api/underUpload.action". Request parsing failed, Code: -1>
      ####<2012-12-3 下午01时30分27秒 CST> <Notice> <Stdout> <App2Test> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1354512627250> <BEA-000000> <catch2>
      ####<2012-12-3 下午01时30分27秒 CST> <Notice> <StdErr> <App2Test> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1354512627250> <BEA-000000> <java.net.SocketException: socket write error: Connection aborted by peer>
      ####<2012-12-3 下午01时30分27秒 CST> <Notice> <StdErr> <App2Test> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1354512627250> <BEA-000000> <at jrockit.net.SocketNativeIO.writeBytesPinned(Native Method)>
      ####<2012-12-3 下午01时30分27秒 CST> <Notice> <StdErr> <App2Test> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1354512627250> <BEA-000000> <at java.net.SocketOutputStream.socketWrite0(SocketOutputStream.java)>
      ####<2012-12-3 下午01时30分27秒 CST> <Notice> <StdErr> <App2Test> <AdminServer> <[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)'> <<WLS Kernel>> <> <> <1354512627250> <BEA-000000> <at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:92)>