Sametime Alertbot

I'm trying to use IBM's sametime Alertbot java application, but I am getting the following error when running the STComm.jar file. Not sure what the issue is.




Session created
Attempting login to mysametime.server.com
Logged out
java.lang.NullPointerException
        at src.AlertBot.loggedOut(AlertBot.java:190)
        at com.lotus.sametime.community.STBase.loggedOut(STBase.java)
        at com.lotus.sametime.community.STBase.processLoginEvent(STBase.java)
        at com.lotus.sametime.community.STBase.processSTEvent(STBase.java)
        at com.lotus.sametime.core.comparch.STCompPart$1.processSTEvent(STCompPart.java)
        at com.lotus.sametime.core.comparch.MessageDispatcher.dispatch(MessageDispatcher.java)
        at com.lotus.sametime.core.comparch.MessageDispatcher.flush(MessageDispatcher.java)
        at com.lotus.sametime.core.comparch.MessageDispatchingThread.run(MessageDispatchingThread.ja
va)
        at java.lang.Thread.run(Unknown Source)
abgtempAsked:
Who is Participating?
 
mccarlConnect With a Mentor IT Business Systems Analyst / Software DeveloperCommented:
It is just badly written code. In the loggedOut event listener method, the code author has assumed that the loggedIn event must have happened and that certain object would already be setup. This mustn't be happening and so because those objects are still 'null', when methods are trying to be called on them, the NullPointerException is being thrown.

As to why this is happening, I would say that it may be as simple not being able to login to your server properly. So either the server name, username or password might be incorrect?
0
 
abgtempAuthor Commented:
Thanks, all credentials are correct. I need to verify that the sametime server is allowing connections this way.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.