fred3466
10-07-2010, 00:49
Hi everybody,
I find java monitor very exciting but ran into this exception with tomcat6 on linux centos:
10 juil. 2010 01:22:24 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-5520
10 juil. 2010 01:22:24 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
10 juil. 2010 01:22:24 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21 config=null
10 juil. 2010 01:22:24 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6895 ms
10 juil. 2010 01:22:25 com.javamonitor.JavaMonitorCollector$CollectorDriv er run
GRAVE: This probe was hit by an unexpected exception: null
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at com.javamonitor.Collector.init(Collector.java:205)
at com.javamonitor.Collector.push(Collector.java:120)
at com.javamonitor.JavaMonitorCollector$CollectorDriv er.run(JavaMonitorCollector.java:150)
at java.lang.Thread.run(Thread.java:619)
Well, I strictly followed the deployment guide, and as it didn't work at first, did the following:
1/ uncompress the war and deployed it
2/ look at the source :
private void init() throws Exception {
if (account == null) {
BufferedReader in = null;
try {
in = new BufferedReader(new InputStreamReader(Collector.class
.getClassLoader().getResourceAsStream("uuid")));
account = in.readLine();
} finally {
if (in != null) {
in.close();
}
}
}
if (pushUrl == null) {
BufferedReader in = null;
try {
final String urlString;
if (System.getProperty(JAVA_MONITOR_URL) != null) {
urlString = getProperty(JAVA_MONITOR_URL);
} else {
in = new BufferedReader(new InputStreamReader(
Collector.class.getClassLoader()
.getResourceAsStream("pushUrl")));
urlString = in.readLine();
}
pushUrl = new URL(urlString);
} finally {
if (in != null) {
in.close();
}
}
}
}
3/ look for the missing "pushUrl" : in the whole war and web.xml : can't find the string "pushUrl" aywhere else than in Collector.java/.class
Note :
-no proxy
-no firewall
-fully functionnal server, used everyday for pre production functionnal testing
Thank you in advance!
I find java monitor very exciting but ran into this exception with tomcat6 on linux centos:
10 juil. 2010 01:22:24 org.apache.coyote.http11.Http11Protocol start
INFO: Démarrage de Coyote HTTP/1.1 sur http-5520
10 juil. 2010 01:22:24 org.apache.jk.common.ChannelSocket init
INFO: JK: ajp13 listening on /0.0.0.0:8009
10 juil. 2010 01:22:24 org.apache.jk.server.JkMain start
INFO: Jk running ID=0 time=0/21 config=null
10 juil. 2010 01:22:24 org.apache.catalina.startup.Catalina start
INFO: Server startup in 6895 ms
10 juil. 2010 01:22:25 com.javamonitor.JavaMonitorCollector$CollectorDriv er run
GRAVE: This probe was hit by an unexpected exception: null
java.lang.NullPointerException
at java.io.Reader.<init>(Reader.java:61)
at java.io.InputStreamReader.<init>(InputStreamReader.java:55)
at com.javamonitor.Collector.init(Collector.java:205)
at com.javamonitor.Collector.push(Collector.java:120)
at com.javamonitor.JavaMonitorCollector$CollectorDriv er.run(JavaMonitorCollector.java:150)
at java.lang.Thread.run(Thread.java:619)
Well, I strictly followed the deployment guide, and as it didn't work at first, did the following:
1/ uncompress the war and deployed it
2/ look at the source :
private void init() throws Exception {
if (account == null) {
BufferedReader in = null;
try {
in = new BufferedReader(new InputStreamReader(Collector.class
.getClassLoader().getResourceAsStream("uuid")));
account = in.readLine();
} finally {
if (in != null) {
in.close();
}
}
}
if (pushUrl == null) {
BufferedReader in = null;
try {
final String urlString;
if (System.getProperty(JAVA_MONITOR_URL) != null) {
urlString = getProperty(JAVA_MONITOR_URL);
} else {
in = new BufferedReader(new InputStreamReader(
Collector.class.getClassLoader()
.getResourceAsStream("pushUrl")));
urlString = in.readLine();
}
pushUrl = new URL(urlString);
} finally {
if (in != null) {
in.close();
}
}
}
}
3/ look for the missing "pushUrl" : in the whole war and web.xml : can't find the string "pushUrl" aywhere else than in Collector.java/.class
Note :
-no proxy
-no firewall
-fully functionnal server, used everyday for pre production functionnal testing
Thank you in advance!