- priority: 5 --> 1
Hi.
Problem is, if someone wants to get something like this:
jmx[java.lang.Threading][ThreadCount]
instead of right string:
jmx[java.lang:type=Threading][ThreadCount]
Now it will rise exception on this line:
final String objectName = query.substring(firstOpen + 1,firstClose);
in QueryHandler.java
Exception is:
Throwable
javax.management.MalformedObjectNameException: Key properties cannot be empty
Its all right, but if I read thic in error log, I dont know, which query is bad. Can you give there somethink like this?:
final String objectName;
try {
objectName = query.substring(firstOpen + 1,firstClose);
} catch (MalformedObjectNameException ex) {
throw new RuntimeException("MalformedObjectNameException problem in string " + query, ex);
}