ArrayIndexOutOfBoundsException error in zk zkoss

I got this weird "java.lang.ArrayIndexOutOfBoundsException" error:

There is no array in the code yet! Any idea about this error? This is a bug in the catalina.core.ApplicationFilterChain library! or is the problem in my code?

    STACKTRACE:
    java.lang.ArrayIndexOutOfBoundsException:
    at event.ColSizeEvent.<init>(ColSizeEvent.java)
    at ColSizeEvent.getColSizeEvent(ColSizeEvent.java)

      

+3


source to share


2 answers


It seems to me that your exception is not related to the code itself filterChain.doFilter(...)

.

This line just redirects the HTTP request to zkoss, which tries to create some items and doesn't work there.



    at org.zkoss.zul.event.ColSizeEvent.<init>(ColSizeEvent.java:124)
        at org.zkoss.zul.event.ColSizeEvent.getColSizeEvent(ColSizeEvent.java:69)
        at org.zkoss.zul.impl.HeadersElement.service(HeadersElement.java:75)
   ...

      

Check (or share) your zkoss conf ...

+1


source


The exact thing that is out of bounds is ColSizeEvent

in ColSizeEvent.java:124 when it tries to getColSizeEvent () from out of bounds.

If there is a bug in the 3d library, you need to go to that line and fix or post the entire source. (jar is also an archive, there are tools to get it). If you can't get the source then we're out of luck (but you probably can). You will need to rebuild zkoss anyway.



Always go down from the first line of the trace - it indicates exactly where the exception was thrown and how it propagated.

0


source







All Articles