Sync Plugin can't connect to SpiraTeam web service

Tuesday, April 17, 2012 7:06:36 PM
I just setup the JiraDataSync 4.x plugin to push data from my existing Spirateam server to my new Jira server.  When I start the service I get the following error message:

Event Type:    Error
Event Source:    SpiraTeam Data Sync Service
Event Category:    None
Event ID:    0
Date:        4/17/2012
Time:        3:02:35 PM
User:        N/A
Computer:    SPIRATEAM
Description:
General Error: An error occurred while receiving the HTTP response to http://spirateam/SpiraTeam/Services/v3_0/ImportExport.svc. This could be due to the service endpoint binding not using the HTTP protocol. This could also be due to an HTTP request context being aborted by the server (possibly due to the service shutting down). See server logs for more details.

Server stack trace:
   at System.ServiceModel.Channels.HttpChannelUtilities.ProcessGetResponseWebException(WebException webException, HttpWebRequest request, HttpAbortReason abortReason)
   at System.ServiceModel.Channels.HttpChannelFactory.HttpRequestChannel.HttpChannelRequest.WaitForReply(TimeSpan timeout)
   at System.ServiceModel.Channels.RequestChannel.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Dispatcher.RequestChannelBinder.Request(Message message, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
   at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
   at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)

Exception rethrown at [0]:
   at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
   at System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
   at Inflectra.SpiraTest.PlugIns.Jira4DataSync.SpiraImportExport.IImportExport.Incident_RetrieveNew(DateTime creationDate)
   at Inflectra.SpiraTest.PlugIns.Jira4DataSync.DataSync.Execute(Nullable`1 lastSyncDate, DateTime serverDateTime)

For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.


I can hit that endpoint URL in a browser, so I think that's correct
Anyone seen this error before or have any ideas?
Thanks,
Jason
1 Replies
Thursday, April 19, 2012 7:56:06 PM
Avatar
re: JasonF on Tuesday, April 17, 2012 7:06:36 PM
In case anyone else encounters this, it's an IIS configuration issue.  In your {SpiraTeam}/web.conf file, make the following change:
        <behavior name="Inflectra.SpiraTest.Web.Services.v3_0.ServiceBehavior">
<!--the next line is the critical change -->
          <dataContractSerializer maxItemsInObjectGraph="2147483647"/>
          <serviceMetadata httpGetEnabled="true" httpsGetEnabled="false" />
          <serviceDebug includeExceptionDetailInFaults="true" />
        </behavior>

You'd never guess that from the log message.
Statistics
  • Started: Tuesday, April 17, 2012 7:06:36 PM
  • Last Reply: Thursday, April 19, 2012 7:56:06 PM
  • Replies: 1
  • Views: 6554