Author Message
IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
I am trying to use singleStepConferenceCall in order to record a call on a station and I am getting the following error
EstablishedEvent Received!
Change in the Monitored station
Mar 12, 2008 12:25:11 PM com.avaya.mvcs.proxy.XmlGatewayClient handleRequest
INFO: Received a negative ack, coverting to exception : <?xml version="1.0" encoding="UTF-8"?>
<CSTAErrorCode xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3"><operation>generic</operation></CSTAErrorCode>
Mar 12, 2008 12:25:11 PM com.avaya.mvcs.proxy.XmlGatewayClient handleRequest
INFO: Received a negative acknowledgement, converting to exception
Mar 12, 2008 12:25:11 PM com.avaya.mvcs.proxy.ClientProxy routeRequest
WARNING: Received an unexpected Exception 1
ch.ecma.csta.errors.OperationException
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.Class.newInstance0(Unknown Source)
at java.lang.Class.newInstance(Unknown Source)
at com.avaya.mvcs.proxy.XmlGatewayClient.convertErrorToException(XmlGatewayClient.java:483)
at com.avaya.mvcs.proxy.XmlGatewayClient.handleRequest(XmlGatewayClient.java:258)
at com.avaya.mvcs.proxy.Pipeline.handleRequest(Pipeline.java:346)
at com.avaya.mvcs.proxy.ClientProxy.routeRequest(ClientProxy.java:604)
at com.avaya.mvap.svcproxy.ServiceProxy.marshallRequest(ServiceProxy.java:108)
at com.avaya.mvap.svcproxy.CallControlServicesProxy.singleStepConferenceCall(CallControlServicesProxy.java:368)
at station.AvayaStation.singleStepConferenceCall(AvayaStation.java:1130)
at station.AvayaStationMonitor.createSingleStepConferenceCall(AvayaStationMonitor.java:1167)
at station.AvayaRecordingStation.update(AvayaRecordingStation.java:186)
at java.util.Observable.notifyObservers(Unknown Source)
at station.AvayaStationMonitor$MyCallControlListener.established(AvayaStationMonitor.java:1050)
at com.avaya.mvap.svcproxy.MonitoringServicesProxy.handleEvent(MonitoringServicesProxy.java:823)
at com.avaya.mvap.svcproxy.ServiceProxy$ExecutorTask.run(ServiceProxy.java:227)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
SingleStepConferenceCallResponse CstaException ch.ecma.csta.errors.OperationException
Exception when conferincing java.lang.NullPointerException
EstablishedEvent done !

In the javadoc OperationException means " a logic error occurred in the code. "

I am getting the connection id from the callcontrol established event on the monitored station and geting the device id by calling getThirdPartyDeviceID on the station i want to conference in.
Any advice?
Thanks

IsaacEyeson
Joined: Dec 21, 2005
Messages: 0
Offline
Ilana,

The stack trace for the error maybe in the AES mvap-trace.log.* files and so it will be helpful to look at those files. What version of AES are you using?

Thanks
Isaac
IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
Ok I am using the simulator version 4.00.002b
The trace log shows the following error
2008-03-12 14.18.39,007 com.avaya.mvcs.proxy.CstaRouterNode processPacket
FINE: invokeID= 19 Routing request=session[session 16D574DAFF890205FAB3F1A965F214BC-69] ch.ecma.csta.binding.SingleStepConferenceCall@1987acd
2008-03-12 14.18.39,072 com.avaya.cs.callcontrol.delegs.TsapiSessionMap getTsapiSession
INFO: Exception occurred when starting new TsapiSession for Tlink AVAYA#CMSIM#CSTA#AESSIM
java.lang.IllegalArgumentException
   at sun.nio.ch.Net.checkAddress(Net.java:25)
   at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:451)
   at com.avaya.common.nio.managed.defaultImpl.DefaultChannelProvider.openTCPChannel(DefaultChannelProvider.java:220)
   at com.avaya.java.tsapiInterface.nio.TsapiChannelNio.<init>(TsapiChannelNio.java:75)
   at com.avaya.java.tsapiInterface.nio.TsapiSessionFactoryNio.getTsapiSession(TsapiSessionFactoryNio.java:86)
   at com.avaya.cs.callcontrol.delegs.TsapiSessionMap.getTsapiSession(TsapiSessionMap.java:273)
   at com.avaya.cs.callcontrol.CallControlSnapshotImpl.singleStepConferenceCall(CallControlSnapshotImpl.java:295)
   at com.avaya.cmapi.extsvc.CallControlServicesImpl.singleStepConferenceCall(CallControlServicesImpl.java:181)
   at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.avaya.platform.broker.impl.AsyncServiceMethodImpl.invoke(AsyncServiceMethodImpl.java:170)
   at com.avaya.workflow.impl.RouterImpl.routeRequest(RouterImpl.java:98)
   at com.avaya.mvcs.proxy.CstaRouter.routeRequest(CstaRouter.java:171)
   at com.avaya.mvcs.proxy.CstaRouterService.routeRequest(CstaRouterService.java:141)
   at com.avaya.mvcs.proxy.CstaRouterNode.processPacket(CstaRouterNode.java:319)
   at com.avaya.mvcs.proxy.AbstractPipelineNode.process(AbstractPipelineNode.java:130)
   at com.avaya.mvcs.proxy.Pipeline$PipelineSubscriber.inform(Pipeline.java:430)
   at com.avaya.common.eventservice.UnfilteredSubscription.notify(UnfilteredSubscription.java:70)
   at com.avaya.common.multicaster.Multicaster.notify(Multicaster.java:386)
   at com.avaya.common.channel.Channel.publish(Channel.java:115)
   at com.avaya.common.eventservice.EventService.publish(EventService.java:123)
   at com.avaya.common.eventservice.EventServiceManager.publish(EventServiceManager.java:156)
   at com.avaya.common.eventservice.Publisher.publish(Publisher.java:110)
   at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:202)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
   at java.lang.Thread.run(Thread.java:595)
2008-03-12 14.18.39,073 com.avaya.platform.broker.impl.AsyncServiceMethodImpl invoke
WARNING: Exception when calling method.invoke
java.lang.reflect.InvocationTargetException
   at sun.reflect.GeneratedMethodAccessor91.invoke(Unknown Source)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
   at java.lang.reflect.Method.invoke(Method.java:585)
   at com.avaya.platform.broker.impl.AsyncServiceMethodImpl.invoke(AsyncServiceMethodImpl.java:170)
   at com.avaya.workflow.impl.RouterImpl.routeRequest(RouterImpl.java:98)
   at com.avaya.mvcs.proxy.CstaRouter.routeRequest(CstaRouter.java:171)
   at com.avaya.mvcs.proxy.CstaRouterService.routeRequest(CstaRouterService.java:141)
   at com.avaya.mvcs.proxy.CstaRouterNode.processPacket(CstaRouterNode.java:319)
   at com.avaya.mvcs.proxy.AbstractPipelineNode.process(AbstractPipelineNode.java:130)
   at com.avaya.mvcs.proxy.Pipeline$PipelineSubscriber.inform(Pipeline.java:430)
   at com.avaya.common.eventservice.UnfilteredSubscription.notify(UnfilteredSubscription.java:70)
   at com.avaya.common.multicaster.Multicaster.notify(Multicaster.java:386)
   at com.avaya.common.channel.Channel.publish(Channel.java:115)
   at com.avaya.common.eventservice.EventService.publish(EventService.java:123)
   at com.avaya.common.eventservice.EventServiceManager.publish(EventServiceManager.java:156)
   at com.avaya.common.eventservice.Publisher.publish(Publisher.java:110)
   at com.avaya.mvcs.proxy.CstaUnmarshallerNode$CstaUnmarshallerProcessorThread.run(CstaUnmarshallerNode.java:202)
   at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
   at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
   at java.lang.Thread.run(Thread.java:595)
Caused by: ch.ecma.csta.errors.OperationException: Exception occurred when starting new TsapiSession. May be invalid credentials: java.lang.IllegalArgumentException
   at com.avaya.cs.callcontrol.delegs.TsapiSessionMap.getTsapiSession(TsapiSessionMap.java:355)
   at com.avaya.cs.callcontrol.CallControlSnapshotImpl.singleStepConferenceCall(CallControlSnapshotImpl.java:295)
   at com.avaya.cmapi.extsvc.CallControlServicesImpl.singleStepConferenceCall(CallControlServicesImpl.java:181)
   ... 20 more
2008-03-12 14.18.39,073 com.avaya.mvcs.proxy.CstaMarshallerNode$CstaMarshallerThread convertException
FINE: Exception is instance of InvocationTargetException
2008-03-12 14.18.39,073 com.avaya.mvcs.proxy.CstaMarshallerNode$CstaMarshallerThread convertException
FINE: InvocationTargetException cause is: ch.ecma.csta.errors.OperationException: Exception occurred when starting new TsapiSession. May be invalid credentials: java.lang.IllegalArgumentException
2008-03-12 14.18.39,073 com.avaya.mvcs.proxy.CstaMarshallerNode$CstaMarshallerThread convertException
FINE: Returning negative ack to client session (16D574DAFF890205FAB3F1A965F214BC-69) : ch.ecma.csta.errors.OperationException: Exception occurred when starting new TsapiSession. May be invalid credentials: java.lang.IllegalArgumentException
2008-03-12 14.18.39,075 com.avaya.mvcs.proxy.CstaRouterNode processPacket


So I webt to AEs web and run TSAPI test and it failed
Used to work when I istalled it the first time

TsTest
cstaMakeCall() failed, ACS error 35

Thanks

IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
I restarted the AES and TSAPI test now passes but I still get the same error in the mvap_trace_log.
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
What credentials are you using when you establish your session (in the startApplicationSession)? avaya/avayapassword, aessim/aessim or something you created?

