Action - 2007-03-24

Myemail:ljw725@gmail.com

D:\work\mmslib-0.1\lib\at\jku\soft\mms>cd app

D:\work\mmslib-0.1\lib\at\jku\soft\mms\app>java -cp D:\work\mmslib-0.1\lib\jwap-
cvs.jar;D:\work\mmslib-0.1\lib\log4j-1.2.8.jar;D:\work\mmslib-0.1\lib at.jku.sof
t.mms.app.Sender test_header_only.mms
connecting to WAP gateway /10.0.0.172
0 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - WTP-Layer listening...
63 [main] DEBUG wtp.CWTPInitiator  - 66: TR_INVOKE_REQ in NULL
63 [main] DEBUG wtp.CWTPSocket  - sending PDU_TYPE_INVOKE, TID: 66
63 [main] DEBUG wtp.CWTPSocket  -
data to send: 000000000  0A 00 42 12 01 10 0A 00  04 80 83 FF 7F 04 81 83 |..B..
...........|
              000000010  FF 7F                                            |..|

63 [main] DEBUG wsp.CWSPSession  - STATE_NULL >>> STATE_CONNECTING
1032 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - received WTP PDU: PDU_
TYPE_RESULT TID: -32702 | 66
1032 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 66: PDU_TYPE_RESULT
in RESULT WAIT class 2 holdOn false
1032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
data to decode: 000000000  45 6E 63 6F 64 69 6E 67  2D 56 65 72 73 69 6F 6E |Enc
oding-Version|
                000000010  00 31 2E 32 00 80 90                             |.1.
2...|

1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Application-header de
tected
1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
encoded header: 000000000  45 6E 63 6F 64 69 6E 67  2D 56 65 72 73 69 6F 6E |Enc
oding-Version|
                000000010  00 31 2E 32 00                                   |.1.
2.|

1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Decoded header: Encod
ing-Version: 1.2
1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Well-Known-header det
ected
1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
encoded header: 000000000  80 90                                            |..|

