Menu

how to add contact when someone add me

Help
planetdhxy
2006-07-11
2013-04-29
  • planetdhxy

    planetdhxy - 2006-07-11

    i tried messenger.addfriend,but it seems doesnt work.

     
    • Daniel Henninger

      Hrm.  I think addFriend is working for me at the moment but let me try some things and make sure I'm seeing what I think I'm seeing.

       
      • flyingforce

        flyingforce - 2006-11-12

        Every time when I try to add one friend, I got the following exception:

        The exception desc is "Your software abandon one established connection"

        java.io.IOException: 您的主机中的软件放弃了一个已建立的连接。
            at sun.nio.ch.SocketDispatcher.writev0(Native Method)
            at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:37)
            at sun.nio.ch.IOUtil.write(IOUtil.java:164)
            at sun.nio.ch.SocketChannelImpl.write0(SocketChannelImpl.java:331)
            at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:354)
            at java.nio.channels.SocketChannel.write(SocketChannel.java:360)
            at net.sf.cindy.impl.StreamChannelSession.doRealWrite(StreamChannelSession.java:126)
            at net.sf.cindy.impl.StreamChannelSession.writeToChannel(StreamChannelSession.java:109)
            at net.sf.cindy.impl.ChannelSession.blockWrite(ChannelSession.java:363)
            at net.sf.jml.protocol.MsnSession.sendSynchronousMessage(MsnSession.java:187)
            at net.sf.jml.impl.BasicMessenger.send(BasicMessenger.java:110)
            at net.sf.jml.impl.AbstractMessenger.send(AbstractMessenger.java:103)
            at net.sf.jml.impl.MsnOwnerImpl.setProperty(MsnOwnerImpl.java:153)
            at net.sf.jml.impl.MsnOwnerImpl.setDisplayName(MsnOwnerImpl.java:81)
            at net.sf.jml.example.OrderRobot$OrderMsnListener.contactListInitCompleted(OrderRobot.java:119)
            at net.sf.jml.impl.AbstractMessenger.fireContactListInitCompleted(AbstractMessenger.java:230)
            at net.sf.jml.protocol.outgoing.OutgoingPNG.receivedResponse(OutgoingPNG.java:64)
            at net.sf.jml.protocol.MsnSession$1.messageReceived(MsnSession.java:112)
            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)

         
    • flyingforce

      flyingforce - 2006-11-12

      oh....

      I updated the BasicMessenger code about the addFriend, it seems ok for me.

      I think my later problem is because that I wanna to add one friend in the AL list when he is in AL list.

      Thanks for your code.

       

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.