I wonder about this statement ' May be invalid credentials: '
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
And can we see the information you sent in the SSC request (a copy of the XML exchange would be helpful).
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
Another thought would be you have changed the simulator to networked but have not changed the CLAN IP associated with the switch connection named 'cmsim'. The instructions for doing that are in the Networking Configuration.pdf document. This would leave the link in a down state, which may trigger this fault. I don't have equipment available to me to test from home (where I am at). Check the switch connection status via the AES OA&M interface.

IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
I have not change the simulator to be networked yet. The switch connection is 'talking'. I am using aessim/aessim as username/password.
How do I get the XML message is it in the logs?
Thanks John.
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
the easiest way is to use ethereal (http://www.ethereal.com/) to capture the exchange. Use a unsecure connection to the AES (port 4721).

There are also instructions in the AE Services FAQ for how to enable XML level logging on the AE Services server. Look for a FAQ titled "How can I monitor the XML being sent and received by the AE Services Server?"
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
if you use ethereal send the output to devconnect@avaya.com attention John Biggs.
IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
FINEST: Unmarshalled xml=<?xml version="1.0" encoding="UTF-8"?>
<SingleStepConferenceCall xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3"><activeCall><deviceID typeOfNumber="other" mediaClass="notKnown" bitRate="constant">32130:CMSIM::0</deviceID><callID>10374</callID></activeCall><deviceToJoin typeOfNumber="other" mediaClass="notKnown" bitRate="constant">32129:192.168.17.129::0</deviceToJoin><participationType>silent</participationType></SingleStepConferenceCall> to object=session[null] ch.ecma.csta.binding.SingleStepConferenceCall@132c515
2008-03-13 08.35.38,820 com.avaya.mvcs.proxy.CstaRouterNode processPacket
FINE: invokeID= 21 Routing request=session[session BC91AB8C38256CA283542B7BA8C61D7A-3] ch.ecma.csta.binding.SingleStepConferenceCall@132c515
2008-03-13 08.35.38,888 com.avaya.cs.callcontrol.delegs.TsapiSessionMap getTsapiSession
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
Ilana,
On my simulator, I have done the following steps.
started dads, created virtual DCP stations for 40010 adn 40011. Used the DCP station interface to establish a call (off-hook at 40010, used the keypad to dial 40011, off-hook at 40011).
I then started the dashboard (a tool in the .NET SDK)
from the dashboard I created a application session, got a device ID for x40010 started all the monitors and registered the device
I then launched my IP softphone and logged in as x32129
I then used the call control tab of the dashboard to get a 3rd parth deviceID for x40010
used the response to do a snapshot device of 40010
verified the dashboard got the right call-id out of the response and populated the informatin at the top of the page
got a 3rd party device ID for 32129
did a SSC request, and was successful.

Could you try that sequence for me and report the results.

My other guess is that the AES is in some funkey state. Have you restarted it recently? the linux command would be
sudo /sbin/shutdown -r now

John
IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
Ok Iget an error in this stage :
"
I then used the call control tab of the dashboard to get a 3rd parth deviceID for x40010
used the response to do a snapshot device of 40010 "
When I do getthirtdpartydeviceid it works ok returning
40010:192.168.17.129::0
but then when I press snapshotDevice I get the following

---------------------
Outgoing XML 21
<?xml version="1.0" encoding="utf-8"?>
<SnapshotDevice xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3">
<snapshotObject typeOfNumber="other" mediaClass="notKnown">40010:192.168.17.129::0</snapshotObject>
</SnapshotDevice>
-----------------------
Incoming XML 21 40010:192.168.17.129::0
<?xml version="1.0" encoding="UTF-8"?><CSTAErrorCode xmlns="http://www.ecma-international.org/standards/ecma-323/csta/ed3"><operation>generic</operation></CSTAErrorCode>
IlanaPolyak
Joined: Aug 1, 2007
Messages: 0
Offline
I restarted AEs today when I changed the log level. One thing it said in the instruction that I can just send a kill to a java main thread but when i run 'jps' command there was only one process running
Jps
Maybe it's a problem?
JohnBiggs
Joined: Jun 20, 2005
Messages: 1141
Location: Rural, Virginia
Offline
there is only one process that jps will return, you just need the PID of that process for the next command that you need to sighup -15 PID to (or whatever the actual syntax is... I forget).

so the point you get the error at is the first moment you are trying to do anything with the TSAPI link. Use the OA&M interface for AES, and navigate to CTI OAM Home > > Utilities > TSAPI Test
there should be a Tlink with Avaya#CMSIM#CSTA#AESSIM shown.

assuming that is true, enter "avaya" for user and "avayapassword" for the password. set from to 40010 and to to 40011 and click dial (make sure those stations are idle when you place the call, and the DADS windows for them are running. I suspect you will get an error code. I am interested in what it is.
Go to:   
Mobile view