I just find this issue
https://groups.google.com/forum/#!topic/usergrid/V8A89Q9ku-M and it seems
to remove the error message, but I have to verify if AWS feature works now
...

##############################
the problem solved by enabling the built-in queue implementation
(usergrid.use.default.queue=true).

I'm not sure about why the built-in is not preferred in the default
settings, but I believe the default settings should be the simple and have
minimal 3rd party dependencies.

Regards,
-- Mehrdad
##############################

Regards,
Guillaume

2016-04-06 13:33 GMT+01:00 Guillaume <[email protected]>:

> hi,
>
> I added the following lines in top of /usr/share/tomcat7/bin/catalina.sh :
>
> export CATALINA_OPTS="-DAWS_ACCESS_KEY_ID=xxx -DAWS_ACCESS_KEY_SECRET=xxx"
>
> but I have the same error message.
>
> Regards,
> Guillaume
>
> 2016-04-05 22:59 GMT+01:00 Michael Russo <[email protected]>:
>
>> Can you try providing the AWS_ACCESS_KEY_ID= and AWS_ACCESS_KEY_SECRET=
>> as JVM parameters (CATALINA_OPTS) in the Tomcat init script?
>>
>> Thanks.
>> -Michael
>>
>> *Michael Russo* | *Engineering* | *apigee <http://apigee.com/>* | m:
>> +1.650.946.8608 | *skype* mikearusso
>>
>> On Tue, Apr 5, 2016 at 1:00 PM, Guillaume <[email protected]> wrote:
>>
>>> hi,
>>>
>>> I have the following error in catalina.out :
>>>
>>> 2016-04-05 20:49:30,728 ERROR (QueueListener_PushNotifications-2)
>>> [org.apache.usergrid.services.notifications.QueueListener] - QueueListener:
>>> threads interrupted
>>> com.google.common.util.concurrent.UncheckedExecutionException:
>>> java.lang.RuntimeException: Error setting up mapper
>>> at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203)
>>> at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
>>> at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
>>> at
>>> com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.QueueManagerFactoryImpl.getQueueManager(QueueManagerFactoryImpl.java:83)
>>> at
>>> org.apache.usergrid.services.notifications.QueueListener.execute(QueueListener.java:163)
>>> at
>>> org.apache.usergrid.services.notifications.QueueListener.access$000(QueueListener.java:47)
>>> at
>>> org.apache.usergrid.services.notifications.QueueListener$1.run(QueueListener.java:125)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>> Caused by: java.lang.RuntimeException: Error setting up mapper
>>> at
>>> org.apache.usergrid.persistence.queue.impl.SNSQueueManagerImpl.<init>(SNSQueueManagerImpl.java:185)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.SNSQueueManagerImpl$$FastClassByGuice$$b7fd46d9.newInstance(<generated>)
>>> at
>>> com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
>>> at
>>> com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
>>> at
>>> com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
>>> at
>>> com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
>>> at
>>> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
>>> at
>>> com.google.inject.internal.InjectorImpl$2$1.call(InjectorImpl.java:1009)
>>> at
>>> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1059)
>>> at com.google.inject.internal.InjectorImpl$2.get(InjectorImpl.java:1005)
>>> at
>>> com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:679)
>>> at com.sun.proxy.$Proxy25.getQueueManager(Unknown Source)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.QueueManagerFactoryImpl$1.load(QueueManagerFactoryImpl.java:66)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.QueueManagerFactoryImpl$1.load(QueueManagerFactoryImpl.java:51)
>>> at
>>> com.google.common.cache.LocalCache$LoadingValueReference.loadFuture(LocalCache.java:3527)
>>> at
>>> com.google.common.cache.LocalCache$Segment.loadSync(LocalCache.java:2319)
>>> at
>>> com.google.common.cache.LocalCache$Segment.lockedGetOrLoad(LocalCache.java:2282)
>>> at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2197)
>>> ... 12 more
>>> Caused by: com.amazonaws.AmazonClientException: could not get aws access
>>> key from system properties
>>> at
>>> org.apache.usergrid.persistence.queue.impl.UsergridAwsCredentialsProvider.init(UsergridAwsCredentialsProvider.java:46)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.UsergridAwsCredentialsProvider.<init>(UsergridAwsCredentialsProvider.java:41)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.SNSQueueManagerImpl.createSQSClient(SNSQueueManagerImpl.java:689)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.SNSQueueManagerImpl.<init>(SNSQueueManagerImpl.java:179)
>>> ... 29 more
>>> 2016-04-05 20:49:30,728 ERROR (QueueListener_PushNotifications-1)
>>> [org.apache.usergrid.services.notifications.QueueListener] - QueueListener:
>>> threads interrupted
>>> com.google.common.util.concurrent.UncheckedExecutionException:
>>> java.lang.RuntimeException: Error setting up mapper
>>> at com.google.common.cache.LocalCache$Segment.get(LocalCache.java:2203)
>>> at com.google.common.cache.LocalCache.get(LocalCache.java:3937)
>>> at com.google.common.cache.LocalCache.getOrLoad(LocalCache.java:3941)
>>> at
>>> com.google.common.cache.LocalCache$LocalLoadingCache.get(LocalCache.java:4824)
>>> at
>>> org.apache.usergrid.persistence.queue.impl.QueueManagerFactoryImpl.getQueueManager(QueueManagerFactoryImpl.java:83)
>>> at
>>> org.apache.usergrid.services.notifications.QueueListener.execute(QueueListener.java:163)
>>> at
>>> org.apache.usergrid.services.notifications.QueueListener.access$000(QueueListener.java:47)
>>> at
>>> org.apache.usergrid.services.notifications.QueueListener$1.run(QueueListener.java:125)
>>> at
>>> java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
>>> at java.util.concurrent.FutureTask.run(FutureTask.java:266)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
>>> at
>>> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
>>> at java.lang.Thread.run(Thread.java:745)
>>>
>>>
>>> I already configured this lines
>>> in /usr/share/tomcat7/lib/usergrid-deployment.properties :
>>>
>>> AWS_ACCESS_KEY_ID=<my-key>
>>> AWS_ACCESS_KEY_SECRET=<my-pass>
>>>
>>> Where is my mistake ?
>>>
>>> Regards,
>>> Guillaume
>>>
>>>
>>
>

Reply via email to