title: Getting "ArrayIndexOutOfBoundsException: null" with NO stack trace
body: <p>In our log files we find the following:</p>
  
  <pre><code>[2012-09-24 00:09:32.590 +0000UTC] ERROR host server1 [] [] somepackage.someclass [] [Unknown] [V3rAqPaDvvAAAAExEXhdWGyh] [pjsQwTGHzxcAAAE5j4YdGvWV] "ThreadName"  Some error happened:  java.lang.ArrayIndexOutOfBoundsException: null
  </code></pre>
  
  <p>There is only this single line, and NO exception stack trace. </p>
  
  <p>The <code>try</code> block in which this exception happens is executing dynamically-generated Java byte-code which was created using javassist.</p>
  
  <p>I am wondering about two things:</p>
  
  <ol>
  <li>The <code>java.lang.ArrayIndexOutOfBoundsException</code>: null</li>
  <li>The missing stack-trace, despite calling the log hook using <code>logger.error("message", theException)</code> inside the <code>catch</code> block, which ordinarily would lead to a full stack-trace being printed in the log-file.</li>
  </ol>
  
  <p>My Questions:</p>
  
  <ol>
  <li><p>What kind of code can cause a logging output "java.lang.ArrayIndexOutOfBoundsException: null". I try to reproduce this with a test program with no luck. I always get something like "java.lang.ArrayIndexOutOfBoundsException: Index: 3" or similar.</p></li>
  <li><p>Could the reason for <em>missing</em> stack-trace, be that this code is dynamically generated at runtime, and as such the logger/JVM does not "know" the stack-trace or relevant line number(s)? </p></li>
  </ol>
  
  <p>We are currently debugging and investigating to get more info, but maybe this sounds familiar to somebody.</p>