getappmap / getappmap/appmap-java

Java agent fails if appmap.yml exists and is correct but is missing required entries

Open
#146 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
88
Forks
17
Avg merge
2d 2h
Merged PRs (30d)
1

Description

See https://github.com/getappmap/appmap-python/issues/181 for a similar issue fixed in the Python agent.

Error:
appmap.yml:
 1 | {"test_recording":{"test_commands":[{"command":"mvn test","env":{}}]}}
   |   name is missing here! ()
at AgentInstallerProcedure.validateProject (@appland/appmap/built/cmds/agentInstaller/agentProcedure.js:109:23)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async AgentInstallerProcedure.run (@appland/appmap/built/cmds/agentInstaller/agentInstallerProcedure.js:67:13)
at async _handler (@appland/appmap/built/cmds/agentInstaller/install-agent.js:133:17)
at async Object.handler (@appland/appmap/built/cmds/agentInstaller/install-agent.js:222:35)Error:

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Compare this failure with the related Python agent issue, then inspect the installer flow at appmap/built/cmds/agentInstaller/agentProcedure.js, especially validateProject and the run path. Reproduce the error using the shown appmap.yml and verify that an existing file missing required entries is handled without the name-missing failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.