Menu

Bounty for Fixes in JML

Help
2008-10-16
2013-04-29
  • Gregoire Diboula

    Hi,

    I've got this issue where the library doesn't terminate. I did a bit of investigation and it seems that Cindy is responsible for that. What i saw is that the socket remains open.

    So i tried to upgrade to the latest version of Cindy but i had the impression that JML is not compatible with the latest cindy code.

    I propose a $50 Bounty to address this issue. Ideally to upgrate JML to work with the current Cindy version and fix the aforementioned problem in the upgraded version. Alternately, you could if possible just fix the problem in the current JML with the existing cinty build (but this is obviously not the ideal).

    Are you interested?  Post your bid here in the forum.

    Thanks,

    Diboula.

     
    • Anonymous

      Anonymous - 2008-10-17

      :), a interesting message.

      The version 1.0b3, you can change the net.sf.jml.impl.AbstractMessenger class as follows:

      /**
           * Instance of the duel manager for this session.
           */
      //    private DisplayPictureDuelManager duelManager = new //DisplayPictureDuelManager ();
          private DisplayPictureDuelManager duelManager = null;

          /**
           * @see MsnMessenger#getDisplayPictureDuelManager()
           */
          public DisplayPictureDuelManager getDisplayPictureDuelManager()
          {
              return duelManager;
          }

      There is a thread schedule, so the library doesn't terminate.

      public DisplayPictureDuelManager() {
             
              // Initialize the list of duels
              duels = new ArrayList<DisplayPictureDuel>();
             
              // Initilize list of pictures
              pictures = new Hashtable<String, RemovableMsnObject>();
             
              // Initialize the executor thread
              THREAD_EXECUTOR.scheduleWithFixedDelay(
                      new RemoveMsnObjectWorker(),
                      10*60,
                      10*60,
                      TimeUnit.SECONDS);
          }

       
    • Gregoire Diboula

      Which essentially means to replace

      private DisplayPictureDuelManager duelManager = new DisplayPictureDuelManager ();

      with

      private DisplayPictureDuelManager duelManager = null;

      is that correct?

      Please send me your paypal address via sourceforge.

      One thing i noticed after making this change. if i send a message and logout right after that, the message is not sent. Which sounds like the connection is droped while messages are still in the queue. Is it possible to perform a flush before disconnecting?

      Thanks.

       
      • Daniel Henninger

        Also y'all, check out trunk.  Cindy is completely gone from there.  Ideally, I don't intend to ever see Cindy back as the network framework --- a number of folk expressed interest in porting it to MINA which I would love to see.  Trunk, however, is straight standard java networking, no framework.

         
    • Anonymous

      Anonymous - 2008-10-18

      :), my paypal address?  Forget it! I am glad that it's useful for you.

      The default method sendText(String Email,String test)  uses the

      net.sf.jml.impl.AbstractSwitchboard :
         public void sendMessage(MsnMimeMessage message) {
          /**
           * Send message to others. If block, the method will return
           * after the message successfully sent or failed. If not block,     the method always return false.
           *
           * @param message
           *         MsnMimeMessage
           * @param block
           *         is block
           * @return
           *         if block, return message send successful, else return false 
           */
              sendMessage(message, false);
          }

      Maybe you can sleep some time after sendText() and then logout.

      I have downloaded the latest version whithout cindy.

      Thanks, jadestorm.

       
      • Daniel Henninger

        The trunk version does have some issues ..  it tends to complain a little on logout because things shut down before it can dump out all of it's data.  It has MSNP15 support but I had some complaints after activating it on another project, so I had to backtrack on that.  I don't know if you are interested in helping develop JML but if you are, you are welcome to!

         
    • gogozhao

      gogozhao - 2008-10-18

      Hi, jadestorm, I am henry_z. This is my new account.
      The trunk I downloaded hasn't been used in my project (a bot), but I will do it later.
      Thanks very much for your invitation,  it's the best message for me in this week. If I can, I'm honored to join the JML project. :)

       
      • Daniel Henninger

        You changed accounts?  Why?  Didn't like henry_z?  heeheh

        Anyway yeah sure -- by the time you read this you should have access!

         

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.