Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-327

ClassCastException in AbstractGenericHandler.remoteHttpHost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.2.8, 1.3.0
    • None
    • None
    • None

    Description

      The remoteHttpHost method of AbstractGenericHandler uses the ChannelContext to get a SocketAddress. It then casts it to InetSocketAddress but this is not the only implementation. Most notably, Netty's EmbeddedChannel will produce an incompatible EmbeddedSocketAddress which causes a class cast exception.

      This is visible in unit tests, several of which now fail.

      Attachments

        For Gerrit Dashboard: JVMCBC-327
        # Subject Branch Project Status CR V

        Activity

          People

            simonbasle Simon Baslé (Inactive)
            simonbasle Simon Baslé (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty