1 Reply Latest reply: Dec 21, 2013 10:47 PM by Kalyan Pasupuleti-Oracle RSS

    Weblogic Error on RESTFull JSON

    Febry Indra Setyawan

      Hi All,

       

      we have a problem if my page request to my RestService using AJAX.

       

      URL REST Service :

      http://localhost:7001/aovi/services/token.svc

       

      Invoke from browser :

      Response 200 (OK) : {"e":"10001","n":"bb135941c4eaf3a3695d83f6ba7243f2039cec8575338dc901319dd3603437b0516d4b164b9f3e128cb30d2d93b7127f73d09e01ac1e22e05147c7ea9c50f3cb","maxdigits":"67"}

       

      Invoke via ajax :

      Response 500 (Internal Service Error)

       

      This is my error logs :

       

      <Dec 22, 2013 12:32:44 AM ICT> <Error> <HTTP> <BEA-101083> <Connection failure.

      java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '-1' bytes.

          at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:460)

          at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1475)

          at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1549)

          at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1523)

          at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)

          Truncated. see log file for complete stacktrace

      >

      <Dec 22, 2013 12:32:44 AM ICT> <Error> <HTTP> <BEA-101104> <Servlet execution in servlet context "ServletContext@24596927[app:aovi-1.4 module:aovi-1.4.war path:null spec-version:3.0]" failed, java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '-1' bytes..

      java.net.ProtocolException: Didn't meet stated Content-Length, wrote: '0' bytes instead of stated: '-1' bytes.

          at weblogic.servlet.internal.ServletOutputStreamImpl.ensureContentLength(ServletOutputStreamImpl.java:460)

          at weblogic.servlet.internal.ServletResponseImpl.ensureContentLength(ServletResponseImpl.java:1475)

          at weblogic.servlet.internal.ServletResponseImpl.send(ServletResponseImpl.java:1549)

          at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1523)

          at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:255)

          Truncated. see log file for complete stacktrace

      >

       

      Any there have same issue and have a solution ?