os x leopard exposes axis2 bug
Fri, Nov 9, 2007
I upgraded to Leopard on the laptop, got all my apps back, built and installed Fedora, checked out the CTREP tests, ran them and got this error:
java.util.regex.PatternSyntaxException: Dangling meta character ‘*’ near index 0 *.local
Initially I thought it was a mismatch between Axis2/xmlbeans versions between the web services clients and the code I was using at the time. I wracked my brains for 4 hours, modifying build files, generating IDEA projects, cleaning them out and manually putting the dependencies into the IDE. All to no avail. I still got the error.
Then I looked harder at the stack trace:
at java.lang.String.matches(String.java:1921) at org.apache.axis2.transport.http.ProxyConfiguration.validateNonProxyHosts(ProxyConfiguration.java:261)
that http.ProxyConfiguration looked suspicious especially since I was on the laptop, which is entirely localhost. Then, hell on earth, I googled this:
Doing a System.getProperty(“http.nonProxyHosts”), I found this lot:
it’s that *.local that is breaking Axis2 as it’s not a valid regexp. It must have appeared in 10.5 as Axis2 1.3 works just fine in 10.4.
I then had a rummage about in OS X and lo and behold found this lot in System Preferences -> Network -> AirPort -> Proxies:Bypass proxy settings… :
removing *.local and *.169.254 from the list solves the problem and the tests are all running again. Will watch the Axis2 JIRA with interest.