Re: [JDEV] Error in XML Parsing through HTTP Proxy
Hi Vincent! Vincent Ong wrote: >Fri Aug 2 13:47:07 2002 mio.c:760 MIO read from socket 15: POST / HTTP/1.1 >Content-Type: application/x-www-form-urlencoded >User-Agent: Java1.4.0 >Host: myserver:5222 >Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 >Content-length: 727 >Connection: close > >0, > [...] >Fri Aug 2 13:47:07 2002 mio.c:1054 mio_write called on x: 0 buffer: >HTTP/1.0 2 >00 Ok >Server: jabber/xmlstream-hack-0.1 >Expires: Fri, 10 Oct 1997 10:10:10 GMT >Pragma: no-cache >Cache-control: private >= > >Because of this, I am getting an error message from the jabber server: >Anything I can do?? > >XML Parsing Error: syntax error >Fri Aug 2 13:47:07 2002 mio.c:279 write_dump writing data: >Invalid XML > > No ... you get the error because you try to use polling with a direct connection to the server. The server doesn't understand polling ... you have to use some software in the middle like my Java-Servlet (http://devel.amessage.de/JabberPollingServlet/). Tot kijk Matthias -- Fon: +49-700 77007770 http://matthias-wimmer.de/ Fax: +49-89 312 88654 jabber:[EMAIL PROTECTED] ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] Error in XML Parsing through HTTP Proxy
Hi All, I am trying to use HTTP proxy because my client is behind a firewall. I have done some testing in a local server I've installed myself. Of course I have installed a proxy in my own pc (which is together with the server). When i pass in the XML string through the HTTP Proxy, this is the string that is sent to the jabber server. Fri Aug 2 13:47:07 2002 mio.c:760 MIO read from socket 15: POST / HTTP/1.1 Content-Type: application/x-www-form-urlencoded User-Agent: Java1.4.0 Host: myserver:5222 Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2 Content-length: 727 Connection: close 0,http://etherx.jabber.org/streams";> usernamepasswordhomeusernamepasswordhomeSome MessageSome Message Fri Aug 2 13:47:07 2002 mio.c:1054 mio_write called on x: 0 buffer: HTTP/1.0 2 00 Ok Server: jabber/xmlstream-hack-0.1 Expires: Fri, 10 Oct 1997 10:10:10 GMT Pragma: no-cache Cache-control: private = Because of this, I am getting an error message from the jabber server: Anything I can do?? XML Parsing Error: syntax error Fri Aug 2 13:47:07 2002 mio.c:279 write_dump writing data: Invalid XML Is there any workaround on this?? I have been stuck with HTTP passthrough for quite some time now. I hope someone out there can help me. Any help would be highly appreciated. Thanking you in advance. ;-) Yours Sincerely, Vincent ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] Use Jabbar to Broadcast only
ummm...thats wonderful and all, but its jabbEr, and im sure you could hire any number of open source developers to create the solution you are looking for (myself included) Michael A. Locurcio wrote: >I work in a call center, and we need to be able to broadcast to our >agents. It needs to be low cost and efficent, that's why I want to use >Jabbar. My only problem is I don't know enough about it. I got the >server working, but here are my company's requirements. > >1. Allow Supervisors (some group of people) to send Broadcast messages >to a single agent, group of agents, or every agent. > >2. Allow Agents to communicate only with Supervisor, not with any other >agent. > >Can permissions like these be enabled? Can user profiles be put into a >database such as Access? > >-Michael > >-- >'I really, really like being the president.' >- PRESIDENT GEORGE BUSH, TO TOM BROKAW > > >___ >jdev mailing list >[EMAIL PROTECTED] >http://mailman.jabber.org/listinfo/jdev > > ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] Use Jabbar to Broadcast only
I work in a call center, and we need to be able to broadcast to our agents. It needs to be low cost and efficent, that's why I want to use Jabbar. My only problem is I don't know enough about it. I got the server working, but here are my company's requirements. 1. Allow Supervisors (some group of people) to send Broadcast messages to a single agent, group of agents, or every agent. 2. Allow Agents to communicate only with Supervisor, not with any other agent. Can permissions like these be enabled? Can user profiles be put into a database such as Access? -Michael -- 'I really, really like being the president.' - PRESIDENT GEORGE BUSH, TO TOM BROKAW ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] Minor notes about JabberTest
This is just a quick note to let everyone know that I uploaded a source tgz of JabberTest to www.sf.net/projects/jabbertest. I have received a very large number of requests recently for a source package since most people seem to prefer to avoid CVS. In addition, I made some very minor modifications to the documentation, including adding an INSTALL document. On a related note, I will be performing a number of updates to the test suite in the coming months. If you have any wishes you would like to see addressed, then don't hesitate in letting me know. So what is JabberTest? JabberTest is a GPL'd testing harness for Jabber to test performance and delivery. The software includes several tools to perform various tests, including timing of account creation, message delivery, and concurrent session limits. Any combination of tests can be performed at the same time to test different characteristics of the Jabber.org or Jabber.com servers and the hardware infrastructure. If anyone has any questions then let me know. I can be reached at [EMAIL PROTECTED] FYI, I am not subscribed to jdev or jadmin due to high list traffic. Regards, Dustin --- Dustin Puryear <[EMAIL PROTECTED]> Puryear Information Technology Windows, UNIX, and IT Consulting http://www.puryear-it.com ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] http proxy support
Hi Justin Justin Georgeson wrote: > What's the real difference between the two? If the CONNECT fails should > I assume that the PUT will fail too? It's entirely possible that I > implemented it wrong. I'm afraid I cannot answer to your question because I don't understand the method yet. So, I ask, please answer to this question, someone?. Thanks in advance. -- )Hiroaki Nakamura) [EMAIL PROTECTED] ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] Java StartTLS
Thanks for the info, Mike! Hopefully this will appease DW and the JEP can move forward. I, personally, think that "STARTTLS" for Jabber is a great idea. :) [...forwarding to the standards-jig, since it probably belongs there...] bs. On Thu, 1 Aug 2002, Michael F Lin wrote: > Following up on yesterday's Foundation meeting, here is a little bit of > code from JLDAP's implementation to do StartTLS with JSSE: > > >http://www.openldap.org/devel/cvsweb.cgi/~checkout~/com/novell/ldap/LDAPJSSEStartTLSFactory.java?rev=1.2&cvsroot=JLDAP&hideattic=1&sortbydate=0 > > JSSE's javax.net.ssl.SSLSocketFactory.createSocket() accepts an > already-connected socket over which to start TLS. > (http://java.sun.com/j2se/1.4/docs/api/javax/net/ssl/SSLSocketFactory.html) > > -Mike ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] Java StartTLS
Following up on yesterday's Foundation meeting, here is a little bit of code from JLDAP's implementation to do StartTLS with JSSE: http://www.openldap.org/devel/cvsweb.cgi/~checkout~/com/novell/ldap/LDAPJSSEStartTLSFactory.java?rev=1.2&cvsroot=JLDAP&hideattic=1&sortbydate=0 JSSE's javax.net.ssl.SSLSocketFactory.createSocket() accepts an already-connected socket over which to start TLS. (http://java.sun.com/j2se/1.4/docs/api/javax/net/ssl/SSLSocketFactory.html) -Mike
[JDEV] Help! jabberd 1.4.2 coredumping!!!
Here's my predicament: A few months ago, when we upgraded from jabber 1.2 to 1.4, offline message management broke. (They continued to store up in spool files beyond maxoffline, and they were never being delivered). I recently discovered it was due to a module dependency issue (mod_offline needed to be loaded before mod_presence). However, before enabling the fix in production, I decided to purge excessive offline content in the spool files, so users wouldn't get bombarded with old garbage. And herein lies the problem: I wrote a script using perl XML::Simple to undef offline storage message array elements that I didn't want to keep. XMLout() converted the empty message arrays to . This caused jabberd to coredump! I can of course rerun the conversion, completely removing the empty message tags, but was wondering if anyone knew of a quick source code fix to be able to correctly handle these empty message tags? ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] http proxy support
Thanks Hiroaki. I've seen discussions about the polling method, and want to stay away from that due to security. The other method you mention is to send PUT http://jabber.org:5222/ HTTP/1.0 User-Agent: test Host: jabber.org:5222 I'm currently sending CONNECT servername serverport HTTP/1.0 What's the real difference between the two? If the CONNECT fails should I assume that the PUT will fail too? It's entirely possible that I implemented it wrong. Hiroaki Nakamura wrote: > Hi Justin. > > Have you looked at a thread of messages at jdev archive site? > http://mailman.jabber.org/pipermail/jdev/2002-July/012593.html > Partilularly, Mr. Matthias Wimmer's message: > http://mailman.jabber.org/pipermail/jdev/2002-July/012596.html > > I hope this helps. > > -- > )Hiroaki Nakamura) [EMAIL PROTECTED] > > > > ___ > jdev mailing list > [EMAIL PROTECTED] > http://mailman.jabber.org/listinfo/jdev -- Justin Georgeson UnBound Technologies, Inc. http://www.unboundtech.com Main 713.329.9330 Fax713.460.4051 Mobile 512.789.1962 5295 Hollister Road Houston, TX 77040 Real Applications using Real Wireless Intelligence(tm) ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] yahoo t issue
Hi, Could any one tell me the status of yahoo t src with new protocol changes?? Please help me even if a beta version exists? Thanks Anand _ MSN Photos is the easiest way to share and print your photos: http://photos.msn.com/support/worldwide.aspx ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] Jabber Palm
Sami Haahtinen wrote: >On Wed, Jul 31, 2002 at 08:18:02PM -0700, Dr. Sameer Verma wrote: > > >>I am looking for people/experiences/pointers on the use of Jabber Palm >>(http://sourceforge.net/projects/jabberpalm). I have used the >>pre-compiled .prc file on my Handspring Visor with an Omnisky modem and >>a Xircom wifi card, but with limited success. I can authenticate, and >>send, but cannot receive messages. At least, if the messages come it, >>they are not displayed. >> >> > >For me it has always worked, although i don't have the same hardware >that you do. (Palm Vx & Ericsson T39) Although, i didn't find it too >useful because i had to manually check the messages when ever i happened >to use my palm to access the internet. Somekind of automatics would be >nice.. =) > >Sami > > > Sami, Are you able to receive messages on your Palm Vx? Sameer -- Sameer Verma, Ph.D. Asst. Professor of Information Systems San Francisco State University San Francisco CA 94132 USA http://verma.sfsu.edu/ ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
Re: [JDEV] Jabber security certificate (PEM File)
Hi Adrin! adrian wrote: >where can i get a ".pem" file to be used with jabber server for SSL. >Does the certificate for an web server is good for using with jabber? > > You can create new certificates and keys for usage with Jabber with the CA.pl script included in the openssl distribution. You can also use the certificate of a https web server. Make sure that the certificate and the private key is in the same file (if not just copy them together to the same file) and use it with jabberd. Tot kijk Matthias -- Fon: +49-700 77007770 http://matthias-wimmer.de/ Fax: +49-89 312 88654 jabber:[EMAIL PROTECTED] ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
RE: [JDEV] Requesting a roster
Thank-you this was really helpful!!! As to why the these thread get disconnected, the original 0.9 still hold a few XML bugs that would cause the parser to throw an exception (you know the kind of mistake that happen when you copy a method into another class and you change the opening tag but not the closing tag :) Again, I would suggest you use the provided source to rebuild the library, as we went over all those packet to check them. Jean-Louis ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
RE: [JDEV] Jabber security certificate (PEM File)
This is the script that has been floating around the list.. ## # # Generate a certificate and key with no passphrase. # ## OPENSSL=/usr/bin/openssl ## This generates the cert and key $OPENSSL req -new -x509 -newkey rsa:1024 -keyout privkey.pem -out key.pem ## This will remove the passphrase $OPENSSL rsa -in privkey.pem -out privkey.pem ## Put it all together cat privkey.pem >> key.pem ## Cleanup rm privkey.pem -Hans -Original Message- From: adrian [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 01, 2002 10:07 AM To: [EMAIL PROTECTED] Subject: [JDEV] Jabber security certificate (PEM File) Hi, where can i get a ".pem" file to be used with jabber server for SSL. Does the certificate for an web server is good for using with jabber? Adrian ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] Jabber security certificate (PEM File)
Hi, where can i get a ".pem" file to be used with jabber server for SSL. Does the certificate for an web server is good for using with jabber? Adrian ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
[JDEV] Whiteboard
Is anyone using or familiar with: http://hem.fyristorg.com/matben/ the coccinella white board program? I need some assistance. Abe Cofnas
Re: [JDEV] Requesting a roster
Emma, The original Jabberbean 0.9 communication handling is to say a little shaky :) In fact if anything happen in the communication layer, it does not funnel back the exception to the upper layer beans, and in addition the sender or the reader java thread doesn't go away. This is why you are still in the "connected" mode because the deconnection event has not propagated. We faced that issue and we have modified these classes to provide a proper multithread behaviour. The JabberBeans source package that I sent you contains those modified classes and can just be used as a drop down replacement. As to why the these thread get disconnected, the original 0.9 still hold a few XML bugs that would cause the parser to throw an exception (you know the kind of mistake that happen when you copy a method into another class and you change the opening tag but not the closing tag :) Again, I would suggest you use the provided source to rebuild the library, as we went over all those packet to check them. Jean-Louis - Original Message - > > Message: 11 > From: "Emma Willis" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Subject: Re: [JDEV] Requesting a roster > Date: Wed, 31 Jul 2002 21:39:21 +0100 > Reply-To: [EMAIL PROTECTED] > > I am definitely authenticated and when I print out the packet that has > failed, I also print out the connectionstatus... it says it is connected. > > Over the past few days I have found that there are some bits of code which, > if they are included, cause a failed packet to occur, even if they are not > actually reached during execution I have identified these lines of code > by commenting out a whole series and systematically testing the program by > uncommenting one line at a time this is how I have narrowed down the > fault to the rosterRefresh()... I thought I would retry it by creating an > individually tailored IQ packet but it seems to be the packet content, not > the way of creating it that is causing the problem here. > > I also find that after one packet has failed, no more will go through. > > > --__--__-- > > Message: 12 > Date: Wed, 31 Jul 2002 21:00:45 + > From: Matthias Wimmer <[EMAIL PROTECTED]> > To: [EMAIL PROTECTED] > Subject: Re: [JDEV] Requesting a roster > Reply-To: [EMAIL PROTECTED] > > Hi Emma! > > Emma Willis wrote: > > >I am definitely authenticated and when I print out the packet that has > >failed, I also print out the connectionstatus... it says it is connected. > > > > > As I wrote you some days ago ... don't trust the connection status of > JabberBeans. Check with a networing tool or in the logfile ot the jabber > server if you are really connected. > E.g. you loose the connection if a NullPointerException is thrown in a > method that handles incoming packets. (E.g. because you expect an > attribute that isn't in the packet. It's a good idea to catch all > exceptions that you generate in your packet handling functions in the > method that is invoked for an incoming packet. > > > Tot kijk >Matthias > > -- > Fon: +49-700 77007770 http://matthias-wimmer.de/ > Fax: +49-89 312 88654 jabber:[EMAIL PROTECTED] > > > ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
RE: [JDEV] Registering users by Java
Many thanks Javier, that worked fine. In addition I have created an IQVCardBuilder. Thus allowing me to create a user completely from scratch. Dom ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev
RE: [JDEV] Registering users by Java
Try this: String serverName; String userName; String password; InfoQueryBuilder iqb; IQRegisterBuilder iqRegb; iqb = new InfoQueryBuilder(); iqRegb = new IQRegisterBuilder(); iqb.reset(); iqRegb.reset(); iqb.setType("set"); iqb.setToAddress(new JID(serverName)); iqRegb.set("username", userName); iqRegb.set("password", password); iqb.addExtension(iqRegb.build()); ConnectionBean cb = new ConnectionBean(); cb.connect(InetAddress.getByName(serverName)); cb.send((InfoQuery)iqb.build()); -Mensaje original- De: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]En nombre de [EMAIL PROTECTED] Enviado el: jueves, 01 de agosto de 2002 9:12 Para: [EMAIL PROTECTED] Asunto: [JDEV] Registering users by Java Has anyone successfully registered users programmatically with the JabberBeans package. I have 100+ users to setup, and want to do it that way. I cannot see how to use the IQRegisterBuilder. Any sample code would be great. D The information in this e-mail and any attached files is confidential. It is intended solely for the use of the addressee. Any unauthorised disclosure or use is prohibited. If you are not the intended recipient of the message, please notify the sender immediately and do not disclose the contents to any other person, use it for any purpose, or store or copy the information in any medium. The views of the author may not necessarily reflect those of the Company. ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev ___ jdev mailing list [EMAIL PROTECTED] http://mailman.jabber.org/listinfo/jdev