You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tubemq.apache.org by "duli (Jira)" <ji...@apache.org> on 2020/04/30 05:13:00 UTC
[jira] [Updated] (TUBEMQ-85) There is NPE when creating
PullConsumer with TubeSingleSessionFactory
[ https://issues.apache.org/jira/browse/TUBEMQ-85?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
duli updated TUBEMQ-85:
-----------------------
Description:
There is NullPointException when when creating PullConsumer with code like This:
{code:java}
ConsumerConfig consumerConfig = new ConsumerConfig(localhost, masterAddress, consumerGroup);
TubeSingleSessionFactory messageSessionFactory = new TubeSingleSessionFactory(consumerConfig);
PullMessageConsumer pullConsumer = messageSessionFactory.createPullConsumer(consumerConfig);
{code}
The stack trace is:
java.lang.NullPointerException
com.tencent.tubemq.client.factory.TubeSingleSessionFactory.createPullConsumer(TubeSingleSessionFactory.java:80)
was:
There is NullPointException when when creating PullConsumer with code like This:
{code:java}
ConsumerConfig consumerConfig = new ConsumerConfig(localhost, masterAddress, consumerGroup);
TubeSingleSessionFactory messageSessionFactory = new TubeSingleSessionFactory(consumerConfig);
PullMessageConsumer pullConsumer = messageSessionFactory.createPullConsumer(consumerConfig);
{code}
The stack trace is:
java.lang.NullPointerException
com.tencent.tubemq.client.factory.TubeSingleSessionFactory.createPullConsumer(TubeSingleSessionFactory.java:80)
> There is NPE when creating PullConsumer with TubeSingleSessionFactory
> ---------------------------------------------------------------------
>
> Key: TUBEMQ-85
> URL: https://issues.apache.org/jira/browse/TUBEMQ-85
> Project: Apache TubeMQ
> Issue Type: Bug
> Reporter: duli
> Priority: Major
>
> There is NullPointException when when creating PullConsumer with code like This:
> {code:java}
> ConsumerConfig consumerConfig = new ConsumerConfig(localhost, masterAddress, consumerGroup);
> TubeSingleSessionFactory messageSessionFactory = new TubeSingleSessionFactory(consumerConfig);
> PullMessageConsumer pullConsumer = messageSessionFactory.createPullConsumer(consumerConfig);
> {code}
> The stack trace is:
> java.lang.NullPointerException
> com.tencent.tubemq.client.factory.TubeSingleSessionFactory.createPullConsumer(TubeSingleSessionFactory.java:80)
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)