Author Message
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Hi Team,

I just started learning DMCC API, as part of that I was running example application "SimpleIVRApp.java" but getting below error, could you please help me resolving it.


Jun 06, 2016 9:27:29 AM com.avaya.mvap.svcproxy.prov.RemoteServiceProvider initServiceProviderImpl
INFO: CMAPI SERVER IP=xxx.xxx.xxx.xxx: CMAPI SERVER PORT=4721
Could not start the SimpleIVR app
Jun 06, 2016 9:27:50 AM com.avaya.mvcs.proxy.ClientProxy connect
WARNING:
java.net.ConnectException: Connection timed out: connect
at sun.nio.ch.Net.connect0(Native Method)
at sun.nio.ch.Net.connect(Unknown Source)
at sun.nio.ch.Net.connect(Unknown Source)
at sun.nio.ch.SocketChannelImpl.connect(Unknown Source)
at com.avaya.common.nio.managed.defaultImpl.DefaultChannelProvider.openTCPChannel(DefaultChannelProvider.java:240)
at com.avaya.common.nio.managed.defaultImpl.DefaultChannelProvider.openTCPChannel(DefaultChannelProvider.java:255)
at com.avaya.mvcs.proxy.ClientProxy.connect(ClientProxy.java:432)
at com.avaya.mvcs.proxy.ClientProxy.<init>(ClientProxy.java:273)
at com.avaya.mvap.svcproxy.prov.RemoteServiceProvider.initServiceProviderImpl(RemoteServiceProvider.java:197)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getCmapiServiceProvider(ServiceProviderBuilder.java:195)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderType(ServiceProviderBuilder.java:180)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderImpl(ServiceProviderBuilder.java:112)
at com.avaya.cmapi.ServiceProvider.getCmapiServiceProvider(ServiceProvider.java:404)
at com.avaya.cmapi.ServiceProvider.getServiceProvider(ServiceProvider.java:390)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:336)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)

java.lang.RuntimeException: java.io.IOException: java.net.ConnectException: Connection timed out: connect
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getCmapiServiceProvider(ServiceProviderBuilder.java:201)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderType(ServiceProviderBuilder.java:180)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderImpl(ServiceProviderBuilder.java:112)
at com.avaya.cmapi.ServiceProvider.getCmapiServiceProvider(ServiceProvider.java:404)
at com.avaya.cmapi.ServiceProvider.getServiceProvider(ServiceProvider.java:390)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:336)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)
Caused by: java.io.IOException: java.net.ConnectException: Connection timed out: connect
at com.avaya.mvcs.proxy.ClientProxy.connect(ClientProxy.java:435)
at com.avaya.mvcs.proxy.ClientProxy.<init>(ClientProxy.java:273)
at com.avaya.mvap.svcproxy.prov.RemoteServiceProvider.initServiceProviderImpl(RemoteServiceProvider.java:197)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getCmapiServiceProvider(ServiceProviderBuilder.java:195)
... 6 more
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
It doesn't appear that you have followed the instructions that came with the sample application and configured the settings for the sample application. I infer this because your log file shows:

CMAPI SERVER IP=xxx.xxx.xxx.xxx

From the following file C:\tmp\cmapijava-sdk\examples\bin\SampleAppsReadme.txt

SIMPLEIVR APPLICATION - Registers an extension with Communication
Manager and waits for incoming calls. When a call is received, the
application answers, plays a greeting, plays a recorded menu, and
prompts the user to enter a digit of her/his choice. The user can
press 1 to hear a fact, 2 to record a message, 3 to hear the last
recorded message, 4 to transfer the call, or 5 to conference in
another party.

1) Edit $SDK_PATH/cmapijava-sdk/examples/resources/simpleIVR.properties:
callserver = IP address of Communication Manager (C-LAN or S8300)
extension = extension to register and receive calls
password = the extension's password on Communication Manager
cmapi1.server_ip = IP address for the connector server (AE Server)
switchname = name of the Switch Connection to Communication Manager

2) On AES Management Console (OAM) web-pages, navigate to the following page:
AE Services -> DMCC -> Media Properties

