#21 java.lang.NegativeArraySizeException

cewolf-0.8
closed
nobody
Rendering (22)
5
2003-05-05
2003-04-30
Anonymous
No

Hi Glaures,

I am getting this following exception,when I try to
run the example provided with cewolf.

InputStream body = request.getInputStream();
byte[] bodyData = new byte[body.available()];

java.lang.NegativeArraySizeException
at
de.laures.cewolf.CewolfRenderer.logRequest
(CewolfRenderer.java:162)
at de.laures.cewolf.CewolfRenderer.doGet
(CewolfRenderer.java:83)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:126)
at javax.servlet.http.HttpServlet.service
(HttpServlet.java:103)
at
com.caucho.server.http.FilterChainServlet.doFilter
(FilterChainServlet.java:96)
at
com.caucho.server.http.Invocation.service
(Invocation.java:312)
at
com.caucho.server.http.CacheInvocation.service
(CacheInvocation.java:135)
at
com.caucho.server.http.HttpRequest.handleRequest
(HttpRequest.java:221)
at
com.caucho.server.http.HttpRequest.handleConnect
ion(HttpRequest.java:163)
at com.caucho.server.TcpConnection.run
(TcpConnection.java:137)
at java.lang.Thread.run(Thread.java:479)

Thanks,
binal
bshah@bevocal.com

Discussion

  • Binal Shah
    Binal Shah
    2003-05-02

    Logged In: YES
    user_id=768955

    This happens when debug is set to true in web.xml

    init-param>
    <param-name>debug</param-name>
    <param-value>true</param-value>
    </init-param>

    Or if set to false it works.

     
  • Guido Laures
    Guido Laures
    2003-05-05

    • status: open --> closed