From: marcel l. <m_...@ya...> - 2006-11-16 17:19:11
|
Thanks for your reply Ken.=0AUnfortunately I have to use hashtable as this = is what the server expects.=0A=0AMarcel=0A=0A----- Original Message ----=0A= From: Kent Johnson <ke...@td...>=0ATo: marcel liker <m_...@ya...>= =0ACc: jyt...@li...=0ASent: Thursday, 16 November, 20= 06 4:50:47 PM=0ASubject: Re: [Jython-users] Sending a hashtable with httpli= b=0A=0Amarcel liker wrote:=0A> Hi there.=0A> =0A> I am creating an http cli= ent to send some data to a http server.=0A> The problem I am having is that= the data is a Hashtable which I am trying to send using httplib.=0A> Unfor= tunately I am getting the error below.=0A=0AWhat if you use a dict rather t= han a Hashtable?=0A=0AKent=0A=0A> =0A> Any help is appreciated.=0A> =0A> Th= anks,=0A> Marcel=0A> =0A>>>> from java.util import Hashtable=0A>>>> req=3DH= ashtable()=0A>>>> req.put('ADDRESS','my address')=0A>>>> req.put('NAME','my= name')=0A>>>> import httplib=0A>>>> conn =3D httplib.HTTPConnection("192.1= 68.1.111:80")=0A>>>> conn.request("POST", "/Listener", req)=0A> Traceback (= innermost last):=0A> File "<console>", line 1, in ?=0A> File "/home/mar= cel/j22/Lib/httplib.py", line 701, in request=0A> File "/home/marcel/j22/= Lib/httplib.py", line 726, in _send_request=0A> File "/home/marcel/j22/Li= b/httplib.py", line 560, in send=0A> File "/home/marcel/j22/Lib/socket.py= ", line 211, in send=0A> TypeError: write(): 1st arg can't be coerced to by= te[] or int=0A> =0A> =0A> =0A> Send instant messages to your online friends= http://uk.messenger.yahoo.com =0A> =0A> ----------------------------------= ---------------------------------------=0A> Take Surveys. Earn Cash. Influe= nce the Future of IT=0A> Join SourceForge.net's Techsay panel and you'll ge= t the chance to share your=0A> opinions on IT & business topics through bri= ef surveys - and earn cash=0A> http://www.techsay.com/default.php?page=3Djo= in.php&p=3Dsourceforge&CID=3DDEVDEV=0A> ___________________________________= ____________=0A> Jython-users mailing list=0A> Jyt...@li...urcefor= ge.net=0A> https://lists.sourceforge.net/lists/listinfo/jython-users=0A> = =0A> =0A=0A=0A=0A=0A=0A=0ASend instant messages to your online friends http= ://uk.messenger.yahoo.com |
From: marcel l. <m_...@ya...> - 2006-11-16 17:47:43
|
Thank you for your reply Jeff.=0A=0AYes, you are right with the text nature= of http.=0ABelow is a bit of java code which I think does the conversion f= rom Hashtable to a serialized (? - I don't know java) object.=0AHow can thi= s be achieved in jython?=0A=0AMarcel=0A=0APostMethod method =3D new PostMet= hod(destURL);=0A ByteArrayOutputStream baos =3D new ByteArrayOutputS= tream();=0A ObjectOutputStream oos =3D new ObjectOutputStream(baos);= =0A oos.writeObject(regObj);=0A ByteArrayInputStream bais =3D= new ByteArrayInputStream(baos.toByteArray());=0A method.setRequestB= ody(bais);=0A=0A----- Original Message ----=0AFrom: Jeff Emanuel <jemanuel@= frii.com>=0ATo: marcel liker <m_...@ya...>=0ACc: Kent Johnson <kent37= @tds.net>; jyt...@li...=0ASent: Thursday, 16 November= , 2006 5:30:12 PM=0ASubject: Re: [Jython-users] Sending a hashtable with ht= tplib=0A=0A=0AIsn't http still a text protocol? How is the server expectin= g=0Athe hashtable to be encoded in the text? Create a=0Astring representat= ion of your hashtable as the server=0Aexpects it and send the string on the= request.=0A=0A=0Amarcel liker wrote:=0A> Thanks for your reply Ken.=0A> Un= fortunately I have to use hashtable as this is what the server expects.=0A>= =0A> Marcel=0A> =0A> ----- Original Message ----=0A> From: Kent Johnson <k= en...@td...>=0A> To: marcel liker <m_...@ya...>=0A> Cc: jython-user= s...@li...=0A> Sent: Thursday, 16 November, 2006 4:50:47 PM=0A= > Subject: Re: [Jython-users] Sending a hashtable with httplib=0A> =0A> mar= cel liker wrote:=0A> =0A>>Hi there.=0A>>=0A>>I am creating an http client t= o send some data to a http server.=0A>>The problem I am having is that the = data is a Hashtable which I am trying to send using httplib.=0A>>Unfortunat= ely I am getting the error below.=0A> =0A> =0A> What if you use a dict rath= er than a Hashtable?=0A> =0A> Kent=0A> =0A> =0A>>Any help is appreciated.= =0A>>=0A>>Thanks,=0A>>Marcel=0A>>=0A>>=0A>>>>>from java.util import Hashtab= le=0A>>>>>req=3DHashtable()=0A>>>>>req.put('ADDRESS','my address')=0A>>>>>r= eq.put('NAME','my name')=0A>>>>>import httplib=0A>>>>>conn =3D httplib.HTTP= Connection("192.168.1.111:80")=0A>>>>>conn.request("POST", "/Listener", req= )=0A>>=0A>>Traceback (innermost last):=0A>> File "<console>", line 1, in ?= =0A>> File "/home/marcel/j22/Lib/httplib.py", line 701, in request=0A>> F= ile "/home/marcel/j22/Lib/httplib.py", line 726, in _send_request=0A>> Fil= e "/home/marcel/j22/Lib/httplib.py", line 560, in send=0A>> File "/home/ma= rcel/j22/Lib/socket.py", line 211, in send=0A>>TypeError: write(): 1st arg = can't be coerced to byte[] or int=0A>>=0A>>=0A>>=0A>>Send instant messages = to your online friends http://uk.messenger.yahoo.com =0A>>=0A>>------------= -------------------------------------------------------------=0A>>Take Surv= eys. Earn Cash. Influence the Future of IT=0A>>Join SourceForge.net's Techs= ay panel and you'll get the chance to share your=0A>>opinions on IT & busin= ess topics through brief surveys - and earn cash=0A>>http://www.techsay.com= /default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A>>_____________= __________________________________=0A>>Jython-users mailing list=0A>>Jython= -u...@li...=0A>>https://lists.sourceforge.net/lists/listin= fo/jython-users=0A>>=0A>>=0A> =0A> =0A> =0A> =0A> =0A> =0A> =0A> Send insta= nt messages to your online friends http://uk.messenger.yahoo.com =0A> =0A> = -------------------------------------------------------------------------= =0A> Take Surveys. Earn Cash. Influence the Future of IT=0A> Join SourceFor= ge.net's Techsay panel and you'll get the chance to share your=0A> opinions= on IT & business topics through brief surveys - and earn cash=0A> http://w= ww.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A>= _______________________________________________=0A> Jython-users mailing l= ist=0A> Jyt...@li...=0A> https://lists.sourceforge.ne= t/lists/listinfo/jython-users=0A=0A=0A=0A=0ASend instant messages to your o= nline friends http://uk.messenger.yahoo.com |
From: Jeff E. <jem...@fr...> - 2006-11-16 17:51:03
|
In Jython: from java.io import * baos = ByteArrayOutputStream() oos = ObjectOutputStream(baos) oos.writeObject(yourHashtable) oos.close() yourHttpRequest.send(otherArgsHere, oos.toByteArray()) marcel liker wrote: > Thank you for your reply Jeff. > > Yes, you are right with the text nature of http. > Below is a bit of java code which I think does the conversion from Hashtable to a serialized (? - I don't know java) object. > How can this be achieved in jython? > > Marcel > > PostMethod method = new PostMethod(destURL); > ByteArrayOutputStream baos = new ByteArrayOutputStream(); > ObjectOutputStream oos = new ObjectOutputStream(baos); > oos.writeObject(regObj); > ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); > method.setRequestBody(bais); > > ----- Original Message ---- > From: Jeff Emanuel <jem...@fr...> > To: marcel liker <m_...@ya...> > Cc: Kent Johnson <ke...@td...>; jyt...@li... > Sent: Thursday, 16 November, 2006 5:30:12 PM > Subject: Re: [Jython-users] Sending a hashtable with httplib > > > Isn't http still a text protocol? How is the server expecting > the hashtable to be encoded in the text? Create a > string representation of your hashtable as the server > expects it and send the string on the request. > > > marcel liker wrote: > >>Thanks for your reply Ken. >>Unfortunately I have to use hashtable as this is what the server expects. >> >>Marcel >> >>----- Original Message ---- >>From: Kent Johnson <ke...@td...> >>To: marcel liker <m_...@ya...> >>Cc: jyt...@li... >>Sent: Thursday, 16 November, 2006 4:50:47 PM >>Subject: Re: [Jython-users] Sending a hashtable with httplib >> >>marcel liker wrote: >> >> >>>Hi there. >>> >>>I am creating an http client to send some data to a http server. >>>The problem I am having is that the data is a Hashtable which I am trying to send using httplib. >>>Unfortunately I am getting the error below. >> >> >>What if you use a dict rather than a Hashtable? >> >>Kent >> >> >> >>>Any help is appreciated. >>> >>>Thanks, >>>Marcel >>> >>> >>> >>>>>>from java.util import Hashtable >>>>> >>>>>>req=Hashtable() >>>>>>req.put('ADDRESS','my address') >>>>>>req.put('NAME','my name') >>>>>>import httplib >>>>>>conn = httplib.HTTPConnection("192.168.1.111:80") >>>>>>conn.request("POST", "/Listener", req) >>> >>>Traceback (innermost last): >>> File "<console>", line 1, in ? >>> File "/home/marcel/j22/Lib/httplib.py", line 701, in request >>> File "/home/marcel/j22/Lib/httplib.py", line 726, in _send_request >>> File "/home/marcel/j22/Lib/httplib.py", line 560, in send >>> File "/home/marcel/j22/Lib/socket.py", line 211, in send >>>TypeError: write(): 1st arg can't be coerced to byte[] or int >>> >>> >>> >>>Send instant messages to your online friends http://uk.messenger.yahoo.com >>> >>>------------------------------------------------------------------------- >>>Take Surveys. Earn Cash. Influence the Future of IT >>>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>>opinions on IT & business topics through brief surveys - and earn cash >>>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>>_______________________________________________ >>>Jython-users mailing list >>>Jyt...@li... >>>https://lists.sourceforge.net/lists/listinfo/jython-users >>> >>> >> >> >> >> >> >> >> >>Send instant messages to your online friends http://uk.messenger.yahoo.com >> >>------------------------------------------------------------------------- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>opinions on IT & business topics through brief surveys - and earn cash >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>_______________________________________________ >>Jython-users mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-users > > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |
From: marcel l. <m_...@ya...> - 2006-11-16 18:06:50
|
Thanks Jeff.=0A=0AI tried what you suggested below but that would give the = same error as earlier ("TypeError: write(): 1st arg can't be coerced to byt= e[] or int").=0AAfter double checking the java code I posted your jython ve= rsion looked slightly different so I tried this:=0A=0A>>> baos =3D ByteArra= yOutputStream()=0A>>> oos =3D ObjectOutputStream(baos)=0A>>> oos.writeObjec= t(req)=0A>>> bais =3D ByteArrayInputStream(baos.toByteArray())=0A>>> conn = =3D httplib.HTTPConnection("192.168.1.111:80")=0A>>> conn.request("POST", "= /Listener", bais)=0ATraceback (innermost last):=0A File "<console>", line = 1, in ?=0A File "/home/marcel/j22/Lib/httplib.py", line 701, in request=0A= File "/home/marcel/j22/Lib/httplib.py", line 720, in _send_request=0AAttr= ibuteError: __len__=0A>>> len(bais)=0ATraceback (innermost last):=0A File = "<console>", line 1, in ?=0AAttributeError: __len__=0A=0AI am unsure, howev= er, whether this is a step forward.=0AI do not do much programming so pleas= e bear with me. Also if somebody could point to some documentation discussi= ng this topic that would be very helpful as well.=0A=0AThanks,=0AMarcel=0A= =0A----- Original Message ----=0AFrom: Jeff Emanuel <jem...@fr...>=0AT= o: marcel liker <m_...@ya...>=0ACc: jyt...@li...= t=0ASent: Thursday, 16 November, 2006 5:50:51 PM=0ASubject: Re: [Jython-use= rs] Sending a hashtable with httplib=0A=0AIn Jython:=0A=0A from java.io i= mport *=0A baos =3D ByteArrayOutputStream()=0A oos =3D ObjectOutputStre= am(baos)=0A oos.writeObject(yourHashtable)=0A oos.close()=0A yourHttp= Request.send(otherArgsHere, oos.toByteArray())=0A=0A=0Amarcel liker wrote:= =0A> Thank you for your reply Jeff.=0A> =0A> Yes, you are right with the te= xt nature of http.=0A> Below is a bit of java code which I think does the c= onversion from Hashtable to a serialized (? - I don't know java) object.=0A= > How can this be achieved in jython?=0A> =0A> Marcel=0A> =0A> PostMethod m= ethod =3D new PostMethod(destURL);=0A> ByteArrayOutputStream baos = =3D new ByteArrayOutputStream();=0A> ObjectOutputStream oos =3D new= ObjectOutputStream(baos);=0A> oos.writeObject(regObj);=0A> = ByteArrayInputStream bais =3D new ByteArrayInputStream(baos.toByteArray())= ;=0A> method.setRequestBody(bais);=0A> =0A> ----- Original Message = ----=0A> From: Jeff Emanuel <jem...@fr...>=0A> To: marcel liker <m_lik= er...@ya...>=0A> Cc: Kent Johnson <ke...@td...>; jyt...@li...u= rceforge.net=0A> Sent: Thursday, 16 November, 2006 5:30:12 PM=0A> Subject: = Re: [Jython-users] Sending a hashtable with httplib=0A> =0A> =0A> Isn't htt= p still a text protocol? How is the server expecting=0A> the hashtable to = be encoded in the text? Create a=0A> string representation of your hashtab= le as the server=0A> expects it and send the string on the request.=0A> =0A= > =0A> marcel liker wrote:=0A> =0A>>Thanks for your reply Ken.=0A>>Unfortun= ately I have to use hashtable as this is what the server expects.=0A>>=0A>>= Marcel=0A>>=0A>>----- Original Message ----=0A>>From: Kent Johnson <kent37@= tds.net>=0A>>To: marcel liker <m_...@ya...>=0A>>Cc: jython-users@list= s.sourceforge.net=0A>>Sent: Thursday, 16 November, 2006 4:50:47 PM=0A>>Subj= ect: Re: [Jython-users] Sending a hashtable with httplib=0A>>=0A>>marcel li= ker wrote:=0A>>=0A>>=0A>>>Hi there.=0A>>>=0A>>>I am creating an http client= to send some data to a http server.=0A>>>The problem I am having is that t= he data is a Hashtable which I am trying to send using httplib.=0A>>>Unfort= unately I am getting the error below.=0A>>=0A>>=0A>>What if you use a dict = rather than a Hashtable?=0A>>=0A>>Kent=0A>>=0A>>=0A>>=0A>>>Any help is appr= eciated.=0A>>>=0A>>>Thanks,=0A>>>Marcel=0A>>>=0A>>>=0A>>>=0A>>>>>>from java= .util import Hashtable=0A>>>>>=0A>>>>>>req=3DHashtable()=0A>>>>>>req.put('A= DDRESS','my address')=0A>>>>>>req.put('NAME','my name')=0A>>>>>>import http= lib=0A>>>>>>conn =3D httplib.HTTPConnection("192.168.1.111:80")=0A>>>>>>con= n.request("POST", "/Listener", req)=0A>>>=0A>>>Traceback (innermost last):= =0A>>> File "<console>", line 1, in ?=0A>>> File "/home/marcel/j22/Lib/http= lib.py", line 701, in request=0A>>> File "/home/marcel/j22/Lib/httplib.py",= line 726, in _send_request=0A>>> File "/home/marcel/j22/Lib/httplib.py", l= ine 560, in send=0A>>> File "/home/marcel/j22/Lib/socket.py", line 211, in = send=0A>>>TypeError: write(): 1st arg can't be coerced to byte[] or int=0A>= >>=0A>>>=0A>>>=0A>>>Send instant messages to your online friends http://uk.= messenger.yahoo.com =0A>>>=0A>>>-------------------------------------------= ------------------------------=0A>>>Take Surveys. Earn Cash. Influence the = Future of IT=0A>>>Join SourceForge.net's Techsay panel and you'll get the c= hance to share your=0A>>>opinions on IT & business topics through brief sur= veys - and earn cash=0A>>>http://www.techsay.com/default.php?page=3Djoin.ph= p&p=3Dsourceforge&CID=3DDEVDEV=0A>>>_______________________________________= ________=0A>>>Jython-users mailing list=0A>>>Jyt...@li...urceforge= .net=0A>>>https://lists.sourceforge.net/lists/listinfo/jython-users=0A>>>= =0A>>>=0A>>=0A>>=0A>>=0A>>=0A>>=0A>>=0A>>=0A>>Send instant messages to your= online friends http://uk.messenger.yahoo.com =0A>>=0A>>-------------------= ------------------------------------------------------=0A>>Take Surveys. Ea= rn Cash. Influence the Future of IT=0A>>Join SourceForge.net's Techsay pane= l and you'll get the chance to share your=0A>>opinions on IT & business top= ics through brief surveys - and earn cash=0A>>http://www.techsay.com/defaul= t.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A>>____________________= ___________________________=0A>>Jython-users mailing list=0A>>Jython-users@= lists.sourceforge.net=0A>>https://lists.sourceforge.net/lists/listinfo/jyth= on-users=0A> =0A> =0A> =0A> =0A> =0A> Send instant messages to your online = friends http://uk.messenger.yahoo.com =0A> =0A> ---------------------------= ----------------------------------------------=0A> Take Surveys. Earn Cash.= Influence the Future of IT=0A> Join SourceForge.net's Techsay panel and yo= u'll get the chance to share your=0A> opinions on IT & business topics thro= ugh brief surveys - and earn cash=0A> http://www.techsay.com/default.php?pa= ge=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A> ____________________________= ___________________=0A> Jython-users mailing list=0A> Jyt...@li...= urceforge.net=0A> https://lists.sourceforge.net/lists/listinfo/jython-users= =0A=0A=0A=0A=0A=0A=09=09=0A________________________________________________= ___________ =0ATry the all-new Yahoo! Mail. "The New Version is radically e= asier to use" =96 The Wall Street Journal =0Ahttp://uk.docs.yahoo.com/nowyo= ucan.html |
From: Jeff E. <jem...@fr...> - 2006-11-16 18:10:16
|
Did you try passing baos.toByteArray()? The traceback indicates that a byte[] is an acceptable arg. (A ByteArrayInputStream in not a byte[].) marcel liker wrote: > Thanks Jeff. >=20 > I tried what you suggested below but that would give the same error as = earlier ("TypeError: write(): 1st arg can't be coerced to byte[] or int")= . > After double checking the java code I posted your jython version looked= slightly different so I tried this: >=20 >=20 >>>>baos =3D ByteArrayOutputStream() >>>>oos =3D ObjectOutputStream(baos) >>>>oos.writeObject(req) >>>>bais =3D ByteArrayInputStream(baos.toByteArray()) >>>>conn =3D httplib.HTTPConnection("192.168.1.111:80") >>>>conn.request("POST", "/Listener", bais) >=20 > Traceback (innermost last): > File "<console>", line 1, in ? > File "/home/marcel/j22/Lib/httplib.py", line 701, in request > File "/home/marcel/j22/Lib/httplib.py", line 720, in _send_request > AttributeError: __len__ >=20 >>>>len(bais) >=20 > Traceback (innermost last): > File "<console>", line 1, in ? > AttributeError: __len__ >=20 > I am unsure, however, whether this is a step forward. > I do not do much programming so please bear with me. Also if somebody c= ould point to some documentation discussing this topic that would be very= helpful as well. >=20 > Thanks, > Marcel >=20 > ----- Original Message ---- > From: Jeff Emanuel <jem...@fr...> > To: marcel liker <m_...@ya...> > Cc: jyt...@li... > Sent: Thursday, 16 November, 2006 5:50:51 PM > Subject: Re: [Jython-users] Sending a hashtable with httplib >=20 > In Jython: >=20 > from java.io import * > baos =3D ByteArrayOutputStream() > oos =3D ObjectOutputStream(baos) > oos.writeObject(yourHashtable) > oos.close() > yourHttpRequest.send(otherArgsHere, oos.toByteArray()) >=20 >=20 > marcel liker wrote: >=20 >>Thank you for your reply Jeff. >> >>Yes, you are right with the text nature of http. >>Below is a bit of java code which I think does the conversion from Hash= table to a serialized (? - I don't know java) object. >>How can this be achieved in jython? >> >>Marcel >> >>PostMethod method =3D new PostMethod(destURL); >> ByteArrayOutputStream baos =3D new ByteArrayOutputStream(); >> ObjectOutputStream oos =3D new ObjectOutputStream(baos); >> oos.writeObject(regObj); >> ByteArrayInputStream bais =3D new ByteArrayInputStream(baos.toB= yteArray()); >> method.setRequestBody(bais); >> >>----- Original Message ---- >>From: Jeff Emanuel <jem...@fr...> >>To: marcel liker <m_...@ya...> >>Cc: Kent Johnson <ke...@td...>; jyt...@li... >>Sent: Thursday, 16 November, 2006 5:30:12 PM >>Subject: Re: [Jython-users] Sending a hashtable with httplib >> >> >>Isn't http still a text protocol? How is the server expecting >>the hashtable to be encoded in the text? Create a >>string representation of your hashtable as the server >>expects it and send the string on the request. >> >> >>marcel liker wrote: >> >> >>>Thanks for your reply Ken. >>>Unfortunately I have to use hashtable as this is what the server expec= ts. >>> >>>Marcel >>> >>>----- Original Message ---- >>>From: Kent Johnson <ke...@td...> >>>To: marcel liker <m_...@ya...> >>>Cc: jyt...@li... >>>Sent: Thursday, 16 November, 2006 4:50:47 PM >>>Subject: Re: [Jython-users] Sending a hashtable with httplib >>> >>>marcel liker wrote: >>> >>> >>> >>>>Hi there. >>>> >>>>I am creating an http client to send some data to a http server. >>>>The problem I am having is that the data is a Hashtable which I am tr= ying to send using httplib. >>>>Unfortunately I am getting the error below. >>> >>> >>>What if you use a dict rather than a Hashtable? >>> >>>Kent >>> >>> >>> >>> >>>>Any help is appreciated. >>>> >>>>Thanks, >>>>Marcel >>>> >>>> >>>> >>>> >>>>>>>from java.util import Hashtable >>>>>> >>>>>> >>>>>>>req=3DHashtable() >>>>>>>req.put('ADDRESS','my address') >>>>>>>req.put('NAME','my name') >>>>>>>import httplib >>>>>>>conn =3D httplib.HTTPConnection("192.168.1.111:80") >>>>>>>conn.request("POST", "/Listener", req) >>>> >>>>Traceback (innermost last): >>>>File "<console>", line 1, in ? >>>>File "/home/marcel/j22/Lib/httplib.py", line 701, in request >>>>File "/home/marcel/j22/Lib/httplib.py", line 726, in _send_request >>>>File "/home/marcel/j22/Lib/httplib.py", line 560, in send >>>>File "/home/marcel/j22/Lib/socket.py", line 211, in send >>>>TypeError: write(): 1st arg can't be coerced to byte[] or int >>>> >>>> >>>> >>>>Send instant messages to your online friends http://uk.messenger.yaho= o.com=20 >>>> >>>>---------------------------------------------------------------------= ---- >>>>Take Surveys. Earn Cash. Influence the Future of IT >>>>Join SourceForge.net's Techsay panel and you'll get the chance to sha= re your >>>>opinions on IT & business topics through brief surveys - and earn cas= h >>>>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV >>>>_______________________________________________ >>>>Jython-users mailing list >>>>Jyt...@li... >>>>https://lists.sourceforge.net/lists/listinfo/jython-users >>>> >>>> >>> >>> >>> >>> >>> >>> >>> >>>Send instant messages to your online friends http://uk.messenger.yahoo= .com=20 >>> >>>----------------------------------------------------------------------= --- >>>Take Surveys. Earn Cash. Influence the Future of IT >>>Join SourceForge.net's Techsay panel and you'll get the chance to shar= e your >>>opinions on IT & business topics through brief surveys - and earn cash >>>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV >>>_______________________________________________ >>>Jython-users mailing list >>>Jyt...@li... >>>https://lists.sourceforge.net/lists/listinfo/jython-users >> >> >> >> >> >>Send instant messages to your online friends http://uk.messenger.yahoo.= com=20 >> >>-----------------------------------------------------------------------= -- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share= your >>opinions on IT & business topics through brief surveys - and earn cash >>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3D= DEVDEV >>_______________________________________________ >>Jython-users mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-users >=20 >=20 >=20 >=20 >=20 >=20 > =09 > ___________________________________________________________=20 > Try the all-new Yahoo! Mail. "The New Version is radically easier to us= e" =96 The Wall Street Journal=20 > http://uk.docs.yahoo.com/nowyoucan.html |
From: marcel l. <m_...@ya...> - 2006-11-16 18:17:35
|
I didn't. Sorry.=0AAt the second attempt:=0A=0A>>> baos =3D ByteArrayOutput= Stream()=0A>>> oos =3D ObjectOutputStream(baos)=0A>>> oos.writeObject(req)= =0A>>> oos.close()=0A>>> conn =3D httplib.HTTPConnection("192.168.1.111:80"= )=0A>>> conn.request("POST", "/Listener", oos.toByteArray())=0ATraceback (i= nnermost last):=0A File "<console>", line 1, in ?=0AAttributeError: 'javai= nstance' object has no attribute 'toByteArray'=0A>>> dir(oos)=0A['PROTOCOL_= VERSION_1', 'PROTOCOL_VERSION_2', 'SC_BLOCK_DATA', 'SC_ENUM', 'SC_EXTERNALI= ZABLE', 'SC_SERIALIZABLE', 'SC_WRITE_METHOD', 'STREAM_MAGIC', 'STREAM_VERSI= ON', 'SUBCLASS_IMPLEMENTATION_PERMISSION', 'SUBSTITUTION_PERMISSION', 'TC_A= RRAY', 'TC_BASE', 'TC_BLOCKDATA', 'TC_BLOCKDATALONG', 'TC_CLASS', 'TC_CLASS= DESC', 'TC_ENDBLOCKDATA', 'TC_ENUM', 'TC_EXCEPTION', 'TC_LONGSTRING', 'TC_M= AX', 'TC_NULL', 'TC_OBJECT', 'TC_PROXYCLASSDESC', 'TC_REFERENCE', 'TC_RESET= ', 'TC_STRING', '__init__', 'baseWireHandle', 'class', 'close', 'defaultWri= teObject', 'equals', 'flush', 'getClass', 'hashCode', 'notify', 'notifyAll'= , 'putFields', 'reset', 'toString', 'useProtocolVersion', 'wait', 'write', = 'writeBoolean', 'writeByte', 'writeBytes', 'writeChar', 'writeChars', 'writ= eDouble', 'writeFields', 'writeFloat', 'writeInt', 'writeLong', 'writeObjec= t', 'writeShort', 'writeUTF', 'writeUnshared']=0A=0AMarcel=0A=0A----- Origi= nal Message ----=0AFrom: Jeff Emanuel <jem...@fr...>=0ATo: marcel like= r <m_...@ya...>=0ACc: jyt...@li...=0ASent: Thur= sday, 16 November, 2006 6:09:57 PM=0ASubject: Re: [Jython-users] Sending a = hashtable with httplib=0A=0ADid you try passing baos.toByteArray()? The tr= aceback indicates=0Athat a byte[] is an acceptable arg. (A ByteArrayInputS= tream=0Ain not a byte[].)=0A=0A=0Amarcel liker wrote:=0A> Thanks Jeff.=0A> = =0A> I tried what you suggested below but that would give the same error as= earlier ("TypeError: write(): 1st arg can't be coerced to byte[] or int").= =0A> After double checking the java code I posted your jython version looke= d slightly different so I tried this:=0A> =0A> =0A>>>>baos =3D ByteArrayOut= putStream()=0A>>>>oos =3D ObjectOutputStream(baos)=0A>>>>oos.writeObject(re= q)=0A>>>>bais =3D ByteArrayInputStream(baos.toByteArray())=0A>>>>conn =3D h= ttplib.HTTPConnection("192.168.1.111:80")=0A>>>>conn.request("POST", "/List= ener", bais)=0A> =0A> Traceback (innermost last):=0A> File "<console>", l= ine 1, in ?=0A> File "/home/marcel/j22/Lib/httplib.py", line 701, in requ= est=0A> File "/home/marcel/j22/Lib/httplib.py", line 720, in _send_reques= t=0A> AttributeError: __len__=0A> =0A>>>>len(bais)=0A> =0A> Traceback (inne= rmost last):=0A> File "<console>", line 1, in ?=0A> AttributeError: __len= __=0A> =0A> I am unsure, however, whether this is a step forward.=0A> I do = not do much programming so please bear with me. Also if somebody could poin= t to some documentation discussing this topic that would be very helpful as= well.=0A> =0A> Thanks,=0A> Marcel=0A> =0A> ----- Original Message ----=0A>= From: Jeff Emanuel <jem...@fr...>=0A> To: marcel liker <m_liker@yahoo= .com>=0A> Cc: jyt...@li...=0A> Sent: Thursday, 16 Nov= ember, 2006 5:50:51 PM=0A> Subject: Re: [Jython-users] Sending a hashtable = with httplib=0A> =0A> In Jython:=0A> =0A> from java.io import *=0A> b= aos =3D ByteArrayOutputStream()=0A> oos =3D ObjectOutputStream(baos)=0A>= oos.writeObject(yourHashtable)=0A> oos.close()=0A> yourHttpReques= t.send(otherArgsHere, oos.toByteArray())=0A> =0A> =0A> marcel liker wrote:= =0A> =0A>>Thank you for your reply Jeff.=0A>>=0A>>Yes, you are right with t= he text nature of http.=0A>>Below is a bit of java code which I think does = the conversion from Hashtable to a serialized (? - I don't know java) objec= t.=0A>>How can this be achieved in jython?=0A>>=0A>>Marcel=0A>>=0A>>PostMet= hod method =3D new PostMethod(destURL);=0A>> ByteArrayOutputStream b= aos =3D new ByteArrayOutputStream();=0A>> ObjectOutputStream oos =3D= new ObjectOutputStream(baos);=0A>> oos.writeObject(regObj);=0A>> = ByteArrayInputStream bais =3D new ByteArrayInputStream(baos.toByteArra= y());=0A>> method.setRequestBody(bais);=0A>>=0A>>----- Original Mess= age ----=0A>>From: Jeff Emanuel <jem...@fr...>=0A>>To: marcel liker <m= _l...@ya...>=0A>>Cc: Kent Johnson <ke...@td...>; jython-users@lists= .sourceforge.net=0A>>Sent: Thursday, 16 November, 2006 5:30:12 PM=0A>>Subje= ct: Re: [Jython-users] Sending a hashtable with httplib=0A>>=0A>>=0A>>Isn't= http still a text protocol? How is the server expecting=0A>>the hashtable= to be encoded in the text? Create a=0A>>string representation of your has= htable as the server=0A>>expects it and send the string on the request.=0A>= >=0A>>=0A>>marcel liker wrote:=0A>>=0A>>=0A>>>Thanks for your reply Ken.=0A= >>>Unfortunately I have to use hashtable as this is what the server expects= .=0A>>>=0A>>>Marcel=0A>>>=0A>>>----- Original Message ----=0A>>>From: Kent = Johnson <ke...@td...>=0A>>>To: marcel liker <m_...@ya...>=0A>>>Cc:= jyt...@li...=0A>>>Sent: Thursday, 16 November, 2006 = 4:50:47 PM=0A>>>Subject: Re: [Jython-users] Sending a hashtable with httpli= b=0A>>>=0A>>>marcel liker wrote:=0A>>>=0A>>>=0A>>>=0A>>>>Hi there.=0A>>>>= =0A>>>>I am creating an http client to send some data to a http server.=0A>= >>>The problem I am having is that the data is a Hashtable which I am tryin= g to send using httplib.=0A>>>>Unfortunately I am getting the error below.= =0A>>>=0A>>>=0A>>>What if you use a dict rather than a Hashtable?=0A>>>=0A>= >>Kent=0A>>>=0A>>>=0A>>>=0A>>>=0A>>>>Any help is appreciated.=0A>>>>=0A>>>>= Thanks,=0A>>>>Marcel=0A>>>>=0A>>>>=0A>>>>=0A>>>>=0A>>>>>>>from java.util im= port Hashtable=0A>>>>>>=0A>>>>>>=0A>>>>>>>req=3DHashtable()=0A>>>>>>>req.pu= t('ADDRESS','my address')=0A>>>>>>>req.put('NAME','my name')=0A>>>>>>>impor= t httplib=0A>>>>>>>conn =3D httplib.HTTPConnection("192.168.1.111:80")=0A>>= >>>>>conn.request("POST", "/Listener", req)=0A>>>>=0A>>>>Traceback (innermo= st last):=0A>>>>File "<console>", line 1, in ?=0A>>>>File "/home/marcel/j22= /Lib/httplib.py", line 701, in request=0A>>>>File "/home/marcel/j22/Lib/htt= plib.py", line 726, in _send_request=0A>>>>File "/home/marcel/j22/Lib/httpl= ib.py", line 560, in send=0A>>>>File "/home/marcel/j22/Lib/socket.py", line= 211, in send=0A>>>>TypeError: write(): 1st arg can't be coerced to byte[] = or int=0A>>>>=0A>>>>=0A>>>>=0A>>>>Send instant messages to your online frie= nds http://uk.messenger.yahoo.com =0A>>>>=0A>>>>---------------------------= ----------------------------------------------=0A>>>>Take Surveys. Earn Cas= h. Influence the Future of IT=0A>>>>Join SourceForge.net's Techsay panel an= d you'll get the chance to share your=0A>>>>opinions on IT & business topic= s through brief surveys - and earn cash=0A>>>>http://www.techsay.com/defaul= t.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A>>>>__________________= _____________________________=0A>>>>Jython-users mailing list=0A>>>>Jython-= us...@li...=0A>>>>https://lists.sourceforge.net/lists/listi= nfo/jython-users=0A>>>>=0A>>>>=0A>>>=0A>>>=0A>>>=0A>>>=0A>>>=0A>>>=0A>>>=0A= >>>Send instant messages to your online friends http://uk.messenger.yahoo.c= om =0A>>>=0A>>>------------------------------------------------------------= -------------=0A>>>Take Surveys. Earn Cash. Influence the Future of IT=0A>>= >Join SourceForge.net's Techsay panel and you'll get the chance to share yo= ur=0A>>>opinions on IT & business topics through brief surveys - and earn c= ash=0A>>>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge= &CID=3DDEVDEV=0A>>>_______________________________________________=0A>>>Jyt= hon-users mailing list=0A>>>Jyt...@li...=0A>>>https:/= /lists.sourceforge.net/lists/listinfo/jython-users=0A>>=0A>>=0A>>=0A>>=0A>>= =0A>>Send instant messages to your online friends http://uk.messenger.yahoo= .com =0A>>=0A>>------------------------------------------------------------= -------------=0A>>Take Surveys. Earn Cash. Influence the Future of IT=0A>>J= oin SourceForge.net's Techsay panel and you'll get the chance to share your= =0A>>opinions on IT & business topics through brief surveys - and earn cash= =0A>>http://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV=0A>>_______________________________________________=0A>>Jython-us= ers mailing list=0A>>Jyt...@li...=0A>>https://lists.s= ourceforge.net/lists/listinfo/jython-users=0A> =0A> =0A> =0A> =0A> =0A> =0A= > =0A> ___________________________________________________________ = =0A> Try the all-new Yahoo! Mail. "The New Version is radically easier to u= se" =96 The Wall Street Journal =0A> http://uk.docs.yahoo.com/nowyoucan.htm= l=0A=0A=0A=0A=0A=0A=09=09=0A_______________________________________________= ____________ =0ATry the all-new Yahoo! Mail. "The New Version is radically = easier to use" =96 The Wall Street Journal =0Ahttp://uk.docs.yahoo.com/nowy= oucan.html |
From: Michael C. <chi...@mi...> - 2006-11-16 18:29:08
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=windows-1252" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> <pre wrap="">baos.toByteArray() not oos.toByteArray()</pre> marcel liker wrote: <blockquote cite="mid...@we..." type="cite"> <pre wrap="">I didn't. Sorry. At the second attempt: </pre> <blockquote type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">baos = ByteArrayOutputStream() oos = ObjectOutputStream(baos) oos.writeObject(req) oos.close() conn = httplib.HTTPConnection("192.168.1.111:80") conn.request("POST", "/Listener", oos.toByteArray()) </pre> </blockquote> </blockquote> </blockquote> <pre wrap=""><!---->Traceback (innermost last): File "<console>", line 1, in ? AttributeError: 'javainstance' object has no attribute 'toByteArray' </pre> <blockquote type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">dir(oos) </pre> </blockquote> </blockquote> </blockquote> <pre wrap=""><!---->['PROTOCOL_VERSION_1', 'PROTOCOL_VERSION_2', 'SC_BLOCK_DATA', 'SC_ENUM', 'SC_EXTERNALIZABLE', 'SC_SERIALIZABLE', 'SC_WRITE_METHOD', 'STREAM_MAGIC', 'STREAM_VERSION', 'SUBCLASS_IMPLEMENTATION_PERMISSION', 'SUBSTITUTION_PERMISSION', 'TC_ARRAY', 'TC_BASE', 'TC_BLOCKDATA', 'TC_BLOCKDATALONG', 'TC_CLASS', 'TC_CLASSDESC', 'TC_ENDBLOCKDATA', 'TC_ENUM', 'TC_EXCEPTION', 'TC_LONGSTRING', 'TC_MAX', 'TC_NULL', 'TC_OBJECT', 'TC_PROXYCLASSDESC', 'TC_REFERENCE', 'TC_RESET', 'TC_STRING', '__init__', 'baseWireHandle', 'class', 'close', 'defaultWriteObject', 'equals', 'flush', 'getClass', 'hashCode', 'notify', 'notifyAll', 'putFields', 'reset', 'toString', 'useProtocolVersion', 'wait', 'write', 'writeBoolean', 'writeByte', 'writeBytes', 'writeChar', 'writeChars', 'writeDouble', 'writeFields', 'writeFloat', 'writeInt', 'writeLong', 'writeObject', 'writeShort', 'writeUTF', 'writeUnshared'] Marcel ----- Original Message ---- From: Jeff Emanuel <a class="moz-txt-link-rfc2396E" href="mailto:jem...@fr..."><jem...@fr...></a> To: marcel liker <a class="moz-txt-link-rfc2396E" href="mailto:m_...@ya..."><m_...@ya...></a> Cc: <a class="moz-txt-link-abbreviated" href="mailto:jyt...@li...">jyt...@li...</a> Sent: Thursday, 16 November, 2006 6:09:57 PM Subject: Re: [Jython-users] Sending a hashtable with httplib Did you try passing baos.toByteArray()? The traceback indicates that a byte[] is an acceptable arg. (A ByteArrayInputStream in not a byte[].) marcel liker wrote: </pre> <blockquote type="cite"> <pre wrap="">Thanks Jeff. I tried what you suggested below but that would give the same error as earlier ("TypeError: write(): 1st arg can't be coerced to byte[] or int"). After double checking the java code I posted your jython version looked slightly different so I tried this: </pre> <blockquote type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">baos = ByteArrayOutputStream() oos = ObjectOutputStream(baos) oos.writeObject(req) bais = ByteArrayInputStream(baos.toByteArray()) conn = httplib.HTTPConnection("192.168.1.111:80") conn.request("POST", "/Listener", bais) </pre> </blockquote> </blockquote> </blockquote> <pre wrap="">Traceback (innermost last): File "<console>", line 1, in ? File "/home/marcel/j22/Lib/httplib.py", line 701, in request File "/home/marcel/j22/Lib/httplib.py", line 720, in _send_request AttributeError: __len__ </pre> <blockquote type="cite"> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">len(bais) </pre> </blockquote> </blockquote> </blockquote> <pre wrap="">Traceback (innermost last): File "<console>", line 1, in ? AttributeError: __len__ I am unsure, however, whether this is a step forward. I do not do much programming so please bear with me. Also if somebody could point to some documentation discussing this topic that would be very helpful as well. Thanks, Marcel ----- Original Message ---- From: Jeff Emanuel <a class="moz-txt-link-rfc2396E" href="mailto:jem...@fr..."><jem...@fr...></a> To: marcel liker <a class="moz-txt-link-rfc2396E" href="mailto:m_...@ya..."><m_...@ya...></a> Cc: <a class="moz-txt-link-abbreviated" href="mailto:jyt...@li...">jyt...@li...</a> Sent: Thursday, 16 November, 2006 5:50:51 PM Subject: Re: [Jython-users] Sending a hashtable with httplib In Jython: from java.io import * baos = ByteArrayOutputStream() oos = ObjectOutputStream(baos) oos.writeObject(yourHashtable) oos.close() yourHttpRequest.send(otherArgsHere, oos.toByteArray()) marcel liker wrote: </pre> <blockquote type="cite"> <pre wrap="">Thank you for your reply Jeff. Yes, you are right with the text nature of http. Below is a bit of java code which I think does the conversion from Hashtable to a serialized (? - I don't know java) object. How can this be achieved in jython? Marcel PostMethod method = new PostMethod(destURL); ByteArrayOutputStream baos = new ByteArrayOutputStream(); ObjectOutputStream oos = new ObjectOutputStream(baos); oos.writeObject(regObj); ByteArrayInputStream bais = new ByteArrayInputStream(baos.toByteArray()); method.setRequestBody(bais); ----- Original Message ---- From: Jeff Emanuel <a class="moz-txt-link-rfc2396E" href="mailto:jem...@fr..."><jem...@fr...></a> To: marcel liker <a class="moz-txt-link-rfc2396E" href="mailto:m_...@ya..."><m_...@ya...></a> Cc: Kent Johnson <a class="moz-txt-link-rfc2396E" href="mailto:ke...@td..."><ke...@td...></a>; <a class="moz-txt-link-abbreviated" href="mailto:jyt...@li...">jyt...@li...</a> Sent: Thursday, 16 November, 2006 5:30:12 PM Subject: Re: [Jython-users] Sending a hashtable with httplib Isn't http still a text protocol? How is the server expecting the hashtable to be encoded in the text? Create a string representation of your hashtable as the server expects it and send the string on the request. marcel liker wrote: </pre> <blockquote type="cite"> <pre wrap="">Thanks for your reply Ken. Unfortunately I have to use hashtable as this is what the server expects. Marcel ----- Original Message ---- From: Kent Johnson <a class="moz-txt-link-rfc2396E" href="mailto:ke...@td..."><ke...@td...></a> To: marcel liker <a class="moz-txt-link-rfc2396E" href="mailto:m_...@ya..."><m_...@ya...></a> Cc: <a class="moz-txt-link-abbreviated" href="mailto:jyt...@li...">jyt...@li...</a> Sent: Thursday, 16 November, 2006 4:50:47 PM Subject: Re: [Jython-users] Sending a hashtable with httplib marcel liker wrote: </pre> <blockquote type="cite"> <pre wrap="">Hi there. I am creating an http client to send some data to a http server. The problem I am having is that the data is a Hashtable which I am trying to send using httplib. Unfortunately I am getting the error below. </pre> </blockquote> <pre wrap=""> What if you use a dict rather than a Hashtable? Kent </pre> <blockquote type="cite"> <pre wrap="">Any help is appreciated. Thanks, Marcel </pre> <blockquote type="cite"> <blockquote type="cite"> <pre wrap="">>from java.util import Hashtable </pre> <blockquote type="cite"> <pre wrap="">req=Hashtable() req.put('ADDRESS','my address') req.put('NAME','my name') import httplib conn = httplib.HTTPConnection("192.168.1.111:80") conn.request("POST", "/Listener", req) </pre> </blockquote> </blockquote> </blockquote> <pre wrap="">Traceback (innermost last): File "<console>", line 1, in ? File "/home/marcel/j22/Lib/httplib.py", line 701, in request File "/home/marcel/j22/Lib/httplib.py", line 726, in _send_request File "/home/marcel/j22/Lib/httplib.py", line 560, in send File "/home/marcel/j22/Lib/socket.py", line 211, in send TypeError: write(): 1st arg can't be coerced to byte[] or int Send instant messages to your online friends <a class="moz-txt-link-freetext" href="http://uk.messenger.yahoo.com">http://uk.messenger.yahoo.com</a> ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash <a class="moz-txt-link-freetext" href="http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV">http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV</a> _______________________________________________ Jython-users mailing list <a class="moz-txt-link-abbreviated" href="mailto:Jyt...@li...">Jyt...@li...</a> <a class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/jython-users">https://lists.sourceforge.net/lists/listinfo/jython-users</a> </pre> </blockquote> <pre wrap=""> </pre> </blockquote> </blockquote> </blockquote> </blockquote> <br> </body> </html> |
From: Carmelo S. <car...@ho...> - 2006-11-22 13:40:43
|
Hi all, Hope this is the right place where I can ask my question. =20 I have got few threads that use an Interactive Interpreter to create a = sort of shell. Looks perfectly working except for the setErr/Out. All the interpreters will redirect the output to the last created shell = - the last one actually calling the set call :-( =20 I have found this on the web... http://aspn.activestate.com/ASPN/Mail/Message/Jython-users/1684079 =20 Any way to get around the problem the problem? Am I doing something = wrong? Should I really change my code to use the Python Interpreter??? I = haven't tried yet if this will really work :-( Thanks for your help =20 Kar |
From: Charlie G. <cha...@gm...> - 2006-11-24 18:52:18
|
On 11/22/06, Carmelo Scala <car...@ho...> wrote: > I have got few threads that use an Interactive Interpreter to create a sort > of shell. > > Looks perfectly working except for the setErr/Out. > > All the interpreters will redirect the output to the last created shell - > the last one actually calling the set call :-( > > Any way to get around the problem the problem? Am I doing something wrong? > > Should I really change my code to use the Python Interpreter??? I haven't > tried yet if this will really work :-( I think PythonInterpreter with a separate PySystemState will work though it'll require you to recreate some of the work that InteractiveInterpreter does. It looks like InteractiveInterpreter should grow a third constructor that takes a PySystemState and pass it to the super constructor. Feel free to submit a bug at http://jython.org/bugs or a patch at http://jython.org/patches about this. Thanks, Charlie |
From: marcel l. <m_...@ya...> - 2006-11-16 18:57:56
|
Well, it's been a long day but thanks that helped.=0ACan somebody explain t= o here what this section mean? Is there also a way how to write this suing = j/python modules/libs?=0AI still have to find out how to process the server= 's response which is probably in the same format as the sent request.=0Abao= s =3D ByteArrayOutputStream()=0Aoos =3D ObjectOutputStream(baos)=0Aoos.writ= eObject(req)=0Aoos.close()=0Aoos.toByteArray()=0AThanks,=0AMarcel=0A----- O= riginal Message ----=0AFrom: Michael Chisholm <chi...@mi...>=0ATo: jy= tho...@li...=0ASent: Thursday, 16 November, 2006 6:28:5= 4 PM=0ASubject: Re: [Jython-users] Sending a hashtable with httplib=0A=0A= =0A=0A=0A=0A =0A =0A=0Abaos.toByteArray() not oos.toByteArray()=0Amarcel = liker wrote:=0A=0A I didn't. Sorry.=0AAt the second attempt:=0A=0A =0A = =0A =0A =0A baos =3D ByteArrayOutputStream()=0Aoos =3D Objec= tOutputStream(baos)=0Aoos.writeObject(req)=0Aoos.close()=0Aconn =3D httplib= .HTTPConnection("192.168.1.111:80")=0Aconn.request("POST", "/Listener", oos= .toByteArray())=0A =0A =0A =0A =0A Traceback (innermost la= st):=0A File "<console>", line 1, in ?=0AAttributeError: 'javainstance' ob= ject has no attribute 'toByteArray'=0A =0A =0A =0A =0A dir= (oos)=0A =0A =0A =0A =0A ['PROTOCOL_VERSION_1', 'PROTOCOL_= VERSION_2', 'SC_BLOCK_DATA', 'SC_ENUM', 'SC_EXTERNALIZABLE', 'SC_SERIALIZAB= LE', 'SC_WRITE_METHOD', 'STREAM_MAGIC', 'STREAM_VERSION', 'SUBCLASS_IMPLEME= NTATION_PERMISSION', 'SUBSTITUTION_PERMISSION', 'TC_ARRAY', 'TC_BASE', 'TC_= BLOCKDATA', 'TC_BLOCKDATALONG', 'TC_CLASS', 'TC_CLASSDESC', 'TC_ENDBLOCKDAT= A', 'TC_ENUM', 'TC_EXCEPTION', 'TC_LONGSTRING', 'TC_MAX', 'TC_NULL', 'TC_OB= JECT', 'TC_PROXYCLASSDESC', 'TC_REFERENCE', 'TC_RESET', 'TC_STRING', '__ini= t__', 'baseWireHandle', 'class', 'close', 'defaultWriteObject', 'equals', '= flush', 'getClass', 'hashCode', 'notify', 'notifyAll', 'putFields', 'reset'= , 'toString', 'useProtocolVersion', 'wait', 'write', 'writeBoolean', 'write= Byte', 'writeBytes', 'writeChar', 'writeChars', 'writeDouble', 'writeFields= ', 'writeFloat', 'writeInt', 'writeLong', 'writeObject', 'writeShort', 'wri= teUTF', 'writeUnshared']=0A=0AMarcel=0A=0A----- Original Message ----=0AFro= m: Jeff Emanuel <jem...@fr...>=0ATo: marcel liker <m_...@ya...>= =0ACc: jyt...@li...=0ASent: Thursday, 16 November, 20= 06 6:09:57 PM=0ASubject: Re: [Jython-users] Sending a hashtable with httpli= b=0A=0ADid you try passing baos.toByteArray()? The traceback indicates=0At= hat a byte[] is an acceptable arg. (A ByteArrayInputStream=0Ain not a byte= [].)=0A=0A=0Amarcel liker wrote:=0A =0A =0A Thanks Jeff.=0A=0AI tried = what you suggested below but that would give the same error as earlier ("Ty= peError: write(): 1st arg can't be coerced to byte[] or int").=0AAfter doub= le checking the java code I posted your jython version looked slightly diff= erent so I tried this:=0A=0A=0A =0A =0A =0A =0A = baos =3D ByteArrayOutputStream()=0Aoos =3D ObjectOutputStream(baos)=0Aoos.w= riteObject(req)=0Abais =3D ByteArrayInputStream(baos.toByteArray())=0Aconn = =3D httplib.HTTPConnection("192.168.1.111:80")=0Aconn.request("POST", "/Lis= tener", bais)=0A =0A =0A =0A =0A Traceback (inne= rmost last):=0A File "<console>", line 1, in ?=0A File "/home/marcel/j22/= Lib/httplib.py", line 701, in request=0A File "/home/marcel/j22/Lib/httpli= b.py", line 720, in _send_request=0AAttributeError: __len__=0A=0A =0A = =0A =0A =0A len(bais)=0A =0A =0A = =0A =0A Traceback (innermost last):=0A File "<console>", line 1, in= ?=0AAttributeError: __len__=0A=0AI am unsure, however, whether this is a s= tep forward.=0AI do not do much programming so please bear with me. Also if= somebody could point to some documentation discussing this topic that woul= d be very helpful as well.=0A=0AThanks,=0AMarcel=0A=0A----- Original Messag= e ----=0AFrom: Jeff Emanuel <jem...@fr...>=0ATo: marcel liker <m_liker= @yahoo.com>=0ACc: jyt...@li...=0ASent: Thursday, 16 N= ovember, 2006 5:50:51 PM=0ASubject: Re: [Jython-users] Sending a hashtable = with httplib=0A=0AIn Jython:=0A=0A from java.io import *=0A baos =3D By= teArrayOutputStream()=0A oos =3D ObjectOutputStream(baos)=0A oos.writeO= bject(yourHashtable)=0A oos.close()=0A yourHttpRequest.send(otherArgsHe= re, oos.toByteArray())=0A=0A=0Amarcel liker wrote:=0A=0A =0A =0A = Thank you for your reply Jeff.=0A=0AYes, you are right with the text natur= e of http.=0ABelow is a bit of java code which I think does the conversion = from Hashtable to a serialized (? - I don't know java) object.=0AHow can th= is be achieved in jython?=0A=0AMarcel=0A=0APostMethod method =3D new PostMe= thod(destURL);=0A ByteArrayOutputStream baos =3D new ByteArrayOutputS= tream();=0A ObjectOutputStream oos =3D new ObjectOutputStream(baos);= =0A oos.writeObject(regObj);=0A ByteArrayInputStream bais =3D n= ew ByteArrayInputStream(baos.toByteArray());=0A method.setRequestBody= (bais);=0A=0A----- Original Message ----=0AFrom: Jeff Emanuel <jemanuel@fri= i.com>=0ATo: marcel liker <m_...@ya...>=0ACc: Kent Johnson <kent37@td= s.net>; jyt...@li...=0ASent: Thursday, 16 November, 2= 006 5:30:12 PM=0ASubject: Re: [Jython-users] Sending a hashtable with httpl= ib=0A=0A=0AIsn't http still a text protocol? How is the server expecting= =0Athe hashtable to be encoded in the text? Create a=0Astring representati= on of your hashtable as the server=0Aexpects it and send the string on the = request.=0A=0A=0Amarcel liker wrote:=0A=0A=0A =0A =0A Than= ks for your reply Ken.=0AUnfortunately I have to use hashtable as this is w= hat the server expects.=0A=0AMarcel=0A=0A----- Original Message ----=0AFrom= : Kent Johnson <ke...@td...>=0ATo: marcel liker <m_...@ya...>=0ACc= : jyt...@li...=0ASent: Thursday, 16 November, 2006 4:= 50:47 PM=0ASubject: Re: [Jython-users] Sending a hashtable with httplib=0A= =0Amarcel liker wrote:=0A=0A=0A=0A =0A =0A Hi there.= =0A=0AI am creating an http client to send some data to a http server.=0ATh= e problem I am having is that the data is a Hashtable which I am trying to = send using httplib.=0AUnfortunately I am getting the error below.=0A = =0A =0A What if you use a dict rather than a Hashtable?=0A= =0AKent=0A=0A=0A=0A=0A =0A =0A Any help is appreciat= ed.=0A=0AThanks,=0AMarcel=0A=0A=0A=0A=0A =0A =0A = =0A >from java.util import Hashtable=0A=0A=0A = =0A =0A req=3DHashtable()=0Areq.put('ADDRESS','= my address')=0Areq.put('NAME','my name')=0Aimport httplib=0Aconn =3D httpli= b.HTTPConnection("192.168.1.111:80")=0Aconn.request("POST", "/Listener", re= q)=0A =0A =0A =0A =0A = Traceback (innermost last):=0AFile "<console>", line 1, in ?=0AFile "/h= ome/marcel/j22/Lib/httplib.py", line 701, in request=0AFile "/home/marcel/j= 22/Lib/httplib.py", line 726, in _send_request=0AFile "/home/marcel/j22/Lib= /httplib.py", line 560, in send=0AFile "/home/marcel/j22/Lib/socket.py", li= ne 211, in send=0ATypeError: write(): 1st arg can't be coerced to byte[] or= int=0A=0A=0A=0ASend instant messages to your online friends http://uk.mess= enger.yahoo.com =0A=0A-----------------------------------------------------= --------------------=0ATake Surveys. Earn Cash. Influence the Future of IT= =0AJoin SourceForge.net's Techsay panel and you'll get the chance to share = your=0Aopinions on IT & business topics through brief surveys - and earn ca= sh=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV=0A_______________________________________________=0AJython-users = mailing list=0AJ...@li...=0Ahttps://lists.sourcefor= ge.net/lists/listinfo/jython-users=0A=0A=0A =0A =0A = =0A=0A =0A =0A =0A =0A=0A=0A=0A----------------------------= ---------------------------------------------=0ATake Surveys. Earn Cash. In= fluence the Future of IT=0AJoin SourceForge.net's Techsay panel and you'll = get the chance to share your=0Aopinions on IT & business topics through bri= ef surveys - and earn cash=0Ahttp://www.techsay.com/default.php?page=3Djoin= .php&p=3Dsourceforge&CID=3DDEVDEV=0A_______________________________________= ________=0AJython-users mailing list=0AJ...@li...= =0Ahttps://lists.sourceforge.net/lists/listinfo/jython-users=0A=0A=0A=0A=0A= =0A=0A=0A=09=0A=09=0A=09=09=0A_____________________________________________= ______________ =0AAll new Yahoo! Mail "The new Interface is stunning in its= simplicity and ease of use." - PC Magazine =0Ahttp://uk.docs.yahoo.com/now= youcan.html |
From: marcel l. <m_...@ya...> - 2006-11-16 19:40:17
|
Hm, I googled this blog which shows the whole process of de/serialization i= n jython using java classes. Very helpful.=0AI would still like to know if = there is a more pythonic way of doing it.=0AThanks all for your help so far= .=0A=0AMarcel=0A----- Original Message ----=0AFrom: marcel liker <m_liker@y= ahoo.com>=0ATo: Michael Chisholm <chi...@mi...>; jython-users@lists.s= ourceforge.net=0ASent: Thursday, 16 November, 2006 6:57:46 PM=0ASubject: Re= : [Jython-users] Sending a hashtable with httplib=0A=0AWell, it's been a lo= ng day but thanks that helped.=0ACan somebody explain to here what this sec= tion mean? Is there also a way how to write this suing j/python modules/lib= s?=0AI still have to find out how to process the server's response which is= probably in the same format as the sent request.=0Abaos =3D ByteArrayOutpu= tStream()=0Aoos =3D ObjectOutputStream(baos)=0Aoos.writeObject(req)=0Aoos.c= lose()=0Aoos.toByteArray()=0AThanks,=0AMarcel=0A----- Original Message ----= =0AFrom: Michael Chisholm <chi...@mi...>=0ATo: jyt...@li...u= rceforge.net=0ASent: Thursday, 16 November, 2006 6:28:54 PM=0ASubject: Re: = [Jython-users]=0A Sending a hashtable with httplib=0A=0A=0A=0A=0A=0A =0A = =0A=0Abaos.toByteArray() not oos.toByteArray()=0Amarcel liker wrote:=0A=0A = I didn't. Sorry.=0AAt the second attempt:=0A=0A =0A =0A =0A =0A = baos =3D ByteArrayOutputStream()=0Aoos =3D ObjectOutputStream(baos)= =0Aoos.writeObject(req)=0Aoos.close()=0Aconn =3D httplib.HTTPConnection("19= 2.168.1.111:80")=0Aconn.request("POST", "/Listener", oos.toByteArray())=0A = =0A =0A =0A =0A Traceback (innermost last):=0A File "<con= sole>", line 1, in ?=0AAttributeError: 'javainstance' object has no attribu= te 'toByteArray'=0A =0A =0A =0A =0A dir(oos)=0A =0A= =0A =0A =0A ['PROTOCOL_VERSION_1', 'PROTOCOL_VERSION_2', 'SC_BLO= CK_DATA', 'SC_ENUM', 'SC_EXTERNALIZABLE', 'SC_SERIALIZABLE', 'SC_WRITE_METH= OD', 'STREAM_MAGIC', 'STREAM_VERSION', 'SUBCLASS_IMPLEMENTATION_PERMISSION'= , 'SUBSTITUTION_PERMISSION', 'TC_ARRAY', 'TC_BASE', 'TC_BLOCKDATA', 'TC_BLO= CKDATALONG', 'TC_CLASS', 'TC_CLASSDESC', 'TC_ENDBLOCKDATA', 'TC_ENUM', 'TC_= EXCEPTION', 'TC_LONGSTRING', 'TC_MAX', 'TC_NULL', 'TC_OBJECT', 'TC_PROXYCLA= SSDESC', 'TC_REFERENCE', 'TC_RESET', 'TC_STRING', '__init__', 'baseWireHand= le', 'class', 'close', 'defaultWriteObject', 'equals', 'flush', 'getClass',= 'hashCode', 'notify', 'notifyAll', 'putFields', 'reset', 'toString', 'useP= rotocolVersion', 'wait', 'write', 'writeBoolean', 'writeByte', 'writeBytes'= , 'writeChar', 'writeChars', 'writeDouble', 'writeFields', 'writeFloat', 'w= riteInt', 'writeLong', 'writeObject', 'writeShort', 'writeUTF', 'writeUnsha= red']=0A=0AMarcel=0A=0A----- Original Message ----=0AFrom: Jeff Emanuel <je= ma...@fr...>=0ATo: marcel liker <m_...@ya...>=0ACc: jython-users@= lists.sourceforge.net=0ASent: Thursday, 16 November, 2006 6:09:57 PM=0ASubj= ect: Re: [Jython-users] Sending a hashtable with httplib=0A=0ADid you try p= assing baos.toByteArray()? The traceback indicates=0Athat a byte[] is an a= cceptable arg. (A ByteArrayInputStream=0Ain not a byte[].)=0A=0A=0Amarcel = liker wrote:=0A =0A =0A Thanks Jeff.=0A=0AI tried what you suggested b= elow but that would give the same error as earlier ("TypeError: write(): 1s= t arg can't be coerced to byte[] or int").=0AAfter double checking the java= code I posted your jython version looked slightly different so I tried thi= s:=0A=0A=0A =0A =0A =0A =0A baos =3D ByteArrayOu= tputStream()=0Aoos =3D ObjectOutputStream(baos)=0Aoos.writeObject(req)=0Aba= is =3D ByteArrayInputStream(baos.toByteArray())=0Aconn =3D httplib.HTTPConn= ection("192.168.1.111:80")=0Aconn.request("POST", "/Listener", bais)=0A = =0A =0A =0A =0A Traceback (innermost last):=0A Fil= e "<console>", line 1, in ?=0A File "/home/marcel/j22/Lib/httplib.py", lin= e 701, in request=0A File "/home/marcel/j22/Lib/httplib.py", line 720, in = _send_request=0AAttributeError: __len__=0A=0A =0A =0A =0A = =0A len(bais)=0A =0A =0A =0A =0A Trace= back (innermost last):=0A File "<console>", line 1, in ?=0AAttributeError:= __len__=0A=0AI am unsure, however, whether this is a step forward.=0AI do = not do much programming so please bear with me. Also if somebody could poin= t to some documentation discussing this topic that would be very helpful as= well.=0A=0AThanks,=0AMarcel=0A=0A----- Original Message ----=0AFrom: Jeff = Emanuel <jem...@fr...>=0ATo: marcel liker <m_...@ya...>=0ACc: jy= tho...@li...=0ASent: Thursday, 16 November, 2006 5:50:5= 1 PM=0ASubject: Re: [Jython-users] Sending a hashtable with httplib=0A=0AIn= Jython:=0A=0A from java.io import *=0A baos =3D ByteArrayOutputStream(= )=0A oos =3D ObjectOutputStream(baos)=0A oos.writeObject(yourHashtable)= =0A oos.close()=0A yourHttpRequest.send(otherArgsHere, oos.toByteArray(= ))=0A=0A=0Amarcel liker wrote:=0A=0A =0A =0A Thank you for your = reply Jeff.=0A=0AYes, you are right with the text nature of http.=0ABelow i= s a bit of java code which I think does the conversion from Hashtable to a = serialized (? - I don't know java) object.=0AHow can this be achieved in jy= thon?=0A=0AMarcel=0A=0APostMethod method =3D new PostMethod(destURL);=0A = ByteArrayOutputStream baos =3D new ByteArrayOutputStream();=0A Ob= jectOutputStream oos =3D new ObjectOutputStream(baos);=0A oos.writeOb= ject(regObj);=0A ByteArrayInputStream bais =3D new ByteArrayInputStre= am(baos.toByteArray());=0A method.setRequestBody(bais);=0A=0A----- Or= iginal Message ----=0AFrom: Jeff Emanuel <jem...@fr...>=0ATo: marcel l= iker <m_...@ya...>=0ACc: Kent Johnson <ke...@td...>; jython-users@= lists.sourceforge.net=0ASent: Thursday, 16 November, 2006 5:30:12 PM=0ASubj= ect: Re: [Jython-users] Sending a hashtable with httplib=0A=0A=0AIsn't http= still a text protocol? How is the server expecting=0Athe hashtable to be = encoded in the text? Create a=0Astring representation of your hashtable as= the server=0Aexpects it and send the string on the request.=0A=0A=0Amarcel= liker wrote:=0A=0A=0A =0A =0A Thanks for your reply Ken.= =0AUnfortunately I have to use hashtable as this is what the server expects= .=0A=0AMarcel=0A=0A----- Original Message ----=0AFrom: Kent Johnson <kent37= @tds.net>=0ATo: marcel liker <m_...@ya...>=0ACc: jython-users@lists.s= ourceforge.net=0ASent: Thursday, 16 November, 2006 4:50:47 PM=0ASubject: Re= : [Jython-users] Sending a hashtable with httplib=0A=0Amarcel liker wrote:= =0A=0A=0A=0A =0A =0A Hi there.=0A=0AI am creating an= http client to send some data to a http server.=0AThe problem I am having = is that the data is a Hashtable which I am trying to send using httplib.=0A= Unfortunately I am getting the error below.=0A =0A =0A = What if you use a dict rather than a Hashtable?=0A=0AKent=0A=0A=0A=0A=0A= =0A =0A Any help is appreciated.=0A=0AThanks,=0AMar= cel=0A=0A=0A=0A=0A =0A =0A =0A >f= rom java.util import Hashtable=0A=0A=0A =0A =0A = req=3DHashtable()=0Areq.put('ADDRESS','my address')=0Areq.put= ('NAME','my name')=0Aimport httplib=0Aconn =3D httplib.HTTPConnection("192.= 168.1.111:80")=0Aconn.request("POST", "/Listener", req)=0A = =0A =0A =0A =0A Traceback (innerm= ost last):=0AFile "<console>", line 1, in ?=0AFile "/home/marcel/j22/Lib/ht= tplib.py", line 701, in request=0AFile "/home/marcel/j22/Lib/httplib.py", l= ine 726, in _send_request=0AFile "/home/marcel/j22/Lib/httplib.py", line 56= 0, in send=0AFile "/home/marcel/j22/Lib/socket.py", line 211, in send=0ATyp= eError: write(): 1st arg can't be coerced to byte[] or int=0A=0A=0A=0ASend = instant messages to your online friends http://uk.messenger.yahoo.com =0A= =0A------------------------------------------------------------------------= -=0ATake Surveys. Earn Cash. Influence the Future of IT=0AJoin SourceForge.= net's Techsay panel and you'll get the chance to share your=0Aopinions on I= T & business topics through brief surveys - and earn cash=0Ahttp://www.tech= say.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID=3DDEVDEV=0A________= _______________________________________=0AJython-users mailing list=0AJytho= n-...@li...=0Ahttps://lists.sourceforge.net/lists/listinf= o/jython-users=0A=0A=0A =0A =0A =0A =0A = =0A =0A =0A=0A=0A=0A---------------------------------------------------= ----------------------=0ATake Surveys. Earn Cash. Influence the Future of I= T=0AJoin SourceForge.net's Techsay panel and you'll get the chance to share= your=0Aopinions on IT & business topics through brief surveys - and earn c= ash=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CI= D=3DDEVDEV=0A_______________________________________________=0AJython-users= mailing list=0AJ...@li...=0Ahttps://lists.sourcefo= rge.net/lists/listinfo/jython-users=0A=0A=0A=0A=0A=0A=0A=0A=09=09 =0ATry th= e all-new Yahoo! Mail . "The New Version is radically easier to use" =96 Th= e Wall Street Journal------------------------------------------------------= -------------------=0ATake Surveys. Earn Cash. Influence the Future of IT= =0AJoin SourceForge.net's Techsay panel and you'll get the chance to share = your=0Aopinions on IT & business topics through brief surveys - and earn ca= sh=0Ahttp://www.techsay.com/default.php?page=3Djoin.php&p=3Dsourceforge&CID= =3DDEVDEV=0A_______________________________________________=0AJython-users = mailing list=0AJ...@li...=0Ahttps://lists.sourcefor= ge.net/lists/listinfo/jython-users=0A=0A=0A=0A=0A=0A=0ASend instant message= s to your online friends http://uk.messenger.yahoo.com |
From: Jeff E. <jem...@fr...> - 2006-11-16 17:30:30
|
Isn't http still a text protocol? How is the server expecting the hashtable to be encoded in the text? Create a string representation of your hashtable as the server expects it and send the string on the request. marcel liker wrote: > Thanks for your reply Ken. > Unfortunately I have to use hashtable as this is what the server expects. > > Marcel > > ----- Original Message ---- > From: Kent Johnson <ke...@td...> > To: marcel liker <m_...@ya...> > Cc: jyt...@li... > Sent: Thursday, 16 November, 2006 4:50:47 PM > Subject: Re: [Jython-users] Sending a hashtable with httplib > > marcel liker wrote: > >>Hi there. >> >>I am creating an http client to send some data to a http server. >>The problem I am having is that the data is a Hashtable which I am trying to send using httplib. >>Unfortunately I am getting the error below. > > > What if you use a dict rather than a Hashtable? > > Kent > > >>Any help is appreciated. >> >>Thanks, >>Marcel >> >> >>>>>from java.util import Hashtable >>>>>req=Hashtable() >>>>>req.put('ADDRESS','my address') >>>>>req.put('NAME','my name') >>>>>import httplib >>>>>conn = httplib.HTTPConnection("192.168.1.111:80") >>>>>conn.request("POST", "/Listener", req) >> >>Traceback (innermost last): >> File "<console>", line 1, in ? >> File "/home/marcel/j22/Lib/httplib.py", line 701, in request >> File "/home/marcel/j22/Lib/httplib.py", line 726, in _send_request >> File "/home/marcel/j22/Lib/httplib.py", line 560, in send >> File "/home/marcel/j22/Lib/socket.py", line 211, in send >>TypeError: write(): 1st arg can't be coerced to byte[] or int >> >> >> >>Send instant messages to your online friends http://uk.messenger.yahoo.com >> >>------------------------------------------------------------------------- >>Take Surveys. Earn Cash. Influence the Future of IT >>Join SourceForge.net's Techsay panel and you'll get the chance to share your >>opinions on IT & business topics through brief surveys - and earn cash >>http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV >>_______________________________________________ >>Jython-users mailing list >>Jyt...@li... >>https://lists.sourceforge.net/lists/listinfo/jython-users >> >> > > > > > > > > Send instant messages to your online friends http://uk.messenger.yahoo.com > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys - and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Jython-users mailing list > Jyt...@li... > https://lists.sourceforge.net/lists/listinfo/jython-users |