servlet default threw exception java.io.IOException: Bad file number

Solution Verified - Updated -

Issue

  • The following error occurs during performance testing under load:

    ERROR [[default]] Servlet.service() for servlet default threw exception
    java.io.IOException: Bad file number
            at java.io.FileInputStream.readBytes(Native Method)
            at java.io.FileInputStream.read(FileInputStream.java:220)
            at java.io.BufferedInputStream.read1(BufferedInputStream.java:256)
            at java.io.BufferedInputStream.read(BufferedInputStream.java:317)
            at java.io.FilterInputStream.read(FilterInputStream.java:90)
            at org.apache.catalina.servlets.DefaultServlet.copyRange(DefaultServlet.java:1966)
            at org.apache.catalina.servlets.DefaultServlet.copy(DefaultServlet.java:1712)
            at org.apache.catalina.servlets.DefaultServlet.serveResource(DefaultServlet.java:800)
            at org.apache.catalina.servlets.DefaultServlet.doGet(DefaultServlet.java:332)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:617)
            ...
    

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 4.3
    • 5.0.x
    • 5.1.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content