OAuthTwoLegged integration test sometimes fails
-----------------------------------------------
Key: AMDATU-302
URL: http://jira.amdatu.org/jira/browse/AMDATU-302
Project: Amdatu
Issue Type: Bug
Components: Amdatu Auth
Affects Versions: 0.1.0
Reporter: Ivo Ladage - van Doorn
Fix For: 0.1.0
Sometimes, not always, the OAuthTwoLegged integration test fails on this error:
-------------------------------------------------------------------------------
Test set: org.amdatu.test.integration.tests.OAuthTwoLeggedTest
-------------------------------------------------------------------------------
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 20.304 sec <<<
FAILURE!
testThreeLeggedOAuth
[felix](org.amdatu.test.integration.tests.OAuthTwoLeggedTest) Time elapsed:
20.273 sec <<< ERROR!
net.oauth.OAuthProblemException: HTTP/1.1 500 Internal Server Error
URL:
http://localhost:8080/test/oauth/protectedresource?oauthtype=2legged&oauth_token=uKSEG42PEZjEhknFRXJDJPe8Sxtt1CGYvHrPSG%2F%2BWuutez%2F6VH9UBKp7DETfVuUVWQkrOBeUbgK7CSZ2Kbsc3%2B1pvrBwvH2uwyA7YDvVJTQwprT5l5kkm9lot2qd5sGWGaPUjg%2F%2BVOvZHDlTDI6JlHyEsgNnS2m%2FXssNAOIwBUq2ZhvLHr2Dw3xrkbr%2Bj25eanpxV8G2PEawppBr1ffgR5ShEuLIDdShXYg9RkFTMwE%3D&oauth_consumer_key=IntegrationTestConsumerKey&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1297430883&oauth_nonce=20947028165119&oauth_version=1.0&oauth_signature=Yl2jhsESwn%2BihcVPNwSATt1FfAk%3D
oauth_signature base string:
GET&http%3A%2F%2Flocalhost%3A8080%2Ftest%2Foauth%2Fprotectedresource&oauth_consumer_key%3DIntegrationTestConsumerKey%26oauth_nonce%3D20947028165119%26oauth_signature_method%3DHMAC-SHA1%26oauth_timestamp%3D1297430883%26oauth_token%3DuKSEG42PEZjEhknFRXJDJPe8Sxtt1CGYvHrPSG%252F%252BWuutez%252F6VH9UBKp7DETfVuUVWQkrOBeUbgK7CSZ2Kbsc3%252B1pvrBwvH2uwyA7YDvVJTQwprT5l5kkm9lot2qd5sGWGaPUjg%252F%252BVOvZHDlTDI6JlHyEsgNnS2m%252FXssNAOIwBUq2ZhvLHr2Dw3xrkbr%252Bj25eanpxV8G2PEawppBr1ffgR5ShEuLIDdShXYg9RkFTMwE%253D%26oauth_version%3D1.0%26oauthtype%3D2legged
>>>>>>>> HTTP request:
GET
/test/oauth/protectedresource?oauthtype=2legged&oauth_token=uKSEG42PEZjEhknFRXJDJPe8Sxtt1CGYvHrPSG/+Wuutez/6VH9UBKp7DETfVuUVWQkrOBeUbgK7CSZ2Kbsc3+1pvrBwvH2uwyA7YDvVJTQwprT5l5kkm9lot2qd5sGWGaPUjg/+VOvZHDlTDI6JlHyEsgNnS2m/XssNAOIwBUq2ZhvLHr2Dw3xrkbr+j25eanpxV8G2PEawppBr1ffgR5ShEuLIDdShXYg9RkFTMwE=&oauth_consumer_key=IntegrationTestConsumerKey&oauth_signature_method=HMAC-SHA1&oauth_timestamp=1297430883&oauth_nonce=20947028165119&oauth_version=1.0&oauth_signature=Yl2jhsESwn+ihcVPNwSATt1FfAk=
<<<<<<<< HTTP response:
HTTP/1.1 500 Internal Server Error
Content-Type: text/html; charset=iso-8859-1
Cache-Control: must-revalidate,no-cache,no-store
Content-Length: 1417
Server: Jetty(6.1.x)
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"/>
<title>Error 500 INTERNAL_SERVER_ERROR</title>
</head>
<body><h2>HTTP ERROR 500</h2>
<p>Problem accessing /test/oauth/protectedresource. Reason:
<pre> INTERNAL_SERVER_ERROR</pre></p><hr /><i><small>Powered by
Jetty://</small></i><br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<br/>
<b ...
at
net.oauth.client.OAuthResponseMessage.toOAuthProblemException(OAuthResponseMessage.java:83)
at net.oauth.client.OAuthClient.invoke(OAuthClient.java:308)
at
org.amdatu.authentication.oauth.client.internal.OAuthClientBase.invoke(OAuthClientBase.java:131)
at
org.amdatu.authentication.oauth.client.OAuthServiceConsumerClient.accessResource(OAuthServiceConsumerClient.java:161)
at
org.amdatu.test.integration.tests.OAuthTwoLeggedTest.testThreeLeggedOAuth(OAuthTwoLeggedTest.java:91)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.injectContextAndInvoke(CallableTestMethodImpl.java:143)
at
org.ops4j.pax.exam.junit.extender.impl.internal.CallableTestMethodImpl.call(CallableTestMethodImpl.java:105)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.ops4j.pax.exam.rbc.internal.RemoteBundleContextImpl.remoteCall(RemoteBundleContextImpl.java:80)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305)
at sun.rmi.transport.Transport$1.run(Transport.java:159)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:155)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790)
at
sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
at java.lang.Thread.run(Thread.java:619)
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira