I'm trying to get one of the examples to work, but with no luck. Should they work as they are, apart from getting the proper version of cindy? I am debugging the BasicMessenger and the HelloMessenger example, but login doesn't seem to work. How can I check? I can telnet to messenger.hotmail.com, although I don't get a visible response. I thought that after login, the account I'm using should become visible on another account, where it's a friend.
Thanks in advance.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Exception in thread "AutoCloseEventGenerator0" java.lang.NoSuchMethodError: net.sf.cindy.Session.close()V
at net.sf.cindy.impl.SimpleEventGenerator.finishedSelect(SimpleEventGenerator.java:270)
at net.sf.cindy.impl.SimpleEventGenerator.run(SimpleEventGenerator.java:200)
at net.sf.cindy.impl.SimpleEventGenerator.access$000(SimpleEventGenerator.java:54)
at net.sf.cindy.impl.SimpleEventGenerator$1.run(SimpleEventGenerator.java:115)
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.cindy.impl.AbstractSession.isClosing()Z
at net.sf.cindy.impl.AbstractSession.isAvailable(AbstractSession.java:225)
at net.sf.cindy.impl.ChannelSession.close(ChannelSession.java:68)
at net.sf.jml.protocol.MsnSession.close(MsnSession.java:175)
at net.sf.jml.impl.BasicMessenger.logout(BasicMessenger.java:107)
at net.sf.jml.example.SimpleMsn.start(SimpleMsn.java:78)
at net.sf.jml.example.SimpleMsn.main(SimpleMsn.java:99)
I have Cindy 2.4.4, commons-logging, and jml3.0.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm having the same exception, but I DID recompile the libraries from source.
I also get the other one when I run one of the other examples -- where it gets a similar exception trying to find DisplayPictureDuelManager. I noticed that it started doing this as soon as I added one of my other accounts as a friend. I suspect that other account has an icon (photo) attached to it that is causing the problem.
Still, the classpath's are correct and the classes are there, so I'm not sure why it wouldn't be able to find everything it needs -- either using the generated jars or the class files themselves.
I'm perplexed!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I'm trying to get one of the examples to work, but with no luck. Should they work as they are, apart from getting the proper version of cindy? I am debugging the BasicMessenger and the HelloMessenger example, but login doesn't seem to work. How can I check? I can telnet to messenger.hotmail.com, although I don't get a visible response. I thought that after login, the account I'm using should become visible on another account, where it's a friend.
Thanks in advance.
Did you try net.sf.jml.example.SimpleMsn ?
You just have to change the mail and password in the main() and it works !
cheers
cyrille
This is what I get:
Exception in thread "AutoCloseEventGenerator0" java.lang.NoSuchMethodError: net.sf.cindy.Session.close()V
at net.sf.cindy.impl.SimpleEventGenerator.finishedSelect(SimpleEventGenerator.java:270)
at net.sf.cindy.impl.SimpleEventGenerator.run(SimpleEventGenerator.java:200)
at net.sf.cindy.impl.SimpleEventGenerator.access$000(SimpleEventGenerator.java:54)
at net.sf.cindy.impl.SimpleEventGenerator$1.run(SimpleEventGenerator.java:115)
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.cindy.impl.AbstractSession.isClosing()Z
at net.sf.cindy.impl.AbstractSession.isAvailable(AbstractSession.java:225)
at net.sf.cindy.impl.ChannelSession.close(ChannelSession.java:68)
at net.sf.jml.protocol.MsnSession.close(MsnSession.java:175)
at net.sf.jml.impl.BasicMessenger.logout(BasicMessenger.java:107)
at net.sf.jml.example.SimpleMsn.start(SimpleMsn.java:78)
at net.sf.jml.example.SimpleMsn.main(SimpleMsn.java:99)
I have Cindy 2.4.4, commons-logging, and jml3.0.
I also get:
log4j:WARN No appenders could be found for logger (net.sf.cindy.impl.SimpleEventGenerator).
log4j:WARN Please initialize the log4j system properly.
Right now, I get:
0 [main] DEBUG net.sf.cindy.impl.SimpleEventGenerator - start EventGenerator 0
110 [AutoCloseEventGenerator0] DEBUG net.sf.cindy.impl.AbstractSession - session 0 on event: [Event] register [Attachment] sun.nio.ch.WindowsSelectorImpl@16ef71
172 [AutoCloseEventGenerator0] DEBUG net.sf.cindy.impl.AbstractSession - session 0 on event: [Event] event happen [Attachment] null
172 [AutoCloseEventGenerator0] DEBUG net.sf.cindy.impl.AbstractSession - session 1 established
Exception in thread "main" java.lang.NoSuchMethodError: net.sf.cindy.impl.AbstractSession.isClosing()Z
at net.sf.cindy.impl.AbstractSession.isAvailable(AbstractSession.java:225)
at net.sf.cindy.impl.ChannelSession.close(ChannelSession.java:68)
at net.sf.jml.protocol.MsnSession.close(MsnSession.java:175)
at net.sf.jml.impl.BasicMessenger.logout(BasicMessenger.java:107)
at net.sf.jml.example.SimpleMsn.start(SimpleMsn.java:78)
at net.sf.jml.example.SimpleMsn.main(SimpleMsn.java:99)
I'm having the same exception, but I DID recompile the libraries from source.
I also get the other one when I run one of the other examples -- where it gets a similar exception trying to find DisplayPictureDuelManager. I noticed that it started doing this as soon as I added one of my other accounts as a friend. I suspect that other account has an icon (photo) attached to it that is causing the problem.
Still, the classpath's are correct and the classes are there, so I'm not sure why it wouldn't be able to find everything it needs -- either using the generated jars or the class files themselves.
I'm perplexed!