Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Critical
-
Resolution: Fixed
-
Affects Version/s: 2.0.0m1
-
Fix Version/s: 2.5.0Release
-
Component/s: Testing, Running, Debugging
-
Labels:None
-
Environment:eclipse 3.5, windows xp, groovy project using groovy compiler 1.6.5
-
Number of attachments :
Description
The following groovy script raises an exception when run from a groovy project in eclipse IDE:
import groovyx.net.ws.WSClient
def getProxy(wsdl, classLoader)
{ new WSClient(wsdl, classLoader) }proxy = getProxy("http://www.webservicex.net/WeatherForecast.asmx?WSDL", this.class.classLoader)
proxy.initialize()
def result = proxy.GetWeatherByPlaceName("Seattle")
println result.latitude
println result.details.weatherData[0].weatherImage
exception:
Oct 30, 2009 3:10:30 PM org.apache.cxf.endpoint.dynamic.DynamicClientFactory outputDebug
INFO: Created classes: net.webservicex.ArrayOfWeatherData, net.webservicex.GetWeatherByPlaceName, net.webservicex.GetWeatherByPlaceNameResponse, net.webservicex.GetWeatherByZipCode, net.webservicex.GetWeatherByZipCodeResponse, net.webservicex.ObjectFactory, net.webservicex.WeatherData, net.webservicex.WeatherForecasts
Caught: groovy.lang.MissingMethodException: No signature of method: groovyx.net.ws.WSClient.GetWeatherByPlaceName() is applicable for argument types: (java.lang.String) values: [Seattle]
at listing1221.run(listing1221.groovy:9)
The same script run in groovyconsole with groovy 1.6.5 distribution works fine with the below output:
Issue Links
- depends upon
-
GRECLIPSE-1004
HttpBuilder "No signature of method" error when run as a Groovy script from within eclipse
-
-
GRECLIPSE-1055
Remove all hardwired paths from launch configurations
-