users@glassfish.java.net

Vaild HTTP response from glassfish 2.1 look invalid with Wireshark

From: <glassfish_at_javadesktop.org>
Date: Fri, 16 Oct 2009 04:33:59 PDT

We have encountered a strange problem after installing glassfish v2.1 b60e.
All access logs look fine and the clients receive HTTP response code 200. But then we got some complains that there is some trouble with the response,
the packages seem to be in very strange order. So my question would be if someone other has seen this problem and how it was solved.

This is a hex dump seen in Wireshark with invalid content (or a part of it):

000003D0 53 74 61 74 75 73 3e 45 78 70 69 72 65 64 3c 2f Status>E xpired</
000003E0 4d 4d 53 74 61 74 75 73 3e 0d 0a 3c 2f 44 65 6c MMStatus >..</Del
000003F0 69 76 65 72 79 52 65 70 6f 72 74 52 65 71 3e 0d iveryRep ortReq>.
00000400 0a 3c 2f 65 6e 76 3a 42 6f 64 79 3e 0d 0a 3c 2f .</env:B ody>..</
00000410 65 6e 76 3a 45 6e 76 65 6c 6f 70 65 3e 0d 0a env:Enve lope>..
                                                                              00000000 48 54 54 50 2f 31 2e 31 20 HTTP/1.1
                                                                              00000009 32 30 30 200
                                                                              0000000C 20 4f 4b 0d 0a 58 2d 50 6f 77 65 72 65 64 2d 42 OK..X-P owered-B
                                                                              0000001C 79 3a 20 53 65 72 76 6c 65 74 2f 32 2e 35 0d 0a y: Servl et/2.5..
                                                                              0000002C 53 65 72 76 65 72 3a 20 53 75 6e 20 47 6c 61 73 Server: Sun Glas
                                                                              0000003C 73 46 69 73 68 20 45 6e 74 65 72 70 72 69 73 65 sFish En terprise
                                                                              0000004C 20 53 65 72 76 65 72 20 76 32 2e 31 0d 0a 41 63 Server v2.1..Ac
                                                                              0000005C 63 65 70 74 3a 20 74 65 78 74 2f 78 6d 6c 2c 20 cept: te xt/xml,
                                                                              0000006C 74 65 78 74 2f 68 74 6d 6c 2c 20 69 6d 61 67 65 text/htm l, image
                                                                              0000007C 2f 67 69 66 2c 20 69 6d 61 67 65 2f 6a 70 65 67 /gif, im age/jpeg
                                                                              0000008C 2c 20 2a 3b 20 71 3d 2e 32 2c 20 2a 2f 2a 3b 20 , *; q=. 2, */*;
                                                                              0000009C 71 3d 2e 32 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 q=.2..Co ntent-Ty
                                                                              000000AC 70 65 3a 20 74 65 78 74 2f 78 6d 6c 3b 63 68 61 pe: text /xml;cha
                                                                              000000BC 72 73 65 74 3d 75 74 66 2d 38 0d 0a 43 6f 6e 74 rset=utf -8..Cont
                                                                              000000CC 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 35 39 33 0d ent-Leng th: 593.
                                                                              000000DC 0a 44 61 74 65 3a 20 46 72 69 2c 20 31 36 20 4f .Date: F ri, 16 O
                                                                              000000EC 63 74 20 32 30 30 39 20 30 39 3a 32 35 3a 32 30 ct 2009 09:25:20
                                                                              000000FC 20 47 4d 54 0d 0a 53 65 72 76 65 72 3a 20 53 75 GMT..Se rver: Su
                                                                              0000010C 6e 20 47 6c 61 73 73 46 69 73 68 20 45 6e 74 65 n GlassF ish Ente
                                                                              0000011C 72 70 72 69 73 65 20 53 65 72 76 65 72 20 76 32 rprise S erver v2
                                                                              0000012C 2e 31 0d 0a 0d 0a 3c 3f 78 6d 6c 20 76 65 72 73 .1....<? xml vers
                                                                              0000013C 69 6f 6e 3d 22 31 2e 30 22 20 65 6e 63 6f 64 69 ion="1.0 " encodi
                                                                              0000014C 6e 67 3d 22 75 74 66 2d 38 22 20 3f 3e 3c 53 4f ng="utf- 8" ?><SO
                                                                              0000015C 41 50 2d 45 4e 56 3a 45 6e 76 65 6c 6f 70 65 20 AP-ENV:E nvelope
                                                                              0000016C 78 6d 6c 6e 73 3a 53 4f 41 50 2d 45 4e 56 3d 22 xmlns:SO AP-ENV="
                                                                              0000017C 68 74 74 70 3a 2f 2f 73 63 68 65 6d 61 73 2e 78 http://s chemas.x
                                                                              0000018C 6d 6c 73 6f 61 70 2e 6f 72 67 2f 73 6f 61 70 2f mlsoap.o rg/soap/
                                                                              0000019C 65 6e 76 65 6c 6f 70 65 2f 22 3e 3c 53 4f 41 50 envelope /"><SOAP
                                                                              000001AC 2d 45 4e 56 3a 48 65 61 64 65 72 3e 3c 54 72 61 -ENV:Hea der><Tra
                                                                              000001BC 6e 73 61 63 74 69 6f 6e 49 44 20 78 6d 6c 6e 73 nsaction ID xmlns
                                                                              000001CC 3d 22 68 74 74 70 3a 2f 2f 77 77 77 2e 33 67 70 ="http:/ /www.3gp
                                                                              000001DC 70 2e 6f 72 67 2f 66 74 70 2f 53 70 65 63 73 2f p.org/ft p/Specs/
                                                                              000001EC 61 72 63 68 69 76 65 2f 32 33 5f 73 65 72 69 65 archive/ 23_serie
                                                                              000001FC 73 2f 32 33 2e 31 34 30 2f 73 63 68 65 6d 61 2f s/23.140 /schema/
***********

This is part of hex dump in Wireshark (valid content):

00000120 62 63 34 39 61 34 30 35 38 35 33 61 64 65 30 65 bc49a405 853ade0e
00000130 64 37 66 35 64 36 33 35 63 35 65 34 35 32 39 31 d7f5d635 c5e45291
00000140 39 36 34 36 36 36 39 61 34 64 35 64 37 34 35 35 9646669a 4d5d7455
00000150 35 35 39 35 31 33 32 36 35 31 2c 31 31 36 34 37 55951326 51,11647
00000160 36 32 33 0d 0a 623..
                                                                              00000000 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK.
                                                                              00000010 0a 58 2d 50 6f 77 65 72 65 64 2d 42 79 3a 20 53 .X-Power ed-By: S
                                                                              00000020 65 72 76 6c 65 74 2f 32 2e 35 0d 0a 53 65 72 76 ervlet/2 .5..Serv
                                                                              00000030 65 72 3a 20 53 75 6e 20 4a 61 76 61 20 53 79 73 er: Sun Java Sys
                                                                              00000040 74 65 6d 20 41 70 70 6c 69 63 61 74 69 6f 6e 20 tem Appl ication
                                                                              00000050 53 65 72 76 65 72 20 39 2e 31 0d 0a 45 78 70 69 Server 9 .1..Expi
                                                                              00000060 72 65 73 3a 20 20 4d 6f 6e 2c 20 32 36 20 4a 75 res: Mo n, 26 Ju
                                                                              00000070 6c 20 31 39 39 37 20 30 35 3a 30 30 3a 30 30 20 l 1997 0 5:00:00
                                                                              00000080 47 4d 54 0d 0a 4c 61 73 74 2d 4d 6f 64 69 66 69 GMT..Las t-Modifi
                                                                              00000090 65 64 3a 20 46 72 69 2c 20 31 36 20 4f 63 74 20 ed: Fri, 16 Oct
                                                                              000000A0 32 30 30 39 20 31 31 3a 32 35 3a 33 32 20 47 4d 2009 11: 25:32 GM
                                                                              000000B0 54 0d 0a 70 72 61 67 6d 61 3a 20 6e 6f 2d 63 61 T..pragm a: no-ca
                                                                              000000C0 63 68 65 0d 0a 43 61 63 68 65 2d 43 6f 6e 74 72 che..Cac he-Contr
                                                                              000000D0 6f 6c 3a 20 20 6e 6f 2d 63 61 63 68 65 2c 20 6d ol: no- cache, m

Both of these have been taken from different servers, the second one is running glassfish v2.0 v58g
[Message sent by forum member 'marko_salonen' (marko.salonen_at_generalwireless.com)]

http://forums.java.net/jive/thread.jspa?messageID=368204