Details
-
Bug
-
Resolution: Fixed
-
Low
-
None
-
None
Description
This is polluting the EAC logs and makes it hard to spot other errors.
This is a pretty simple thing to fix up and avoid the class cast exception (fetch abstract page and then do check?)
we should also provide a way to get page or blog so the end user doesn't have to try to get a page, and upon failing, try to get a blog.
2015-04-22 20:53:35,673 ERROR [catalina-exec-45] [confluence.rpc.auth.TokenAuthenticationInvocationHandler]
invokeAuthenticatedMethod Error during invocation of method [getPage]
-- url: /rpc/xmlrpc | userName: pbray | method: getPage
java.lang.ClassCastException: com.atlassian.confluence.pages.BlogPost cannot be cast to com.atlassian.conflu
ence.pages.Page
at com.atlassian.confluence.rpc.soap.services.PagesSoapService.getPage(PagesSoapService.java:88)
at com.atlassian.confluence.rpc.soap.XhtmlSoapService.getPage(XhtmlSoapService.java:370)
at sun.reflect.GeneratedMethodAccessor2892.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvo
cation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j
ava:149)
at com.atlassian.spring.interceptors.SpringProfilingInterceptor.invoke(SpringProfilingInterceptor.ja
va:16)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j
ava:171)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.
java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.j
ava:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy1282.getPage(Unknown Source)
at com.atlassian.confluence.rpc.xmlrpc.ConfluenceXmlRpcHandlerImpl.getPage(ConfluenceXmlRpcHandlerIm
pl.java:295)
at sun.reflect.GeneratedMethodAccessor2891.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.atlassian.confluence.rpc.auth.TokenAuthenticationInvocationHandler.invokeAuthenticatedMethod(TokenAuthenticationInvocationHandler.java:102)
at com.atlassian.confluence.rpc.auth.TokenAuthenticationInvocationHandler.invoke(TokenAuthenticationInvocationHandler.java:76)
at com.sun.proxy.$Proxy3374.getPage(Unknown Source)
at sun.reflect.GeneratedMethodAccessor2631.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at org.apache.xmlrpc.Invoker.execute(Invoker.java:130)
at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:84)
at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:146)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:114)
at com.atlassian.confluence.rpc.xmlrpc.XmlRpcServer.serviceXmlRpcRequest(XmlRpcServer.java:104)
at com.atlassian.confluence.rpc.xmlrpc.XmlRpcServer.service(XmlRpcServer.java:78)
at com.atlassian.confluence.servlet.SpringManagedServlet.service(SpringManagedServlet.java:76)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:303)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:208)
at org.apache.tomcat.websocket.server.WsFilter.doFilter