On this page, you will find "Player Directory" and "Recorder Directory" parameters.
These two parameters must be set to the same directory for the SimpleIVR App to
function properly. They both default to /tmp.

3) On the connector server (AE Server), copy all the wave files from the
$SDK_PATH/cmapijava-sdk/examples/media
directory to your specified recorder/player directory. These wave files are
in G.711 format, therefore this application will only work with a G.711 codec.

4) Launch the application via the Ant target: "runSimpleIVR" (or "runSimpleIVRCCS"
to run the Call Control Services version of the application).

5) From a station on the same Communication Manager server with which
the SimpleIVR application is registered, dial the extension number that
you associated with the SimpleIVR application and follow the directions
you'll hear.
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Thank you for quick help John,

I was just masking the ip address, in original logs, I was able to see AES server IP and in AES DMCC port 4721 is enabled as Unencrypted Port.

Please find the error I am getting after corrected the actual AES which I need to point.

Appreciate your help

================================
Jun 06, 2016 1:20:38 PM com.avaya.mvap.svcproxy.prov.RemoteServiceProvider initServiceProviderImpl
INFO: CMAPI SERVER IP=xx.xx.xx.xx: CMAPI SERVER PORT=4721
Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.SessionManagementServiceProxy startApplicationSession
INFO: AES release=6.3.3 protocol version=http://www.ecma-international.org/standards/ecma-323/csta/ed3/priv9
Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.CstaMarshaller setBackwardCompatibilityMap
INFO: map File=v70To633mapping.xml, includes xml maps for newer releases
Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.CstaMarshaller setBackwardCompatibilityMap
SEVERE: Failed to load XML mapping
java.lang.NullPointerException
at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:430)
at com.avaya.mvcs.proxy.CstaMarshaller.setXMLMap(CstaMarshaller.java:117)
at com.avaya.mvcs.proxy.CstaMarshaller.setBackwardCompatibilityMap(CstaMarshaller.java:100)
at com.avaya.mvcs.proxy.CstaMarshallerNode.configure(CstaMarshallerNode.java:556)
at com.avaya.mvcs.proxy.Pipeline.configure(Pipeline.java:173)
at com.avaya.mvcs.proxy.ClientProxy.setPipelineVersion(ClientProxy.java:318)
at com.avaya.mvcs.proxy.ClientProxy.sessionStart(ClientProxy.java:369)
at com.avaya.mvcs.proxy.ClientProxy.<init>(ClientProxy.java:277)
at com.avaya.mvap.svcproxy.prov.RemoteServiceProvider.initServiceProviderImpl(RemoteServiceProvider.java:197)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getCmapiServiceProvider(ServiceProviderBuilder.java:195)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderType(ServiceProviderBuilder.java:180)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderImpl(ServiceProviderBuilder.java:112)
at com.avaya.cmapi.ServiceProvider.getCmapiServiceProvider(ServiceProvider.java:404)
at com.avaya.cmapi.ServiceProvider.getServiceProvider(ServiceProvider.java:390)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:336)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)

Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.CstaUnmarshaller setBackwardCompatibilityMap
INFO: map File=v70To633mapping.xml, includes xml maps for newer releases
Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.CstaUnmarshaller setBackwardCompatibilityMap
SEVERE: Failed to load XML mapping in resolverMap
java.lang.NullPointerException
at org.exolab.castor.mapping.Mapping.loadMapping(Mapping.java:430)
at com.avaya.mvcs.proxy.CstaUnmarshaller.setXMLMap(CstaUnmarshaller.java:162)
at com.avaya.mvcs.proxy.CstaUnmarshaller.setBackwardCompatibilityMap(CstaUnmarshaller.java:126)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode.configure(CstaUnmarshallerNode.java:307)
at com.avaya.mvcs.proxy.Pipeline.configure(Pipeline.java:173)
at com.avaya.mvcs.proxy.ClientProxy.setPipelineVersion(ClientProxy.java:318)
at com.avaya.mvcs.proxy.ClientProxy.sessionStart(ClientProxy.java:369)
at com.avaya.mvcs.proxy.ClientProxy.<init>(ClientProxy.java:277)
at com.avaya.mvap.svcproxy.prov.RemoteServiceProvider.initServiceProviderImpl(RemoteServiceProvider.java:197)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getCmapiServiceProvider(ServiceProviderBuilder.java:195)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderType(ServiceProviderBuilder.java:180)
at com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder.getServiceProviderImpl(ServiceProviderBuilder.java:112)
at com.avaya.cmapi.ServiceProvider.getCmapiServiceProvider(ServiceProvider.java:404)
at com.avaya.cmapi.ServiceProvider.getServiceProvider(ServiceProvider.java:390)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:336)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)

