Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2692

NullPointerException logged when compression is enabled

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor - P4
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.1
    • Component/s: Internal
    • Labels:
      None
    • Environment:
      MacOS, server 3.6.0, java-driver 3.6.0

      Description

      When I enable client side compression, either zlib or snappy, I get tons of NullPointerExceptions thrown:

           [java] java.lang.NullPointerException
           [java] 	at com.mongodb.connection.ProtocolHelper.sendCommandStartedEvent(ProtocolHelper.java:253)
           [java] 	at com.mongodb.connection.InternalStreamConnection$CommandEventSender.sendStartedEvent(InternalStreamConnection.java:684)
           [java] 	at com.mongodb.connection.InternalStreamConnection.sendAndReceive(InternalStreamConnection.java:245)
           [java] 	at com.mongodb.connection.UsageTrackingInternalConnection.sendAndReceive(UsageTrackingInternalConnection.java:98)
           [java] 	at com.mongodb.connection.DefaultConnectionPool$PooledConnection.sendAndReceive(DefaultConnectionPool.java:441)
           [java] 	at com.mongodb.connection.CommandProtocolImpl.execute(CommandProtocolImpl.java:76)
           [java] 	at com.mongodb.connection.DefaultServer$DefaultServerProtocolExecutor.execute(DefaultServer.java:189)
           [java] 	at com.mongodb.connection.DefaultServerConnection.executeProtocol(DefaultServerConnection.java:263)
           [java] 	at com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:126)
           [java] 	at com.mongodb.connection.DefaultServerConnection.command(DefaultServerConnection.java:118)
           [java] 	at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:226)
           [java] 	at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:217)
           [java] 	at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:154)
           [java] 	at com.mongodb.operation.CommandOperationHelper.executeWrappedCommandProtocol(CommandOperationHelper.java:147)
           [java] 	at com.mongodb.operation.CreateIndexesOperation$1.call(CreateIndexesOperation.java:173)
           [java] 	at com.mongodb.operation.CreateIndexesOperation$1.call(CreateIndexesOperation.java:168)
           [java] 	at com.mongodb.operation.OperationHelper.withConnectionSource(OperationHelper.java:461)
           [java] 	at com.mongodb.operation.OperationHelper.withConnection(OperationHelper.java:423)
           [java] 	at com.mongodb.operation.CreateIndexesOperation.execute(CreateIndexesOperation.java:168)
           [java] 	at com.mongodb.operation.CreateIndexesOperation.execute(CreateIndexesOperation.java:69)
           [java] 	at com.mongodb.Mongo$3.execute(Mongo.java:833)
           [java] 	at com.mongodb.Mongo$3.execute(Mongo.java:814)
           [java] 	at com.mongodb.DBCollection.createIndex(DBCollection.java:1623)
           [java] 	at com.mongodb.DBCollection.createIndex(DBCollection.java:1608)
      ....
      

        Attachments

          Activity

            People

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            slipcon Scott Lipcon
            Participants:
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: