Class working well in CQ5.6.1, but got "could not initialize error" in CQ6.1 | Community
Skip to main content
New Participant
October 16, 2015
Solved

Class working well in CQ5.6.1, but got "could not initialize error" in CQ6.1

  • October 16, 2015
  • 3 replies
  • 1049 views

I installed AWS SDK bundle from http://mvnrepository.com/artifact/org.apache.servicemix.bundles/org.apache.servicemix.bundles.aws-java-sdk into CQ5.6.1,

this code line works well in my component jsp file,

com.amazonaws.auth.AWSCredentials mycredential = new com.amazonaws.auth.BasicAWSCredentials(key1,key2);

But I installed the same bundle into CQ6.1, and confirmed the bundle is active from system/console, but still got error saying

"Could not initialize class com.amazonaws.ClientConfiguraiton" .

Something change in CQ6.1 cause this problem ?  

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by kautuk_sahni

Hi Arron Ella

Please have a look at this stackoverflow article if this could help you.

Link:- http://stackoverflow.com/questions/25684905/could-not-initialize-class-com-amazonaws-services-sqs-amazonsqsclient

Another link which might help you :- https://github.com/weavejester/clj-aws-s3/issues/83

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

3 replies

kautuk_sahni
kautuk_sahniAccepted solution
Employee
October 16, 2015

Hi Arron Ella

Please have a look at this stackoverflow article if this could help you.

Link:- http://stackoverflow.com/questions/25684905/could-not-initialize-class-com-amazonaws-services-sqs-amazonsqsclient

Another link which might help you :- https://github.com/weavejester/clj-aws-s3/issues/83

 

I hope this would help you.

 

Thanks and Regards

Kautuk Sahni

Kautuk Sahni
Employee
October 16, 2015

Hi,

when you install/restart the bundle, are you getting any output in error.log

Have you restarted the instance since installing the bundle, do you still get the error after restarting your instance after previously having installed the bundle?

Regards,

Opkar

New Participant
October 16, 2015

Thanks for your reply.

I did stop/start the bundle, and there is no error in error.log.

and then I restarted AEM, but no lucky. still see the same error.