1047 [CWTPSocket-10.0.0.172:9201] DEBUG header.WAPCodePage  - code2str(0x0)=Acce
pt
1047 [CWTPSocket-10.0.0.172:9201] WARN  header.WAPCodePage  - 'Accept': Header d
ecoding not yet implemented :-(
1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Decoded header: Accep
t: null
1047 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPSession  - TR_INVOKE_CNF in STAT
E_CONNECTING
1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
data to decode: 000000000  45 6E 63 6F 64 69 6E 67  2D 56 65 72 73 69 6F 6E |Enc
oding-Version|
                000000010  00 31 2E 32 00 80 90                             |.1.
2...|

1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Application-header de
tected
1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
encoded header: 000000000  45 6E 63 6F 64 69 6E 67  2D 56 65 72 73 69 6F 6E |Enc
oding-Version|
                000000010  00 31 2E 32 00                                   |.1.
2.|

1047 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Decoded header: Encod
ing-Version: 1.2
1063 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Well-Known-header det
ected
1063 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
encoded header: 000000000  80 90                                            |..|

1063 [CWTPSocket-10.0.0.172:9201] DEBUG header.WAPCodePage  - code2str(0x0)=Acce
pt
1063 [CWTPSocket-10.0.0.172:9201] WARN  header.WAPCodePage  - 'Accept': Header d
ecoding not yet implemented :-(
1063 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Decoded header: Accep
t: null
1063 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPSession  - TR_RESULT_IND in STAT
E_CONNECTING
1063 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPSession  - STATE_CONNECTING >>>
STATE_CONNECTED
1063 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 66: TR_RESULT_RES i
n RESULT RESP WAIT
1063 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - sending PDU_TYPE_ACK,
TID: 66
1063 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  -
data to send: 000000000  18 00 42                                         |..B|

1063 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPSession  - s-connect.ind
connected to WAP gateway /10.0.0.172
sending data (WSP POST)
1063 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - STATE_NULL >>>
STATE_REQUESTING
1063 [CWTPSocket-10.0.0.172:9201] DEBUG header.WAPCodePage  - encode: 'Content-T
ype' -> 17
1079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 67: TR_INVOKE_REQ i
n NULL
1079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - sending PDU_TYPE_INVOK
E, TID: 67
1079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  -
data to send: 000000000  0A 00 43 12 60 18 20 68  74 74 70 3A 2F 2F 6D 6D |..C.`
..http://mm|
              000000010  73 63 2E 6D 6F 74 65 72  6E 65 74 2E 63 6F 6D 61 |sc.mo
ternet.coma|
              000000020  70 70 6C 69 63 61 74 69  6F 6E 2F 76 6E 64 2E 77 |pplic
ation/vnd.w|
              000000030  61 70 2E 6D 6D 73 2D 6D  65 73 73 61 67 65 00 8C |ap.mm
s-message..|
              000000040  80 98 30 30 30 30 30 35  00 8D 90 85 04 3C 5D 81 |..000
005.....<].|
              000000050  C5 89 19 80 2B 38 36 31  33 37 37 32 34 32 31 38 |....+
86137724218|
              000000060  31 33 2F 54 59 50 45 3D  50 4C 4D 4E 00 97 2B 38 |13/TY
PE=PLMN..+8|
              000000070  36 31 35 39 33 34 38 35  38 34 37 39 2F 54 59 50 |61593
4858479/TYP|
              000000080  45 3D 50 4C 4D 4E 00 96  54 68 69 73 20 69 73 20 |E=PLM
N..This.is.|
              000000090  61 20 74 65 73 74 20 4D  4D 53 20 6D 65 73 73 61 |a.tes
t.MMS.messa|
              0000000a0  67 65 20 21 00 86 81 90  81 8A 81 8F 80 84 A3 00 |ge.!.
...........|

1079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - WTP-Layer listening...

2079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - received WTP PDU: PDU_
TYPE_ACK TID: -32701 | 67
2079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 67: PDU_TYPE_ACK in
RESULT WAIT class 2 holdOn false
2079 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - TR_INVOKE_CNF i
n STATE_REQUESTING
2079 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - STATE_REQUESTIN
G >>> STATE_WAITING
2079 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - s_methodInvoke_
cnf
2079 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - WTP-Layer listening...

3032 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - received WTP PDU: PDU_
TYPE_RESULT TID: -32701 | 67
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 67: PDU_TYPE_RESULT
in RESULT WAIT class 2 holdOn true
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - TR_RESULT_IND i
n STATE_WAITING
3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
data to decode: 000000000  45 6E 63 6F 64 69 6E 67  2D 56 65 72 73 69 6F 6E |Enc
oding-Version|
                000000010  00 31 2E 32 00 A6 41 70  61 63 68 65 00          |.1.
2..Apache.|

3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Application-header de
tected
3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
encoded header: 000000000  45 6E 63 6F 64 69 6E 67  2D 56 65 72 73 69 6F 6E |Enc
oding-Version|
                000000010  00 31 2E 32 00                                   |.1.
2.|

3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Decoded header: Encod
ing-Version: 1.2
3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Well-Known-header det
ected
3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  -
encoded header: 000000000  A6 41 70 61 63 68 65 00                          |.Ap
ache.|

3032 [CWTPSocket-10.0.0.172:9201] DEBUG header.WAPCodePage  - code2str(0x26)=Ser
ver
3032 [CWTPSocket-10.0.0.172:9201] DEBUG pdu.CWSPHeaders  - Decoded header: Serve
r: Apache
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - STATE_WAITING >
>> STATE_COMPLETING
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - s_methodResult_
ind
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  -   Data Length:
292
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  -   contentType:
text/html
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  -   moreData   :
false
3032 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  -   version    :
1
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  -  --- PAYLOAD --
-
000000000  3C 68 74 6D 6C 3E 0A 09  3C 68 65 61 64 3E 0A 09 |<html>..<head>..|
000000010  09 3C 74 69 74 6C 65 3E  6D 6F 74 65 72 6E 65 74 |.<title>moternet|
000000020  2E 63 6F 6D 3C 2F 74 69  74 6C 65 3E 0A 09 3C 2F |.com</title>..</|
000000030  68 65 61 64 3E 3C 66 72  61 6D 65 73 65 74 20 72 |head><frameset.r|
000000040  6F 77 73 3D 22 2A 2C 30  22 20 62 6F 72 64 65 72 |ows="*,0".border|
000000050  3D 22 30 22 20 62 6F 72  64 65 72 63 6F 6C 6F 72 |="0".bordercolor|
000000060  3D 22 23 46 46 46 46 46  46 22 3E 0A 09 09 3C 66 |="#FFFFFF">...<f|
000000070  72 61 6D 65 20 6E 61 6D  65 3D 22 63 65 6E 74 72 |rame.name="centr|
000000080  61 6C 22 20 73 72 63 3D  22 68 74 74 70 3A 2F 2F |al".src="http://|
000000090  6D 6D 73 63 2E 6D 6F 74  65 72 6E 65 74 2E 63 6F |mmsc.moternet.co|
0000000a0  6D 2F 68 6F 6D 65 2E 70  68 70 3F 72 3D 26 72 65 |m/home.php?r=&re|
0000000b0  66 3D 22 20 73 63 72 6F  6C 6C 69 6E 67 3D 22 61 |f=".scrolling="a|
0000000c0  75 74 6F 22 3E 0A 09 09  3C 66 72 61 6D 65 20 6E |uto">...<frame.n|
0000000d0  61 6D 65 3D 22 70 70 22  20 73 72 63 3D 22 68 74 |ame="pp".src="ht|
0000000e0  74 70 3A 2F 2F 6D 6D 73  63 2E 6D 6F 74 65 72 6E |tp://mmsc.motern|
0000000f0  65 74 2E 63 6F 6D 2F 70  70 2E 70 68 70 22 20 73 |et.com/pp.php".s|
000000100  63 72 6F 6C 6C 69 6E 67  3D 22 6E 6F 6E 65 22 3E |crolling="none">|
000000110  0A 09 3C 2F 66 72 61 6D  65 73 65 74 3E 3C 2F 68 |..</frameset></h|
000000120  74 6D 6C 3E                                      |tml>|

Response More Data: false
Response Content Type: text/html
disconnecting from WAP gateway /10.0.0.172
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPMethodManager  - STATE_COMPLETIN
G >>> STATE_NULL
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 67: TR_RESULT_RES i
n RESULT RESP WAIT
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - sending PDU_TYPE_ACK,
TID: 67
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  -
data to send: 000000000  18 00 43                                         |..C|

3047 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPInitiator  - 68: TR_INVOKE_REQ i
n NULL
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - sending PDU_TYPE_INVOK
E, TID: 68
3047 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  -
data to send: 000000000  0A 00 44 10 05 82 93 68                          |..D..
..h|

3063 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPSession  - s-disconnect.ind
disconnected from WAP gateway /10.0.0.172
3063 [CWTPSocket-10.0.0.172:9201] DEBUG wtp.CWTPSocket  - close(): Closing socke
t
3063 [CWTPSocket-10.0.0.172:9201] DEBUG wsp.CWSPSession  - STATE_CONNECTED >>> S
TATE_NULL
java.lang.ArrayIndexOutOfBoundsException: 292
        at net.sourceforge.jwap.wsp.WSPDecoder.getOctet(Unknown Source)
        at net.sourceforge.jwap.wsp.WSPDecoder.getCString(Unknown Source)
        at at.jku.soft.mms.lib.MMSPDU.parseSingleMmsHeader(Unknown Source)
        at at.jku.soft.mms.lib.MMSPDU.parseMMSHeaders(Unknown Source)
        at at.jku.soft.mms.lib.MMSPDU.setPayload(Unknown Source)
        at at.jku.soft.mms.app.Sender.s_methodResult_ind(Unknown Source)
        at net.sourceforge.jwap.wsp.CWSPMethodManager.s_methodResult_ind(Unknown
Source)
        at net.sourceforge.jwap.wsp.CWSPMethodManager.tr_process(Unknown Source)

        at net.sourceforge.jwap.wtp.CWTPInitiator.process(Unknown Source)
        at net.sourceforge.jwap.wtp.CWTPSocket.run(Unknown Source)
3079 [CWTPSocket-10.0.0.172:9201] ERROR lib.MMSPDU  - NEED TO SET THE BODY TO TH
E REST OF THE CONTENT!

D:\work\mmslib-0.1\lib\at\jku\soft\mms\app>java -cp D:\work\mmslib-0.1\lib\jwap-
cvs.jar;D:\work\mmslib-0.1\lib\log4j-1.2.8.jar;D:\work\mmslib-0.1\lib\MMSLibrary
.jar;D:\work\mmslib-0.1\lib at.jku.soft.mms.nokia.NokiaSender

The content of pdu file
<html>
    <head>
        <title>moternet.com</title>
    </head><frameset rows="*,0" border="0" bordercolor="#FFFFFF">
        <frame name="central" src="http://mmsc.moternet.com/home.php?r=&ref=" scrolling="auto">
        <frame name="pp" src="http://mmsc.moternet.com/pp.php" scrolling="none">
    </frameset></html>