Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    java.lang.ArrayIndexOutOfBoundsException - ERROR Download - Problem sending static file: /webapp/isomorphic/skins/App_v001/brandingcontent/header.txt

    We have a customer who has rebranded footer and header. We are using SmartClient SDK v10p. He is getting an error while displaying the header:

    --------------------------------------------------------------------------------------------------
    [2018-02-08 12:59:16.039] ALL 000000000000 GLOBAL_SCOPE === 2018-02-08 12:59:16,039 [-184] ERROR Download - Problem sending static file: /xyx/webapp/isomorphic/skins/App_v001/brandingcontent/header.txt
    java.lang.ArrayIndexOutOfBoundsException
    at org.mortbay.io.ByteArrayBuffer.poke(ByteArrayBuffer.java:268)
    at org.mortbay.io.AbstractBuffer.put(AbstractBuffer.java:456)
    at org.mortbay.jetty.HttpFields$Field.put(HttpFields.java:1425)
    at org.mortbay.jetty.HttpGenerator.completeHeader(HttpGenerator.java:527)
    at org.mortbay.jetty.HttpConnection.commitResponse(HttpConnection.java:634)
    at org.mortbay.jetty.HttpConnection$Output.flush(HttpConnection.java:1025)
    at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:655)
    at org.mortbay.jetty.AbstractGenerator$Output.write(AbstractGenerator.java:580)
    at com.isomorphic.util.IOUtil.copyStreams(IOUtil.java:109)
    at com.isomorphic.util.IOUtil.copyStreams(IOUtil.java:84)
    at com.isomorphic.servlet.ServletTools.sendStaticFile(ServletTools.java:1721)
    at com.isomorphic.servlet.FileDownload.doGet(FileDownload.java:191)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:693)
    at com.isomorphic.servlet.BaseServlet.service(BaseServlet.java:156)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:806)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1221)
    ---------------------------------------------------------------------------------------------------------------------

    Only some users are getting this error. For admin user, it works fine. Please let us know what can cause this error.

    #2
    We've never seen this before, and unfortunately we can't really suggest a cause. It looks like we pass data to Jetty and Jetty simply crashes downstream in a way that can't be related to the data we are passing (because we are passing along data for a file, whereas Jetty then crashes while putting together HTTP headers, which isn't something we're providing).

    Our best guess would be that your application code is doing something invalid with respect to concurrency: you may have marked a servlet as allowing multiple threads when it should not, for example.

    Let us know if you can find some way to make this one reproducible, or if you uncover and suggestion that it is due to a bug in our software.

    Comment

    Working...
    X