Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: jakarta.jms.JMSException: java.lang.LinkageError: ClassCastException: attempting to castjar:file:/<repo-path>/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api- #162

Open
fanimali opened this issue Dec 13, 2024 · 2 comments · May be fixed by #163

Comments

@fanimali
Copy link

Hi, user is getting this error when building version pulsar-jms 7.0.1:

Caused by: jakarta.jms.JMSException: java.lang.LinkageError: ClassCastException: attempting to castjar:file:/<repo-path>/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.jar!/javax/ws/rs/client/ClientBuilder.class to jar:file:/<repo-path>/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.jar!/javax/ws/rs/client/ClientBuilder.class at com.datastax.oss.pulsar.jms.Utils.handleException(Utils.java:74) ~[pulsar-jms-7.0.1.jar:na] at com.datastax.oss.pulsar.jms.PulsarConnectionFactory.ensureInitialized(PulsarConnectionFactory.java:580) ~[pulsar-jms-7.0.1.jar:na] at com.datastax.oss.pulsar.jms.PulsarConnectionFactory.createConnection(PulsarConnectionFactory.java:670) ~[pulsar-jms-7.0.1.jar:na] at com.datastax.oss.pulsar.jms.PulsarConnectionFactory.createConnection(PulsarConnectionFactory.java:101) ~[pulsar-jms-7.0.1.jar:na] at org.springframework.jms.support.JmsAccessor.createConnection(JmsAccessor.java:211) ~[spring-jms-6.1.10.jar:6.1.10] at org.springframework.jms.core.JmsTemplate.execute(JmsTemplate.java:517) ~[spring-jms-6.1.10.jar:6.1.10] ... 23 common frames omitted Caused by: java.lang.LinkageError: ClassCastException: attempting to castjar:file:/<repo-path>/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.jar!/javax/ws/rs/client/ClientBuilder.class to jar:file:/<repo-path>/.m2/repository/javax/ws/rs/javax.ws.rs-api/2.1/javax.ws.rs-api-2.1.jar!/javax/ws/rs/client/ClientBuilder.class at javax.ws.rs.client.ClientBuilder.newBuilder(ClientBuilder.java:105) ~[javax.ws.rs-api-2.1.jar:2.1] at org.apache.pulsar.client.admin.internal.PulsarAdminImpl.<init>(PulsarAdminImpl.java:136) ~[pulsar-client-admin-original-3.2.3.jar:3.2.3] at org.apache.pulsar.client.admin.internal.PulsarAdminBuilderImpl.build(PulsarAdminBuilderImpl.java:44) ~[pulsar-client-admin-original-3.2.3.jar:3.2.3] at com.datastax.oss.pulsar.jms.PulsarConnectionFactory.ensureInitialized(PulsarConnectionFactory.java:528) ~[pulsar-jms-7.0.1.jar:na] ... 27 common frames omitted Collapse

customer is building with the pulsar-jms thin jar, but when they build with the pulsar-jms-all jar they don't see any problem.

@fanimali
Copy link
Author

hi @eolivelli is there a new release that I can send to customer to test?

@fanimali
Copy link
Author

@mukesh-ctds can yuo help here? customer has escalated this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant