amit Kumar
amit Kumar

Reputation: 15

getting method <init>(Ljava/lang/String;)V not found while connecting to ActiveMQ in Linux environment

i am unable to execute the java code, successfully, which tries to connect to ActiveMQ in cloud(linux environment).

The same code works fine when running from local system(windows environment).

I am able to get consumer count and queue size.

But in cloud environment i am getting below error:

org.apache.activemq.ActiveMQSslConnectionFactory: method (Ljava/lang/String;)V not found

Unable to get any clue what this means.

Upvotes: 1

Views: 1789

Answers (1)

Justin Bertram
Justin Bertram

Reputation: 35122

Typically when you hit a method ... not found in Java it means that your application is using a different version of the library at runtime than the version that you compiled against. You should ensure that the ActiveMQ client libraries in the cloud environment where it doesn't work are the same libraries you're using in the local environment where it does work.

Upvotes: 1

Related Questions