Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-17641

Getting error "Request is not an instance of io.undertow.servlet.spec.HttpServletRequestImpl" when using Dynatrace

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Major
    • None
    • fuse-7.6-GA
    • Hawtio
    • None

    Description

      When the customer uses Dynatrace, he gets this exception when trying to login on Hawtio:

      2021-09-20T15:13:08,092 | [XNIO-5 task-50 ] DEBUG | Mina2Producer | Writing body: <107>Sep 20 15:13:08 DEVAPPCESB1 Fuse-DEV8 : UT005023: Exception handling request to /hawtio/auth/login
      java.lang.RuntimeException: java.lang.IllegalStateException: Request is not an instance of io.undertow.servlet.spec.HttpServletRequestImpl
      at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImpl(RequestDispatcherImpl.java:251) ~[!/:2.0.26.SP3-redhat-00001]
      at io.undertow.servlet.spec.RequestDispatcherImpl.forwardImplSetup(RequestDispatcherImpl.java:149) ~[!/:2.0.26.SP3-redhat-00001]
      at io.undertow.servlet.spec.RequestDispatcherImpl.access$000(RequestDispatcherImpl.java:54) ~[!/:2.0.26.SP3-redhat-00001]
      at io.undertow.servlet.spec.RequestDispatcherImpl$1.run(RequestDispatcherImpl.java:95) ~[!/:2.0.26.SP3-redhat-00001]
      at java.security.AccessController.doPrivileged(Native Method) ~[?:1.8.0_242]
      at io.undertow.servlet.spec... | org.apache.camel.component.mina2.Mina2Producer 167 | 265 - org.apache.camel.camel-mina2 - 2.21.0.fuse-760027-redhat-00001

      More information:

      • Windows platform, not sure if this could be reproduced on Linux
      • Class that is being loaded shown when adding some logging message:
        java.lang.RuntimeException: java.lang.IllegalStateException: Request is not an instance of io.undertow.servlet.spec.HttpServletRequestImpl, it is an instance of com.dynatrace.agent.introspection.uem.impl.CacheHookingRequestWrapper, loaded from javax.servlet-api [42], revision: javax.servlet-api [42](R 42.0)
      • JVM arguments
        C:\Java\jdk8\\bin\java -Xms128M -Xmx4096m -Dcom.sun.management.jmxremote -XX:+UnlockDiagnosticVMOptions -DTRS_ESB_FUSE_ENCRYPTION_PASSWORD=* -Djavax.net.ssl.trustStore=C:/RedHat/SBX1/Fuse-V7.6.0/KeyStores/ssl.truststore -Djavax.net.ssl.trustStorePassword=* -Djava.security.krb5.conf=C:/RedHat/SBX1/Fuse-V7.6.0/KeyStores/krb5.conf -Dsun.security.krb5.debug=false -Dorg.apache.activemq.SERIALIZABLE_PACKAGES=* -Dkaraf.startLocalConsole=false -Dkaraf.startRemoteShell=true -classpath C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\conf;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\boot\jna-5.5.0.jar;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\boot\jna-platform-5.5.0.jar;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\boot\org.apache.karaf.diagnostic.boot-4.2.6.fuse-760032-redhat-00001.jar;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\boot\org.apache.karaf.jaas.boot-4.2.6.fuse-760032-redhat-00001.jar;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\boot\org.apache.karaf.main-4.2.6.fuse-760032-redhat-00001.jar;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\boot\org.osgi.core-6.0.0.jar -Djava.endorsed.dirs=C:\Java\jdk8\\jre\lib\endorsed;C:\Java\jdk8\\lib\endorsed;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\endorsed -Djava.ext.dirs=C:\Java\jdk8\\jre\lib\ext;C:\Java\jdk8\\lib\ext;C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\lib\ext -Dkaraf.instances=C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\instances -Dkaraf.home=C:\RedHat\SBX1\Fuse-V7.6.0\bin\.. -Dkaraf.base=C:\RedHat\SBX1\Fuse-V7.6.0\bin\.. -Dkaraf.etc=C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\etc -Dkaraf.log=C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\data\log -Dkaraf.restart.jvm.supported=true -Djava.io.tmpdir=C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\data\tmp -Dkaraf.data=C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\data -Djava.util.logging.config.file=C:\RedHat\SBX1\Fuse-V7.6.0\bin\..\etc\java.util.logging.properties -verbose:gc -XX:+UseGCLogFileRotation -XX:GCLogFileSize=100m -XX:NumberOfGCLogFiles=10 -Xloggc:data/log/gc.log -XX:+PrintGCDetails -XX:+PrintGCDateStamps -XX:+PrintGCApplicationStoppedTime -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=data/log/gc.heapdump org.apache.karaf.main.Main

      Attachments

        Activity

          People

            ggrzybek Grzegorz Grzybek
            rhn-support-anarvaez Alfredo Narvaez
            Juri Solovjov Juri Solovjov
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: