emailMessageContentFilter failure Illegal new current response - resend with smaller attachment

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

emailMessageContentFilter failure Illegal new current response - resend with smaller attachment

by Tim Pezarro :: 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.
emailMessageContentFilter failure Illegal new current response - resend with smaller attachment == Resend with smaller Attachment ==


Hello,

I am trying to use emailMessageContentFilter

Here is my environment:

OS Ubuntu 8.10

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

Created using Canoo Webtest (R_1758). Report created at 30.09.2009 23:36

These are the error messages:

Message
Unexpected exception caught: java.lang.RuntimeException

java.lang.RuntimeException: Illegal new current response

Prior to the emailMessageContentFilter I successfully execute several of the email steps. See attached html file.


It appears that this is a known issue as described in http://webtest-community.canoo.com/jira/browse/WT-325, however that error listed there is a null pointer exception, not Illegal current response. This is the the thread where I found this information: http://lists.canoo.com/pipermail/webtest/2007q3/008673.html

Also, I believe that Karel Soupal reported that it was fixed in subsequent versions (cannot find that thread at this moment), however, http://webtest-community.canoo.com/jira/browse/WT-325 remains open but for WebTest 2.5 and I am running WebTest 3.0.

What do I need to do to get emailMessageContentFilter to work?

Thanks for your help,

Tim Pezarro
Manager, Web Services
Corporate Marketing
tim_pezarro@...
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
100-2700 Production Way
Burnaby, BC, Canada
V5A 4X1








Test results for:

x SaveMail

Test started at Wed Sep 30 23:35:51 PDT 2009, lasting 00:00:41 (40505 ms).
Source: /home/pezarro/canoo/tim/tests/mail/save.xml:5:
Base URL (used by invoke steps with a relative URL): http://localhost/
#ResultNameParameterDuration
  1okemailSetConfig
delay5
passwordxxxxxxx
serverpop.mail.yahoo.ca
typepop3
usernameyyyyy
1
  2okemailStoreMessageCount
propertySubjectMail
subjectSequenceNumber0001
00:00:07
  3okverifyProperty
Test mail if there are 1 to 9 emails with SequenceNumber0001 in subject
nameSubjectMail
regextrue
text[1-9]
4
  4okemailStoreMessageId
propertymessage_to_save
subjectSequenceNumber0001
00:00:07
  5okecho
messagemessage id is 2
1
  6okemailStorePartCount
messageId2
propertypart_count
00:00:07
  7okecho
messagepart_count equals 2
2
  8okemailStoreMessageType
messageId2
propertymessage_type
00:00:07
  9okecho
messagemessage_type equals MultiPart
1
  10okemailStoreHeader
headerNameFrom
messageId2
propertymessage_header
00:00:06
  11okecho
messagethe message header value is "Tim Pezarro" <Tim_Pezarro@...>
1
  12x
Error
emailMessageContentFilter
messageId2
partIndex1
00:00:07
  13ostoreRegex
group1
propertyrx.email.txt
texthttp://www.pmc-sierra.com/cgi-bin/public/extranet/verify.pl?user=([.]{21})
 
  14oecho
messagethe value stored is #{rx.email.txt}
 

Error

Message

Unexpected exception caught: java.lang.RuntimeException

Location

/home/pezarro/canoo/tim/tests/mail/save.xml (line: 37)

Exception

com.canoo.webtest.engine.StepExecutionException

Show Stacktrace

/home/pezarro/canoo/tim/tests/mail/save.xml:37: Unexpected exception caught: java.lang.RuntimeException
	at com.canoo.webtest.steps.StepUtil.handleException(StepUtil.java:120)
	at com.canoo.webtest.steps.Step.handleException(Step.java:387)
	at com.canoo.webtest.steps.Step.execute(Step.java:118)
	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)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
	at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
	at com.canoo.webtest.steps.Step.execute(Step.java:103)
	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.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at com.canoo.webtest.ant.WebtestTask.executeSteps(WebtestTask.java:236)
	at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:208)
	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)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	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)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.apache.tools.ant.Main.runBuild(Main.java:698)
	at org.apache.tools.ant.Main.startAnt(Main.java:199)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)
Caused by: java.lang.RuntimeException: Illegal new current response
	at com.canoo.webtest.util.Checker.assertTrue(Checker.java:17)
	at com.canoo.webtest.util.Checker.assertFalse(Checker.java:12)
	at com.canoo.webtest.engine.WebClientContext.saveResponseAsCurrent(WebClientContext.java:256)
	at com.canoo.webtest.engine.WebClientContext.saveResponseAsCurrent(WebClientContext.java:246)
	at com.canoo.webtest.engine.Context.saveResponseAsCurrent(Context.java:276)
	at com.canoo.webtest.plugins.emailtest.AbstractEmailFilter.performOperation(AbstractEmailFilter.java:32)
	at com.canoo.webtest.plugins.emailtest.AbstractMessageOperationStep.doExecute(AbstractMessageOperationStep.java:53)
	at com.canoo.webtest.steps.Step.execute(Step.java:103)
	... 45 more
--- Nested Exception ---
java.lang.RuntimeException: Illegal new current response
	at com.canoo.webtest.util.Checker.assertTrue(Checker.java:17)
	at com.canoo.webtest.util.Checker.assertFalse(Checker.java:12)
	at com.canoo.webtest.engine.WebClientContext.saveResponseAsCurrent(WebClientContext.java:256)
	at com.canoo.webtest.engine.WebClientContext.saveResponseAsCurrent(WebClientContext.java:246)
	at com.canoo.webtest.engine.Context.saveResponseAsCurrent(Context.java:276)
	at com.canoo.webtest.plugins.emailtest.AbstractEmailFilter.performOperation(AbstractEmailFilter.java:32)
	at com.canoo.webtest.plugins.emailtest.AbstractMessageOperationStep.doExecute(AbstractMessageOperationStep.java:53)
	at com.canoo.webtest.steps.Step.execute(Step.java:103)
	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)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at com.canoo.webtest.ant.TestStepSequence.executeSteps(TestStepSequence.java:43)
	at com.canoo.webtest.ant.TestStepSequence.doExecute(TestStepSequence.java:31)
	at com.canoo.webtest.steps.Step.execute(Step.java:103)
	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.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at com.canoo.webtest.ant.WebtestTask.executeSteps(WebtestTask.java:236)
	at com.canoo.webtest.ant.WebtestTask.execute(WebtestTask.java:208)
	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)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
	at org.apache.tools.ant.helper.SingleCheckExecutor.executeTargets(SingleCheckExecutor.java:38)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:416)
	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)
	at org.apache.tools.ant.dispatch.DispatchUtils.execute(DispatchUtils.java:105)
	at org.apache.tools.ant.Task.perform(Task.java:348)
	at org.apache.tools.ant.Target.execute(Target.java:357)
	at org.apache.tools.ant.Target.performTasks(Target.java:385)
	at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1329)
	at org.apache.tools.ant.Project.executeTarget(Project.java:1298)
	at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExecutor.java:41)
	at org.apache.tools.ant.Project.executeTargets(Project.java:1181)
	at org.apache.tools.ant.Main.runBuild(Main.java:698)
	at org.apache.tools.ant.Main.startAnt(Main.java:199)
	at org.apache.tools.ant.launch.Launcher.run(Launcher.java:257)
	at org.apache.tools.ant.launch.Launcher.main(Launcher.java:104)


Re: emailMessageContentFilter failure Illegal new current response - resend with smaller attachment

by John Spann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Tim,

It's been a while since I had an e-mail issue, so I can't say for sure if this is the same problem, but looking at your attachment I'm assuming it is.  There seems to be a bug in the way Webtest makes email content its current response.  It requires that there be a previous response in place.  Our fix was to add a dummy invoke as the first line in the test.  Have it request an existing page on your server and the e-mail steps should start working.

Cheers,

John Spann

