java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.catalina.Host

Oracle Community | arshadm | 8 years ago
  1. 0

    Glasfish with mod_jk and Apache 2.2.11

    Oracle Community | 8 years ago | arshadm
    java.lang.ClassCastException: java.lang.String cannot be cast to org.apache.catalina.Host
  2. 0
    When you have no build parameters, uncheck 'This build is parameterized'
  3. 0

    Bug ID: JDK-6499662 "java.lang.ClassCastException: cannot be cast to java.lang.String" happens from time to time

    sun.com | 5 months ago
    java.lang.ClassCastException: cannot be cast to java.lang.String
  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

      java.lang.String cannot be cast to org.apache.catalina.Host

      at org.apache.coyote.tomcat5.CoyoteRequest.getHost()
    2. org.apache.coyote
      CoyoteRequest.getHost
      1. org.apache.coyote.tomcat5.CoyoteRequest.getHost(CoyoteRequest.java:728)
      1 frame
    3. Glassfish Core
      ContainerBase.invoke
      1. org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:144)
      2. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:648)
      3. org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.java:593)
      4. org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:587)
      5. org.apache.catalina.core.ContainerBase.invoke(ContainerBase.java:1096)
      5 frames
    4. org.apache.coyote
      CoyoteAdapter.service
      1. org.apache.coyote.tomcat5.CoyoteAdapter.service(CoyoteAdapter.java:288)
      1 frame
    5. Embedded GlassFish Web
      ChannelSocket$SocketConnection.runIt
      1. org.apache.jk.server.JkCoyoteHandler.invoke(JkCoyoteHandler.java:199)
      2. org.apache.jk.common.HandlerRequest.invoke(HandlerRequest.java:282)
      3. org.apache.jk.common.ChannelSocket.invoke(ChannelSocket.java:754)
      4. org.apache.jk.common.ChannelSocket.processConnection(ChannelSocket.java:684)
      5. org.apache.jk.common.ChannelSocket$SocketConnection.runIt(ChannelSocket.java:876)
      5 frames
    6. Tomcat Util
      ThreadPool$ControlRunnable.run
      1. org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:682)
      1 frame
    7. Java RT
      Thread.run
      1. java.lang.Thread.run(Thread.java:619)
      1 frame