java.lang.ClassCastException

Atlassian JIRA | Keith Brophy | 1 decade ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  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

    Error for 404 pageNotFound with struts2

    Stack Overflow | 5 years ago | user1278890
    java.lang.ClassCastException: org.apache.struts2.dispatcher.StrutsRequestWrapper cannot be cast to com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.EvermindHttpServletRequest at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.NotFoundServlet.sendNotFound(NotFoundServlet.java:26 ) at com.evermind[Oracle Containers for J2EE 10g (10.1.3.5.0) ].server.http.NotFoundServlet.service(NotFoundServlet.java:18)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    ArrayList Entity property mystery using 'Integer' objects

    Stack Overflow | 2 years ago
    java.lang.ClassCastException: java.lang.Long cannot be cast to java.lang.Integer at jFormTKServlets.JFormTKServletsServlet.doGet( JFormTKServletsServlet.java:330)
  6. 0

    Jetty - Java HTTP Servlet Server / Mailing Lists

    sourceforge.net | 2 years ago
    java.lang.ClassCastException: org.apache.soap.server.ServiceManager at org.apache.soap.server.http.ServerHTTPUtils.getServiceManagerFromContext(ServerHTTPUtils.java:112) at org.apache.soap.server.http.RPCRouterServlet.doPost(RPCRouterServlet.java:278)

    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