Open GoogleCodeExporter opened 9 years ago
I think my error arises of a specific combination of my environment:
- I do use Java 8 EAP
- I do use Guice AOP
The issue is caused by Guice trying to give a hint about the source:
/*if[AOP]*/
LineNumbers lineNumbers = lineNumbersCache.get(declaringClass);
This calls com.google.inject.internal.asm.$ClassReader(byte[] bytes, int i, int
i1) which throws an InvalidArgumentException:
at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source:-1)
at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source:-1)
at com.google.inject.internal.asm.$ClassReader.<init>(Unknown Source:-1)
at com.google.inject.internal.util.LineNumbers.<init>(LineNumbers.java:65)
at com.google.inject.internal.util.StackTraceElements$1.apply(StackTraceElements.java:39)
at com.google.inject.internal.util.StackTraceElements$1.apply(StackTraceElements.java:36)
at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingValueReference.compute(ComputingConcurrentHashMap.java:355)
at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingSegment.compute(ComputingConcurrentHashMap.java:184)
at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingSegment.getOrCompute(ComputingConcurrentHashMap.java:153)
at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap.getOrCompute(ComputingConcurrentHashMap.java:69)
at com.google.inject.internal.guava.collect.$ComputingConcurrentHashMap$ComputingMapAdapter.get(ComputingConcurrentHashMap.java:393)
at com.google.inject.internal.util.StackTraceElements.forMember(StackTraceElements.java:56)
at com.google.inject.internal.Errors.formatInjectionPoint(Errors.java:729)
at com.google.inject.internal.Errors.formatSource(Errors.java:691)
at com.google.inject.internal.Errors.format(Errors.java:568)
at com.google.inject.CreationException.getMessage(CreationException.java:50)
at java.lang.Throwable.getLocalizedMessage(Throwable.java:391)
at java.lang.Throwable.toString(Throwable.java:480)
which subsequently causes the $ComputationException completely hiding the
original issue.
Original comment by tebu...@googlemail.com
on 3 Dec 2013 at 3:55
Possibly related to issue 757
Original comment by mccu...@gmail.com
on 3 Dec 2013 at 4:04
Thanks for the pointer. Yes - that does look very related.
Original comment by tebu...@googlemail.com
on 3 Dec 2013 at 4:23
I added a small patch circumventing the pending ASM failure at
http://code.google.com/p/google-guice/issues/detail?id=757#c10
Original comment by tebu...@googlemail.com
on 4 Dec 2013 at 2:18
Is this bug the same as that issue? If so,I'll close as a dup.
Original comment by sa...@google.com
on 4 Dec 2013 at 2:20
I assume: In both cases failure of (LineNumbers.java:65) hides the underlying
cause of the failure and prevents the display of Guice's informative stack
trace.
Please feel free to resolve as duplicate.
Original comment by tebu...@googlemail.com
on 4 Dec 2013 at 2:33
Original comment by sberlin
on 4 Dec 2013 at 2:51
Original issue reported on code.google.com by
tebu...@googlemail.com
on 22 Nov 2013 at 12:54