tag:blogger.com,1999:blog-429571914585035568.post1685365742260499345..comments2023-10-15T11:19:18.998+02:00Comments on Babbler - an XMPP library for Java: Version 0.4.0 now available on Maven CentralChristian Schudthttp://www.blogger.com/profile/05150185502293392614noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-429571914585035568.post-70097033455367578402015-02-11T19:04:53.810+01:002015-02-11T19:04:53.810+01:00Hi,
I am not sure, but maybe your proxy address/p...Hi, <br />I am not sure, but maybe your proxy address/port is wrong? Could you try to connect with?<br />new URL("http://remoteaddress:remoteport").openConnection(proxy).connect();<br /><br />you could also get in touch with me via email: christian.schudt at gmx.deChristian Schudthttps://www.blogger.com/profile/05150185502293392614noreply@blogger.comtag:blogger.com,1999:blog-429571914585035568.post-89605462532404166302015-02-11T09:54:18.746+01:002015-02-11T09:54:18.746+01:00Hi, Your library is really handy. I am trying esta...Hi, Your library is really handy. I am trying establish BOSH connection to a openfire server on port 7070 with firewall unblocked and openfire actively listening. Without proxy it works well with openfire running on same network but with proxy getting the following error, <br /><br />java.io.IOException: java.net.SocketTimeoutException: Read timed out<br /> at rocks.xmpp.core.session.XmppSession.connect(XmppSession.java:737)<br /> at com.geo.XMPPBosh.XMPPDemo.main(XMPPDemo.java:45)<br />Caused by: java.net.SocketTimeoutException: Read timed out<br /> at java.net.SocketInputStream.socketRead0(Native Method)<br /> at java.net.SocketInputStream.read(SocketInputStream.java:152)<br /> at java.net.SocketInputStream.read(SocketInputStream.java:122)<br /> at java.io.BufferedInputStream.fill(BufferedInputStream.java:235)<br /> at java.io.BufferedInputStream.read1(BufferedInputStream.java:275)<br /> at java.io.BufferedInputStream.read(BufferedInputStream.java:334)<br /> at sun.net.www.http.HttpClient.parseHTTPHeader(HttpClient.java:687)<br /> at sun.net.www.http.HttpClient.parseHTTP(HttpClient.java:633)<br /> at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1323)<br /> at java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:468)<br /> at rocks.xmpp.extensions.httpbind.BoshConnection$2.run(BoshConnection.java:564)<br /> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)<br /> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)<br /> at java.lang.Thread.run(Thread.java:745)<br />Exception in thread "main" java.lang.IllegalStateException: You must be connected to the server before trying to login.<br /> at rocks.xmpp.core.session.XmppSession.login(XmppSession.java:827)<br /> at com.geo.XMPPBosh.XMPPDemo.main(XMPPDemo.java:52)<br /><br />Below is the code,<br />BoshConnectionConfiguration boshConfiguration = BoshConnectionConfiguration<br /> .builder().hostname("remote address").port(7070)<br /> .proxy(new Proxy(Proxy.Type.HTTP,new InetSocketAddress("proxy address", 10015))).file("/http-bind/").wait(5000).build();<br /><br />Pl help on what might be the cause or the solution.George Ebbinasonhttps://www.blogger.com/profile/06134231018565343928noreply@blogger.comtag:blogger.com,1999:blog-429571914585035568.post-30250089804315802552014-12-06T13:25:29.734+01:002014-12-06T13:25:29.734+01:00Hi,
I (and nobody else) ever came up with this is...Hi,<br /><br />I (and nobody else) ever came up with this issue. However there were reports about similar "no-args constructor" issues in the past. I think it turned out that they used an old version of Java (early 1.7) and/or old JAXB.<br /><br />I suggest maybe checking/updating the JDK and check the JAXB implementation/version. Babbler only works with the reference implementation (RI) of JAXB, (which is Metro, and the default implementation of JDK). I've once tried another JAXB implementation (Moxy), but it didn't work.<br /><br />You can also try to use the sources directly (otherwise I could also build a snapshot version).<br />The fix (hopefully) is here:<br />https://bitbucket.org/sco0ter/babbler/commits/fe94ee211f42b5009501197a050f0936135572eb<br />Christian Schudthttps://www.blogger.com/profile/05150185502293392614noreply@blogger.comtag:blogger.com,1999:blog-429571914585035568.post-69261420644213958852014-12-06T09:59:10.793+01:002014-12-06T09:59:10.793+01:00Hi, I tried your project and it works perfectly fi...Hi, I tried your project and it works perfectly fine, really easy to implement. However I wanted to use it within the Jersey RESTful Web Services framework and I'm facing an issue with JAXB due to a no-arg constructor. Below the detail of the error<br />01-Dec-2014 17:55:52.911 SEVERE [http-nio-8084-exec-131] org.apache.catalina.core.StandardWrapperValve.invoke Servlet.service() for servlet [ServletAdaptor] in context with path [/BabblerRest] threw exception [java.lang.ExceptionInInitializerError] with root cause<br /> com.sun.xml.bind.v2.runtime.IllegalAnnotationsException: 1 counts of IllegalAnnotationExceptions<br />rocks.xmpp.extensions.jingle.model.Jingle$Reason$AlternativeSession does not have a no-arg default constructor.<br /> this problem is related to the following location:<br /> at rocks.xmpp.extensions.jingle.model.Jingle$Reason$AlternativeSession<br /> at private rocks.xmpp.extensions.jingle.model.Jingle$Reason$Condition rocks.xmpp.extensions.jingle.model.Jingle$Reason.condition<br /> at rocks.xmpp.extensions.jingle.model.Jingle$Reason<br /> at private rocks.xmpp.extensions.jingle.model.Jingle$Reason rocks.xmpp.extensions.jingle.model.Jingle.reason<br /> at rocks.xmpp.extensions.jingle.model.Jingle<br />Until now I didn't find any solution to fix this problem, can you help me with this matter? Do you know a workaround or does it requires code change in your module?Anonymoushttps://www.blogger.com/profile/13021283043713467160noreply@blogger.comtag:blogger.com,1999:blog-429571914585035568.post-84320585658451832562014-11-01T17:26:29.391+01:002014-11-01T17:26:29.391+01:00Awesome! Thanks!Awesome! Thanks!Hendyhttps://www.blogger.com/profile/05192845149798446052noreply@blogger.com