Menu

Can't connect to msn server.

Help
2008-08-05
2013-04-29
  • Kim JiYoung

    Kim JiYoung - 2008-08-05

    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)

     
    • Mattias Jonsson

      Mattias Jonsson - 2008-08-05

      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

       
      • Damian Minkov

        Damian Minkov - 2008-08-05

        Hi,

        try updating the sources. There is a commit which solved the things.

         
        • Daniel Henninger

          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).

           
    • Mattias Jonsson

      Mattias Jonsson - 2008-08-05

      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

       
    • Mark Neumann

      Mark Neumann - 2008-08-06

      I grabbed the new build ... thanks for the quick fix.

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.