Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Caused by: java.lang.IllegalArgumentException: No property file jolokia{host=0.0.0.0} found #31

Open
pennpeng opened this issue Nov 28, 2018 · 0 comments

Comments

@pennpeng
Copy link

[jboss@38acdbf922aa /]$ export AB_JOLOKIA_AUTH_OPENSHIFT=true

[jboss@38acdbf922aa /]$ export CATALINA_OPTS="${CATALINA_OPTS} $(/deployments/run-java.sh options) -Djava.security.egd=file:/dev/./urandom"
[jboss@38acdbf922aa /]$ echo $CATALINA_OPTS
-javaagent:/opt/agent-bond/agent-bond.jar=jolokia{{host=0.0.0.0,useSslClientAuthentication=true,extraClientCheck=true,protocol=https,caCert=/var/run/secrets/kubernetes.io/serviceaccount/ca.crt,clientPrincipal=cn=system:master-proxy}},jmx_exporter{{9779:/opt/agent-bond/jmx_exporter_config.yml}} -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -XX:MinHeapFreeRatio=20 -XX:MaxHeapFreeRatio=40 -XX:+ExitOnOutOfMemoryError -Djava.security.egd=file:/dev/./urandom
[jboss@38acdbf922aa /]$ /opt/tomcat/bin/catalina.sh run
Using CATALINA_BASE:   /opt/tomcat
Using CATALINA_HOME:   /opt/tomcat
Using CATALINA_TMPDIR: /opt/tomcat/temp
Using JRE_HOME:        /etc/alternatives/jre
Using CLASSPATH:       /opt/tomcat/bin/bootstrap.jar:/opt/tomcat/bin/tomcat-juli.jar
Exception in thread "main" java.lang.reflect.InvocationTargetException
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at sun.instrument.InstrumentationImpl.loadClassAndStartAgent(InstrumentationImpl.java:386)
	at sun.instrument.InstrumentationImpl.loadClassAndCallPremain(InstrumentationImpl.java:401)
Caused by: java.lang.IllegalArgumentException: No property file jolokia{host=0.0.0.0} found
	at io.fabric8.bond.agent.AgentConfiguration.extractProperties(AgentConfiguration.java:107)
	at io.fabric8.bond.agent.AgentConfiguration.loadProperties(AgentConfiguration.java:68)
	at io.fabric8.bond.agent.AgentConfiguration.<init>(AgentConfiguration.java:43)
	at io.fabric8.bond.agent.AgentBondDispatcher.premain(AgentBondDispatcher.java:50)
	... 6 more
Caused by: java.io.FileNotFoundException: jolokia{host=0.0.0.0} (No such file or directory)
	at java.io.FileInputStream.open0(Native Method)
	at java.io.FileInputStream.open(FileInputStream.java:195)
	at java.io.FileInputStream.<init>(FileInputStream.java:138)
	at java.io.FileInputStream.<init>(FileInputStream.java:93)
	at java.io.FileReader.<init>(FileReader.java:58)
	at io.fabric8.bond.agent.AgentConfiguration.extractProperties(AgentConfiguration.java:103)
	... 9 more
FATAL ERROR in native method: processing of -javaagent failed
Aborted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant