Uploaded image for project: 'ZooKeeper'
  1. ZooKeeper
  2. ZOOKEEPER-268

tostring on jute generated objects can cause NPE

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 3.0.0, 3.0.1
    • Fix Version/s: 3.1.0
    • Component/s: java client, server
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Jute still causing problems with tostring operations on generated code, need to review/cleanup the toCSV code

      From user Kevin Burton:
      ---------------------------------------------
      Creating this node with this ACL:
      Created /foo
      setAcl /foo world:anyone:w

      Causes the exception included below.

      It's an infinite loop so it's just called over and over again filling my
      console.

      I'm just doing an exists( path, true ); ... setting a watch still causes the
      problem.

      java.lang.NullPointerException
      at org.apache.jute.Utils.toCSVBuffer(Utils.java:234)
      at
      org.apache.jute.CsvOutputArchive.writeBuffer(CsvOutputArchive.java:101)
      at
      org.apache.zookeeper.proto.GetDataResponse.toString(GetDataResponse.java:48)
      at java.lang.String.valueOf(String.java:2827)
      at java.lang.StringBuilder.append(StringBuilder.java:115)
      at
      org.apache.zookeeper.ClientCnxn$Packet.toString(ClientCnxn.java:230)
      at java.lang.String.valueOf(String.java:2827)
      at java.lang.StringBuilder.append(StringBuilder.java:115)
      at
      org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:586)
      at
      org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:626)
      at
      org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:852)
      java.lang.NullPointerException
      at org.apache.jute.Utils.toCSVBuffer(Utils.java:234)
      at
      org.apache.jute.CsvOutputArchive.writeBuffer(CsvOutputArchive.java:101)
      at
      org.apache.zookeeper.proto.GetDataResponse.toString(GetDataResponse.java:48)
      at java.lang.String.valueOf(String.java:2827)
      at java.lang.StringBuilder.append(StringBuilder.java:115)
      at
      org.apache.zookeeper.ClientCnxn$Packet.toString(ClientCnxn.java:230)
      at java.lang.String.valueOf(String.java:2827)
      at java.lang.StringBuilder.append(StringBuilder.java:115)
      at
      org.apache.zookeeper.ClientCnxn$SendThread.readResponse(ClientCnxn.java:586)
      at
      org.apache.zookeeper.ClientCnxn$SendThread.doIO(ClientCnxn.java:626)
      at
      org.apache.zookeeper.ClientCnxn$SendThread.run(ClientCnxn.java:852)

        Attachments

        1. ZOOKEEPER-268.patch
          4 kB
          Patrick D. Hunt

          Activity

            People

            • Assignee:
              phunt Patrick D. Hunt
              Reporter:
              phunt Patrick D. Hunt
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: