Please login or register to access secure site features.

Note: By continuing to use DevConnect Program Services you agree to our latest Registered Member Terms.

Sign in using DevConnect ID

Forgot password?

Trouble logging in?

Submit a ticket for Registration Support.

I have an SSO ID

?
sign in

Don't have a DevConnect or SSO ID ?

Create a DevConnect account or join the program.

register now
^
Forum Index » CSPortal WebAPI (Read-Only Archive) » Call Web Services within IC 7.3 Workflow, NullPointerException   XML
 
Author Message
NorbertHaberer



Joined: 24/10/2014 07:49:49
Messages: 2
Offline

Hello,
I implemented a JAX-WS WebClient and call it from a workflow using the "Call Web Services" feature of IC 7.3.
Unfortunatelly a NullPointerException is thrown when method "Service.getPort()" is called.
java.lang.NullPointerException
	at com.sun.xml.internal.ws.model.RuntimeModeler.getClass(Unknown Source)
	at com.sun.xml.internal.ws.model.RuntimeModeler.processDocWrappedMethod(Unknown Source)
	at com.sun.xml.internal.ws.model.RuntimeModeler.processMethod(Unknown Source)
	at com.sun.xml.internal.ws.model.RuntimeModeler.processClass(Unknown Source)
	at com.sun.xml.internal.ws.model.RuntimeModeler.buildRuntimeModel(Unknown Source)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.addSEI(Unknown Source)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
	at com.sun.xml.internal.ws.client.WSServiceDelegate.getPort(Unknown Source)
	at javax.xml.ws.Service.getPort(Unknown Source)

Strange thing is that the same Java Web Client package is working fine if I call the ICJavaAdapter.invokeICJava(String) class using a small Main class.
I also tried to align Java environment / used libraries as much as possible, basically there should be no difference.
Does anyone have an idea what might go wrong?
Maksim_Savchenko



Joined: 15/09/2014 07:00:12
Messages: 4
Offline

Maybe it's not exactly what you need.
Try to set ALL used libraries in "Java Class Path" in Workflow configuration. Like this:
C:\Avaya\IC73\Java\userjar\mytest.jar;C:\Avaya\IC73\Java\userjar\ICJavaInterface.jar;C:\Avaya\IC73\Java\userjar\javax.wsdl_1.6.2.v201012040545.jar;C:\Avaya\IC73\Java\userjar\jaxrpc.jar;C:\Avaya\IC73\Java\userjar\org.apache.commons.logging_1.1.1.v201101211721.jar;C:\Avaya\IC73\Java\userjar\saaj.jar;C:\Avaya\IC73\Java\userjar\axis.jar;C:\Avaya\IC73\Java\userjar\commons-discovery-0.2.jar

Although all this packages were included in mytest.jar file, I got error like this: ClassNotFoundException: javax.xml.rpc.ServiceException
SaifulIslam2



Joined: 07/11/2009 00:18:04
Messages: 3
Offline

Hi,

Did you get it resolved? I am facing the same problem when I try to get a data returned from web service. I am using AIC 7.2.6. Please let me know.

-------------update----------------
I got this resolved and posting if anyone needs this.

I added all the libraries used for web service calling into the generated jar file and it worked. I tried putting all libraries in a separate folder but it didn't work, then added all the jars/libraries into the generated jar but still having issues, then I extracted all the required jars into the generated jar and it worked. Hope this help someone. Also, if anyone has any clue why the other methods didn't work, please let me know.

This message was edited 1 time. Last update was at 07/05/2015 04:55:01

 
 
Go to: