Failed to handle event of type ERROR with this error: null

Nicolae_Nicora
Tue, 07 Jan 2025 20:31:44 +0000
APM

Need you help on this null pointer exception!

APM Agent used as layers to AWS Lambda:

arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-extension-ver-1-5-7-arm64:1

arn:aws:lambda:eu-west-1:267093732750:layer:elastic-apm-java-ver-1-52-1:1

Logs:

INIT_START Runtime Version: java:21.v27 Runtime Version ARN: arn:aws:lambda:eu-west-1::runtime:2745c98a6107cf976270b76b7e188a389c11f12de05de32ce02983150620f5be
{"log.level":"info","@timestamp":"2025-01-07T16:40:35.158Z","log.origin":{"function":"github.com/elastic/apm-aws-lambda/apmproxy.(*Client).StartReceiver.func1","file.name":"apmproxy/receiver.go","file.line":58},"message":"Extension listening for apm data on :8200","ecs.version":"1.6.0"}
{"log.level":"info","@timestamp":"2025-01-07T16:40:35.158Z","log.origin":{"function":"github.com/elastic/apm-aws-lambda/logsapi.(*Client).startHTTPServer.func1","file.name":"logsapi/subscribe.go","file.line":75},"message":"Extension listening for Lambda Logs API events on 169.254.79.130:35045","ecs.version":"1.6.0"}
LOGS Name: apm-lambda-extension State: Subscribed Types: [Platform, Function]
{"log.level":"info","@timestamp":"2025-01-07T16:40:35.164Z","log.origin":{"function":"github.com/elastic/apm-aws-lambda/app.(*App).processEvent","file.name":"app/run.go","file.line":157},"message":"Waiting for next event...","ecs.version":"1.6.0"}
Picked up JAVA_TOOL_OPTIONS: -javaagent:/opt/elastic-apm-agent.jar -XX:+TieredCompilation -XX:TieredStopAtLevel=1
2025-01-07 16:40:36,443 [main] INFO co.elastic.apm.agent.util.JmxUtils - Found JVM-specific OperatingSystemMXBean interface: com.sun.management.OperatingSystemMXBean
2025-01-07 16:40:36,485 [main] INFO co.elastic.apm.agent.util.JmxUtils - Found JVM-specific ThreadMXBean interface: com.sun.management.ThreadMXBean
2025-01-07 16:40:36,502 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - Starting Elastic APM 1.52.1 as SimulatePartialEarlyRepayment (4) on Java 21.0.5 Runtime version: 21.0.5+11-LTS VM version: 21.0.5+11-LTS (Amazon.com Inc.) Linux 5.10.227-239.884.amzn2.aarch64
2025-01-07 16:40:36,503 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - service_name: 'SimulatePartialEarlyRepayment' (source: Environment Variables)
2025-01-07 16:40:36,503 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - central_config: 'false' (source: Environment Variables)
2025-01-07 16:40:36,503 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - cloud_provider: 'NONE' (source: Environment Variables)
2025-01-07 16:40:36,503 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - activation_method: 'AWS_LAMBDA_LAYER' (source: Environment Variables)
2025-01-07 16:40:36,504 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - secret_token: 'XXXX' (source: Environment Variables)
2025-01-07 16:40:36,504 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - metrics_interval: '0s' (source: Environment Variables)
2025-01-07 16:40:36,504 [main] INFO co.elastic.apm.agent.configuration.StartupInfo - aws_lambda_handler: 'com.xxxxx.aws.jobs.functions.SimulatePartialEarlyRepaymentHandler::handleRequest' (source: Environment Variables)
2025-01-07 16:40:36,505 [main] WARN co.elastic.apm.agent.configuration.StartupInfo - To enable all features and decrease startup time, please configure application_packages
2025-01-07 16:40:38,411 [main] INFO co.elastic.apm.agent.impl.ElasticApmTracer - Tracer switched to RUNNING state
2025-01-07 16:40:38,666 [elastic-apm-server-healthcheck] INFO co.elastic.apm.agent.report.ApmServerHealthChecker - Elastic APM server is available: { "build_date": "2023-02-13T13:01:54Z", "build_sha": "8638b035d700e5e85e376252402b5375e4d4190b", "publish_ready": true, "version": "8.6.2"}
{"ecs":{"version":"1.6.0"},"log":{"level":"INFO"},"message":"Constructor initialized","event":{"created":"2025-01-07T16:40:40.489Z","action":"","category":"aws-lambda","outcome":"success"},"transaction":{"id":"e4ec7819-95a3-46b2-8b62-164b1c8f9c4a"},"AppInfo":{"service":{"name":"","id":""},"name":"","description":"","cmdbId":""}}
EXTENSION Name: apm-lambda-extension State: Ready Events: [INVOKE, SHUTDOWN]
2025-01-07 18:31:31,461 [elastic-apm-server-reporter] ERROR co.elastic.apm.agent.report.IntakeV2ReportingEventHandler - Failed to handle event of type ERROR with this error: null
2025-01-07 18:31:31,463 [elastic-apm-server-reporter] INFO co.elastic.apm.agent.report.AbstractIntakeApiHandler - Backing off for 9 seconds (+/-10%)
2025-01-07 18:31:31,469 [elastic-apm-init-instrumentation-shutdown-hook] INFO co.elastic.apm.agent.bci.InstrumentationStatsLifecycleListener - Used instrumentation groups: [apache-httpclient, aws-sdk, executor, executor-collection, fork-join, log-correlation, log-error, log-reformatting, logging, process, ssl-context, urlconnection]
2025-01-07 18:31:31,470 [elastic-apm-circuit-breaker] INFO co.elastic.apm.agent.impl.circuitbreaker.CircuitBreaker - Stopping the Circuit Breaker thread.
2025-01-07 18:31:31,469 [elastic-apm-configuration-reloader] ERROR co.elastic.apm.agent.util.ExecutorUtils - null
java.util.concurrent.CancellationException: null
at java.util.concurrent.FutureTask.report(Unknown Source) ~[?:?]
at java.util.concurrent.FutureTask.get(Unknown Source) ~[?:?]
at co.elastic.apm.agent.util.ExecutorUtils.logException(ExecutorUtils.java:217) ~[elastic-apm-agent.jar:1.52.1]
at co.elastic.apm.agent.util.ExecutorUtils.access$100(ExecutorUtils.java:41) ~[elastic-apm-agent.jar:1.52.1]
at co.elastic.apm.agent.util.ExecutorUtils$1.afterExecute(ExecutorUtils.java:64) ~[elastic-apm-agent.jar:1.52.1]
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) ~[?:?]
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) ~[?:?]
at co.elastic.apm.agent.util.ExecutorUtils$2.run(ExecutorUtils.java:99) ~[elastic-apm-agent.jar:1.52.1]
at java.lang.Thread.run(Unknown Source) [?:?]

15 posts - 2 participants