java.lang.ClassCastException

Atlassian JIRA | Keith Brophy | 1 decade ago
  1. 0

    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.

    Atlassian JIRA | 1 decade ago | Keith Brophy
    java.lang.ClassCastException
  2. 0

    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.

    Atlassian JIRA | 1 decade ago | Keith Brophy
    java.lang.ClassCastException
  3. 0

    ClassCastException : PortableRemoteObject.

    Oracle Community | 1 decade ago | 403765
    java.lang.ClassCastException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.ClassCastException

      No message provided

      at com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence()
    2. com.atlassian.jira
      ConfluencePageBrowserAction.doExecute
      1. com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.searchConfluence(ConfluencePageBrowserAction.java:43)
      2. com.atlassian.jira.plugin.confluencelinker.ConfluencePageBrowserAction.doExecute(ConfluencePageBrowserAction.java:31)
      2 frames
    3. webwork.action
      ActionSupport.execute
      1. webwork.action.ActionSupport.execute(ActionSupport.java:153)
      1 frame
    4. com.atlassian.jira
      JiraActionSupport.execute
      1. com.atlassian.jira.action.JiraActionSupport.execute(JiraActionSupport.java:51)
      1 frame
    5. webwork.dispatcher
      GenericDispatcher.executeAction
      1. webwork.dispatcher.GenericDispatcher.executeAction(GenericDispatcher.java:132)
      1 frame
    6. com.atlassian.jira
      JiraServletDispatcher.service
      1. com.atlassian.jira.web.dispatcher.JiraServletDispatcher.service(JiraServletDispatcher.java:178)
      1 frame
    7. JavaServlet
      HttpServlet.service
      1. javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
      1 frame