java.lang.ClassCastException

com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19011

  • via Atlassian JIRA by Deric Lee, 10 months ago
    com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest
  • via Atlassian JIRA by Deric Lee [Atlassian], 1 year ago
    com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest
  • com.bea.portlet.container.ActionRequestImpl cannot be cast to javax.servlet.http.HttpServletRequest
  • Stack trace

    • java.lang.ClassCastException: com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter cannot be cast to javax.servlet.http.HttpServletRequest at com.atlassian.analytics.client.request.StashHttpRequestProvider.getRequest(StashHttpRequestProvider.java:22)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.analytics.client.serialize.EventSerializer.getHttpRequest(EventSerializer.java:91)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.analytics.client.serialize.EventSerializer.toMessage(EventSerializer.java:60)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.analytics.client.listener.ProductEventListener.processEventWithTiming(ProductEventListener.java:78)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.analytics.client.listener.ProductEventListener.processEvent(ProductEventListener.java:69)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.analytics.client.listener.ProductEventListener.processEvent(ProductEventListener.java:61)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.analytics.client.listener.StashEventListener.onEvent(StashEventListener.java:60)[analytics-client-3.35_1406678900000.jar:na] at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:36)[atlassian-event-2.3.5.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher$1$1.run(AsynchronousAbleEventDispatcher.java:48)[atlassian-event-2.3.5.jar:na] at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:253)[guava-11.0.2-atlassian-01.jar:na] at com.atlassian.event.internal.AsynchronousAbleEventDispatcher.dispatch(AsynchronousAbleEventDispatcher.java:107)[atlassian-event-2.3.5.jar:na] at com.atlassian.stash.internal.event.LockFreeEventPublisher$Publisher.dispatch(LockFreeEventPublisher.java:202)[stash-platform-3.2.2.jar:na] at com.atlassian.stash.internal.event.LockFreeEventPublisher.publish(LockFreeEventPublisher.java:75)[stash-platform-3.2.2.jar:na] at com.atlassian.stash.internal.event.TransactionAwareEventPublisher.publish(TransactionAwareEventPublisher.java:84)[stash-platform-3.2.2.jar:na] at com.atlassian.stash.internal.pull.PullRequestServiceImpl.fireOpenRequested(PullRequestServiceImpl.java:1152)[stash-service-impl-3.2.2.jar:na] at com.atlassian.stash.internal.pull.PullRequestServiceImpl.create(PullRequestServiceImpl.java:376)[stash-service-impl-3.2.2.jar:na] at com.atlassian.stash.internal.pull.PullRequestServiceImpl.create(PullRequestServiceImpl.java:71)[stash-service-impl-3.2.2.jar:na] at de.aeffle.stash.plugins.ssh.requestHandler.CreatePullRequestHandler.createPullRequestInStash(CreatePullRequestHandler.java:83)[plugin.5695302897666225133.create-pull-request-via-ssh-2.2_1400414625000.jar:na] at de.aeffle.stash.plugins.ssh.requestHandler.CreatePullRequestHandler.tryPullRequestCreation(CreatePullRequestHandler.java:73)[plugin.5695302897666225133.create-pull-request-via-ssh-2.2_1400414625000.jar:na] at de.aeffle.stash.plugins.ssh.requestHandler.CreatePullRequestHandler.handleRequest(CreatePullRequestHandler.java:38)[plugin.5695302897666225133.create-pull-request-via-ssh-2.2_1400414625000.jar:na] at com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter$ScmRequestRunnable$1.withRequest(SshScmRequestCommandAdapter.java:289)[stash-ssh-3.2.2_1407984114000.jar:na] at com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter$ScmRequestRunnable$1.withRequest(SshScmRequestCommandAdapter.java:277)[stash-ssh-3.2.2_1407984114000.jar:na] at com.atlassian.stash.internal.request.DefaultRequestManager.doAsRequest(DefaultRequestManager.java:84)[stash-service-impl-3.2.2.jar:na] at com.atlassian.stash.internal.ssh.server.SshScmRequestCommandAdapter$ScmRequestRunnable.run(SshScmRequestCommandAdapter.java:277)[stash-ssh-3.2.2_1407984114000.jar:na] at org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.java:64)[stash-ssh-3.2.2_1407984114000.jar:na] at com.atlassian.stash.internal.concurrent.StateTransferringExecutor$StateTransferringRunnable.run(StateTransferringExecutor.java:69)[stash-platform-3.2.2.jar:na] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)[na:1.7.0_51] at java.util.concurrent.FutureTask.run(FutureTask.java:262)[na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)[na:1.7.0_51] at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)[na:1.7.0_51] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)[na:1.7.0_51] at java.lang.Thread.run(Thread.java:744)[na:1.7.0_51]

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    You’re the first here who have seen this exception.