You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/04/05 09:44:21 UTC

[GitHub] [pulsar] eolivelli opened a new issue #10138: Java Client Transactions: NullPointerException if transactions are not enabled and you try to create a transaction

eolivelli opened a new issue #10138:
URL: https://github.com/apache/pulsar/issues/10138


   **Describe the bug**
   On Pulsar Client 2.7.1 if you try to create a transaction but you have not enable transactions on the PulsarClient you  get a bad NPE.
   
   java.lang.NullPointerException
   	at org.apache.pulsar.client.impl.transaction.TransactionBuilderImpl.build(TransactionBuilderImpl.java:60)
   ..
   
   **Expected behavior**
   Some better error like IllegalStateException "In order to use Transactions enable transactions on your PulsarClient"


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] merlimat closed issue #10138: Java Client Transactions: NullPointerException if transactions are not enabled and you try to create a transaction

Posted by GitBox <gi...@apache.org>.
merlimat closed issue #10138:
URL: https://github.com/apache/pulsar/issues/10138


   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org