HXSecurity / DongTai-agent-java

Java Agent is a Java application probe of DongTai IAST, which collects method invocation data during runtime of Java application by dynamic hooks.

Home Page:https://dongtai.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG]: java.lang.NoSuchMethodException: `cn.huoxian.iast.api.HttpResponse.getResponseLength`

Nizernizer opened this issue · comments

Preflight Checklist

  • I agree to follow the Code of Conduct that this project adheres to.
  • I have searched the issue tracker for an issue that matches the one I want to file, without success.
  • I am not looking for support or already pursued the available support channels without success.

Version

1.1.0

Installation Type

Official Docker Compose

Service Name

DongTai-agent-java

Describe the details of the bug and the steps to reproduce it

jdk 1.8.0_171
Tomcat 8.5.38
springboot 2.3.1.RELEASE

Additional Information

No response

Logs

java.lang.NoSuchMethodException: cn.huoxian.iast.api.HttpResponse.getResponseLength(java.lang.Integer)
        at java.lang.Class.getDeclaredMethod(Class.java:2130)
        at com.secnium.iast.core.handler.controller.impl.HttpImpl.getResponseMeta(HttpImpl.java:130)
        at com.secnium.iast.core.handler.graphy.GraphBuilder.getResponseMeta(GraphBuilder.java:35)
        at com.secnium.iast.core.handler.graphy.GraphBuilder.convertToReport(GraphBuilder.java:86)
        at com.secnium.iast.core.handler.graphy.GraphBuilder.buildAndReport(GraphBuilder.java:28)
        at com.secnium.iast.core.handler.EventListenerHandlers.leaveHttp(EventListenerHandlers.java:204)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at java.lang.iast.inject.Injecter.leaveHttp(Injecter.java:429)
        at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:168)
        at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:199)
        at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
        at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
        at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
        at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
        at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
        at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
        at org.apache.catalina.connector.CoyoteAdapter.servic

Bug feedback by qunar.com security engineer.