Skip to content

Instantly share code, notes, and snippets.

Avatar

Marc de Verdelhan mdeverdelhan

View GitHub Profile
@mdeverdelhan
mdeverdelhan / AsyncMailSender.java
Last active Jun 21, 2019
Exception interception (AOP) and asynchronous mail sending with Spring
View AsyncMailSender.java
package com.mygroup.myapp.common.task;
import org.springframework.mail.MailException;
import org.springframework.mail.SimpleMailMessage;
import org.springframework.mail.javamail.JavaMailSenderImpl;
import org.springframework.scheduling.annotation.Async;
/**
* Asynchronous mail sender
*/
View Twitter-Exception_Bad-Authentication-data
400:The request was invalid. An accompanying error message will explain why. This is the status code will be returned during version 1.0 rate limiting(https://dev.twitter.com/pages/rate-limiting). In API v1.1, a request without authentication is considered invalid and you will get this response.
message - Bad Authentication data
code - 215
Relevant discussions can be found on the Internet at:
http://www.google.co.jp/search?q=b2b52c28 or
http://www.google.co.jp/search?q=10981ab8
TwitterException{exceptionCode=[b2b52c28-10981ab8], statusCode=400, message=Bad Authentication data, code=215, retryAfter=-1, rateLimitStatus=null, version=3.0.3}
at twitter4j.internal.http.HttpClientImpl.request(HttpClientImpl.java:177)
at twitter4j.internal.http.HttpClientWrapper.request(HttpClientWrapper.java:61)
@mdeverdelhan
mdeverdelhan / CallingDialog.java
Created Nov 15, 2012
Setting global UI for Swing buttons
View CallingDialog.java
JOptionPane.showConfirmDialog(this, confirmMessage, confirmTitle, JOptionPane.YES_NO_OPTION);