Forum Discussion

mng's avatar
mng
Contributor
14 years ago

Error 302 return and made blocker

hi,

I have an error 302 returned for an URI. This URI expects the original will direct to other with result return. Right now, I have the result returned but error 302 made somehow blocking to the next.

Can this error be removed so that no blocking to the next?

Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "POST /XXX/token HTTP/1.1[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "Host: XXX [\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "Content-Length: 0[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "Server: Apache-Coyote/1.1[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "requestId: tul1cpgdapp1:gwy:2089j[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "Date: Wed, 30 Mar 2011 08:39:22 GMT[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "Content-Type: application/xml;charset=utf-8[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "Content-Length: 366[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "<?xml version="1.0" encoding="UTF-8"?>[\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:<< "<SessionToken xsi:schemaLocation="http://XXX.wadl /XXX.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://XXX.wadl">gJGUoAABCpc8uwEvBerEY21pZGdhcmQgVkwmwmL8tTwZtyzYwYfuaoG7DN_VMYk9</SessionToken>[\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "GET /XXX HTTP/1.1[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "session: gJGUoAABCpc8uwEvBerEY21pZGdhcmQgVkwmwmL8tTwZtyzYwYfuaoG7DN_VMYk9[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "Host: XXX[\r][\n]"
Wed Mar 30 16:39:22 CST 2011:DEBUG:>> "[\r][\n]"
Wed Mar 30 16:39:26 CST 2011:DEBUG:<< "HTTP/1.1 302 Moved Temporarily[\r][\n]"
Wed Mar 30 16:39:26 CST 2011:DEBUG:<< "HTTP/1.1 302 Moved Temporarily[\r][\n]"
Wed Mar 30 16:39:26 CST 2011:DEBUG:<< "Server: Apache-Coyote/1.1[\r][\n]"
  • Hi!

    I think there should be a Location header for the 302 response, so soapUI knows where to go to.. is it missing or just missing from your post?

    regards!

    /Ole
    eviware.com
  • mng's avatar
    mng
    Contributor
    here you are.
    in fact i have the re-direct content received. but the error 302 happened made a blocker without success.

    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "POST {token} HTTP/1.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Content-Type: application/x-www-form-urlencoded[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Host: {domain}[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Content-Length: 0[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Server: Apache-Coyote/1.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "requestId: 21ui3[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Date: Thu, 31 Mar 2011 09:42:03 GMT[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Content-Type: application/xml;charset=utf-8[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Content-Length: 366[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "<?xml version="1.0" encoding="UTF-8"?>[\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "<SessionToken xsi:schemaLocation="{wsdl} {wsd}" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="{URI}">{token}</SessionToken>[\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "GET {URI} HTTP/1.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "session: {token}[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Host: {domain}[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "HTTP/1.1 302 Moved Temporarily[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "HTTP/1.1 302 Moved Temporarily[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Server: Apache-Coyote/1.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "requestId: 20p9k[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Date: Thu, 31 Mar 2011 09:42:04 GMT[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Location: {URI}[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Content-Type: text/plain;charset=utf-8[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Content-Length: 0[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "X-OSSProxy: OSSProxy 1.3.328.330 (Build 328.330 Win32 en-us)(Nov 8 2010 14:15:19) [\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "Connection: keep-alive[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:<< "[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "GET {URI} HTTP/1.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "session: {token}[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "Host: {domain}[\r][\n]"
    Thu Mar 31 17:41:56 CST 2011:DEBUG:>> "[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Content-Type: image/jpeg[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Accept-Ranges: bytes[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "ETag: "379095b14d81cb1:628"[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Server: Microsoft-IIS/6.0[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Age: 111618[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Date: Thu, 31 Mar 2011 09:42:05 GMT[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Last-Modified: Thu, 11 Nov 2010 03:08:20 GMT[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Content-Length: 49193[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "X-OSSProxy: OSSProxy 1.3.328.330 (Build 328.330 Win32 en-us)(Nov 8 2010 14:15:19) [\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "Connection: keep-alive[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "[\r][\n]"
    Thu Mar 31 17:41:57 CST 2011:DEBUG:<< "[0xff][0xd8][0xff][0xe0][0x0][0x10]JFIF[0x0][0x1][0x0][0x1][0x0]`.....
  • Hi,

    hmm.. exactly what do you mean by "blocking to the next".. What actually happens and what do you expect to happen instead?

    regards!

    /Ole
    eviware.com
  • mng's avatar
    mng
    Contributor
    since when project running on Hudson, this error 302 create error on the log. As a result my test is failed finally, instead of passed on soapUI.
  • mng wrote:
    since when project running on Hudson, this error 302 create error on the log. As a result my test is failed finally, instead of passed on soapUI.

    Do you mean that you want soapUI to follow the redirect address provided in the 302 message (make the same request to the new location)?

    /Henrik
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    Hi Henrik,
    When we run this test case interactively via soapUI GUI, the tests passes but running this test via hudson seems to make the test fail.

    This is output via soapui GUI http console

    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "GET /midgard/6degrees/v1/image/program/cosmo/12186782;w=500;h=500?TransactionID=b659a8da-4a72-4e2c-a445-f5cf0a7817cd_image HTTP/1.1[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "Connection: close[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "session: gJGUoAABCsgFDwEvEYt-J21pZGdhcmQgogL-_590wNmGB7xyaVD0cTP8WbV9cl6x[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "Host: stg-g.ceidd.net[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "HTTP/1.1 302 Moved Temporarily[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "HTTP/1.1 302 Moved Temporarily[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "requestId: tul1cpgsapp2:gwy:1wrp5[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Date: Fri, 01 Apr 2011 14:52:45 GMT[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Location: http://<servername>/RichMediaAssets/Open/Images/24843023438_1210thetown1.jpg?Partner=cpsTVGRome_p4@tvguide.com[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Content-Type: text/plain;charset=utf-8[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Content-Length: 0[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Connection: close[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Server: Rovi-HTTP/1.1[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "GET /RichMediaAssets/Open/Images/2484308_12 ... vguide.com HTTP/1.1[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "Connection: close[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "Accept-Encoding: gzip,deflate[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "session: gJGUoAABCsgFDwEvEYt-J21pZGdhcmQgogL-_590wNmGB7xyaVD0cTP8WbV9cl6x[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "User-Agent: Jakarta Commons-HttpClient/3.1[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "Host: cps-static.macrovision.com[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:>> "[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "HTTP/1.1 200 OK[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Content-Type: image/jpeg[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Accept-Ranges: bytes[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "ETag: "2f52e8f5f884cb1:62a"[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Server: Microsoft-IIS/6.0[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "X-Powered-By: ASP.NET[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Age: 859[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Date: Fri, 01 Apr 2011 14:52:45 GMT[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Last-Modified: Mon, 15 Nov 2010 19:11:52 GMT[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Content-Length: 50944[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "Connection: close[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "[\r][\n]"
    Fri Apr 01 07:52:54 PDT 2011:DEBUG:<< "[0xff][0xd8][0xff][0xe0][0x0][0x10]JFIF[0x0][0x1][0x0][0x1][0x0]`[0x0]`[0x0][0x0][0xff][0xfe][0x0][0x1f]LEAD Technologies Inc. V1.01[0x0][0xff][0xdb][0x0][0x84][0x0][0x5][0x5][0x5][0x8][0x5][0x8][\r][0x8][0x8][\r][\r][0x9][0x9][0x9][\r][0xe][0xc][0xc][0xc][0xc][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0xe][0x1][0x5][0x8][0x8][\n]"


    output as seen via hudson
    ----------------- Messages ------------------------------
    [Check for existance of [data]] null/empty response
    [Check for existance of [@contentType]] null/empty response

    ----------------- Properties ------------------------------
    StatusCode: 302
    Method: GET
    HTTP Version: HTTP/1.1
    Endpoint: http://<server>
    URL: http://<server>/midgard/6degrees/v1/image/program/cosmo/12186782;w=500;h=500?TransactionID=7f23befb-9137-4f73-86a3-a919a0a4cf54_image

    ---------------- Request ---------------------------
    Host: <server>
    session: [gJGUoAABCsgH2AEvEY3TVG1pZGdhcmQgWZJ3IcBT4hqysIoMuGRC9ZYFF6EzrKVD]
    User-Agent: [Jakarta Commons-HttpClient/3.1]

    - missing request / garbage collected -

    ---------------- Response --------------------------
    Date: [Fri, 01 Apr 2011 14:53:17 GMT]
    requestId: [tul1cpgsapp1:gwy:1xqcf]
    #status#: [HTTP/1.1 302 Moved Temporarily]
    Content-Length: [0]
    Location: [http://<server>/RichMediaAssets/Open/Images/2484308_1210thetown1.jpg?Partner=cpsTVGRome_p4@tvguide.com]
    Content-Type: [text/plain;charset=utf-8]
    Server: [Rovi-HTTP/1.1]
    Check for existance of [@contentType] in [image] failed;
    [null/empty response]
    Status: FAILED
    Time Taken: 178
    Size: 0
    Timestamp: Fri Apr 01 07:53:19 PDT 2011
    TestStep: image
  • Hi,

    hmm.. could there be some global HTTP-related setting that is missing when running via Hudson? Are you specifying the soapui-settings.xml as an argument? If not, could you try that (to be the same as the one used by the GUI)?

    regards,

    /Ole
    eviware.com
  • alibaba82's avatar
    alibaba82
    Super Contributor
    i think i figured out the issue. the hudson instance is using a older version of soapui 3.6 which seems to have this issue. the current soapui does not have this issue.