Skip to content

[Bug]:  #1951

@olddriver-1

Description

@olddriver-1

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.15.0

Installation Type

Official Docker Compose

Service Name

DongTai-agent-java

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

安装java agent时,agent没有看到上线。在/tmp/dongtai-root/v1.12.0/logs/dongtai_javaagent-0.log看到这个报错。帮忙看下问题。

2024-11-29 10:59:14 [io.dongtai.iast.agent] [ERROR] [10214] agent parse https://xxxx/openapi register response failed, Exception: java.lang.NullPointerException: Cannot invoke "io.dongtai.iast.thirdparty.com.alibaba.fastjson2.JSONObject.get(String)" because "responseObj" is null, StackTrace: java.lang.NullPointerException: Cannot invoke "io.dongtai.iast.thirdparty.com.alibaba.fastjson2.JSONObject.get(String)" because "responseObj" is null
at io.dongtai.iast.agent.report.AgentRegisterReport.setAgentData(AgentRegisterReport.java:263)
at io.dongtai.iast.agent.report.AgentRegisterReport.register(AgentRegisterReport.java:233)
at io.dongtai.iast.agent.report.AgentRegisterReport.send(AgentRegisterReport.java:251)
at io.dongtai.iast.agent.AgentLauncher.install(AgentLauncher.java:162)
at io.dongtai.iast.agent.AgentLauncher.agentmain(AgentLauncher.java:137)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
at java.base/java.lang.reflect.Method.invoke(Method.java:580)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:560)
at java.instrument/sun.instrument.InstrumentationImpl.loadClassAndCallAgentmain(InstrumentationImpl.java:582)

2024-11-29 10:59:14 [io.dongtai.iast.agent] [ERROR] [10215] agent register info invalid, start without DongTai IAST

Additional Information

No response

Logs

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions