Author: ssmiweve Date: 2007-06-04 14:22:39 +0200 (Mon, 04 Jun 2007) New Revision: 5264
Modified: branches/2.13/query-api/src/main/java/no/schibstedsok/searchportal/query/parser/AbstractReflectionVisitor.java Log: IllegalArgumentException often mean an underlying exception. If the underlying exception has a blank stacktrace it's most likely a sun bug when running hotspot compiled methods http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4966410 The JVM flag -XX:-OmitStackTraceInFastThrow fixes it. Modified: branches/2.13/query-api/src/main/java/no/schibstedsok/searchportal/query/parser/AbstractReflectionVisitor.java =================================================================== --- branches/2.13/query-api/src/main/java/no/schibstedsok/searchportal/query/parser/AbstractReflectionVisitor.java 2007-06-04 12:21:08 UTC (rev 5263) +++ branches/2.13/query-api/src/main/java/no/schibstedsok/searchportal/query/parser/AbstractReflectionVisitor.java 2007-06-04 12:22:39 UTC (rev 5264) @@ -66,7 +66,10 @@ } catch (InvocationTargetException ex) { LOG.error(ERR_FAILED_TO_VISIT + clause, ex); - // IllegalArgumentException are often mean an underlying exception + // IllegalArgumentException often mean an underlying exception. + // If the underlying exception has a blank stacktrace it's most likely a sun bug + // when running hotspot compiled methods http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4966410 + // The JVM flag -XX:-OmitStackTraceInFastThrow fixes it. for (Throwable t = ex; t != null; t = t.getCause()) { LOG.error(t.getMessage(), t); } _______________________________________________ Kernel-commits mailing list [email protected] http://sesat.no/mailman/listinfo/kernel-commits
