You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by "ton3r (via GitHub)" <gi...@apache.org> on 2024/03/12 08:04:22 UTC
[D] ClassNotFoundException with shaded LoadManagerReport [pulsar]
GitHub user ton3r created a discussion: ClassNotFoundException with shaded LoadManagerReport
Hi,
I have the dep
```
<dependency>
<groupId>org.apache.pulsar</groupId>
<artifactId>pulsar-client-all</artifactId>
<version>3.1.2</version>
</dependency>
```
But when I start my flink job I get the following :
```
08:59:24.010 [flink-pekko.actor.default-dispatcher-7] DEBUG org.apache.pulsar.common.util.ObjectMapperFactory - Add LoadManagerReport deserializer failed because LoadManagerReport.class has been shaded
java.lang.ClassNotFoundException: org.apache.pulsar.shade.org.apache.pulsar.policies.data.loadbalancer.LoadManagerReport
at java.base/jdk.internal.loader.BuiltinClassLoader.loadClass(BuiltinClassLoader.java:581)
at java.base/jdk.internal.loader.ClassLoaders$AppClassLoader.loadClass(ClassLoaders.java:178)
at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:522)
at java.base/java.lang.Class.forName0(Native Method)
at java.base/java.lang.Class.forName(Class.java:398)
at org.apache.pulsar.shade.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:1069)
at org.apache.pulsar.shade.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:1135)
at org.apache.pulsar.shade.org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:1118)
at org.apache.pulsar.common.util.ObjectMapperFactory.setAnnotationsModule(ObjectMapperFactory.java:267)
at org.apache.pulsar.common.util.ObjectMapperFactory.configureObjectMapper(ObjectMapperFactory.java:180)
at org.apache.pulsar.common.util.ObjectMapperFactory.createObjectMapperInstance(ObjectMapperFactory.java:151)
at org.apache.pulsar.common.util.ObjectMapperFactory.<clinit>(ObjectMapperFactory.java:142)
at org.apache.pulsar.client.impl.conf.ConfigurationDataUtils.create(ConfigurationDataUtils.java:35)
at org.apache.pulsar.client.impl.conf.ConfigurationDataUtils.<clinit>(ConfigurationDataUtils.java:43)
at org.apache.pulsar.client.impl.ClientBuilderImpl.loadConf(ClientBuilderImpl.java:77)
at org.apache.flink.connector.pulsar.common.config.PulsarClientFactory.createClient(PulsarClientFactory.java:105)
at org.apache.flink.connector.pulsar.source.enumerator.PulsarSourceEnumerator.<init>(PulsarSourceEnumerator.java:95)
```
It seems to be running, it consumes data from a pulsar subscription.
But it never feels good to have such an exception during startup. Have anyone any suggestion?
GitHub link: https://github.com/apache/pulsar/discussions/22247
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
Re: [D] ClassNotFoundException with shaded LoadManagerReport [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
GitHub user lhotari edited a comment on the discussion: ClassNotFoundException with shaded LoadManagerReport
This might be related: https://github.com/apache/pulsar/pull/19458#issuecomment-1635371635 as well as https://github.com/apache/pulsar/issues/21971 .
> In summary, jackson-annotations:2.12.0 or later is now required for pulsar-client 3.0.x, and this also applies to versions 3.1.x and 3.2.x.
GitHub link: https://github.com/apache/pulsar/discussions/22247#discussioncomment-8875766
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
Re: [D] ClassNotFoundException with shaded LoadManagerReport [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
GitHub user lhotari added a comment to the discussion: ClassNotFoundException with shaded LoadManagerReport
This might be related: https://github.com/apache/pulsar/pull/19458#issuecomment-1635371635
GitHub link: https://github.com/apache/pulsar/discussions/22247#discussioncomment-8875766
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
Re: [D] ClassNotFoundException with shaded LoadManagerReport [pulsar]
Posted by "DRevelation (via GitHub)" <gi...@apache.org>.
GitHub user DRevelation edited a comment on the discussion: ClassNotFoundException with shaded LoadManagerReport
I have the same problem, which is very bad for debug. But using 2.11.4 is good for me.
GitHub link: https://github.com/apache/pulsar/discussions/22247#discussioncomment-8859918
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
Re: [D] ClassNotFoundException with shaded LoadManagerReport [pulsar]
Posted by "DRevelation (via GitHub)" <gi...@apache.org>.
GitHub user DRevelation added a comment to the discussion: ClassNotFoundException with shaded LoadManagerReport
I have the same problem, which is very bad for debug.
GitHub link: https://github.com/apache/pulsar/discussions/22247#discussioncomment-8859918
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org
Re: [D] ClassNotFoundException with shaded LoadManagerReport [pulsar]
Posted by "lhotari (via GitHub)" <gi...@apache.org>.
GitHub user lhotari edited a comment on the discussion: ClassNotFoundException with shaded LoadManagerReport
This might be related: https://github.com/apache/pulsar/pull/19458#issuecomment-1635371635 as well as https://github.com/apache/pulsar/issues/21971 .
GitHub link: https://github.com/apache/pulsar/discussions/22247#discussioncomment-8875766
----
This is an automatically sent email for commits@pulsar.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@pulsar.apache.org