Software Engineer
Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117
T: +1 805 690 3489 | M: +1 805 729 0008
john.spann@...<x-msg://29/john.spann@...>
http://www.citrixonline.com<http://www.citrixonline.com/>


[cid:image001.png@...]



Access Your PC From Anywhere: www.gotomypc.com<http://www.gotomypc.com/>
Online Meetings Made Easy: www.gotomeeting.com<http://www.gotomeeting.com/>
Remote Support Made Easy: www.gotoassist.com<http://www.gotoassist.com/>
Web Events Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/>





On Oct 1, 2009, at 10:56 AM, Tim Pezarro wrote:

== Resend with smaller Attachment ==

Hello,

I am trying to use emailMessageContentFilter

Here is my environment:

OS Ubuntu 8.10

java version "1.6.0_10"
Java(TM) SE Runtime Environment (build 1.6.0_10-b33)
Java HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)

Created using Canoo Webtest (R_1758). Report created at 30.09.2009 23:36

These are the error messages:

Message
Unexpected exception caught: java.lang.RuntimeException

java.lang.RuntimeException: Illegal new current response

Prior to the emailMessageContentFilter I successfully execute several of the email steps. See attached html file.


It appears that this is a known issue as described in http://webtest-community.canoo.com/jira/browse/WT-325, however that error listed there is a null pointer exception, not Illegal current response. This is the the thread where I found this information: http://lists.canoo.com/pipermail/webtest/2007q3/008673.html

Also, I believe that Karel Soupal reported that it was fixed in subsequent versions (cannot find that thread at this moment), however, http://webtest-community.canoo.com/jira/browse/WT-325 remains open but for WebTest 2.5 and I am running WebTest 3.0.

What do I need to do to get emailMessageContentFilter to work?

Thanks for your help,

Tim Pezarro
Manager, Web Services
Corporate Marketing
tim_pezarro@...<mailto:tim_pezarro@...>
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
100-2700 Production Way
Burnaby, BC, Canada
V5A 4X1








<WebTestReport.html>



image001.png (5K) Download Attachment

RE: emailMessageContentFilter failure Illegal new current response - resend with smaller attachment

by Tim Pezarro :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

John,

Thanks very much for your reply. I am please to report that your memory
is correct. Your fixed worked. For future webtest users here is the
entire working webtest:

<?xml version="1.0"?>
<!DOCTYPE project SYSTEM "../../dtd/Project.dtd">
<project default="SaveMail">
  <target name="SaveMail">
    <webtest name="SaveMail">
      <config
        haltonerror="false"
        haltonfailure="false">
          <option name="ThrowExceptionOnFailingStatusCode"
value="false"/>
      </config>  
      <steps>
        <invoke url="${bastion.prefix}"/>
        <verifyTitle text="PMC-Sierra - Broadband Communications and
Storage Chips"/>
        <emailSetConfig server="${mailserver}" type="${servertype}"
          password="${mpmc.mail.password}"
username="${mypmc.mail.username}" delay="5"/>
        <emailStoreMessageCount subject="${subject}"
          property="SubjectMail"/>
        <verifyProperty description="Test mail if there are 1 to 9
emails with ${subject} in subject"
          name="SubjectMail"
          regex="true"
          text="[1-9]" />
        <emailStoreMessageId subject="${subject}"
          property="message_to_save"/>
        <echo message="message id is #{message_to_save}" />
        <emailStorePartCount messageId="#{message_to_save}"
          property="part_count" />
        <echo message="part_count equals #{part_count}" />
        <emailStoreMessageType
          messageId="#{message_to_save}"
          property="message_type"/>
        <echo message="message_type equals #{message_type}" />
        <emailStoreHeader
          headerName="From"
          messageId="#{message_to_save}"
          property="message_header"/>
        <echo message="the message header value is #{message_header}" />
        <emailMessageContentFilter
          messageId="#{message_to_save}"/>
        <storeRegEx
          group="1"
          property="rx.email.txt"
 
text="http\://www\.pmc\-sierra\.com/cgi\-bin/public/extranet/verify\.pl\
?user=(.{21})"/>
        <echo message="the value stored is #{rx.email.txt}" />
      </steps>
    </webtest>
  </target>
