Uploaded image for project: 'Avro'
  1. Avro
  2. AVRO-842

Internal NPE when accessing proxy to a closed server endpoint

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.1
    • Fix Version/s: 1.5.2
    • Component/s: java
    • Labels:
      None
    • Environment:

      generic

      Description

      For development of an avro-based transport for remote OSGi services I had to wrap & unwind transport-level exceptions into proper exceptions thrown to a client. One such scenario is accessing a disconnected/dead endpoint, which should be a detectable condition. This works fine with the SaslSocketTransceiver (where my wrapper can properly detect the IO Exception), but not with Netty which hiccups with an internal NPE.
      Generally speaking any transport-level and remote-endpoint exceptions must not only be clearly detectable (either directly by client code or wrapper infrastructure around avro) but also distinguishable from another.

        Attachments

        1. AVRO-842-v3.patch
          21 kB
          James Baldassari
        2. AVRO-842-v2.patch
          21 kB
          James Baldassari
        3. AVRO-842.patch
          16 kB
          James Baldassari
        4. CrashTest.java
          2 kB
          Holger Hoffstätte

          Activity

            People

            • Assignee:
              jbaldassari James Baldassari
              Reporter:
              h2o Holger Hoffstätte
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: