Skip to content
Permalink
Browse files
partly undo changes from commit 684436. my javac is frowning upon mis…
…sing casts

git-svn-id: https://svn.apache.org/repos/asf/james/postage/trunk@697415 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
Bernd Fondermann committed Sep 20, 2008
1 parent fd5067d commit ea2e209bd646d17c118b4d5ed6187be17eba1442
Showing 1 changed file with 2 additions and 2 deletions.
@@ -83,7 +83,7 @@ public JVMResourceSampler(String host, int port, PostageRunnerResult results) {
public void connectRemoteJamesJMXServer() throws SamplingException {
if(jvmResourceSampleWorker == null) throw new SamplingException("JSE specific features not present. (compile the project with JSE 5)");
try {
m_connectMethod.invoke(jvmResourceSampleWorker, VOID_ARGUMENT_LIST);
m_connectMethod.invoke(jvmResourceSampleWorker, (Object[])VOID_ARGUMENT_LIST);
} catch (Exception e) {
throw new SamplingException("could not establish connection to remote James JMX. is James really configured for JMX and running under JSE5 or later?");
}
@@ -92,7 +92,7 @@ public void connectRemoteJamesJMXServer() throws SamplingException {
public void doSample() throws SamplingException {
if(jvmResourceSampleWorker == null) throw new SamplingException("JSE specific features not present. (compile the project with JSE 5)");
try {
m_doSampleMethod.invoke(jvmResourceSampleWorker, VOID_ARGUMENT_LIST);
m_doSampleMethod.invoke(jvmResourceSampleWorker, (Object[])VOID_ARGUMENT_LIST);
} catch (Exception e) {
throw new SamplingException(e);
}

0 comments on commit ea2e209

Please sign in to comment.