Error opening zip file or JAR manifest missing

1,287 views
Skip to first unread message

bam bus

unread,
Jul 25, 2019, 6:02:42 AM7/25/19
to Prometheus Users
Hello I want to start jmx prometheus agent on windows by executing this command:
java -javaagent:/jmx_prometheus_javaagent-0.12.0.jar=9090:talend-config.yml 
After executing the command I receive this error:

Error opening zip file or JAR manifest missing : /jmx_prometheus_javaagent-0.12.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument


This is my config:

---
startDelaySeconds: 0
hostPort: 
username: tadmin
password: tadmin 
jmxUrl: service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-trun
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

Brian Brazil

unread,
Jul 25, 2019, 6:07:32 AM7/25/19
to bam bus, Prometheus Users
On Thu, 25 Jul 2019 at 11:02, bam bus <bamb...@gmail.com> wrote:
Hello I want to start jmx prometheus agent on windows by executing this command:
java -javaagent:/jmx_prometheus_javaagent-0.12.0.jar=9090:talend-config.yml 
After executing the command I receive this error:

Error opening zip file or JAR manifest missing : /jmx_prometheus_javaagent-0.12.0.jar

I doubt you've put it in /, try ./

Brian
 
Error occurred during initialization of VM
agent library failed to init: instrument


This is my config:

---
startDelaySeconds: 0
hostPort: 
username: tadmin
password: tadmin 
jmxUrl: service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-trun
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to prometheus-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/prometheus-users/f2382ab0-e4eb-4761-8b6b-92c272badc84%40googlegroups.com.


--

bam bus

unread,
Jul 25, 2019, 6:11:33 AM7/25/19
to Prometheus Users
C:\Users\admin\Desktop\jmx_exporter-master>java -javaagent:./jmx_prometheus_javaagent-0.12.0.jar=9090:talend-config.yml
Error opening zip file or JAR manifest missing : ./jmx_prometheus_javaagent-0.12.0.jar
Error occurred during initialization of VM
agent library failed to init: instrument

On Thursday, July 25, 2019 at 12:07:32 PM UTC+2, Brian Brazil wrote:
On Thu, 25 Jul 2019 at 11:02, bam bus <bamb...@gmail.com> wrote:
Hello I want to start jmx prometheus agent on windows by executing this command:
java -javaagent:/jmx_prometheus_javaagent-0.12.0.jar=9090:talend-config.yml 
After executing the command I receive this error:

Error opening zip file or JAR manifest missing : /jmx_prometheus_javaagent-0.12.0.jar

I doubt you've put it in /, try ./

Brian
 
Error occurred during initialization of VM
agent library failed to init: instrument


This is my config:

---
startDelaySeconds: 0
hostPort: 
username: tadmin
password: tadmin 
jmxUrl: service:jmx:rmi://localhost:44444/jndi/rmi://localhost:1099/karaf-trun
ssl: false
lowercaseOutputName: false
lowercaseOutputLabelNames: false

--
You received this message because you are subscribed to the Google Groups "Prometheus Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to promethe...@googlegroups.com.

bam bus

unread,
Jul 25, 2019, 8:07:46 AM7/25/19
to Prometheus Users
I fixed the problem with the jar with dependencies from httpserver. Thank you!

bam bus

unread,
Jul 25, 2019, 8:08:11 AM7/25/19
to Prometheus Users
Reply all
Reply to author
Forward
0 new messages