java.lang.ClassCastException: java.lang.ref.SoftReference cannot be cast to java.util.concurrent.ConcurrentHashMap

GitHub | ming300 | 6 months ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    GitHub comment 21#253159784

    GitHub | 6 months ago | ming300
    java.lang.ClassCastException: java.lang.ref.SoftReference cannot be cast to java.util.concurrent.ConcurrentHashMap
  2. 0

    怀疑 exCache 中配置的hfield不起作用,已解决,因为hfield的值为null,需要配condition

    GitHub | 6 months ago | ming300
    java.lang.ClassCastException: java.lang.ref.SoftReference cannot be cast to java.util.concurrent.ConcurrentHashMap
  3. 0

    /rest/api/content/contentId throws cast exception when expanding the metadata.labels {code} @4000000056a038e7333039a4 2016-01-21 02:48:13,856 INFO [http-bio-1999-exec-129] [confluence.rpc.auth.TokenAuthenticationInvocationHandler] invokeAuthenticatedMethod Executing remote API method [ getPage ] as user [ sheiva ] @4000000056a038e8237439ac 2016-01-21 02:48:14,591 ERROR [http-bio-1999-exec-170] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : @4000000056a038e82374417c -- url: /wiki/rest/api/content/12878012 | traceId: 3fa60b890a86d925 | userName: volker @4000000056a038e82374417c java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.util.List @4000000056a038e823744564 at com.atlassian.confluence.content.apisupport.ContentCreator.setLabelsMetadataOnEntity(ContentCreator.java:219) @4000000056a038e82374705c at com.atlassian.confluence.content.apisupport.ContentCreator.setCommonMetadata(ContentCreator.java:296) @4000000056a038e82374705c at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:154) @4000000056a038e823747444 at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:42) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.updateUsingApiSupport(ContentServiceImpl.java:108) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.update(ContentServiceImpl.java:145) @4000000056a038e823748bb4 at sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e823748bb4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e823748f9c at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e823748f9c at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @4000000056a038e823749b54 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @4000000056a038e823749f3c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @4000000056a038e82374a324 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @4000000056a038e82374a324 at com.sun.proxy.$Proxy143.update(Unknown Source) @4000000056a038e82374a70c at sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e82374aedc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e82374b2c4 at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e82374b2c4 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) ... {code} Workaround: Do not expand the metadata labels

    Atlassian JIRA | 1 year ago | Ran Ding [Atlassian]
    java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.util.List @4000000056a038e823744564 at com.atlassian.confluence.content.apisupport.ContentCreator.setLabelsMetadataOnEntity(ContentCreator.java:219) @4000000056a038e82374705c at com.atlassian.confluence.content.apisupport.ContentCreator.setCommonMetadata(ContentCreator.java:296) @4000000056a038e82374705c at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:154) @4000000056a038e823747444 at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:42) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.updateUsingApiSupport(ContentServiceImpl.java:108) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.update(ContentServiceImpl.java:145) @4000000056a038e823748bb4 at sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e823748bb4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e823748f9c at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e823748f9c at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @4000000056a038e823749b54 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @4000000056a038e823749f3c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    /rest/api/content/contentId throws cast exception when expanding the metadata.labels {code} @4000000056a038e7333039a4 2016-01-21 02:48:13,856 INFO [http-bio-1999-exec-129] [confluence.rpc.auth.TokenAuthenticationInvocationHandler] invokeAuthenticatedMethod Executing remote API method [ getPage ] as user [ sheiva ] @4000000056a038e8237439ac 2016-01-21 02:48:14,591 ERROR [http-bio-1999-exec-170] [rest.api.model.ExceptionConverter] convertServiceException No status code found for exception, converting to internal server error : @4000000056a038e82374417c -- url: /wiki/rest/api/content/12878012 | traceId: 3fa60b890a86d925 | userName: volker @4000000056a038e82374417c java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.util.List @4000000056a038e823744564 at com.atlassian.confluence.content.apisupport.ContentCreator.setLabelsMetadataOnEntity(ContentCreator.java:219) @4000000056a038e82374705c at com.atlassian.confluence.content.apisupport.ContentCreator.setCommonMetadata(ContentCreator.java:296) @4000000056a038e82374705c at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:154) @4000000056a038e823747444 at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:42) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.updateUsingApiSupport(ContentServiceImpl.java:108) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.update(ContentServiceImpl.java:145) @4000000056a038e823748bb4 at sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e823748bb4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e823748f9c at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e823748f9c at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @4000000056a038e823749b54 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @4000000056a038e823749f3c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @4000000056a038e82374a324 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @4000000056a038e82374a324 at com.sun.proxy.$Proxy143.update(Unknown Source) @4000000056a038e82374a70c at sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e82374aedc at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e82374b2c4 at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e82374b2c4 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) ... {code} Workaround: Do not expand the metadata labels

    Atlassian JIRA | 1 year ago | Ran Ding [Atlassian]
    java.lang.ClassCastException: java.util.LinkedHashMap cannot be cast to java.util.List @4000000056a038e823744564 at com.atlassian.confluence.content.apisupport.ContentCreator.setLabelsMetadataOnEntity(ContentCreator.java:219) @4000000056a038e82374705c at com.atlassian.confluence.content.apisupport.ContentCreator.setCommonMetadata(ContentCreator.java:296) @4000000056a038e82374705c at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:154) @4000000056a038e823747444 at com.atlassian.confluence.api.impl.service.content.typebinding.PageContentTypeApiSupport.update(PageContentTypeApiSupport.java:42) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.updateUsingApiSupport(ContentServiceImpl.java:108) @4000000056a038e823747c14 at com.atlassian.confluence.api.impl.service.content.ContentServiceImpl.update(ContentServiceImpl.java:145) @4000000056a038e823748bb4 at sun.reflect.GeneratedMethodAccessor1997.invoke(Unknown Source) @4000000056a038e823748bb4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) @4000000056a038e823748f9c at java.lang.reflect.Method.invoke(Method.java:497) @4000000056a038e823748f9c at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @4000000056a038e82374976c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @4000000056a038e823749b54 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @4000000056a038e823749f3c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)

    Root Cause Analysis

    1. java.lang.ClassCastException

      java.lang.ref.SoftReference cannot be cast to java.util.concurrent.ConcurrentHashMap

      at com.jarvis.cache.map.CachePointCut.setCache()
    2. com.jarvis.cache
      AspectjAopInterceptor.proceed
      1. com.jarvis.cache.map.CachePointCut.setCache(CachePointCut.java:103)
      2. com.jarvis.cache.AbstractCacheManager.writeCache(AbstractCacheManager.java:221)
      3. com.jarvis.cache.AbstractCacheManager.proceed(AbstractCacheManager.java:124)
      4. com.jarvis.cache.aop.aspectj.AspectjAopInterceptor.proceed(AspectjAopInterceptor.java:49)
      4 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    4. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:621)
      2. org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:610)
      3. org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:65)
      4. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:161)
      4 frames
    5. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      3 frames
    6. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:91)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      4. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      4 frames