npe while tests

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

npe while tests

Marko Bauhardt-3
Hi
i use the gradle wrapper with gradle snapshot version  
0.3-080716153750+0200
if a test fails the build is finished with a NullPointerException.
What i can do to avoid this?

Exception in thread "main" 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:585)
         at  
org
.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
         at org.gradle.wrapper.Wrapper.execute(Wrapper.java:61)
         at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:38)
Caused by: 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:585)
         at org.gradle.BootstrapMain.main(BootstrapMain.java:70)
         ... 7 more
Caused by: java.lang.NullPointerException
         at  
org
.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:
177)
         at  
org
.codehaus
.groovy
.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:
474)
         at  
org.gradle.api.GradleException.getMessage(GradleException.groovy:49)
         at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
         at java.lang.Throwable.toString(Throwable.java:344)
         at  
org
.codehaus
.groovy
.runtime
.InvokerInvocationException.getMessage(InvokerInvocationException.java:
40)
         at  
ch
.qos
.logback
.classic
.spi.ThrowableInformation.extractStringRep(ThrowableInformation.java:48)
         at  
ch
.qos
.logback
.classic.spi.ThrowableInformation.<init>(ThrowableInformation.java:22)
         at  
ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:111)
         at  
ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:
489)
         at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:483)
         at ch.qos.logback.classic.Logger.error(Logger.java:549)
         at org.gradle.Main.main(Main.java:259)
         ... 12 more


Marko


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: npe while tests

Adam Murdoch-2
Hi,

You could use the head revision from subversion, which fails with a
GradleException and a message stating that some tests have failed.

Gradle still treats this as an internal exception, however.

Marko Bauhardt wrote:

> Hi
> i use the gradle wrapper with gradle snapshot version
> 0.3-080716153750+0200
> if a test fails the build is finished with a NullPointerException.
> What i can do to avoid this?
>
> Exception in thread "main" 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:585)
>         at
> org.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
>
>         at org.gradle.wrapper.Wrapper.execute(Wrapper.java:61)
>         at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:38)
> Caused by: 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:585)
>         at org.gradle.BootstrapMain.main(BootstrapMain.java:70)
>         ... 7 more
> Caused by: java.lang.NullPointerException
>         at
> org.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:177)
>
>         at
> org.codehaus.groovy.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:474)
>
>         at
> org.gradle.api.GradleException.getMessage(GradleException.groovy:49)
>         at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
>         at java.lang.Throwable.toString(Throwable.java:344)
>         at
> org.codehaus.groovy.runtime.InvokerInvocationException.getMessage(InvokerInvocationException.java:40)
>
>         at
> ch.qos.logback.classic.spi.ThrowableInformation.extractStringRep(ThrowableInformation.java:48)
>
>         at
> ch.qos.logback.classic.spi.ThrowableInformation.<init>(ThrowableInformation.java:22)
>
>         at
> ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:111)
>         at
> ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:489)
>         at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:483)
>         at ch.qos.logback.classic.Logger.error(Logger.java:549)
>         at org.gradle.Main.main(Main.java:259)
>         ... 12 more
>
>
> Marko
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>    http://xircles.codehaus.org/manage_email
>
>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: npe while tests

hans_d
Administrator
In reply to this post by Marko Bauhardt-3
Hi Marko,

sorry for answering that late. I've just returned from a trip. Could you file a Jira issue?

Thanks

- Hans

Marko Bauhardt-3 wrote
Hi
i use the gradle wrapper with gradle snapshot version  
0.3-080716153750+0200
if a test fails the build is finished with a NullPointerException.
What i can do to avoid this?

Exception in thread "main" 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:585)
         at  
org
.gradle.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
         at org.gradle.wrapper.Wrapper.execute(Wrapper.java:61)
         at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:38)
Caused by: 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:585)
         at org.gradle.BootstrapMain.main(BootstrapMain.java:70)
         ... 7 more
Caused by: java.lang.NullPointerException
         at  
org
.codehaus.groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:
177)
         at  
org
.codehaus
.groovy
.runtime.ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:
474)
         at  
org.gradle.api.GradleException.getMessage(GradleException.groovy:49)
         at java.lang.Throwable.getLocalizedMessage(Throwable.java:267)
         at java.lang.Throwable.toString(Throwable.java:344)
         at  
org
.codehaus
.groovy
.runtime
.InvokerInvocationException.getMessage(InvokerInvocationException.java:
40)
         at  
ch
.qos
.logback
.classic
.spi.ThrowableInformation.extractStringRep(ThrowableInformation.java:48)
         at  
ch
.qos
.logback
.classic.spi.ThrowableInformation.<init>(ThrowableInformation.java:22)
         at  
ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:111)
         at  
ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:
489)
         at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:483)
         at ch.qos.logback.classic.Logger.error(Logger.java:549)
         at org.gradle.Main.main(Main.java:259)
         ... 12 more


Marko


---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email

Reply | Threaded
Open this post in threaded view
|

Re: npe while tests

hans_d
Administrator
This is fixed now.

- Hans

On Jul 26, 2008, at 7:44 AM, hdockter wrote:

>
> Hi Marko,
>
> sorry for answering that late. I've just returned from a trip.  
> Could you
> file a Jira issue?
>
> Thanks
>
> - Hans
>
>
> Marko Bauhardt-3 wrote:
>>
>> Hi
>> i use the gradle wrapper with gradle snapshot version
>> 0.3-080716153750+0200
>> if a test fails the build is finished with a NullPointerException.
>> What i can do to avoid this?
>>
>> Exception in thread "main"  
>> 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:585)
>>          at
>> org
>> .gradle.wrapper.BootstrapMainStarter.start
>> (BootstrapMainStarter.java:38)
>>          at org.gradle.wrapper.Wrapper.execute(Wrapper.java:61)
>>          at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:38)
>> Caused by: 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:585)
>>          at org.gradle.BootstrapMain.main(BootstrapMain.java:70)
>>          ... 7 more
>> Caused by: java.lang.NullPointerException
>>          at
>> org
>> .codehaus.groovy.runtime.InvokerHelper.getProperty
>> (InvokerHelper.java:
>> 177)
>>          at
>> org
>> .codehaus
>> .groovy
>> .runtime.ScriptBytecodeAdapter.getProperty
>> (ScriptBytecodeAdapter.java:
>> 474)
>>          at
>> org.gradle.api.GradleException.getMessage(GradleException.groovy:49)
>>          at java.lang.Throwable.getLocalizedMessage(Throwable.java:
>> 267)
>>          at java.lang.Throwable.toString(Throwable.java:344)
>>          at
>> org
>> .codehaus
>> .groovy
>> .runtime
>> .InvokerInvocationException.getMessage
>> (InvokerInvocationException.java:
>> 40)
>>          at
>> ch
>> .qos
>> .logback
>> .classic
>> .spi.ThrowableInformation.extractStringRep
>> (ThrowableInformation.java:48)
>>          at
>> ch
>> .qos
>> .logback
>> .classic.spi.ThrowableInformation.<init>(ThrowableInformation.java:
>> 22)
>>          at
>> ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:111)
>>          at
>> ch.qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:
>> 489)
>>          at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:
>> 483)
>>          at ch.qos.logback.classic.Logger.error(Logger.java:549)
>>          at org.gradle.Main.main(Main.java:259)
>>          ... 12 more
>>
>>
>> Marko
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe from this list, please visit:
>>
>>     http://xircles.codehaus.org/manage_email
>>
>>
>>
>>
>
> --
> View this message in context: http://www.nabble.com/npe-while-tests- 
> tp18584372p18663373.html
> Sent from the gradle-user mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe from this list, please visit:
>
>     http://xircles.codehaus.org/manage_email
>
>

--
Hans Dockter
Gradle Project lead
http://www.gradle.org





---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email


Reply | Threaded
Open this post in threaded view
|

Re: npe while tests

Marko Bauhardt-3

On Jul 28, 2008, at 12:02 PM, Hans Dockter wrote:

> This is fixed now.

thanks!





>
>>
>> Marko Bauhardt-3 wrote:
>>>
>>> Hi
>>> i use the gradle wrapper with gradle snapshot version
>>> 0.3-080716153750+0200
>>> if a test fails the build is finished with a NullPointerException.
>>> What i can do to avoid this?
>>>
>>> Exception in thread "main"  
>>> 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:585)
>>>         at
>>> org
>>> .gradle
>>> .wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:38)
>>>         at org.gradle.wrapper.Wrapper.execute(Wrapper.java:61)
>>>         at org.gradle.wrapper.WrapperMain.main(WrapperMain.java:38)
>>> Caused by: 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:585)
>>>         at org.gradle.BootstrapMain.main(BootstrapMain.java:70)
>>>         ... 7 more
>>> Caused by: java.lang.NullPointerException
>>>         at
>>> org
>>> .codehaus
>>> .groovy.runtime.InvokerHelper.getProperty(InvokerHelper.java:
>>> 177)
>>>         at
>>> org
>>> .codehaus
>>> .groovy
>>> .runtime
>>> .ScriptBytecodeAdapter.getProperty(ScriptBytecodeAdapter.java:
>>> 474)
>>>         at
>>> org.gradle.api.GradleException.getMessage(GradleException.groovy:49)
>>>         at java.lang.Throwable.getLocalizedMessage(Throwable.java:
>>> 267)
>>>         at java.lang.Throwable.toString(Throwable.java:344)
>>>         at
>>> org
>>> .codehaus
>>> .groovy
>>> .runtime
>>> .InvokerInvocationException
>>> .getMessage(InvokerInvocationException.java:
>>> 40)
>>>         at
>>> ch
>>> .qos
>>> .logback
>>> .classic
>>> .spi
>>> .ThrowableInformation.extractStringRep(ThrowableInformation.java:48)
>>>         at
>>> ch
>>> .qos
>>> .logback
>>> .classic.spi.ThrowableInformation.<init>(ThrowableInformation.java:
>>> 22)
>>>         at
>>> ch.qos.logback.classic.spi.LoggingEvent.<init>(LoggingEvent.java:
>>> 111)
>>>         at
>>> ch
>>> .qos.logback.classic.Logger.buildLoggingEventAndAppend(Logger.java:
>>> 489)
>>>         at ch.qos.logback.classic.Logger.filterAndLog(Logger.java:
>>> 483)
>>>         at ch.qos.logback.classic.Logger.error(Logger.java:549)
>>>         at org.gradle.Main.main(Main.java:259)
>>>         ... 12 more
>>>
>>>
>>> Marko
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe from this list, please visit:
>>>
>>>    http://xircles.codehaus.org/manage_email
>>>
>>>
>>>
>>>
>>

---------------------------------------------------------------------
To unsubscribe from this list, please visit:

    http://xircles.codehaus.org/manage_email