geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Denti <paolo.de...@gmail.com>
Subject Re: Problem at geronimo boot
Date Wed, 29 Aug 2007 16:26:52 GMT
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<font size="-1"><font face="Helvetica, Arial, sans-serif">yes Viet,
thanks. i saw it just while i was pushing "the send" button and i went
immediately to get some strong coffee :-D<br>
i already sent the reason of the getMethod failure: the createProxy
method has a different signature:<br>
</font></font>
<pre>public Object createProxy(AbstractName target, ClassLoader loader);
public Object createProxy(AbstractName target, Class type);</pre>
Paolo<br>
<br>
Viet Nguyen wrote:
<blockquote
 cite="mid:c0ccf8740708290546x54c506bew6dcbc7be41cdf6d1@mail.gmail.com"
 type="cite">On 8/29/07, <b class="gmail_sendername">Paolo Denti</b>
&lt;<a moz-do-not-send="true" href="mailto:paolo.denti@gmail.com">paolo.denti@gmail.com</a>&gt;
wrote:
  <div><span class="gmail_quote"></span>
  <blockquote class="gmail_quote"
 style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left:
1ex;">
    <div bgcolor="#ffffff" text="#000000"><font size="-1"><font
 face="Helvetica, Arial, sans-serif">Kevan, i
tried and following the execution, the problem is in the
proxyManagerClass.getMethod("createProxy", clzArray);<br>
the getMethod call fails.<br>
    <br>
But looking at the javadoc i see that the signature of the ProxyManager
createProxy method is<br>
    </font></font>
    <pre>Object <b>createProxy</b>(javax.management.ObjectName, Class)</pre>
    <font size="-1"><font face="Helvetica, Arial, sans-serif">but we
are
inovoking proxyManagerClass.getMethod("createProxy", clzArray) where
clzArray is a Class[] as if the signature were<br>
    </font></font>
    <pre>Object <b>createProxy</b>(javax.management.ObjectName, Class[])</pre>
    </div>
  </blockquote>
  <div>Hi Paolo,<br>
  <br>
the getMethod() takes 2 parameters: 1) the method name 2) the method
parameter Classes in the form of Class[].
  <br>
  <br>
clzArray contains {ObjectName.class,Class.class} as the createProxy()
signature is defined. <br>
  <br>
I think you are confusing the createProxy() method with the getMethod()
method that is part of java.lang.Class.<br>
  <br>
  <code><b><a moz-do-not-send="true"
 href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html#getMethod%28java.lang.String,%20java.lang.Class%5B%5D%29"><span
 style="font-weight: bold;">Method </span>getMethod</a></b>(<a
 moz-do-not-send="true"
 href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/String.html"
 title="class in java.lang">
String</a>&nbsp;name, <a moz-do-not-send="true"
 href="http://java.sun.com/j2se/1.4.2/docs/api/java/lang/Class.html"
 title="class in java.lang">Class</a>[]&nbsp;parameterTypes)</code>.<br>
  <br>
I will keep looking into why the getMethod error fails. Is there a
stack trace or error message?
  <br>
  <br>
-Viet<br>
  </div>
  </div>
</blockquote>
</body>
</html>

Mime
View raw message