AppD Archive

Invalid ELF Header occurs while starting java agent

CommunityUser
Splunk Employee
Splunk Employee

Hi,

I'm facing a weird error while starting the java agent. I've just downloaded the last agent version and run in my environment.

$ java  -agentpath:$HOME/tmp/javaagent.jar -jar myapp.jar

Error occurred during initialization of VM
Could not find agent library /home/jairson/tmp/javaagent.jar in absolute path, with error: /home/jairson/tmp/javaagent.jar: invalid ELF header (Possible cause: endianness mismatch)


$ java -version

java version "1.8.0_60"
Java(TM) SE Runtime Environment (build 1.8.0_60-b27)
Java HotSpot(TM) 64-Bit Server VM (build 25.60-b23, mixed mode)

$ uname -a

Linux jpad227225 4.4.0-31-generic #50-Ubuntu SMP Wed Jul 13 00:07:12 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux

I did not find any issue like this involving AppDynamics agent. Can someone give me some direction?

Thanks,

Jairson Cabral

Tags (3)
0 Karma
1 Solution

CommunityUser
Splunk Employee
Splunk Employee

SOLVED!

DONT USE  -agentpath

USE -javaagent

View solution in original post

0 Karma

CommunityUser
Splunk Employee
Splunk Employee

SOLVED!

DONT USE  -agentpath

USE -javaagent

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.

Can’t make it to .conf25? Join us online!

Get Updates on the Splunk Community!

Take Action Automatically on Splunk Alerts with Red Hat Ansible Automation Platform

 Are you ready to revolutionize your IT operations? As digital transformation accelerates, the demand for ...

Calling All Security Pros: Ready to Race Through Boston?

Hey Splunkers, .conf25 is heading to Boston and we’re kicking things off with something bold, competitive, and ...

Beyond Detection: How Splunk and Cisco Integrated Security Platforms Transform ...

Financial services organizations face an impossible equation: maintain 99.9% uptime for mission-critical ...