Jun 06, 2016 1:20:38 PM com.avaya.mvap.svcproxy.prov.ServiceProviderBuilder getCmapiServiceProvider
INFO: SERVICE PROVIDER = com.avaya.mvap.svcproxy.prov.RemoteServiceProvider
Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.CstaMarshaller marshal
WARNING: V70TO633_MAPPING does not have mapping
Jun 06, 2016 1:20:38 PM com.avaya.proxy.castor.CastorUnmarshaller unmarshal
WARNING: V70TO633_MAPPING has null resolverImpl in map {NO_MAPPING=org.exolab.castor.xml.util.ClassDescriptorResolverImpl@4c34abfa}
Jun 06, 2016 1:20:38 PM com.avaya.proxy.castor.CastorUnmarshaller unmarshal
WARNING: Could not unmarshal: <?xml version="1.0" encoding="UTF-8"?>
<GetDeviceIdResponse xmlns="http://www.avaya.com/csta"><device typeOfNumber="other" mediaClass="voice" bitRate="constant">11209910016:swlink1:172.22.13.65:0</device></GetDeviceIdResponse>
The class for the root element 'GetDeviceIdResponse' could not be found.{file: [not available]; line: 2; column: 56}
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:186)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:198)
at com.avaya.common.util.concurrent.impl.RunnableWrapper.run(RunnableWrapper.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXException: The class for the root element 'GetDeviceIdResponse' could not be found.
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
... 8 more
Caused by: org.xml.sax.SAXException: The class for the root element 'GetDeviceIdResponse' could not be found.
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:186)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:198)
at com.avaya.common.util.concurrent.impl.RunnableWrapper.run(RunnableWrapper.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread run
WARNING: Unable to unmarshal <?xml version="1.0" encoding="UTF-8"?>
<GetDeviceIdResponse xmlns="http://www.avaya.com/csta"><device typeOfNumber="other" mediaClass="voice" bitRate="constant">11209910016:swlink1:172.22.13.65:0</device></GetDeviceIdResponse>
Possible causes include:
1. The SDK and Server verions differ
2. A required field was not populated in the CSTA object
3. A field was populated with an illegal value in the CSTA object
com.avaya.protocolhandling.DecodeException: Could not unmarshal: <?xml version="1.0" encoding="UTF-8"?>
<GetDeviceIdResponse xmlns="http://www.avaya.com/csta"><device typeOfNumber="other" mediaClass="voice" bitRate="constant">11209910016:swlink1:172.22.13.65:0</device></GetDeviceIdResponse>
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:195)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:198)
at com.avaya.common.util.concurrent.impl.RunnableWrapper.run(RunnableWrapper.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: The class for the root element 'GetDeviceIdResponse' could not be found.{file: [not available]; line: 2; column: 56}
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:186)
... 5 more
Caused by: org.xml.sax.SAXException: The class for the root element 'GetDeviceIdResponse' could not be found.
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
... 8 more

Jun 06, 2016 1:20:38 PM com.avaya.mvcs.proxy.XmlGatewayClient processPacket
WARNING: Received a java.lang.Exception: Unable to unmarshal <?xml version="1.0" encoding="UTF-8"?>
<GetDeviceIdResponse xmlns="http://www.avaya.com/csta"><device typeOfNumber="other" mediaClass="voice" bitRate="constant">11209910016:swlink1:172.22.13.65:0</device></GetDeviceIdResponse>
Possible causes include:
1. The SDK and Server verions differ
2. A required field was not populated in the CSTA object
3. A field was populated with an illegal value in the CSTA object, but expected a ch.ecma.csta.CastorObject
Jun 06, 2016 1:21:32 PM com.avaya.mvcs.proxy.CstaMarshaller marshal
WARNING: V70TO633_MAPPING does not have mapping
Jun 06, 2016 1:21:32 PM com.avaya.proxy.castor.CastorUnmarshaller unmarshal
WARNING: V70TO633_MAPPING has null resolverImpl in map {NO_MAPPING=org.exolab.castor.xml.util.ClassDescriptorResolverImpl@4c34abfa}
Jun 06, 2016 1:21:32 PM com.avaya.proxy.castor.CastorUnmarshaller unmarshal
WARNING: Could not unmarshal: <?xml version="1.0" encoding="UTF-8"?>
<ResetApplicationSessionTimerPosResponse xmlns="http://www.ecma-international.org/standards/ecma-354/appl_session"><actualSessionDuration>180</actualSessionDuration></ResetApplicationSessionTimerPosResponse>
The class for the root element 'ResetApplicationSessionTimerPosResponse' could not be found.{file: [not available]; line: 2; column: 116}
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:186)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:198)
at com.avaya.common.util.concurrent.impl.RunnableWrapper.run(RunnableWrapper.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: org.xml.sax.SAXException: The class for the root element 'ResetApplicationSessionTimerPosResponse' could not be found.
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
... 8 more
Caused by: org.xml.sax.SAXException: The class for the root element 'ResetApplicationSessionTimerPosResponse' could not be found.
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:186)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:198)
at com.avaya.common.util.concurrent.impl.RunnableWrapper.run(RunnableWrapper.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

Jun 06, 2016 1:21:32 PM com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread run
WARNING: Unable to unmarshal <?xml version="1.0" encoding="UTF-8"?>
<ResetApplicationSessionTimerPosResponse xmlns="http://www.ecma-international.org/standards/ecma-354/appl_session"><actualSessionDuration>180</actualSessionDuration></ResetApplicationSessionTimerPosResponse>
Possible causes include:
1. The SDK and Server verions differ
2. A required field was not populated in the CSTA object
3. A field was populated with an illegal value in the CSTA object
com.avaya.protocolhandling.DecodeException: Could not unmarshal: <?xml version="1.0" encoding="UTF-8"?>
<ResetApplicationSessionTimerPosResponse xmlns="http://www.ecma-international.org/standards/ecma-354/appl_session"><actualSessionDuration>180</actualSessionDuration></ResetApplicationSessionTimerPosResponse>
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:195)
at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:198)
at com.avaya.common.util.concurrent.impl.RunnableWrapper.run(RunnableWrapper.java:57)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: The class for the root element 'ResetApplicationSessionTimerPosResponse' could not be found.{file: [not available]; line: 2; column: 116}
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at org.exolab.castor.xml.Unmarshaller.unmarshal(Unknown Source)
at com.avaya.proxy.castor.CastorUnmarshaller.unmarshal(CastorUnmarshaller.java:186)
... 5 more
Caused by: org.xml.sax.SAXException: The class for the root element 'ResetApplicationSessionTimerPosResponse' could not be found.
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.exolab.castor.xml.UnmarshalHandler.startElement(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.startElement(Unknown Source)
at org.apache.xerces.impl.dtd.XMLDTDValidator.startElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanStartElement(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$ContentDispatcher.scanRootElementHook(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
... 8 more

Jun 06, 2016 1:21:32 PM com.avaya.mvcs.proxy.XmlGatewayClient processPacket
WARNING: Received a java.lang.Exception: Unable to unmarshal <?xml version="1.0" encoding="UTF-8"?>
<ResetApplicationSessionTimerPosResponse xmlns="http://www.ecma-international.org/standards/ecma-354/appl_session"><actualSessionDuration>180</actualSessionDuration></ResetApplicationSessionTimerPosResponse>
Possible causes include:
1. The SDK and Server verions differ
2. A required field was not populated in the CSTA object
3. A field was populated with an illegal value in the CSTA object, but expected a ch.ecma.csta.CastorObject
Jun 06, 2016 1:21:38 PM com.avaya.mvcs.proxy.XmlGatewayClient handleRequest
WARNING: The request=session[null] com.avaya.csta.binding.GetDeviceId@26c5539b, id=2, timed out after 60.0 seconds
Probable causes:
1. The cmapi.ClientProxyTimeout has been overridden, and is too short.
2. The server has become overloaded...
3. Network connectivity may have become unstable.
4. The health of the server may become unstable.
Possible resolutions:
1. Increase the cmapi.ClientProxyTimeout value (default 60) in the database and/or user-configuration.properties
2. Reduce the load (connections) on the server.
3. Verify network connectivity.
4. Verify the health of the server.
Could not start the SimpleIVR app
Jun 06, 2016 1:21:38 PM com.avaya.mvcs.proxy.ClientProxy routeRequest
WARNING: Received an unexpected Exception 1
com.avaya.mvcs.proxy.DisconnectByClientException: Request: session[null] ch.ecma.csta.binding.reset.ResetApplicationSessionTimer@56febdc canceled by client
at com.avaya.mvcs.proxy.XmlGatewayClient.clearOutstandingRequests(XmlGatewayClient.java:155)
at com.avaya.mvcs.proxy.Pipeline.clearOutstandingRequests(Pipeline.java:369)
at com.avaya.mvcs.proxy.ClientProxy.stop(ClientProxy.java:598)
at com.avaya.mvcs.proxy.ClientProxy$MyConnectionListener.notifyConnectionDown(ClientProxy.java:787)
at com.avaya.mvcs.proxy.ClientProxy.routeRequest(ClientProxy.java:653)
at com.avaya.mvap.svcproxy.ServiceProxy.marshallRequest(ServiceProxy.java:131)
at com.avaya.mvap.svcproxy.DeviceServicesProxy.getDeviceID(DeviceServicesProxy.java:146)
at sampleapps.station.AvayaStation.getID(AvayaStation.java:1134)
at sampleapps.station.AvayaStation.getID(AvayaStation.java:1112)
at sampleapps.station.AvayaStation.init(AvayaStation.java:382)
at sampleapps.station.AvayaStation.init(AvayaStation.java:237)
at sampleapps.station.AvayaStation.init(AvayaStation.java:300)
at sampleapps.station.AvayaStation.init(AvayaStation.java:293)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:349)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)

Jun 06, 2016 1:21:38 PM com.avaya.mvcs.proxy.SessionManagementServiceProxy resetApplicationSessionTimer
WARNING: resetApplicationSession Failed because of the exception: Request: session[null] ch.ecma.csta.binding.reset.ResetApplicationSessionTimer@56febdc canceled by client
ch.ecma.csta.errors.CstaException: Request: session[null] ch.ecma.csta.binding.reset.ResetApplicationSessionTimer@56febdc canceled by client
at com.avaya.mvcs.proxy.CstaSessionManagementServiceProxy.routeRequest(CstaSessionManagementServiceProxy.java:92)
at com.avaya.mvcs.proxy.CstaSessionManagementServiceProxy.resetApplicationSessionTimer(CstaSessionManagementServiceProxy.java:121)
at com.avaya.mvcs.proxy.SessionManagementServiceProxy.resetApplicationSessionTimer(SessionManagementServiceProxy.java:399)
at com.avaya.mvcs.proxy.SessionManagementServiceProxy.access$000(SessionManagementServiceProxy.java:54)
at com.avaya.mvcs.proxy.SessionManagementServiceProxy$SessionKATimerTask.run(SessionManagementServiceProxy.java:447)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)
Caused by: com.avaya.mvcs.proxy.DisconnectByClientException: Request: session[null] ch.ecma.csta.binding.reset.ResetApplicationSessionTimer@56febdc canceled by client
at com.avaya.mvcs.proxy.XmlGatewayClient.clearOutstandingRequests(XmlGatewayClient.java:155)
at com.avaya.mvcs.proxy.Pipeline.clearOutstandingRequests(Pipeline.java:369)
at com.avaya.mvcs.proxy.ClientProxy.stop(ClientProxy.java:598)
at com.avaya.mvcs.proxy.ClientProxy$MyConnectionListener.notifyConnectionDown(ClientProxy.java:787)
at com.avaya.mvcs.proxy.ClientProxy.routeRequest(ClientProxy.java:653)
at com.avaya.mvap.svcproxy.ServiceProxy.marshallRequest(ServiceProxy.java:131)
at com.avaya.mvap.svcproxy.DeviceServicesProxy.getDeviceID(DeviceServicesProxy.java:146)
at sampleapps.station.AvayaStation.getID(AvayaStation.java:1134)
at sampleapps.station.AvayaStation.getID(AvayaStation.java:1112)
at sampleapps.station.AvayaStation.init(AvayaStation.java:382)
at sampleapps.station.AvayaStation.init(AvayaStation.java:237)
at sampleapps.station.AvayaStation.init(AvayaStation.java:300)
at sampleapps.station.AvayaStation.init(AvayaStation.java:293)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:349)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)

ch.ecma.csta.errors.CstaException: Request: session[null] com.avaya.csta.binding.GetDeviceId@26c5539b timed out
at com.avaya.mvap.svcproxy.ServiceProxy.marshallRequest(ServiceProxy.java:136)
at com.avaya.mvap.svcproxy.DeviceServicesProxy.getDeviceID(DeviceServicesProxy.java:146)
at sampleapps.station.AvayaStation.getID(AvayaStation.java:1134)
at sampleapps.station.AvayaStation.getID(AvayaStation.java:1112)
at sampleapps.station.AvayaStation.init(AvayaStation.java:382)
at sampleapps.station.AvayaStation.init(AvayaStation.java:237)
at sampleapps.station.AvayaStation.init(AvayaStation.java:300)
at sampleapps.station.AvayaStation.init(AvayaStation.java:293)
at sampleapps.simpleIVR.SimpleIVRApp.bootstrap(SimpleIVRApp.java:349)
at sampleapps.simpleIVR.SimpleIVRApp.main(SimpleIVRApp.java:227)
Caused by: com.avaya.mvcs.proxy.XmlGatewayClient$TimeoutException: Request: session[null] com.avaya.csta.binding.GetDeviceId@26c5539b timed out
at com.avaya.mvcs.proxy.XmlGatewayClient$TimeoutTask.run(XmlGatewayClient.java:583)
at java.util.TimerThread.mainLoop(Unknown Source)
at java.util.TimerThread.run(Unknown Source)

JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
Is what you are posting are AES side logs, or application side logs?
Please post AES side logs of the connect attempt.
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Hi John,

Please find more information about jre I am using.

I was running sample application with "jre1.8.0_91".

When I was running with jre 1.7 I was getting "Unsupported major.minor version 52.0"

please let me know if any more details required.

Thank you
-Ram
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Hi John,

I was posting application logs, could you please provide me the path where I can get the AES logs.

Thank you
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
Please review these FAQs

http://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/support/faq/dmcc/other.gsp

How can I monitor the XML being sent and received by the AE Services Server (debug, log, trace)?
How can I monitor the XML being sent and received by the AE Services Server (debug, log, trace) - pre-6.3 release?

Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Thank you John,

I got the AES logs, the logging level set to "FINE" in AES. please find the AES logs.
Filename dmcc-trace.log.zip [Disk] Download
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
What version of AE Services are you running against (at a linux prompt do a swversion command or you can get this info from the Web OA&M interface)?

Which version of the DMCC Java SDK did you download?
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Hi John,

Please find the details.

DMCC Java SDK: cmapijava-sdk-7.0.0.0.0.288
AES services version: 6.3.3.1.10-0

===================
***********************************************************************
Application Enablement Services
***********************************************************************
Version: 6.3.3.1.10-0
Server Type: OTHER
Offer Type: VIRTUAL_APPLIANCE_ON_VMWARE

***********************************************************************
Operating System Version: Linux 2.6.18-308.16.1.el5PAE

************* Patch Numbers Installed in this system are *************
LSU-RHEL5U10
FP6.3.3.0.10 (AES 6.3.3)
1
LSU-bash-shellshock
***********************************************************************
Use "swversion [-a | --all]" to get a complete list of AE Services RPMS and Patc
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
At least until the experts can respond, I would try using the 6.3 version of the SDK.
http://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/releases/6_3_3/index.gsp

click downloads, then DMCC
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Sure, Thank you so much John,

My actual requirement was getting queue information like number of ACD agents available to receive calls through the split, the number of calls in queue, and the number of agents logged in. I got to know I can get this information from "GetAcdSplit()" method.

I would be great help, if you can share sample application which uses this method and gives the required information.

Thank you
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
Experts say...

Please use the AES 6.3.3 SDK - the 7.0.x SDK is not guaranteed to be compatible with AES 6.3.3. Also, please use the JDK/JRE1.7 (not 1.8), since the included jar-files were compiled using 1.7.

Expert also says not sure if any of the included sample apps. include the data that Ram is looking for. The most likely sample apps. that might include that kind of information would be the 3PCC apps. in the "src/sampleapps/ccs" directory.


The TSAPI Agent View sample app might include acd agent info for a split, I forget
http://www.devconnectprogram.com/site/global/products_resources/avaya_aura_application_enablement_services/educational_resources/sample_applications/tsapi/agent_view/index.gsp

TSAPI functionality is exposed through DMCC'S Call Control services capabilities.
Ram_member
Joined: Feb 21, 2014
Messages: 33
Offline
Thank you John,

I have downloaded AES 6.3.3 SDK and used java 1.7 to run sample application as you suggested.

great news it worked perfectly.

Thanks you so much John, appreciate your help.

Could you please also help me getting sample DMCC Java SDK application which uses getAcdSplit method, below is the method reference details (which is Supported in AES 6.1 and later).

package: ch.ecma.csta.logical
Interface LogicalDeviceFeatureServices

GetAcdSplitResponse getAcdSplit(GetAcdSplit request)
throws CstaException
Supported in AES 6.1 and later.
The Get ACD Split service is a private request that provides the number of ACD agents available to receive calls through the split, the number of calls in queue, and the number of agents logged in. The number of calls in queue does not include direct-agent calls.

Example: The following code gives an example of how to use GetAcdSplit.
Receiving the response is an indication that the request succeeded.

GetAcdSplit request = new GetAcdSplit();
// acdSplitExtension is a DeviceID that was retrieved
// using DeviceServices.getThirdPartyDeviceID(GetThirdPartyDeviceId)
request.setDevice(acdSplitExtension);
GetAcdSplitResponse response = logicalDeviceFeatSvcs.getAcdSplit(request);
// get agent data from the response
int numAgentsLoggedIn = response.getAgentsLoggedIn();
int numAvailAgents = response.getAvailableAgents();
int numCallsInQueue = response.getCallsInQueue();

Parameters:
request - A GetAcdSplit request that contains a DeviceID for the ACD Split extension for which the Get ACD Split service is requested.
Returns:
A GetAcdSplitResponse
Throws:
InvalidDeviceIDException - Thrown if an invalid device ID has been specified.
SecurityViolationException - Thrown if the user was not authorized to control the specified device.
OperationException - Thrown if a logic error occurred in the code.
CstaException - Thrown if an implementation specific error occurred.
JohnBiggs
Joined: Jun 20, 2005
Messages: 1139
Location: Rural, Virginia
Offline
I don't believe there is one available through DevConnect. My suggestion is to add an option (or cannibalize one) to/from the simpleIVR and add your code and print the results).

you will need to construct a thirdPartyDeviceID for the hunt group (acd split), properly provision communication manager for EAS services create the acd hunt group and be in a position to force calls to queue for the hunt group (place multiple calls to the hunt group's extension) in order to test your logic.

Sorry I could not be of further assistance.
Go to:   
Mobile view