Calling SOAP Axis2 Web Service with generated client exception

197 views
Skip to first unread message

Scott Selvia

unread,
May 13, 2015, 2:37:43 PM5/13/15
to rob...@googlegroups.com
It took awhile but I finally got all of the force link patterns into my robovm.xml file.  Now I'm getting the following exception, I don't get this error when running from Java 8 and all of the Axis2 libraries set in my eclipse project.  Is their an easy way to use an * to include all of the axis2 dependencies within the force link pattern tags?

WARNING: Unable to determine location of StAX implementation containing class com.ctc.wstx.stax.WstxInputFactory; using default dialect

java.lang.ExceptionInInitializerError

at org.apache.axis2.deployment.util.Utils.addEndpointsToService(Utils.java:1096)

at org.apache.axis2.engine.AxisConfiguration.processEndpoints(AxisConfiguration.java:1525)

at org.apache.axis2.engine.AxisConfiguration.addServiceGroup(AxisConfiguration.java:368)

at org.apache.axis2.engine.AxisConfiguration.addService(AxisConfiguration.java:332)

at org.apache.axis2.client.ServiceClient.configureServiceClient(ServiceClient.java:179)

at org.apache.axis2.client.ServiceClient.<init>(ServiceClient.java:144)

at com.datamentors.web.service.client.policy.NetEffectWS_0Stub.<init>(NetEffectWS_0Stub.java:1427)

at com.datamentors.web.service.client.policy.NetEffectWS_0Stub.<init>(NetEffectWS_0Stub.java:1413)

at com.datamentors.web.service.client.policy.NetEffectWS_0Stub.<init>(NetEffectWS_0Stub.java:1462)

at com.thundercloudresources.ios.MyViewController.<init>(MyViewController.java:50)

at com.thundercloudresources.ios.HelloWorld.didFinishLaunching(HelloWorld.java:17)

at com.thundercloudresources.ios.HelloWorld.$cb$application$didFinishLaunchingWithOptions$(HelloWorld.java)

at org.robovm.apple.uikit.UIApplication.main(Native Method)

at org.robovm.apple.uikit.UIApplication.main(UIApplication.java:368)

at com.thundercloudresources.ios.HelloWorld.main(HelloWorld.java:31)

Caused by: java.lang.RuntimeException: ucol_open failed: U_FILE_ACCESS_ERROR

at libcore.icu.NativeCollation.openCollator(Native Method)

at libcore.icu.RuleBasedCollatorICU.<init>(RuleBasedCollatorICU.java:55)

at java.text.Collator.getInstance(Collator.java:291)

at org.apache.axis2.util.JavaUtils.<clinit>(JavaUtils.java:57)

... 15 more


Mario Zechner

unread,
May 14, 2015, 5:55:40 AM5/14/15
to rob...@googlegroups.com
You can use Ant-style patterns, e.g. my.package.*

Scott Selvia

unread,
May 14, 2015, 11:36:12 AM5/14/15
to rob...@googlegroups.com
Yes, I've done that and I've added all of the patterns that Axis2 and the supporting jars that Axis2 uses.  I now get a NULL pointer exception when running the RoboVM build in eclipse.

Mario Zechner

unread,
May 15, 2015, 3:43:22 AM5/15/15
to rob...@googlegroups.com
Can you post the full stack trace? You can find it in workspace/.metadata/.log

Also, can you create a sample project that reproduces the error?

Niklas Therning

unread,
May 15, 2015, 11:29:22 AM5/15/15
to Mario Zechner, rob...@googlegroups.com
Looks like axis needs collators. The minimal icu data file we ship with robovm apps have no collations. Try to generate an icu data file and include in your app (see http://blog.robovm.org/2014/06/robovm-0014-has-been-released.html for more info on how to do this). I'd start with including everything and see if that works and then narrow down the data to what your app actually needs.

Also the warning about a stax parser not being available could be fixed by including a 3rd party stax parser. Unlike oracle's jre robovm doesn't include a stax parser in the runtime lib. You could use the Aalto stax parser. Check out the robovm.xml of the ContractR fx for iOS (https://github.com/robovm/robovm-samples/blob/master/ContractR/fx/ios/robovm.xml) for the forceLinkClasses patterns you'd need to make it work.


On Friday, May 15, 2015, Mario Zechner <badlog...@gmail.com> wrote:
Can you post the full stack trace? You can find it in workspace/.metadata/.log

Also, can you create a sample project that reproduces the error?

--
You received this message because you are subscribed to the Google Groups "RoboVM" group.
To unsubscribe from this group and stop receiving emails from it, send an email to robovm+un...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Selvia

unread,
May 18, 2015, 3:03:15 PM5/18/15
to rob...@googlegroups.com, badlog...@gmail.com
thank you for the reply, I'll work on the icu and the other suggestion.
To unsubscribe from this group and stop receiving emails from it, send an email to robovm+unsubscribe@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages