You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@camel.apache.org by vs_mahesh <vs...@yahoo.co.in> on 2015/01/09 10:30:19 UTC

error in reading FaceBook Endpoints

Hi ,

I have the following ruoute to integrate with Facebook APIs,

*<route id="READINBOX">
		
			<from
uri="facebook://getAccounts?oAuthAppId=**********&amp;oAuthAppSecret=***********2d0bae49d37afec5"
/>
			
		   <log logName="INPUT" loggingLevel="INFO" message="PAYLOAD RECIEVED AT
THE STUB ${body}"/>
		<to uri="mock:end"/>
		
</route>*


The route fails to read from the getAccounts endpoint resulting in following
error

*[ad #0 - facebook://getAccounts] FacebookConsumer               WARN 
Consumer
Consumer[facebook://getAccounts?oAuthAppId=395905433905233&oAuthAppSecret=417d6b48afe10f402d0bae49d37afec5]
failed polling endpoint:
Endpoint[facebook://getAccounts?oAuthAppId=395905433905233&oAuthAppSecret=417d6b48afe10f402d0bae49d37afec5].
Will try again at next poll. Caused by:
[org.apache.camel.RuntimeCamelException - FacebookException [statusCode=-1,
response=null, errorType=null, errorMessage=null, errorCode=-1]]
org.apache.camel.RuntimeCamelException: FacebookException [statusCode=-1,
response=null, errorType=null, errorMessage=null, errorCode=-1]
	at
org.apache.camel.util.ObjectHelper.wrapRuntimeCamelException(ObjectHelper.java:1364)[camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.component.facebook.FacebookConsumer.poll(FacebookConsumer.java:178)[camel-facebook-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[camel-core-2.14.0.jar:2.14.0]
	at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_04]
	at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)[:1.7.0_04]
	at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)[:1.7.0_04]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[:1.7.0_04]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.7.0_04]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_04]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_04]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0_04]
[ad #0 - facebook://getAccounts] FacebookConsumer               WARN 
Consumer
Consumer[facebook://getAccounts?oAuthAppId=395905433905233&oAuthAppSecret=417d6b48afe10f402d0bae49d37afec5]
failed polling endpoint:
Endpoint[facebook://getAccounts?oAuthAppId=395905433905233&oAuthAppSecret=417d6b48afe10f402d0bae49d37afec5].
Will try again at next poll. Caused by:
[org.apache.camel.RuntimeCamelException - Error invoking getAccounts with
{reading=Reading
[since=2015-01-09T14%3A47%3A57%2B0530&until=2015-01-09T14%3A48%3A18%2B0530]}:
null]
org.apache.camel.RuntimeCamelException: Error invoking getAccounts with
{reading=Reading
[since=2015-01-09T14%3A47%3A57%2B0530&until=2015-01-09T14%3A48%3A18%2B0530]}:
null
	at
org.apache.camel.component.facebook.data.FacebookMethodsTypeHelper.invokeMethod(FacebookMethodsTypeHelper.java:361)[camel-facebook-2.14.0.jar:2.14.0]
	at
org.apache.camel.component.facebook.FacebookConsumer.poll(FacebookConsumer.java:154)[camel-facebook-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:187)[camel-core-2.14.0.jar:2.14.0]
	at
org.apache.camel.impl.ScheduledPollConsumer.run(ScheduledPollConsumer.java:114)[camel-core-2.14.0.jar:2.14.0]
	at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[:1.7.0_04]
	at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:351)[:1.7.0_04]
	at
java.util.concurrent.FutureTask.runAndReset(FutureTask.java:178)[:1.7.0_04]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:178)[:1.7.0_04]
	at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.7.0_04]
	at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_04]
	at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_04]
	at java.lang.Thread.run(Thread.java:722)[:1.7.0_04]
*


Whats the possible cause for the error?


Thanks,
Mahesh




-----
Thanks And regards,
Mahesh
--
View this message in context: http://camel.465427.n5.nabble.com/error-in-reading-FaceBook-Endpoints-tp5761510.html
Sent from the Camel - Users mailing list archive at Nabble.com.

Re: error in reading FaceBook Endpoints

Posted by contactreji <co...@gmail.com>.
Mahesh

I too had a try with the Facebook component. Doesn't seem to work the
straight forward way. 

Can someone help with inputs on this issue.

Cheers
Reji



--
View this message in context: http://camel.465427.n5.nabble.com/error-in-reading-FaceBook-Endpoints-tp5761510p5761605.html
Sent from the Camel - Users mailing list archive at Nabble.com.