You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Benson Margulies <bi...@gmail.com> on 2013/01/25 16:28:22 UTC

Perhaps strange backtrace in surefire

Surefire 2.12.2: Is this worth a JIRA?


org.apache.maven.surefire.util.SurefireReflectionException:
java.lang.reflect.InvocationTargetException; nested exception is
java.lang.reflect.InvocationTargetException: null
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
at org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
at org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
at org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
Exception in thread "main" java.lang.NullPointerException
at java.lang.Throwable.printStackTraceAsCause(Throwable.java:482)
at java.lang.Throwable.printStackTrace(Throwable.java:468)
at org.apache.maven.surefire.util.NestedRuntimeException.printStackTrace(NestedRuntimeException.java:149)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:86)
Running com.basistech.TestMultiEnvironment

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Perhaps strange backtrace in surefire

Posted by Benson Margulies <bi...@gmail.com>.
Done. Hoping for advice on how to dig out the cause, as I lack a
postable test case.

On Mon, Jan 28, 2013 at 4:37 AM, Kristian Rosenvold
<kr...@gmail.com> wrote:
> Yup, file a jira for this one.
>
> Kristian
>
> 2013/1/26 Benson Margulies <bi...@gmail.com>
>
>> Here it is in 2.13:
>>
>> <forkMode>always</forkMode>
>>
>> How would you suggest that I go about getting you more useful information?
>>
>> Running com.basistech.TestLogCallback
>> 0    [main] DEBUG com.basistech.rlp.RLPEnvironment  - Starting cleanup
>> thread
>> 6    [main] DEBUG com.basistech.rlp.RLPEnvironment  - cleanupContext
>> java.lang.ref.PhantomReference@509df6f1 7f9e59a073b0
>> 6    [RLP Context Cleanup] DEBUG com.basistech.rlp.RLPEnvironment  -
>> Exiting cleanup thread
>> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 sec
>> java.lang.AbstractMethodError:
>> java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V
>> at
>> org.apache.maven.surefire.report.LegacyPojoStackTraceWriter.writeTraceToString(LegacyPojoStackTraceWriter.java:54)
>> at
>> org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:330)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:104)
>>
>> On Fri, Jan 25, 2013 at 11:04 AM, Kristian Rosenvold
>> <kr...@gmail.com> wrote:
>> > If it's reproducible with 2.13, yes ;)
>> >
>> > Kristian
>> >
>> >
>> > 2013/1/25 Benson Margulies <bi...@gmail.com>
>> >
>> >> Surefire 2.12.2: Is this worth a JIRA?
>> >>
>> >>
>> >> org.apache.maven.surefire.util.SurefireReflectionException:
>> >> java.lang.reflect.InvocationTargetException; nested exception is
>> >> java.lang.reflect.InvocationTargetException: null
>> >> java.lang.reflect.InvocationTargetException
>> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> >> at
>> >>
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> >> at
>> >>
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> >> at jIf itava.lang.reflect.Method.invoke(Method.java:597)
>> >> at
>> >>
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> >> at
>> >>
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> >> at
>> >>
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> >> at
>> >>
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
>> >> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> >> Exception in thread "main" java.lang.NullPointerException
>> >> at java.lang.Throwable.printStackTraceAsCause(Throwable.java:482)
>> >> at java.lang.Throwable.printStackTrace(Throwable.java:468)
>> >> at
>> >>
>> org.apache.maven.surefire.util.NestedRuntimeException.printStackTrace(NestedRuntimeException.java:149)
>> >> at
>> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:86)
>> >> Running com.basistech.TestMultiEnvironment
>> >>
>> >> ---------------------------------------------------------------------
>> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> >> For additional commands, e-mail: users-help@maven.apache.org
>> >>
>> >>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Perhaps strange backtrace in surefire

Posted by Kristian Rosenvold <kr...@gmail.com>.
Yup, file a jira for this one.

Kristian

2013/1/26 Benson Margulies <bi...@gmail.com>

> Here it is in 2.13:
>
> <forkMode>always</forkMode>
>
> How would you suggest that I go about getting you more useful information?
>
> Running com.basistech.TestLogCallback
> 0    [main] DEBUG com.basistech.rlp.RLPEnvironment  - Starting cleanup
> thread
> 6    [main] DEBUG com.basistech.rlp.RLPEnvironment  - cleanupContext
> java.lang.ref.PhantomReference@509df6f1 7f9e59a073b0
> 6    [RLP Context Cleanup] DEBUG com.basistech.rlp.RLPEnvironment  -
> Exiting cleanup thread
> Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 sec
> java.lang.AbstractMethodError:
> java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V
> at
> org.apache.maven.surefire.report.LegacyPojoStackTraceWriter.writeTraceToString(LegacyPojoStackTraceWriter.java:54)
> at
> org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:330)
> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:104)
>
> On Fri, Jan 25, 2013 at 11:04 AM, Kristian Rosenvold
> <kr...@gmail.com> wrote:
> > If it's reproducible with 2.13, yes ;)
> >
> > Kristian
> >
> >
> > 2013/1/25 Benson Margulies <bi...@gmail.com>
> >
> >> Surefire 2.12.2: Is this worth a JIRA?
> >>
> >>
> >> org.apache.maven.surefire.util.SurefireReflectionException:
> >> java.lang.reflect.InvocationTargetException; nested exception is
> >> java.lang.reflect.InvocationTargetException: null
> >> java.lang.reflect.InvocationTargetException
> >> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> >> at
> >>
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> >> at
> >>
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> >> at jIf itava.lang.reflect.Method.invoke(Method.java:597)
> >> at
> >>
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> >> at
> >>
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> >> at
> >>
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> >> at
> >>
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
> >> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> >> Exception in thread "main" java.lang.NullPointerException
> >> at java.lang.Throwable.printStackTraceAsCause(Throwable.java:482)
> >> at java.lang.Throwable.printStackTrace(Throwable.java:468)
> >> at
> >>
> org.apache.maven.surefire.util.NestedRuntimeException.printStackTrace(NestedRuntimeException.java:149)
> >> at
> org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:86)
> >> Running com.basistech.TestMultiEnvironment
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> >> For additional commands, e-mail: users-help@maven.apache.org
> >>
> >>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>

Re: Perhaps strange backtrace in surefire

Posted by Benson Margulies <bi...@gmail.com>.
Here it is in 2.13:

<forkMode>always</forkMode>

How would you suggest that I go about getting you more useful information?

Running com.basistech.TestLogCallback
0    [main] DEBUG com.basistech.rlp.RLPEnvironment  - Starting cleanup thread
6    [main] DEBUG com.basistech.rlp.RLPEnvironment  - cleanupContext
java.lang.ref.PhantomReference@509df6f1 7f9e59a073b0
6    [RLP Context Cleanup] DEBUG com.basistech.rlp.RLPEnvironment  -
Exiting cleanup thread
Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.142 sec
java.lang.AbstractMethodError:
java.lang.Throwable.printStackTrace(Ljava/io/PrintWriter;)V
at org.apache.maven.surefire.report.LegacyPojoStackTraceWriter.writeTraceToString(LegacyPojoStackTraceWriter.java:54)
at org.apache.maven.surefire.booter.ForkingRunListener.encode(ForkingRunListener.java:330)
at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:104)

On Fri, Jan 25, 2013 at 11:04 AM, Kristian Rosenvold
<kr...@gmail.com> wrote:
> If it's reproducible with 2.13, yes ;)
>
> Kristian
>
>
> 2013/1/25 Benson Margulies <bi...@gmail.com>
>
>> Surefire 2.12.2: Is this worth a JIRA?
>>
>>
>> org.apache.maven.surefire.util.SurefireReflectionException:
>> java.lang.reflect.InvocationTargetException; nested exception is
>> java.lang.reflect.InvocationTargetException: null
>> java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>> at jIf itava.lang.reflect.Method.invoke(Method.java:597)
>> at
>> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
>> at
>> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
>> at
>> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
>> Exception in thread "main" java.lang.NullPointerException
>> at java.lang.Throwable.printStackTraceAsCause(Throwable.java:482)
>> at java.lang.Throwable.printStackTrace(Throwable.java:468)
>> at
>> org.apache.maven.surefire.util.NestedRuntimeException.printStackTrace(NestedRuntimeException.java:149)
>> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:86)
>> Running com.basistech.TestMultiEnvironment
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
>> For additional commands, e-mail: users-help@maven.apache.org
>>
>>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: Perhaps strange backtrace in surefire

Posted by Kristian Rosenvold <kr...@gmail.com>.
If it's reproducible with 2.13, yes ;)

Kristian


2013/1/25 Benson Margulies <bi...@gmail.com>

> Surefire 2.12.2: Is this worth a JIRA?
>
>
> org.apache.maven.surefire.util.SurefireReflectionException:
> java.lang.reflect.InvocationTargetException; nested exception is
> java.lang.reflect.InvocationTargetException: null
> java.lang.reflect.InvocationTargetException
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
> at jIf itava.lang.reflect.Method.invoke(Method.java:597)
> at
> org.apache.maven.surefire.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:189)
> at
> org.apache.maven.surefire.booter.ProviderFactory$ProviderProxy.invoke(ProviderFactory.java:165)
> at
> org.apache.maven.surefire.booter.ProviderFactory.invokeProvider(ProviderFactory.java:85)
> at
> org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:113)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:75)
> Exception in thread "main" java.lang.NullPointerException
> at java.lang.Throwable.printStackTraceAsCause(Throwable.java:482)
> at java.lang.Throwable.printStackTrace(Throwable.java:468)
> at
> org.apache.maven.surefire.util.NestedRuntimeException.printStackTrace(NestedRuntimeException.java:149)
> at org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:86)
> Running com.basistech.TestMultiEnvironment
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
>
>