Hello Thorsten,
I guess something is really strange here?
The directories are these of 0.10. Nevertheless I deleted them and
restartet tomcat.
Same issue.
Kind regards
Cornelius
root@osiam:~/osiam0.10# ls /var/lib/tomcat7/webapps/ -ltrh
insgesamt 27M
drwxr-xr-x 3 root root 4,0K Sep 17 10:33 ROOT
-rw-r--r-- 1 root root 10M Okt 21 10:16 osiam-auth-server.war
-rw-r--r-- 1 root root 17M Okt 21 10:17 osiam-resource-server.war
drwxr-xr-x 4 tomcat7 tomcat7 4,0K Okt 30 12:34 osiam-auth-server
drwxr-xr-x 4 tomcat7 tomcat7 4,0K Okt 30 12:35 osiam-resource-server
root@osiam:~/osiam0.10# ls /var/lib/tomcat7/webapps/ROOT/
index.html META-INF
root@osiam:~/osiam0.10# rm /var/lib/tomcat7/webapps/osiam-auth-server -r
root@osiam:~/osiam0.10# rm /var/lib/tomcat7/webapps/osiam-resource-server -r
root@osiam:~/osiam0.10# /etc/init.d/tomcat7 restart
[ ok ] Stopping Tomcat servlet engine: tomcat7.
[ ok ] Starting Tomcat servlet engine: tomcat7.
{"access_token":"d303f148-a18b-4727-b390-776e6440eae6","token_type":"bearer","expires_in":2341,"scope":"DELETE
GET POST PUT"}root@osiam:~/osiam0.10#
root@osiam:~/osiam0.10# export
YOUR_ACCESS_TOKEN=d303f148-a18b-4727-b390-776e6440eae6
root@osiam:~/osiam0.10# curl -i -H "Accept: application/json" -H
"Content-type: application/json" -H "Authorization: Bearer
$YOUR_ACCESS_TOKEN" -X GET
localhost:8080/osiam-resource-server/Client/example-client
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: text/html;charset=utf-8
Transfer-Encoding: chunked
Date: Fri, 01 Nov 2013 13:43:39 GMT
Connection: close
<html><head><title>Apache Tomcat/7.0.28 - Error
report</title><style><!--H1
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:22px;}
H2
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:16px;}
H3
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;font-size:14px;}
BODY
{font-family:Tahoma,Arial,sans-serif;color:black;background-color:white;} B
{font-family:Tahoma,Arial,sans-serif;color:white;background-color:#525D76;}
P
{font-family:Tahoma,Arial,sans-serif;background:white;color:black;font-size:12px;}A
{color : black;}A.name {color : black;}HR {color : #525D76;}--></style>
</head><body><h1>HTTP Status 500 -
org.codehaus.jackson.JsonParseException: Unexpected character ('<'
(code 60)): expected a valid value (number, String, array, object,
'true', 'false' or 'null')
at [Source: java.io.StringReader@49676fdf; line: 1, column: 2]</h1><HR
size="1" noshade="noshade"><p><b>type</b> Exception
report</p><p><b>message</b> <u>org.codehaus.jackson.JsonParseException:
Unexpected character ('<' (code 60)): expected a valid value (number,
String, array, object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@49676fdf; line: 1, column:
2]</u></p><p><b>description</b> <u>The server encountered an internal
error (org.codehaus.jackson.JsonParseException: Unexpected character
('<' (code 60)): expected a valid value (number, String, array,
object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@49676fdf; line: 1, column: 2]) that
prevented it from fulfilling this request.</u></p><p><b>exception</b>
<pre>java.lang.RuntimeException:
org.codehaus.jackson.JsonParseException: Unexpected character ('<'
(code 60)): expected a valid value (number, String, array, object,
'true', 'false' or 'null')
at [Source: java.io.StringReader@49676fdf; line: 1, column: 2]
org.osiam.security.authorization.AccessTokenValidationService.loadAuthentication(AccessTokenValidationService.java:49)
org.osiam.security.authorization.AccessTokenValidationService$$FastClassByCGLIB$$5c9a4063.invoke(<generated>)
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
org.osiam.resources.helper.MeasureDurationTimeOfMethods.wrapExceptionForSonar(MeasureDurationTimeOfMethods.java:60)
org.osiam.resources.helper.MeasureDurationTimeOfMethods.measureTime(MeasureDurationTimeOfMethods.java:48)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
org.osiam.security.authorization.AccessTokenValidationService$$EnhancerByCGLIB$$9dc7b2f0.loadAuthentication(<generated>)
org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationManager.authenticate(OAuth2AuthenticationManager.java:70)
org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
</pre></p><p><b>root cause</b>
<pre>org.codehaus.jackson.JsonParseException: Unexpected character
('<' (code 60)): expected a valid value (number, String, array,
object, 'true', 'false' or 'null')
at [Source: java.io.StringReader@49676fdf; line: 1, column: 2]
org.codehaus.jackson.JsonParser._constructError(JsonParser.java:1433)
org.codehaus.jackson.impl.JsonParserMinimalBase._reportError(JsonParserMinimalBase.java:521)
org.codehaus.jackson.impl.JsonParserMinimalBase._reportUnexpectedChar(JsonParserMinimalBase.java:442)
org.codehaus.jackson.impl.ReaderBasedParser._handleUnexpectedValue(ReaderBasedParser.java:1198)
org.codehaus.jackson.impl.ReaderBasedParser.nextToken(ReaderBasedParser.java:485)
org.codehaus.jackson.map.ObjectMapper._initForReading(ObjectMapper.java:2770)
org.codehaus.jackson.map.ObjectMapper._readMapAndClose(ObjectMapper.java:2718)
org.codehaus.jackson.map.ObjectMapper.readValue(ObjectMapper.java:1863)
org.osiam.security.authorization.AccessTokenValidationService.loadAuthentication(AccessTokenValidationService.java:47)
org.osiam.security.authorization.AccessTokenValidationService$$FastClassByCGLIB$$5c9a4063.invoke(<generated>)
org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:698)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:80)
org.osiam.resources.helper.MeasureDurationTimeOfMethods.wrapExceptionForSonar(MeasureDurationTimeOfMethods.java:60)
org.osiam.resources.helper.MeasureDurationTimeOfMethods.measureTime(MeasureDurationTimeOfMethods.java:48)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:606)
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:631)
org.osiam.security.authorization.AccessTokenValidationService$$EnhancerByCGLIB$$9dc7b2f0.loadAuthentication(<generated>)
org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationManager.authenticate(OAuth2AuthenticationManager.java:70)
org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:108)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:259)
</pre></p><p><b>note</b> <u>The full stack trace of the root cause is
available in the Apache Tomcat/7.0.28 logs.</u></p><HR size="1"
noshade="noshade"><h3>Apache
Tomcat/7.0.28</h3></body></html>root@osiam:~/osiam0.10#