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 2020/03/23 11:48:40 UTC
[GitHub] [pulsar] pierre94 opened a new issue #6594: producer builder failed
to load config into existing configuration data
pierre94 opened a new issue #6594: producer builder failed to load config into existing configuration data
URL: https://github.com/apache/pulsar/issues/6594
**Describe the bug**
producer builder failed to load config into existing configuration data
**To Reproduce**
```java
PulsarClient client = PulsarClient.builder().serviceUrl(pulsarServiceUrl).build();
Map<String, Object> config = new HashMap<>();
config.put("topicName", topic);
config.put("producerName", "test-producer");
ProducerBuilderImpl<byte[]> builder = (ProducerBuilderImpl<byte[]>) client.newProducer().loadConf(config);
Producer<byte[]> producer = builder.create();
producer.send("test".getBytes());
```
```
Exception in thread "main" java.lang.RuntimeException: Failed to load config into existing configuration data
at org.apache.pulsar.client.impl.conf.ConfigurationDataUtils.loadData(ConfigurationDataUtils.java:69)
at org.apache.pulsar.client.impl.ProducerBuilderImpl.loadConf(ProducerBuilderImpl.java:112)
```
**Desktop (please complete the following information):**
- OS: OSX
- pulsar.version: 2.4.0
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [pulsar] pierre94 commented on issue #6594: producer builder failed
to load config
Posted by GitBox <gi...@apache.org>.
pierre94 commented on issue #6594: producer builder failed to load config
URL: https://github.com/apache/pulsar/issues/6594#issuecomment-604398150
> @pierre94 shall I close this issue? since 2.4.2 and 2.5.0 have fixed this issue.
ok
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [pulsar] yjshen edited a comment on issue #6594: producer builder
failed to load config
Posted by GitBox <gi...@apache.org>.
yjshen edited a comment on issue #6594: producer builder failed to load config
URL: https://github.com/apache/pulsar/issues/6594#issuecomment-603587039
Could you please try pulsar client lib 2.4.2?
I failed with a different failure for 2.4.0 with your program:
```
Caused by: org.apache.pulsar.shade.com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.apache.pulsar.client.impl.DefaultBatcherBuilder
```
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [pulsar] pierre94 commented on issue #6594: producer builder failed
to load config
Posted by GitBox <gi...@apache.org>.
pierre94 commented on issue #6594: producer builder failed to load config
URL: https://github.com/apache/pulsar/issues/6594#issuecomment-603599326
> Could you please try pulsar client lib 2.4.2?
>
> I failed with a different failure for 2.4.0 with your program:
>
> ```
> Caused by: org.apache.pulsar.shade.com.fasterxml.jackson.databind.exc.InvalidDefinitionException: No serializer found for class org.apache.pulsar.client.impl.DefaultBatcherBuilder
> ```
pulsar client lib 2.4.2 and 2.5.0 is ok
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [pulsar] yjshen commented on issue #6594: producer builder failed
to load config
Posted by GitBox <gi...@apache.org>.
yjshen commented on issue #6594: producer builder failed to load config
URL: https://github.com/apache/pulsar/issues/6594#issuecomment-603587039
Could you please try pulsar client lib 2.4.2?
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [pulsar] sijie commented on issue #6594: producer builder failed to
load config
Posted by GitBox <gi...@apache.org>.
sijie commented on issue #6594: producer builder failed to load config
URL: https://github.com/apache/pulsar/issues/6594#issuecomment-604243729
@pierre94 shall I close this issue? since 2.4.2 and 2.5.0 have fixed this issue.
----------------------------------------------------------------
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
With regards,
Apache Git Services
[GitHub] [pulsar] pierre94 closed issue #6594: producer builder failed to
load config
Posted by GitBox <gi...@apache.org>.
pierre94 closed issue #6594: producer builder failed to load config
URL: https://github.com/apache/pulsar/issues/6594
----------------------------------------------------------------
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
With regards,
Apache Git Services