Aarno, This is the error I encounter when I run the push proxy gateway with the test_ppg Can you clarify what can be wrong
[root@gateway gateway-1.2.1]# test/test_ppg -q http://localhost:8081/ /usr/gateway-1.2.1/test/sl.txt /usr/gateway-1.2.1/test/smstestppg.txt 2003-01-25 14:15:43 [0] ERROR: Can't find out official hostname for this host, using `gateway' instead. 2003-01-25 14:15:43 [0] INFO: an input without a configuration file assumed 2003-01-25 14:15:43 [0] DEBUG: using /usr/gateway-1.2.1/test/sl.txt as a content file 2003-01-25 14:15:43 [0] DEBUG: using /usr/gateway-1.2.1/test/smstestppg.txt as a control file 2003-01-25 14:15:43 [0] DEBUG: Started thread 1 (test/test_ppg.c:push_thread) 2003-01-25 14:15:43 [1] DEBUG: TEST_PPG: starting to push job 0 2003-01-25 14:15:43 [1] DEBUG: Started thread 2 (gwlib/fdset.c:poller) 2003-01-25 14:15:43 [1] DEBUG: Started thread 3 (gwlib/http.c:write_request_thread) 2003-01-25 14:15:43 [1] DEBUG: push done 2003-01-25 14:15:43 [3] DEBUG: HTTP: Opening connection to `localhost:8081' (fd=13). 2003-01-25 14:15:43 [3] DEBUG: HTTP: Sending request: 2003-01-25 14:15:43 [3] DEBUG: Octet string at 0x80ce288: 2003-01-25 14:15:43 [3] DEBUG: len: 1146 2003-01-25 14:15:43 [3] DEBUG: size: 1147 2003-01-25 14:15:43 [3] DEBUG: immutable: 0 2003-01-25 14:15:43 [3] DEBUG: data: 50 4f 53 54 20 2f 20 48 POST / H 2003-01-25 14:15:43 [3] DEBUG: data: 54 54 50 2f 31 2e 31 0d TTP/1.1. 2003-01-25 14:15:43 [3] DEBUG: data: 0a 48 6f 73 74 3a 20 6c .Host: l 2003-01-25 14:15:43 [3] DEBUG: data: 6f 63 61 6c 68 6f 73 74 ocalhost 2003-01-25 14:15:43 [3] DEBUG: data: 3a 38 30 38 31 0d 0a 43 :8081..C 2003-01-25 14:15:43 [3] DEBUG: data: 6f 6e 74 65 6e 74 2d 54 ontent-T 2003-01-25 14:15:43 [3] DEBUG: data: 79 70 65 3a 20 6d 75 6c ype: mul 2003-01-25 14:15:43 [3] DEBUG: data: 74 69 70 61 72 74 2f 72 tipart/r 2003-01-25 14:15:43 [3] DEBUG: data: 65 6c 61 74 65 64 3b 20 elated; 2003-01-25 14:15:43 [3] DEBUG: data: 62 6f 75 6e 64 61 72 79 boundary 2003-01-25 14:15:43 [3] DEBUG: data: 3d 61 73 64 6c 66 6b 6a =asdlfkj 2003-01-25 14:15:43 [3] DEBUG: data: 69 75 72 77 67 68 61 73 iurwghas 2003-01-25 14:15:43 [3] DEBUG: data: 66 3b 20 74 79 70 65 3d f; type= 2003-01-25 14:15:43 [3] DEBUG: data: 22 61 70 70 6c 69 63 61 "applica 2003-01-25 14:15:43 [3] DEBUG: data: 74 69 6f 6e 2f 78 6d 6c tion/xml 2003-01-25 14:15:43 [3] DEBUG: data: 22 0d 0a 58 2d 57 41 50 "..X-WAP 2003-01-25 14:15:43 [3] DEBUG: data: 2d 41 70 70 6c 69 63 61 -Applica 2003-01-25 14:15:43 [3] DEBUG: data: 74 69 6f 6e 2d 49 64 3a tion-Id: 2003-01-25 14:15:43 [3] DEBUG: data: 20 68 74 74 70 3a 2f 2f http:// 2003-01-25 14:15:43 [3] DEBUG: data: 77 77 77 2e 77 69 72 61 www.wira 2003-01-25 14:15:43 [3] DEBUG: data: 6c 2e 63 6f 6d 3a 77 6d l.com:wm 2003-01-25 14:15:44 [3] DEBUG: data: 6c 2e 75 61 0d 0a 43 6f l.ua..Co 2003-01-25 14:15:44 [3] DEBUG: data: 6e 74 65 6e 74 2d 4c 65 ntent-Le 2003-01-25 14:15:44 [3] DEBUG: data: 6e 67 74 68 3a 20 39 34 ngth: 94 2003-01-25 14:15:44 [3] DEBUG: data: 39 0d 0a 0d 0a 0d 0a 2d 9......- 2003-01-25 14:15:44 [3] DEBUG: data: 2d 61 73 64 6c 66 6b 6a -asdlfkj 2003-01-25 14:15:44 [3] DEBUG: data: 69 75 72 77 67 68 61 73 iurwghas 2003-01-25 14:15:44 [3] DEBUG: data: 66 0d 0a 43 6f 6e 74 65 f..Conte 2003-01-25 14:15:44 [3] DEBUG: data: 6e 74 2d 54 79 70 65 3a nt-Type: 2003-01-25 14:15:44 [3] DEBUG: data: 20 61 70 70 6c 69 63 61 applica 2003-01-25 14:15:44 [3] DEBUG: data: 74 69 6f 6e 2f 78 6d 6c tion/xml 2003-01-25 14:15:44 [3] DEBUG: data: 0d 0a 3c 3f 78 6d 6c 20 ..<?xml 2003-01-25 14:15:44 [3] DEBUG: data: 76 65 72 73 69 6f 6e 3d version= 2003-01-25 14:15:44 [3] DEBUG: data: 22 31 2e 30 22 3f 3e 0a "1.0"?>. 2003-01-25 14:15:44 [3] DEBUG: data: 3c 21 44 4f 43 54 59 50 <!DOCTYP 2003-01-25 14:15:44 [3] DEBUG: data: 45 20 70 61 70 20 50 55 E pap PU 2003-01-25 14:15:44 [3] DEBUG: data: 42 4c 49 43 20 22 2d 2f BLIC "-/ 2003-01-25 14:15:44 [3] DEBUG: data: 2f 57 41 50 46 4f 52 55 /WAPFORU 2003-01-25 14:15:44 [3] DEBUG: data: 4d 2f 2f 44 54 44 20 50 M//DTD P 2003-01-25 14:15:44 [3] DEBUG: data: 41 50 2f 2f 45 4e 22 0a AP//EN". 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 20 20 20 20 20 20 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 22 68 74 74 70 3a "http: 2003-01-25 14:15:44 [3] DEBUG: data: 2f 2f 77 77 77 2e 77 61 //www.wa 2003-01-25 14:15:44 [3] DEBUG: data: 70 66 6f 72 75 6d 2e 6f pforum.o 2003-01-25 14:15:44 [3] DEBUG: data: 72 67 2f 44 54 44 2f 70 rg/DTD/p 2003-01-25 14:15:44 [3] DEBUG: data: 61 70 5f 31 2e 30 2e 64 ap_1.0.d 2003-01-25 14:15:44 [3] DEBUG: data: 74 64 22 3e 0a 3c 70 61 td">.<pa 2003-01-25 14:15:44 [3] DEBUG: data: 70 3e 0a 20 20 3c 70 75 p>. <pu 2003-01-25 14:15:44 [3] DEBUG: data: 73 68 2d 6d 65 73 73 61 sh-messa 2003-01-25 14:15:44 [3] DEBUG: data: 67 65 20 70 75 73 68 2d ge push- 2003-01-25 14:15:44 [3] DEBUG: data: 69 64 3d 22 39 66 6a 65 id="9fje 2003-01-25 14:15:44 [3] DEBUG: data: 6f 33 39 6a 66 30 38 34 o39jf084 2003-01-25 14:15:44 [3] DEBUG: data: 40 70 69 2e 63 6f 6d 22 @pi.com" 2003-01-25 14:15:44 [3] DEBUG: data: 0a 20 20 64 65 6c 69 76 . deliv 2003-01-25 14:15:44 [3] DEBUG: data: 65 72 2d 62 65 66 6f 72 er-befor 2003-01-25 14:15:44 [3] DEBUG: data: 65 2d 74 69 6d 65 73 74 e-timest 2003-01-25 14:15:44 [3] DEBUG: data: 61 6d 70 3d 22 32 30 30 amp="200 2003-01-25 14:15:44 [3] DEBUG: data: 35 2d 31 31 2d 31 35 54 5-11-15T 2003-01-25 14:15:44 [3] DEBUG: data: 30 36 3a 34 35 3a 30 30 06:45:00 2003-01-25 14:15:44 [3] DEBUG: data: 5a 22 0a 20 20 64 65 6c Z". del 2003-01-25 14:15:44 [3] DEBUG: data: 69 76 65 72 2d 61 66 74 iver-aft 2003-01-25 14:15:44 [3] DEBUG: data: 65 72 2d 74 69 6d 65 73 er-times 2003-01-25 14:15:44 [3] DEBUG: data: 74 61 6d 70 3d 22 32 30 tamp="20 2003-01-25 14:15:44 [3] DEBUG: data: 30 31 2d 30 32 2d 32 38 01-02-28 2003-01-25 14:15:44 [3] DEBUG: data: 54 30 36 3a 34 35 3a 30 T06:45:0 2003-01-25 14:15:44 [3] DEBUG: data: 30 5a 22 0a 20 20 70 72 0Z". pr 2003-01-25 14:15:44 [3] DEBUG: data: 6f 67 72 65 73 73 2d 6e ogress-n 2003-01-25 14:15:44 [3] DEBUG: data: 6f 74 65 73 2d 72 65 71 otes-req 2003-01-25 14:15:44 [3] DEBUG: data: 75 65 73 74 65 64 3d 22 uested=" 2003-01-25 14:15:44 [3] DEBUG: data: 66 61 6c 73 65 22 3e 0a false">. 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 20 20 3c 61 64 64 <add 2003-01-25 14:15:44 [3] DEBUG: data: 72 65 73 73 20 61 64 64 ress add 2003-01-25 14:15:44 [3] DEBUG: data: 72 65 73 73 2d 76 61 6c ress-val 2003-01-25 14:15:44 [3] DEBUG: data: 75 65 3d 22 57 41 50 50 ue="WAPP 2003-01-25 14:15:44 [3] DEBUG: data: 55 53 48 3d 2b 39 31 39 USH=+919 2003-01-25 14:15:44 [3] DEBUG: data: 38 39 31 33 31 34 35 30 89131450 2003-01-25 14:15:44 [3] DEBUG: data: 30 2f 54 59 50 45 3d 50 0/TYPE=P 2003-01-25 14:15:44 [3] DEBUG: data: 4c 4d 4e 40 70 70 67 2e LMN@ppg. 2003-01-25 14:15:44 [3] DEBUG: data: 63 61 72 72 69 65 72 2e carrier. 2003-01-25 14:15:44 [3] DEBUG: data: 63 6f 6d 22 3e 0a 20 20 com">. 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 3c 2f 61 64 64 72 </addr 2003-01-25 14:15:44 [3] DEBUG: data: 65 73 73 3e 0a 20 20 20 ess>. 2003-01-25 14:15:44 [3] DEBUG: data: 20 3c 71 75 61 6c 69 74 <qualit 2003-01-25 14:15:44 [3] DEBUG: data: 79 2d 6f 66 2d 73 65 72 y-of-ser 2003-01-25 14:15:44 [3] DEBUG: data: 76 69 63 65 0a 20 20 20 vice. 2003-01-25 14:15:44 [3] DEBUG: data: 20 70 72 69 6f 72 69 74 priorit 2003-01-25 14:15:44 [3] DEBUG: data: 79 3d 22 6c 6f 77 22 0a y="low". 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 20 20 64 65 6c 69 deli 2003-01-25 14:15:44 [3] DEBUG: data: 76 65 72 79 2d 6d 65 74 very-met 2003-01-25 14:15:44 [3] DEBUG: data: 68 6f 64 3d 22 75 6e 63 hod="unc 2003-01-25 14:15:44 [3] DEBUG: data: 6f 6e 66 69 72 6d 65 64 onfirmed 2003-01-25 14:15:44 [3] DEBUG: data: 22 0a 20 20 20 20 6e 65 ". ne 2003-01-25 14:15:44 [3] DEBUG: data: 74 77 6f 72 6b 2d 72 65 twork-re 2003-01-25 14:15:44 [3] DEBUG: data: 71 75 69 72 65 64 3d 22 quired=" 2003-01-25 14:15:44 [3] DEBUG: data: 74 72 75 65 22 0a 20 20 true". 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 6e 65 74 77 6f 72 networ 2003-01-25 14:15:44 [3] DEBUG: data: 6b 3d 22 67 73 6d 22 0a k="gsm". 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 20 20 62 65 61 72 bear 2003-01-25 14:15:44 [3] DEBUG: data: 65 72 2d 72 65 71 75 69 er-requi 2003-01-25 14:15:44 [3] DEBUG: data: 72 65 64 3d 22 74 72 75 red="tru 2003-01-25 14:15:44 [3] DEBUG: data: 65 22 0a 20 20 20 20 62 e". b 2003-01-25 14:15:44 [3] DEBUG: data: 65 61 72 65 72 3d 22 73 earer="s 2003-01-25 14:15:44 [3] DEBUG: data: 6d 73 22 3e 0a 20 20 20 ms">. 2003-01-25 14:15:44 [3] DEBUG: data: 20 3c 2f 71 75 61 6c 69 </quali 2003-01-25 14:15:44 [3] DEBUG: data: 74 79 2d 6f 66 2d 73 65 ty-of-se 2003-01-25 14:15:44 [3] DEBUG: data: 72 76 69 63 65 3e 0a 20 rvice>. 2003-01-25 14:15:44 [3] DEBUG: data: 20 3c 2f 70 75 73 68 2d </push- 2003-01-25 14:15:44 [3] DEBUG: data: 6d 65 73 73 61 67 65 3e message> 2003-01-25 14:15:44 [3] DEBUG: data: 0a 3c 2f 70 61 70 3e 0a .</pap>. 2003-01-25 14:15:44 [3] DEBUG: data: 0d 0a 2d 2d 61 73 64 6c ..--asdl 2003-01-25 14:15:44 [3] DEBUG: data: 66 6b 6a 69 75 72 77 67 fkjiurwg 2003-01-25 14:15:44 [3] DEBUG: data: 68 61 73 66 0d 0a 43 6f hasf..Co 2003-01-25 14:15:44 [3] DEBUG: data: 6e 74 65 6e 74 2d 54 79 ntent-Ty 2003-01-25 14:15:44 [3] DEBUG: data: 70 65 3a 20 74 65 78 74 pe: text 2003-01-25 14:15:44 [3] DEBUG: data: 2f 76 6e 64 2e 77 61 70 /vnd.wap 2003-01-25 14:15:44 [3] DEBUG: data: 2e 73 69 0d 0a 3c 3f 78 .si..<?x 2003-01-25 14:15:44 [3] DEBUG: data: 6d 6c 20 76 65 72 73 69 ml versi 2003-01-25 14:15:44 [3] DEBUG: data: 6f 6e 3d 22 31 2e 30 22 on="1.0" 2003-01-25 14:15:44 [3] DEBUG: data: 3f 3e 0a 20 20 20 20 3c ?>. < 2003-01-25 14:15:44 [3] DEBUG: data: 21 44 4f 43 54 59 50 45 !DOCTYPE 2003-01-25 14:15:44 [3] DEBUG: data: 20 73 6c 20 50 55 42 4c sl PUBL 2003-01-25 14:15:44 [3] DEBUG: data: 49 43 20 22 2d 2f 2f 57 IC "-//W 2003-01-25 14:15:44 [3] DEBUG: data: 41 50 46 4f 52 55 4d 2f APFORUM/ 2003-01-25 14:15:44 [3] DEBUG: data: 2f 44 54 44 20 53 4c 20 /DTD SL 2003-01-25 14:15:44 [3] DEBUG: data: 31 2e 30 2f 2f 45 4e 22 1.0//EN" 2003-01-25 14:15:44 [3] DEBUG: data: 0a 20 20 20 20 20 20 20 . 2003-01-25 14:15:44 [3] DEBUG: data: 20 20 20 20 20 20 20 20 2003-01-25 14:15:44 [3] DEBUG: data: 20 22 68 74 74 70 3a 2f "http:/ 2003-01-25 14:15:44 [3] DEBUG: data: 2f 77 77 77 2e 77 61 70 /www.wap 2003-01-25 14:15:44 [3] DEBUG: data: 66 6f 72 75 6d 2e 6f 72 forum.or 2003-01-25 14:15:44 [3] DEBUG: data: 67 2f 44 54 44 2f 73 6c g/DTD/sl 2003-01-25 14:15:44 [3] DEBUG: data: 2e 64 74 64 22 3e 0a 3c .dtd">.< 2003-01-25 14:15:44 [3] DEBUG: data: 73 6c 0a 20 20 20 20 68 sl. h 2003-01-25 14:15:44 [3] DEBUG: data: 72 65 66 3d 22 68 74 74 ref="htt 2003-01-25 14:15:44 [3] DEBUG: data: 70 3a 2f 2f 77 61 70 2e p://wap. 2003-01-25 14:15:44 [3] DEBUG: data: 69 6f 62 6f 78 2e 66 69 iobox.fi 2003-01-25 14:15:44 [3] DEBUG: data: 22 0a 20 20 20 20 61 63 ". ac 2003-01-25 14:15:44 [3] DEBUG: data: 74 69 6f 6e 3d 22 65 78 tion="ex 2003-01-25 14:15:44 [3] DEBUG: data: 65 63 75 74 65 2d 68 69 ecute-hi 2003-01-25 14:15:44 [3] DEBUG: data: 67 68 22 3e 0a 3c 2f 73 gh">.</s 2003-01-25 14:15:44 [3] DEBUG: data: 6c 3e 0d 0a 2d 2d 61 73 l>..--as 2003-01-25 14:15:44 [3] DEBUG: data: 64 6c 66 6b 6a 69 75 72 dlfkjiur 2003-01-25 14:15:44 [3] DEBUG: data: 77 67 68 61 73 66 2d 2d wghasf-- 2003-01-25 14:15:44 [3] DEBUG: data: 0d 0a .. 2003-01-25 14:15:44 [3] DEBUG: Octet string dump ends. 2003-01-25 14:15:44 [2] DEBUG: HTTP: Status line: <HTTP/1.1 200 Foo> 2003-01-25 14:15:44 [1] DEBUG: TEST_PPG: push 0 done: reply from, http://localhost:8081/ Entity: line 1: error: Start tag expected, '<' not found Sent. ^ 2003-01-25 14:15:44 [1] WARNING: PAP COMPILER: pap_compile: parse error in pap source 2003-01-25 14:15:44 [1] WARNING: TEST_PPG: receive_push_reply: cannot compile pap message 2003-01-25 14:15:44 [1] INFO: TEST_PPG: In thread 1 0 succeeded, 1 failed 2003-01-25 14:15:44 [1] DEBUG: Thread 1 (test/test_ppg.c:push_thread) terminates. 2003-01-25 14:15:44 [0] INFO: TEST_PPG: 1 requests in 1.000000 seconds, 1.000000 requests per second 2003-01-25 14:15:44 [0] DEBUG: Waiting for 3 (gwlib/http.c:write_request_thread) to terminate 2003-01-25 14:15:44 [3] DEBUG: Thread 3 (gwlib/http.c:write_request_thread) terminates. 2003-01-25 14:15:44 [2] DEBUG: Thread 2 (gwlib/fdset.c:poller) terminates. 2003-01-25 14:15:44 [0] DEBUG: Immutable octet strings: 10. Aarno Syv�nen wrote: > I meant did logs show a specific parsing error ? (Knowing that would > make easier to fix the xml documents; xml parsing is tricky and it is > easy to make errors.) > > Aarno > > On Wednesday, January 22, 2003, at 11:42 AM, Anamika Kumari wrote: > > > Aarno Syv�nen wrote: > > > >> Hi, > >> > >> On Tuesday, January 21, 2003, at 02:11 PM, Anamika Kumari wrote: > >> > >>> > >>> Hi KannelUsers, > >>> > >>> When I configure the push proxy gateway and run the test specified in > >>> the Userguide I get the message > >>> Pap parsing error what could be the problem. > >> > >> Can you send exact error message ? > >> > >>> > >>> Is the example specified in the UserGuide wrong. > >>> > >>> The configuration file is the one given gw/pushkannel.conf and the > >>> command I am giving is > >>> gw/bearerbox gw/pushkannel.conf > >>> gw/smsbox gw/pushkannel.conf > >>> gw/wapbox gw/pushkannel.conf > >>> > >>> test/test_ppg -q [content-file] [configuration-file] > >>> > >>> the content file is the same given in the userGuide and the > >>> configuration file is also the same in the userguide Appendix c: > >>> > >>> All kannel users please advice or forword all the push configuration > >>> files or advice me as to what the problem may be. > >>> > >>> > >>> Has anyone written a pushinitiator . How is it done what do you have > >>> to > >>> do ? > >> > >> Test_ppg is a prototype push initiator. For real one, you must create > >> control and content documents from your data. > >> > >> Aarno > > > > Aarno the files are as attached I am using. > > > > I have a nokia6610 as the client. > > KAnnel attached with wavecom modem > > And a server. > > > > do I require any thing else for pushing wap pages ??? > > will the modem push the wml page. > > > > please reply > > rgds > > Anamika > > <?xml version="1.0"?> > > <!DOCTYPE pap PUBLIC "-//WAPFORUM//DTD PAP//EN" > > "http://www.wapforum.org/DTD/pap_1.0.dtd";> > > <pap> > > <push-message push-id="ABC008" > > progress-notes-requested="false"> > > <address address-value="WAPPUSH=+48607451931/TYPE=PLMN@null"> > > </address> > > <quality-of-service > > priority="low" > > delivery-method="unconfirmed" > > network-required="false" > > bearer-required="false" > > bearer="SMS"> > > </quality-of-service> > > </push-message> > > </pap> > > <?xml version="1.0"?> > > <!DOCTYPE sl PUBLIC "-//WAPFORUM//DTD SL 1.0//EN" > > "http://www.wapforum.org/DTD/sl.dtd";> > > <sl > > href="http://wap.iobox.fi" > > action="execute-high"> > > </sl> > >
