unsupported protocol : MSNP12
at net.sf.jml.protocol.incoming.IncomingVER.messageReceived(IncomingVER.java:58)
at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:106)
at net.sf.cindy.impl.AbstractSession$6.doRun(AbstractSession.java:341)
at net.sf.cindy.impl.AbstractSession$DispatchObject.run(AbstractSession.java:395)
at net.sf.cindy.impl.SimpleDispatcher.dispatch(SimpleDispatcher.java:35)
at net.sf.cindy.impl.AbstractSession.dispatch(AbstractSession.java:249)
at net.sf.cindy.impl.AbstractSession.dispatchMessageReceived(AbstractSession.java:335)
at net.sf.cindy.impl.StreamChannelSession.recognizeMessageAndDispatch(StreamChannelSession.java:77)
at net.sf.cindy.impl.StreamChannelSession.readFromChannel(StreamChannelSession.java:53)
at net.sf.cindy.impl.ChannelSession.onReadable(ChannelSession.java:212)
at net.sf.cindy.impl.ChannelSession.onEvent(ChannelSession.java:134)
at net.sf.cindy.impl.SocketSession.onEvent(SocketSession.java:119)
at net.sf.cindy.impl.SimpleEventGenerator.processKey(SimpleEventGenerator.java:212)
at net.sf.cindy.impl.SimpleEventGenerator.run(SimpleEventGenerator.java:192)
at net.sf.cindy.impl.SimpleEventGenerator.access$000(SimpleEventGenerator.java:54)
at net.sf.cindy.impl.SimpleEventGenerator$1.run(SimpleEventGenerator.java:115)
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
We also got a NullPointer when check if verified in IncomingUSR.
From IncominUSR.java:
public boolean isVerified() {
if (isLoginIntoSB())
return true;
if (protocol.before(MsnProtocol.MSNP10)) { // THIS LINE GENERATES NULLPOINTER BELOW
return "1".equals(getParam(3));
}
return "1".equals(getParam(2));
}
2008-08-05 01:31:11,172 WARN [AutoCloseEventGenerator0](MsnHandler.java:348)- Got unhandled exception: null java.lang.NullPointerException
at net.sf.jml.protocol.incoming.IncomingUSR.isVerified(IncomingUSR.java:95)
at net.sf.jml.protocol.incoming.IncomingUSR.messageReceived(IncomingUSR.java:115)
at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:105)
It seems like MS has made some changes to the protocol. I have tried some other 3:d party messengers and they also have probs to logging in.
Regards
Mattias
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have made some quick fixes to get it up and running temporarly => If not supported set MSN protocol to highest supported version. In this case MSNP12.
Today, suddenly happen.
I think, MSN server is refuseing connection by JML.
i want know why this happen.
Please understand me that i'm not that good at English...
error code-----------------------------------------------------------------------------------
unsupported protocol : MSNP12
at net.sf.jml.protocol.incoming.IncomingVER.messageReceived(IncomingVER.java:58)
at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:106)
at net.sf.cindy.impl.AbstractSession$6.doRun(AbstractSession.java:341)
at net.sf.cindy.impl.AbstractSession$DispatchObject.run(AbstractSession.java:395)
at net.sf.cindy.impl.SimpleDispatcher.dispatch(SimpleDispatcher.java:35)
at net.sf.cindy.impl.AbstractSession.dispatch(AbstractSession.java:249)
at net.sf.cindy.impl.AbstractSession.dispatchMessageReceived(AbstractSession.java:335)
at net.sf.cindy.impl.StreamChannelSession.recognizeMessageAndDispatch(StreamChannelSession.java:77)
at net.sf.cindy.impl.StreamChannelSession.readFromChannel(StreamChannelSession.java:53)
at net.sf.cindy.impl.ChannelSession.onReadable(ChannelSession.java:212)
at net.sf.cindy.impl.ChannelSession.onEvent(ChannelSession.java:134)
at net.sf.cindy.impl.SocketSession.onEvent(SocketSession.java:119)
at net.sf.cindy.impl.SimpleEventGenerator.processKey(SimpleEventGenerator.java:212)
at net.sf.cindy.impl.SimpleEventGenerator.run(SimpleEventGenerator.java:192)
at net.sf.cindy.impl.SimpleEventGenerator.access$000(SimpleEventGenerator.java:54)
at net.sf.cindy.impl.SimpleEventGenerator$1.run(SimpleEventGenerator.java:115)
We have seen the same logs. Our log looks like:
2008-08-05 01:30:39,900 WARN [AutoCloseEventGenerator0](MSNValidator.java:53)- unsupported protocol : MSNP12 MSNP11 MSNP10 MSNP9 MSNP8 unsupported protocol : MSNP12 MSNP11 MSNP10 MSNP9 MSNP8
at net.sf.jml.protocol.incoming.IncomingVER.messageReceived(IncomingVER.java:58)
at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:105)
We also got a NullPointer when check if verified in IncomingUSR.
From IncominUSR.java:
public boolean isVerified() {
if (isLoginIntoSB())
return true;
if (protocol.before(MsnProtocol.MSNP10)) { // THIS LINE GENERATES NULLPOINTER BELOW
return "1".equals(getParam(3));
}
return "1".equals(getParam(2));
}
2008-08-05 01:31:11,172 WARN [AutoCloseEventGenerator0](MsnHandler.java:348)- Got unhandled exception: null java.lang.NullPointerException
at net.sf.jml.protocol.incoming.IncomingUSR.isVerified(IncomingUSR.java:95)
at net.sf.jml.protocol.incoming.IncomingUSR.messageReceived(IncomingUSR.java:115)
at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:105)
It seems like MS has made some changes to the protocol. I have tried some other 3:d party messengers and they also have probs to logging in.
Regards
Mattias
Hi,
try updating the sources. There is a commit which solved the things.
And due to the nature of these changes, I'm going to put out another "official release" today with the fix from trunk (amongst other things).
I have made some quick fixes to get it up and running temporarly => If not supported set MSN protocol to highest supported version. In this case MSNP12.
MsnMessage.java
protected MsnMessage(MsnProtocol protocol) {
//Fix start
if(protocol == null) {
protocol = MsnProtocol.MSNP12;
}
//Fix stop
this.protocol = protocol;
}
IncomingVER.java
protected void messageReceived(MsnSession session) {
super.messageReceived(session);
MsnProtocol[] supportedProtocol = getSupportedProtocol();
//Fix start
if(supportedProtocol.length == 0) {
supportedProtocol = new MsnProtocol[1];
supportedProtocol[0] = MsnProtocol.MSNP12;
}
//Fix stop
if (supportedProtocol.length > 0) {
session.getMessenger().setSupportedProtocol(supportedProtocol);
((BasicMessenger) session.getMessenger())
.setActualMsnProtocol(supportedProtocol[0]);
} else {
throw new UnsupportedProtocolException(
((OutgoingVER) getOutgoingMessage()).getSupportedProtocol());
}
}
It seems to work for now but is not a pleasant way to handle the problem.
Regards
Mattias
I grabbed the new build ... thanks for the quick fix.