Uploaded image for project: 'MINA'
  1. MINA
  2. DIRMINA-980

Missing implementation of write() method in SerialSessionImpl.SerialIoProcessor

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0.2, 2.0.7
    • Fix Version/s: 2.0.8
    • Component/s: Transport
    • Labels:
      None
    • Environment:
      Windows server 2012, Java8, mina-core-2.07.jar, mina-transport-serial-2.0.2.jar

      Description

      After creating MINA object for serial connection successfully I try to send data over the serial connection.
      My IoHandler implementation exceptionCought() is called.
      The throwable object contain the following:
      org.apache.mina.core.session.AbstractIoSession.<init>(Lorg/apache/mina/core/service/IoService;)V

      After debugging using the mina-transport-serial-2.0.2 sources I found out that the method write is missing from the implementation of SerialSessionImpl.SerialIoProcess. I could not build it.
      So I added the method like this:

      public void write(SerialSessionImpl session, WriteRequest writeRequest) {
      getWriterRequestQueue.offer(session, writeRequest) ;
      }

      and it worked fine.

        Activity

        Hide
        elecharny Emmanuel Lecharny added a comment -

        Has been fixed 2 years ago with commit 5c62fb24fdff941426ce16946abd5ba6add1fb7e

        Show
        elecharny Emmanuel Lecharny added a comment - Has been fixed 2 years ago with commit 5c62fb24fdff941426ce16946abd5ba6add1fb7e
        Hide
        mike@probie.nl Mike van Goor added a comment -

        Hello,

        Please do not use version 2.0.2.
        Download mina transport serial 2.0.7

        Link:
        http://repo1.maven.org/maven2/org/apache/mina/mina-transport-serial/2.0.7/
        All versions:
        http://repo1.maven.org/maven2/org/apache/mina/mina-transport-serial/

        I am actively using the mina transport serial (version 2.0.7) without any issues for a long time.

        Regards,
        Mike

        Show
        mike@probie.nl Mike van Goor added a comment - Hello, Please do not use version 2.0.2. Download mina transport serial 2.0.7 Link: http://repo1.maven.org/maven2/org/apache/mina/mina-transport-serial/2.0.7/ All versions: http://repo1.maven.org/maven2/org/apache/mina/mina-transport-serial/ I am actively using the mina transport serial (version 2.0.7) without any issues for a long time. Regards, Mike

          People

          • Assignee:
            Unassigned
            Reporter:
            saarpa Saar Partush
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 24h
              24h
              Remaining:
              Remaining Estimate - 24h
              24h
              Logged:
              Time Spent - Not Specified
              Not Specified

                Development