getappmap / getappmap/appmap-js

Unknown encoding when reading the `pom.xml` file

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

Nobody has claimed this yet.

bug
Dominant language
TypeScript
Stars
53
Forks
18
Avg merge
3d 18h
Merged PRs (30d)
8

Description

From this log:

Error: Unknown encoding for pom.xml, ef bb
    at Function.read (node_modules\@appland\appmap\built\encodedFile.js:60:19)
    at new EncodedFile (node_modules\@appland\appmap\built\encodedFile.js:10:59)
    at MavenInstaller.installAgent (node_modules\@appland\appmap\built\cmds\agentInstaller\mavenInstaller.js:51:29)
    at AgentInstallerProcedure.run (node_modules\@appland\appmap\built\cmds\agentInstaller\agentInstallerProcedure.js:58:34)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async _handler (node_modules\@appland\appmap\built\cmds\agentInstaller\install-agent.js:133:17)
    at async Object.handler (node_modules\@appland\appmap\built\cmds\agentInstaller\install-agent.js:222:35)

Contributor guide

No contributing guide indexed for this repository

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

Start with the stack-trace entry points in node_modules/@appland/appmap/built/encodedFile.js and cmds/agentInstaller/mavenInstaller.js, then trace how install-agent reads pom.xml. Reproduce the Maven agent installation with the reported file and encoding bytes; done means the installer no longer reports an unknown encoding for pom.xml.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
cli, tooling
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.