https://issues.apache.org/bugzilla/show_bug.cgi?id=42996



--- Comment #32 from Filip Hanik <fha...@apache.org> 2009-08-06 06:02:16 PDT ---
(In reply to comment #31)
> Hi Filip,
> 
> If you look at the source code in HelloWorldResource.java, you will see that
> "ERROR (2)" is displayed by the PUT method "store()" and not the GET method
> "represent()".

ok, I will check this out. If your system thinks youre getting a PUT when
you're actually getting a GET

> 
> The fact that it 'appears' to come after the GET trace in the console is just
> an issue with the console as the requests are multi-threaded.

its not, the run1.txt file contains one single connection and the requests on
that connection. I filtered out all the other connections that were making
requests.

> 
> The HTTP GET method invokes the annotated represent() method which returns a
> static "hello, world" string.
> 
> The HTTP PUT method invokes the annotated store(Representation) method, with
> the HTTP entity as a parameter and sets the status to 400 only if the entity 
> is
> missing or is empty.
> 
> I've looked at the wireshark log but the content seems to be mixed up a 
> little,

its not, the run1.txt file contains one single connection and the requests on
that connection. I filtered out all the other connections that were making
requests.

> so we don't clearly see the order of requests and responses.

with wireshark we do, since a connection in HTTP is request/response based. A
response always follows a request.

> 
> Hope this helps,

I will take a look again and see if I can trace down more of what is going on.

> Jerome

-- 
Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to