Java Failed to validate oauth signature and token


Hi, I am trying to get oauth_token by post to
The header is something as follows:

OAuth oauth_nonce="glxomnct08x0gfialw", oauth_callback="", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1373014401", oauth_consumer_key="9BFD1XOiVFHrnS7Hw78yA", oauth_signature="Qm2WJtOMYAJ8FpOfBAar5THKbdo%3D", oauth_version="1.0"

which looks similar as the sample on page

OAuth oauth_nonce="K7ny27JTpKVsTgdyLdDfmQQWVLERj2zAK5BslRsqyw", oauth_callback="", oauth_signature_method="HMAC-SHA1", oauth_timestamp="1300228849", oauth_consumer_key="OqEqJeafRSF11jBMStrZz", oauth_signature="Pc%2BMLdv028fxCErFyi8KXFM%2BddU%3D", oauth_version="1.0"

I generate the oauth_nonce by the following code:
public void setOauth_nonce() {
String base = “1234567890abcdefghijklmnopqrstuvwxyz”;
StringBuffer sb = new StringBuffer();
Random rand = new Random();
for(int i = 0; i < 18; i++){
int num = rand.nextInt(base.length());
this.oauth_nonce = sb.toString() ;

I changed the length as 32, also not work.

The param string is like this: 


By the way, Example Request on page looks like this,
what exactly is the body?

Request URL:

Request POST Body:

Any help, I will be really grateful~~