NPE with one single Webtest.

View: New views
6 Messages — Rating Filter:   Alert me  

NPE with one single Webtest.

by Michael Habbert-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Some parts of this message have been removed. Learn more about Nabble's security policy.

Hi Folks,

 

I created one – smallest testcase to reproduce the failure – not ready yet!  –

And testing i got:

 ….

 

 

[…]

[groovyScript] DEBUG (com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl) - Removing all jobs.

[groovyScript]  INFO (com.canoo.webtest.ant.WebtestTask) - Finished executing webtest "Try to identify the failures of the next webtest version!" (C:\MocPortalP

rojects\AgsPortalTest\webtests\tests\upgradeTests\first_steps.xml:10: )

[groovyScript]  INFO (com.canoo.webtest.reporting.XmlReporter) - Writing report to C:\MocPortalProjects\AgsPortalTest\webtests\results\001_TryToIdentifyThe\WebT

estReport.xml

[groovyScript]  INFO (com.canoo.webtest.ant.WebtestTask) - Test report successfully created.

[groovyScript] [T: Thread-4]-- executed

[groovyScript] [T: Thread-4]-- Finished Try to identify the failures of the next webtest version! - C:\MocPortalProjects\AgsPortalTest\webtests\results

[groovyScript] Exception in thread "AWT-EventQueue-0" org.codehaus.groovy.runtime.InvokerInvocationException: java.lang.NullPointerException

[groovyScript] [T: Thread-4]-- 0 workers after removing myself

[groovyScript]  at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92)

[groovyScript] [T: Thread-4]-- no job for me anymore. Exiting

[groovyScript]  at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)

[groovyScript]  at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)

        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)

        at groovy.lang.Closure.call(Closure.java:279)

        at groovy.lang.Closure.call(Closure.java:274)

        at groovy.lang.Closure.run(Closure.java:355)

        at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)

        at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)

        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)

        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)

        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)

        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)

        at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)

Caused by: java.lang.NullPointerException

        at org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.callGetProperty(GetEffectivePojoPropertySite.java:36)

        at WebTestMonitorImpl$_notifyWebTestFinished_closure4.doCall(WebTestMonitor.groovy:132)

        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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)

        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)

        at org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)

        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)

        at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)

        at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:150)

        at WebTestMonitorImpl$_notifyWebTestFinished_closure4.doCall(WebTestMonitor.groovy)

        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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)

        ... 14 more

 

wt.htmlReports.init:     

[…]

--------------------------------------

 
 
Michael Habbert
Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany | www.key-work.de
Fon: +49-721-78203-269 | E-Mail: michael.habbert@... | Fax: +49-721-78203-10
 
Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim
Geschäftsführer: Andreas Stappert, Tobin Wotring


Re: NPE with one single Webtest.

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

with latest WebTest build?

Cheers,
Marc.
--
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

Habbert, Michael (Key-Work) wrote:

> Hi Folks,
>
>  
>
> I created one – smallest testcase to reproduce the failure – not ready
> yet!  –
>
> And testing i got:
>
>  ….
>
>  
>
>  
>
> […]
>
> [groovyScript] DEBUG
> (com.gargoylesoftware.htmlunit.javascript.background.JavaScriptJobManagerImpl)
> - Removing all jobs.
>
> [groovyScript]  INFO (com.canoo.webtest.ant.WebtestTask) - Finished
> executing webtest "Try to identify the failures of the next webtest
> version!" (C:\MocPortalP
>
> rojects\AgsPortalTest\webtests\tests\upgradeTests\first_steps.xml:10: )
>
> [groovyScript]  INFO (com.canoo.webtest.reporting.XmlReporter) - Writing
> report to
> C:\MocPortalProjects\AgsPortalTest\webtests\results\001_TryToIdentifyThe\WebT
>
> estReport.xml
>
> [groovyScript]  INFO (com.canoo.webtest.ant.WebtestTask) - Test report
> successfully created.
>
> [groovyScript] [T: Thread-4]-- executed
>
> [groovyScript] [T: Thread-4]-- Finished Try to identify the failures of
> the next webtest version! -
> C:\MocPortalProjects\AgsPortalTest\webtests\results
>
> [groovyScript] Exception in thread "AWT-EventQueue-0"
> org.codehaus.groovy.runtime.InvokerInvocationException:
> java.lang.NullPointerException
>
> [groovyScript] [T: Thread-4]-- 0 workers after removing myself
>
> [groovyScript]  at
> org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:92)
>
> [groovyScript] [T: Thread-4]-- no job for me anymore. Exiting
>
> [groovyScript]  at
> groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
>
> [groovyScript]  at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
>
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)
>
>         at groovy.lang.Closure.call(Closure.java:279)
>
>         at groovy.lang.Closure.call(Closure.java:274)
>
>         at groovy.lang.Closure.run(Closure.java:355)
>
>         at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:209)
>
>         at java.awt.EventQueue.dispatchEvent(EventQueue.java:597)
>
>         at
> java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:273)
>
>         at
> java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:183)
>
>         at
> java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:173)
>
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:168)
>
>         at
> java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:160)
>
>         at java.awt.EventDispatchThread.run(EventDispatchThread.java:121)
>
> Caused by: java.lang.NullPointerException
>
>         at
> org.codehaus.groovy.runtime.callsite.GetEffectivePojoPropertySite.callGetProperty(GetEffectivePojoPropertySite.java:36)
>
>         at
> WebTestMonitorImpl$_notifyWebTestFinished_closure4.doCall(WebTestMonitor.groovy:132)
>
>         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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
>
>         at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:234)
>
>         at
> org.codehaus.groovy.runtime.metaclass.ClosureMetaClass.invokeMethod(ClosureMetaClass.java:272)
>
>         at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:892)
>
>         at
> org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:66)
>
>         at
> org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:150)
>
>         at
> WebTestMonitorImpl$_notifyWebTestFinished_closure4.doCall(WebTestMonitor.groovy)
>
>         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.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
>
>         ... 14 more
>
>  
>
> wt.htmlReports.init:    
>
> […]
>
> --------------------------------------
>
>  
>  
> *Michael Habbert*
> Key-Work Consulting GmbH | Kriegsstr. 100 | 76133 Karlsruhe | Germany |
> www.key-work.de <http://www.key-work.de>
> Fon: +49-721-78203-269 | E-Mail: michael.habbert@...
> <mailto:michael.habbert@...> | Fax: +49-721-78203-10
>  
> Key-Work Consulting GmbH, Karlsruhe, HRB 108695, HRG Mannheim
> Geschäftsführer: Andreas Stappert, Tobin Wotring
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: NPE with one single Webtest.

by Michael Habbert-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Marc,

yes - i downloaded the latest build.zip from http://webtest.canoo.com.

cheers,

Michael

Marc Guillemot wrote:
> with latest WebTest build?
>
> Cheers,
> Marc.
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: NPE with one single Webtest.

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Michael,

you're running tests in parallel isn't it? Remember that it is still
experimental as nobody has worked on it since a very long time.
As always patches are welcome ;-)

Cheers,
Marc.
--
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

Michael Habbert wrote:

> Hi Marc,
>
> yes - i downloaded the latest build.zip from http://webtest.canoo.com.
>
> cheers,
>
> Michael
>
> Marc Guillemot wrote:
>> with latest WebTest build?
>>
>> Cheers,
>> Marc.
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: NPE with one single Webtest.

by John Spann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Speaking of parallel patches, I do have a pretty hefty patch that has gotten Webtest running rather smoothly in parallel mode.  As the number of tests grows, parallel mode is essential for maintaining a decent runtime.

I still need to build out test cases before its ready for a proper submission, but I can attach the patches to WT-477 (cross-population of step results) or WT-492 (dataDriven properties in parallel mode) for your review.  It would be nice to get someone else looking over the code for feedback/suggestions.

John Spann | Associate Software Engineer

Citrix Online Division
Citrix Systems, Inc.
6500 Hollister Avenue
Goleta, CA 93117 USA
www.citrix.com

Phone: 805.690.3489
Cell: 805.729.0008
Email: John.Spann@...


________________________________
From: Marc Guillemot <mguillemot@...>
Reply-To: <webtest@...>, Marc Guillemot <mguillemot@...>
Date: Thu, 2 Jul 2009 03:20:46 -0700
To: <webtest@...>
Subject: Re: [Webtest] NPE with one single Webtest.

Hi Michael,

you're running tests in parallel isn't it? Remember that it is still
experimental as nobody has worked on it since a very long time.
As always patches are welcome ;-)

Cheers,
Marc.
--
Web: http://www.efficient-webtesting.com
Blog: http://mguillem.wordpress.com

Michael Habbert wrote:

> Hi Marc,
>
> yes - i downloaded the latest build.zip from http://webtest.canoo.com.
>
> cheers,
>
> Michael
>
> Marc Guillemot wrote:
>> with latest WebTest build?
>>
>> Cheers,
>> Marc.
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest

Re: NPE with one single Webtest.

by Marc Guillemot :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,

thanks for the patch. I'll try to look at it... after my holiday.

Cheers,
Marc.

John Spann wrote:

> Speaking of parallel patches, I do have a pretty hefty patch that has gotten Webtest running rather smoothly in parallel mode.  As the number of tests grows, parallel mode is essential for maintaining a decent runtime.
>
> I still need to build out test cases before its ready for a proper submission, but I can attach the patches to WT-477 (cross-population of step results) or WT-492 (dataDriven properties in parallel mode) for your review.  It would be nice to get someone else looking over the code for feedback/suggestions.
>
> John Spann | Associate Software Engineer
>
> Citrix Online Division
> Citrix Systems, Inc.
> 6500 Hollister Avenue
> Goleta, CA 93117 USA
> www.citrix.com
>
> Phone: 805.690.3489
> Cell: 805.729.0008
> Email: John.Spann@...
>
>
> ________________________________
> From: Marc Guillemot <mguillemot@...>
> Reply-To: <webtest@...>, Marc Guillemot <mguillemot@...>
> Date: Thu, 2 Jul 2009 03:20:46 -0700
> To: <webtest@...>
> Subject: Re: [Webtest] NPE with one single Webtest.
>
> Hi Michael,
>
> you're running tests in parallel isn't it? Remember that it is still
> experimental as nobody has worked on it since a very long time.
> As always patches are welcome ;-)
>
> Cheers,
> Marc.
> --
> Web: http://www.efficient-webtesting.com
> Blog: http://mguillem.wordpress.com
>
> Michael Habbert wrote:
>> Hi Marc,
>>
>> yes - i downloaded the latest build.zip from http://webtest.canoo.com.
>>
>> cheers,
>>
>> Michael
>>
>> Marc Guillemot wrote:
>>> with latest WebTest build?
>>>
>>> Cheers,
>>> Marc.
>> _______________________________________________
>> WebTest mailing list
>> WebTest@...
>> http://lists.canoo.com/mailman/listinfo/webtest
>>
>
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>
> _______________________________________________
> WebTest mailing list
> WebTest@...
> http://lists.canoo.com/mailman/listinfo/webtest
>
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest