Author Message
VPhilip
Joined: Aug 7, 2006
Messages: 0
Offline
Hi,

As directed by Mr. John Biggs under this thread,
https://devconnect.avaya.com/secure/forum/d_forum_3.jsp?t=632&f=23

I tried to run the sample web services application. The application does not allow me to log in and throws the following exception


-----------------Stack Trace Starts Here--------------------
Mar 12, 2007 4:22:10 PM com.avaya.aes.telephonyPortal.TelephonySessionBean setRemoteCredentials
INFO: Setting remote userName to: cceaes@NICEAES
Mar 12, 2007 4:22:10 PM com.avaya.aes.telephonyPortal.TelephonySessionBean setRemoteSessionID
INFO: DB418548784037695F942A8CE78B7DBF set remote sessionID to: 0
Mar 12, 2007 4:22:10 PM com.avaya.aes.telephonyPortal.TelephonySessionBean setRemoteCredentials
WARNING: DB418548784037695F942A8CE78B7DBF Exception attaching TelephonyService telephonyStub=com.avaya.xml.ws.TelephonyService._2005._04._04.TelephonyServiceSoapBindingStub@113981b
AxisFault
 faultCode: {http://schemas.xmlsoap.org/soap/envelope/}Server.userException
 faultSubcode: 
 faultString: java.lang.NullPointerException
 faultActor: 
 faultNode: 
 faultDetail: 
   {http://xml.apache.org/axis/}stackTrace: java.lang.NullPointerException
   at java.util.Hashtable.put(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
   at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
   at org.apache.axis.client.Call.invoke(Call.java:2553)
   at org.apache.axis.client.Call.invoke(Call.java:2248)
   at org.apache.axis.client.Call.invoke(Call.java:2171)
   at org.apache.axis.client.Call.invoke(Call.java:1691)
   at com.avaya.xml.ws.TelephonyService._2005._04._04.TelephonyServiceSoapBindingStub.attach(TelephonyServiceSoapBindingStub.java:440)
   at com.avaya.aes.telephonyPortal.TelephonySessionBean.setRemoteCredentials(TelephonySessionBean.java:149)
   at com.avaya.aes.telephonyPortal.AuthFilter.setCredentials(AuthFilter.java:183)
   at com.avaya.aes.telephonyPortal.AuthFilter.doFilter(AuthFilter.java:132)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)


java.lang.NullPointerException
   at org.apache.axis.AxisFault.makeFault(AxisFault.java:129)
   at org.apache.axis.client.Call.invoke(Call.java:2251)
   at org.apache.axis.client.Call.invoke(Call.java:2171)
   at org.apache.axis.client.Call.invoke(Call.java:1691)
   at com.avaya.xml.ws.TelephonyService._2005._04._04.TelephonyServiceSoapBindingStub.attach(TelephonyServiceSoapBindingStub.java:440)
   at com.avaya.aes.telephonyPortal.TelephonySessionBean.setRemoteCredentials(TelephonySessionBean.java:149)
   at com.avaya.aes.telephonyPortal.AuthFilter.setCredentials(AuthFilter.java:183)
   at com.avaya.aes.telephonyPortal.AuthFilter.doFilter(AuthFilter.java:132)
   at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)
   at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)
   at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
   at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
   at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
   at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
   at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
   at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
   at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:825)
   at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.processConnection(Http11Protocol.java:738)
   at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:526)
   at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
   at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
   at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.NullPointerException
   at java.util.Hashtable.put(Unknown Source)
   at com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl.setProperty(Unknown Source)
   at org.apache.axis.encoding.DeserializationContextImpl.parse(DeserializationContextImpl.java:246)
   at org.apache.axis.SOAPPart.getAsSOAPEnvelope(SOAPPart.java:538)
   at org.apache.axis.Message.getSOAPEnvelope(Message.java:376)
   at org.apache.axis.client.Call.invokeEngine(Call.java:2583)
   at org.apache.axis.client.Call.invoke(Call.java:2553)
   at org.apache.axis.client.Call.invoke(Call.java:2248)
   ... 20 more

----------------------Stack Trace Till Here------------------
VPhilip
Joined: Aug 7, 2006
Messages: 0
Offline
Hi,

Please help me out in determining whether I am going wron anywhere.

Regards,
V Philip
AnthonyGreway
Joined: Feb 12, 2007
Messages: 0
Offline
Hi V Philip,

Could you provide the SDK release version that you are using?  (Ie: telsvc-sdk-3.1.704.zip)

Also, what is the version of the JRE that you are using to run the sample app?

Thank you,

Tony 
VPhilip
Joined: Aug 7, 2006
Messages: 0
Offline
Hi Tony,

  We have tried using telsvc-sdk-3.1.637 as well as the Web Application (deployed on a Tomcat 5.5). The exception is similar.

 JRE is 1.5.0_09.

Regards,
V Philip
AnthonyGreway
Joined: Feb 12, 2007
Messages: 0
Offline
Philip,

I believe that the problem you are seeing is an incompatibility between the Axis version distributed with the 3.1.x SDK, and your 1.5 JRE.  In order to run the 3.1.x sample app you will need to install and run a 1.4 JRE.  I have successfully run the sample app with 1.4.2_12.

Hope this helps,

Tony
VPhilip
Joined: Aug 7, 2006
Messages: 0
Offline
Hi Tony,

  Thank you, I will definitely try this out and let you know

Regards,
V Philip
IsmaelJimenez(Voiceware-Spain)
Joined: Jul 10, 2006
Messages: 0
Offline
Which Axis version is the proper one to run the sample application with a JDK 1.5.x version?
AnthonyGreway
Joined: Feb 12, 2007
Messages: 0
Offline
Ismael,

You will need to use Axis 1.2 or greater to use a 1.5.x JDK, but beware that you may need to recompile the stubs jar if you choose to use a never version of Axis.   If you plan to recompile the stubs then you are virtual free to use any Axis version you choose, however, we recommend that you use the latest that Axis has to offer.  

Note: You are not restricted to using just Axis as your web service library.

Tony
Go to:   
Mobile view