apigee / wsdl2apigee

Generates Apigee Proxy bundles from WSDL
Apache License 2.0
22 stars 26 forks source link

Utility doesnt work in Windows due to a bug in StringUtils.java #26

Open shamanthv6289 opened 4 years ago

shamanthv6289 commented 4 years ago

Hi, I see the below error when i try to run the utility. The issue seems to be due to line 39 in StringUtils.java which expects "/" instead of "\" on windows machines. wsdl2apigee_bug

Jan 08, 2020 1:54:40 AM com.apigee.proxywriter.GenerateProxy prepareTargetFolder INFO: Target proxy folder setup complete Jan 08, 2020 1:54:40 AM com.apigee.proxywriter.GenerateProxy begin INFO: Read operations map Jan 08, 2020 1:54:41 AM com.apigee.proxywriter.GenerateProxy begin SEVERE: String index out of range: -1 Exception in thread "main" java.lang.StringIndexOutOfBoundsException: String index out of range: -1 at java.lang.String.substring(Unknown Source) at com.apigee.utils.StringUtils.proxyNameAndBasePath(StringUtils.java:41) at com.apigee.proxywriter.GenerateProxy.getWSDLDetails(GenerateProxy.java:2318) at com.apigee.proxywriter.GenerateProxy.begin(GenerateProxy.java:2796) at com.apigee.proxywriter.GenerateProxy.main(GenerateProxy.java:3103)

manucr619 commented 2 years ago

Any update on this ?