01-03-2015 11:03 AM
I am upgrading my tools to 8.5+ and whenever I send any requests where I generally get an error, like duplicate DN's. Instead of getting any error messages back I just get 500 errors and the debugs don't tell me anything?
2015-01-03 15:27:47,874 INFO [http-bio-443-exec-21] filters.TimingFilter - Request 1419186703024 was processed in 403ms
2015-01-03 15:28:19,025 INFO [http-bio-443-exec-20] filters.TimingFilter - Received request 1419186703025 from ccmadmin at IP 10.1.1.2
2015-01-03 15:28:19,028 INFO [http-bio-443-exec-20] servletRouters.AXLAlpha - Going to axis--->
2015-01-03 15:28:19,169 INFO [http-bio-443-exec-20] servletRouters.AXLAlpha - AXL REQUEST :
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns="http://www.cisco.com/AXL/API/8.5"><soapenv:Header/><soapenv:Body><ns:addLine sequence="?"><line><pattern>1234</pattern><description>P Murphy</description><usage>Device</usage><routePartitionName/><aarNeighborhoodName></aarNeighborhoodName><aarDestinationMask></aarDestinationMask><aarKeepCallHistory>f</aarKeepCallHistory><aarVoiceMailEnabled>f</aarVoiceMailEnabled><callForwardAll><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardAll><callForwardBusy><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardBusy><callForwardBusyInt><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardBusyInt><callForwardNoAnswer><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardNoAnswer><callForwardNoAnswerInt><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardNoAnswerInt><callForwardNoCoverage><forwardToVoiceMail >f</forwardToVoiceMail><callingSearchSpaceName/><destination ></destination></callForwardNoCoverage><callForwardNoCoverageInt><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardNoCoverageInt><callForwardOnFailure><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardOnFailure><callForwardNotRegistered><forwardToVoiceMail>false</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardNotRegistered><callForwardNotRegisteredInt><forwardToVoiceMail>f</forwardToVoiceMail><callingSearchSpaceName/><destination></destination></callForwardNotRegisteredInt><callPickupGroupName></callPickupGroupName><autoAnswer>Auto Answer Off</autoAnswer><networkHoldMOHAudioSourceId>0</networkHoldMOHAudioSourceId><userHoldMOHAudioSourceId>0</userHoldMOHAudioSourceId><alertingName></alertingName><asciiAlertingName></asciiAlertingName><presenceGroupName uuid="?">Standard Presence group</presenceGroupName><shareLineAppearanceCSSName></shareLineAppearanceCSSName><voiceMailProfileName></voiceMailProfileName><patternPrecedence></patternPrecedence><releaseCause></releaseCause><hrDuration></hrDuration><hrInterval></hrInterval><cfaCssPolicy></cfaCssPolicy><parkMonForwardNoRetrieveCssName/></line></ns:addLine></soapenv:Body></soapenv:Envelope>
2015-01-03 15:28:19,247 ERROR [http-bio-443-exec-20] axlapiservice.AXLAPIServiceSkeleton - SQL EXCEPTION has occurred, will be sending you the exact error Info
This is the last thing I get, so the system never send me the exact error?
01-07-2015 02:47 PM
Which CUCM version are you running this request with? I tried a request with CUCM version 10.5 and AXL API 8.5, and I get an error description like this :
<?xml version='1.0' encoding='UTF-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Body><soapenv:Fault><faultcode>soapenv:Client</faultcode><faultstring>Cannot insert or update pattern. A DN exists with the same pattern and partition.</faultstring><detail><axlError><axlcode>4052</axlcode><axlmessage>Cannot insert or update pattern. A DN exists with the same pattern and partition.</axlmessage><request>addLine</request></axlError></detail></soapenv:Fault></soapenv:Body></soapenv:Envelope>
01-09-2015 11:40 AM
Following up on this - are you seeing this error with some specific requests? Is this issue intermittent or reproducible? Are there large/rapid AXL requests being sent around the time the issue is seen?
01-01-2016 09:10 PM
Still not seeing much difference in my app but I am working through it. It seems that some of the error message just give me 500 Internal Server errors with very little details.
System.Net.WebException was caught
HResult=-2146233079
Message=The remote server returned an error: (500) Internal Server Error.
Source=System
StackTrace:
at System.Net.HttpWebRequest.GetResponse()
at WindowsApplication1.Form4.WriteSystemPartitionRoutine(String& SoapArg1, String& PartName) in C:\Visual Studio\Projects\Tool85\Tool\Form4.vb:line 2535
InnerException:
I have looked at the details but it seems that the response does not provide me with the error message.
Patrick
01-02-2016 08:01 AM
I found my issue in .Net. It turns out that when a WebException occurs I have to read the response from the exception and not from the initial response.
' Pre-version 8 the error message was captured here
response = DirectCast(request.GetResponse(), HttpWebResponse)
reader = New StreamReader(response.GetResponseStream())
responseTxt = reader.ReadToEnd()
Catch ex As WebException
'After version 8 the error message the error message must be captured here
response = ex.Response
reader = New StreamReader(response.GetResponseStream())
responseTxt = reader.ReadToEnd()
Exit Sub
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide