Marc, Thanks for looking into this.
-- Jonathan Rosenberg Founder & Executive Director, Tabby's Place http://www.tabbysplace.org/ -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Marc Guillemot Sent: Monday, August 30, 2010 7:47 AM To: [email protected] Subject: Re: [Webtest] java.lang.NullPointerException During <emailStoreMessageId> Hi, this NPE should be fixed in next WebTest build. The problem seems to be that the email you're verifying has no "To" header. Cheers, Marc. -- Blog: http://mguillem.wordpress.com Le 19/08/2010 16:09, Jonathan Rosenberg a écrit : > I have a Webtest file that starts by checking for a bunch of email messages > that should have been delivered. On attempting to get the id for the first > message, Webtest exits with a java.lang.NullPointerException. > > Here is the task step in question: > > <emailStoreMessageId > property='my.property' > to='info${[email protected]' > /> > > Here's what I've done so far: > > 1) I checked the Webtest HTML output (to get the expanded TO: field)& the > message in question is available on the mail server. > 2) I upgraded to the latest Webtest snapshot& the problem still happens. > 3) I have used the emailStoreMessageId plenty of time before without > difficulty. Not sure why I'm having a problem at this time. > > Beginning of stack trace is below. > > Any ideas? > > -=-=-=-=-=-=-= > > java.lang.NullPointerException > at > com.canoo.webtest.plugins.emailtest.AbstractSelectStep.doMatchMultiple(Abstr > actSelectStep.java:163) > at > com.canoo.webtest.plugins.emailtest.AbstractSelectStep.messageMatches(Abstra > ctSelectStep.java:137) > at > com.canoo.webtest.plugins.emailtest.AbstractSelectStep.retrieveMatchingMessa > ges(AbstractSelectStep.java:112) > at > com.canoo.webtest.plugins.emailtest.EmailStoreMessageId.processContent(Email > StoreMessageId.java:49) > at > com.canoo.webtest.plugins.emailtest.AbstractStoreStep.doExecute(AbstractStor > eStep.java:56) > at com.canoo.webtest.steps.Step.execute(Step.java:102) > at > org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:288) > at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl > .java:25) > at java.lang.reflect.Method.invoke(Method.java:597) > . . . . . > > > -- > Jonathan Rosenberg > Founder& Executive Director, Tabby's Place > http://www.tabbysplace.org/ _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest _______________________________________________ WebTest mailing list [email protected] http://lists.canoo.com/mailman/listinfo/webtest

