-
Bug
-
Resolution: Fixed
-
Low
-
Severity 3 - Minor
-
NOTE: This bug report is for Confluence Cloud. Using Confluence Server? See the corresponding bug report.
Steps to reproduce
Embed a PDF or office attachment when creating a new question. After save, the view question page displays a spinner.
Root cause
The office connector plugin assumes all content ID's are page ID's – resulting in the following class cast exception.
@40000000535d9e771d885b2c 2014-04-28 00:18:53,493 ERROR [TP-Processor10] [[Catalina].[localhost].[/wiki].[servlet-module-container-servlet]] log Servlet.service() for servlet servlet-module-container-servlet threw exception @40000000535d9e771d8866e4 java.lang.ClassCastException: com.atlassian.confluence.content.CustomContentEntityObject cannot be cast to com.atlassian.confluence.pages.AbstractPage @40000000535d9e771d886acc at com.atlassian.confluence.pages.persistence.dao.hibernate.HibernateAbstractPageDao.getAbstractPageById(HibernateAbstractPageDao.java:18) @40000000535d9e771d888a0c at sun.reflect.GeneratedMethodAccessor929.invoke(Unknown Source) @40000000535d9e771d888df4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d8891dc at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8895c4 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d889d94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @40000000535d9e771d88a17c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @40000000535d9e771d88a564 at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @40000000535d9e771d88c88c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d88cc74 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d88d05c at $Proxy54.getAbstractPageById(Unknown Source) @40000000535d9e771d88d05c at com.atlassian.confluence.pages.DefaultPageManager.getAbstractPage(DefaultPageManager.java:162) @40000000535d9e771d890324 at com.atlassian.confluence.pages.DefaultPageManager.getById(DefaultPageManager.java:173) @40000000535d9e771d89070c at sun.reflect.GeneratedMethodAccessor910.invoke(Unknown Source) @40000000535d9e771d890af4 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d890edc at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8916ac at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d891a94 at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) @40000000535d9e771d891e7c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) @40000000535d9e771d892e1c at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) @40000000535d9e771d893204 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d8935ec at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.java:16) @40000000535d9e771d8941a4 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89458c at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d894974 at $Proxy56.getById(Unknown Source) @40000000535d9e771d894974 at sun.reflect.GeneratedMethodAccessor855.invoke(Unknown Source) @40000000535d9e771d895144 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d89552c at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d89552c at com.atlassian.plugin.osgi.hostcomponents.impl.DefaultComponentRegistrar$ContextClassLoaderSettingInvocationHandler.invoke(DefaultComponentRegistrar.java:129) @40000000535d9e771d895cfc at $Proxy176.getById(Unknown Source) @40000000535d9e771d897c3c at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) @40000000535d9e771d898024 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) @40000000535d9e771d89840c at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) @40000000535d9e771d8987f4 at java.lang.reflect.Method.invoke(Method.java:597) @40000000535d9e771d8987f4 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) @40000000535d9e771d8993ac at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:58) @40000000535d9e771d899794 at org.springframework.osgi.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:62) @40000000535d9e771d899b7c at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89a734 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) @40000000535d9e771d89ab1c at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) @40000000535d9e771d89af04 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89bea4 at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:56) @40000000535d9e771d89c28c at org.springframework.osgi.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:39) @40000000535d9e771d89c674 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89d22c at org.springframework.osgi.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:59) @40000000535d9e771d89d614 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89d614 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:131) @40000000535d9e771d89dde4 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:119) @40000000535d9e771d89e1cc at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) @40000000535d9e771d89e5b4 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) @40000000535d9e771d89f16c at $Proxy405.getById(Unknown Source) @40000000535d9e771d89f16c at com.benryan.conversion.PPTSlideServlet.doGet(PPTSlideServlet.java:59)
- is related to
-
CONFSERVER-47938 Cannot preview PDF or office attachments
- Closed