Spring integration Spring Twitter集成,无法发送状态更新。详细错误:403:请求已被理解,但已被拒绝

Spring integration Spring Twitter集成,无法发送状态更新。详细错误:403:请求已被理解,但已被拒绝,spring-integration,spring-social,spring-social-twitter,Spring Integration,Spring Social,Spring Social Twitter,我遵循MarkLui和JoshLong的《支持Spring集成的书》中的SpringTwitter集成示例 但获取错误消息时表示无法发送状态更新。详细错误:403:请求已被理解,但已被拒绝 Exception in thread "main" org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.twi

我遵循MarkLui和JoshLong的《支持Spring集成的书》中的SpringTwitter集成示例

但获取错误消息时表示无法发送状态更新。详细错误:403:请求已被理解,但已被拒绝

Exception in thread "main" org.springframework.integration.MessageHandlingException: error occurred in message handler [org.springframework.integration.twitter.outbound.StatusUpdatingMessageHandler#0]
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:84)
at org.springframework.integration.dispatcher.UnicastingDispatcher.doDispatch(UnicastingDispatcher.java:110)
at org.springframework.integration.dispatcher.UnicastingDispatcher.dispatch(UnicastingDispatcher.java:97)
at org.springframework.integration.channel.AbstractSubscribableChannel.doSend(AbstractSubscribableChannel.java:44)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:157)
at org.springframework.integration.channel.AbstractMessageChannel.send(AbstractMessageChannel.java:128)
at edureka.TwitterOutbound.main(TwitterOutbound.java:18)

Caused by: org.springframework.integration.twitter.core.TwitterOperationException: Failed to send Status update.  Detailed Error: 403:The request is understood, but it has been refused.  An accompanying error message will explain why.
For more information about this exception please visit the following Twitter website: http://apiwiki.twitter.com/w/page/22554652/HTTP-Response-Codes-and-Errors
at org.springframework.integration.twitter.core.Twitter4jTemplate.updateStatus(Twitter4jTemplate.java:179)
at org.springframework.integration.twitter.outbound.StatusUpdatingMessageHandler.handleMessageInternal(StatusUpdatingMessageHandler.java:57)
at org.springframework.integration.handler.AbstractMessageHandler.handleMessage(AbstractMessageHandler.java:78)
... 6 more
有什么问题吗

这是我的TwitterOutbound.java

public class TwitterOutbound {
public static void main(String[] args) {
    ClassPathXmlApplicationContext context = new ClassPathXmlApplicationContext(
            "/twitter-outbound.xml", TwitterOutbound.class);
    MessageChannel input = context.getBean("twitterOutbound",
            MessageChannel.class);
    Message<String> message = MessageBuilder.withPayload(
            "Only can get and send message once "
                    + Calendar.getInstance().getTimeInMillis()).build();
    input.send(message);
    context.stop();
}
}
公共类twitter出站{
公共静态void main(字符串[]args){
ClassPathXmlApplicationContext上下文=新的ClassPathXmlApplicationContext(
“/twitter outbound.xml”,twitter outbound.class);
MessageChannel输入=context.getBean(“twitterOutbound”,
MessageChannel.class);
Message Message=MessageBuilder.withPayload(
“只能获取和发送一次邮件”
+Calendar.getInstance().getTimeInMillis()).build();
输入。发送(消息);
context.stop();
}
}
和twitter-outbound.xml

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:int="http://www.springframework.org/schema/integration"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:twitter="http://www.springframework.org/schema/integration/twitter"
xmlns:context="http://www.springframework.org/schema/context"
xsi:schemaLocation="http://www.springframework.org/schema/integration/twitter
http://www.springframework.org/schema/integration/twitter/spring-integration-twitter-2.0.xsd
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/integration
http://www.springframework.org/schema/integration/spring-integration-2.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.0.xsd">


<context:component-scan base-package="edureka"/>
<context:property-placeholder location="/twitter.properties"/>
<int:channel id="twitterOutbound"/> 

<twitter:outbound-channel-adapter twitter-template="twitterTemplate"
channel="twitterOutbound"/>
</beans> 

403
表示您的凭据不正确


您需要验证您的OAuth
consumerKey
ConsumerCret
accessToken
accessTokenSecret
是否正确配置。

403
表示您的凭据不正确


您需要验证您的OAuth
consumerKey
ConsumerCret
accessToken
accessTokenSecret
是否正确配置。

这不提供问题的答案。若要评论或要求作者澄清,请在其帖子下方留下评论。我不同意
问题出在哪里
是我回答的问题;但我补充了一些澄清。我同意你确实回答了这个问题,但这真的是OP想要知道的吗?我打赌他需要更多。你的编辑确实给了我们更多的调料,所以让我们看看OP会怎么说。这并不能回答这个问题。若要评论或要求作者澄清,请在其帖子下方留下评论。我不同意
问题出在哪里
是我回答的问题;但我补充了一些澄清。我同意你确实回答了这个问题,但这真的是OP想要知道的吗?我打赌他需要更多。你的编辑确实给了我们更多的调料,所以让我们看看OP会怎么说。