java.lang.ClassCastException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Using the ConfluenceLinker custom field within the JIRA development kit, the attempt to search Confluence results in a ClassCastExcpetion. This worked on 'ShipIt II' day! :) The exception: 2005-10-25 17:22:14,348 [webwork.dispatcher.ServletDispatcher] Could not execute action java.lang.ClassCastException at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence(ConfluencePageBrowserAction.java:43) at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.doExecute(ConfluencePageBrowserAction.java:31) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:51) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) ... 2005-10-25 17:22:14,350 ERROR [[Standalone].[localhost].[/].[action]] Servlet.service() for servlet action threw exception java.lang.ClassCastException at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence(ConfluencePageBrowserAction.java:43) at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.doExecute(ConfluencePageBrowserAction.java:31) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:51) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) The search code is as follows: XmlRpcClient rpcClient = new XmlRpcClient("http://confluence.atlassian.com/rpc/xmlrpc"); List xmlrpcResults = (List) rpcClient.execute("confluence1.search", makeParams("stuff", 100)); ... private Vector makeParams(String query, int maxResults) { Vector params = new Vector(); params.add(""); // no authentication token params.add(query); // the query itself params.add(new Integer(maxResults)); // maximum # of results return params; } Probably best to run from JIRA dev kti to reproduce.
    via by Keith Brophy,
  • Using the ConfluenceLinker custom field within the JIRA development kit, the attempt to search Confluence results in a ClassCastExcpetion. This worked on 'ShipIt II' day! :) The exception: 2005-10-25 17:22:14,348 [webwork.dispatcher.ServletDispatcher] Could not execute action java.lang.ClassCastException at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence(ConfluencePageBrowserAction.java:43) at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.doExecute(ConfluencePageBrowserAction.java:31) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:51) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at com.atlassian.jira.web.filters.AccessLogFilter.doFilter(AccessLogFilter.java:51) ... 2005-10-25 17:22:14,350 ERROR [[Standalone].[localhost].[/].[action]] Servlet.service() for servlet action threw exception java.lang.ClassCastException at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence(ConfluencePageBrowserAction.java:43) at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.doExecute(ConfluencePageBrowserAction.java:31) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:51) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) The search code is as follows: XmlRpcClient rpcClient = new XmlRpcClient("http://confluence.atlassian.com/rpc/xmlrpc"); List xmlrpcResults = (List) rpcClient.execute("confluence1.search", makeParams("stuff", 100)); ... private Vector makeParams(String query, int maxResults) { Vector params = new Vector(); params.add(""); // no authentication token params.add(query); // the query itself params.add(new Integer(maxResults)); // maximum # of results return params; } Probably best to run from JIRA dev kti to reproduce.
    via by Keith Brophy,
    • java.lang.ClassCastException at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence(ConfluencePageBrowserAction.java:43) at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.doExecute(ConfluencePageBrowserAction.java:31) at webwork.action.ActionSupport.execute(ActionSupport.java:153) at com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:51) at webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132) at com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
    No Bugmate found.