Hello, please excuse me if this is not the proper place to make this question.
I'm trying to compile JBossESB from the SVN trunk (updated today). At a certain point,
while executing "ant dist", I get a NoSuchMethodError:
[java] [junit] Testcase: test_no_collections took 1.212 sec
[java] [junit] Caused an ERROR
[java] [junit]
org.jboss.internal.soa.esb.assertion.AssertArgument.isNotNull(Ljava/lang/Object;Ljava/lang/String;)V
[java] [junit] java.lang.NoSuchMethodError:
org.jboss.internal.soa.esb.assertion.AssertArgument.isNotNull(Ljava/lang/Object;Ljava/lang/String;)V
[java] [junit] at
org.jboss.soa.esb.http.HttpClientFactory.createHttpClient(HttpClientFactory.java:53)
[java] [junit] at
org.jboss.soa.esb.services.soapui.SoapUIClientService.createWsdlLoader(SoapUIClientService.java:152)
[java] [junit] at
org.jboss.soa.esb.services.soapui.SoapUIClientService.getWsdlInterfaces(SoapUIClientService.java:127)
[java] [junit] at
org.jboss.soa.esb.services.soapui.SoapUIClientService.getOperation(SoapUIClientService.java:139)
[java] [junit] at
org.jboss.soa.esb.services.soapui.SoapUIClientService.buildRequest(SoapUIClientService.java:102)
[java] [junit] at
org.jboss.soa.esb.services.soapui.SoapUIClientServiceMBeanUnitTest.test_no_collections(SoapUIClientServiceMBeanUnitTest.java:65)
It seems to me that the method AssertArgument.isNotNull() is expected be of type void.
However, in the AssertArgument class, it is of type Object.
After changing the method to be of type void, everything compiles like a charm. What is
happening here? Thanks in advance for your help.
PS: here, the diff I've created (from directory "product"):
--- rosetta/src/org/jboss/internal/soa/esb/assertion/AssertArgument.java (revision
16081)
+++ rosetta/src/org/jboss/internal/soa/esb/assertion/AssertArgument.java (working
copy)
@@ -38,7 +38,7 @@
* @param argName Argument name.
* @throws IllegalArgumentException Argument is null.
*/
- public static Object isNotNull(Object arg, String argName) throws
IllegalArgumentException {
+ public static void isNotNull(Object arg, String argName) throws
IllegalArgumentException {
if (arg == null) {
throw new IllegalArgumentException("null '" + argName
+ "' arg in method call.");
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4099201#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...