geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paolo Denti <>
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">
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
<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>
<pre>public Object createProxy(AbstractName target, ClassLoader loader);
public Object createProxy(AbstractName target, Class type);</pre>
Viet Nguyen wrote:
 type="cite">On 8/29/07, <b class="gmail_sendername">Paolo Denti</b>
&lt;<a moz-do-not-send="true" href=""></a>&gt;
  <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:
    <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>
But looking at the javadoc i see that the signature of the ProxyManager
createProxy method is<br>
    <pre>Object <b>createProxy</b>(, Class)</pre>
    <font size="-1"><font face="Helvetica, Arial, sans-serif">but we
inovoking proxyManagerClass.getMethod("createProxy", clzArray) where
clzArray is a Class[] as if the signature were<br>
    <pre>Object <b>createProxy</b>(, Class[])</pre>
  <div>Hi Paolo,<br>
the getMethod() takes 2 parameters: 1) the method name 2) the method
parameter Classes in the form of Class[].
clzArray contains {ObjectName.class,Class.class} as the createProxy()
signature is defined. <br>
I think you are confusing the createProxy() method with the getMethod()
method that is part of java.lang.Class.<br>
  <code><b><a moz-do-not-send="true"
 style="font-weight: bold;">Method </span>getMethod</a></b>(<a
 title="class in java.lang">
String</a>&nbsp;name, <a moz-do-not-send="true"
 title="class in java.lang">Class</a>[]&nbsp;parameterTypes)</code>.<br>
I will keep looking into why the getMethod error fails. Is there a
stack trace or error message?

View raw message