</project>

Cheers,

Tim Pezarro
Manager, Web Services
tim_pezarro@...
Phone: +1-604-415-6044
Cell: +1-604-762-1000
Fax: +1-604-415-6602
PMC-Sierra, Inc.
100-2700 Production Way
Burnaby, BC, Canada
V5A 4X1



 

> -----Original Message-----
> From: John Spann [mailto:John.Spann@...]
> Sent: Thursday, October 01, 2009 11:29 AM
> To: webtest@...; Tim Pezarro
> Subject: Re: [Webtest] emailMessageContentFilter failure
> Illegal new current response - resend with smaller attachment
>
> Hi Tim,
>
> It's been a while since I had an e-mail issue, so I can't say
> for sure if this is the same problem, but looking at your
> attachment I'm assuming it is.  There seems to be a bug in
> the way Webtest makes email content its current response.  It
> requires that there be a previous response in place.  Our fix
> was to add a dummy invoke as the first line in the test.  
> Have it request an existing page on your server and the
> e-mail steps should start working.
>
> Cheers,
>
> John Spann
>
> Software Engineer
> Citrix Online | 6500 Hollister Avenue | Goleta, CA 93117
> T: +1 805 690 3489 | M: +1 805 729 0008
> john.spann@...<x-msg://29/john.spann@...>
> http://www.citrixonline.com<http://www.citrixonline.com/>
>
>
> [cid:image001.png@...]
>
>
>
> Access Your PC From Anywhere:
> www.gotomypc.com<http://www.gotomypc.com/>
> Online Meetings Made Easy:
> www.gotomeeting.com<http://www.gotomeeting.com/>
> Remote Support Made Easy:
> www.gotoassist.com<http://www.gotoassist.com/>
> Web Events Made Easy: www.gotowebinar.com<http://www.gotowebinar.com/>
>
>
>
>
>
> On Oct 1, 2009, at 10:56 AM, Tim Pezarro wrote:
>
> == Resend with smaller Attachment ==
>
> Hello,
>
> I am trying to use emailMessageContentFilter
>
> Here is my environment:
>
> OS Ubuntu 8.10
>
> java version "1.6.0_10"
> Java(TM) SE Runtime Environment (build 1.6.0_10-b33) Java
> HotSpot(TM) Client VM (build 11.0-b15, mixed mode, sharing)
>
> Created using Canoo Webtest (R_1758). Report created at
> 30.09.2009 23:36
>
> These are the error messages:
>
> Message
> Unexpected exception caught: java.lang.RuntimeException
>
> java.lang.RuntimeException: Illegal new current response
>
> Prior to the emailMessageContentFilter I successfully execute
> several of the email steps. See attached html file.
>
>
> It appears that this is a known issue as described in
> http://webtest-community.canoo.com/jira/browse/WT-325,
> however that error listed there is a null pointer exception,
> not Illegal current response. This is the the thread where I
> found this information:
> http://lists.canoo.com/pipermail/webtest/2007q3/008673.html
>
> Also, I believe that Karel Soupal reported that it was fixed
> in subsequent versions (cannot find that thread at this
> moment), however,
> http://webtest-community.canoo.com/jira/browse/WT-325 remains
> open but for WebTest 2.5 and I am running WebTest 3.0.
>
> What do I need to do to get emailMessageContentFilter to work?
>
> Thanks for your help,
>
> Tim Pezarro
> Manager, Web Services
> Corporate Marketing
> tim_pezarro@...<mailto:tim_pezarro@...>
> Phone: +1-604-415-6044
> Cell: +1-604-762-1000
> Fax: +1-604-415-6602
> PMC-Sierra, Inc.
> 100-2700 Production Way
> Burnaby, BC, Canada
> V5A 4X1
>
>
>
>
>
>
>
>
> <WebTestReport.html>
>
>
_______________________________________________
WebTest mailing list
WebTest@...
http://lists.canoo.com/mailman/listinfo/webtest