SPS API CloseOrder Exception

Discussions related to order tracking development with the ProForm module.

Moderator: Phil Barton

Post Reply
joe.campbell
Posts: 3
Joined: Thu Dec 10, 2009 11:49 am

SPS API CloseOrder Exception

Post by joe.campbell »

Attaching a debugger I am able to catch the exception but it is only thrown intermittantly. The exception is being thrown after the save (the softpro order updates fine) on the close order API call

finally
{
// This MUST be called to release any locks on the order.
// always remember to close the order - otherwise you will leave a lock!
if (otService != null && order != null)
{
otService.CloseOrder(order);
}
}


System.ServiceModel.FaultException was caught
Message="Object reference not set to an instance of an object."
Source="SoftPro.ClientModel"
StackTrace:
Server stack trace:
at System.ServiceModel.Channels.ServiceChannel.HandleReply(ProxyOperationRuntime operation, ProxyRpc& rpc)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs, TimeSpan timeout)
at System.ServiceModel.Channels.ServiceChannel.Call(String action, Boolean oneway, ProxyOperationRuntime operation, Object[] ins, Object[] outs)
at System.ServiceModel.Channels.ServiceChannelProxy.InvokeService(IMethodCallMessage methodCall, ProxyOperationRuntime operation)
at System.ServiceModel.Channels.ServiceChannelProxy.Invoke(IMessage message)
Exception rethrown at [0]:
at SoftPro.ClientModel.Proxies.ClientProxy`1.OnHandleFaultException(FaultException exception)
at SoftPro.ClientModel.Proxies.ClientProxy`1.HandleFaultException(FaultException exception)
at SoftPro.Select.Client.Proxies.LockManagerClient.ReleaseLock(Guid lockID)
at SoftPro.Select.Client.LockManager.ReleaseLock(Guid lockID)
at SoftPro.Select.Client.Lock.Dispose(Boolean disposing)
at SoftPro.Select.Client.Lock.Dispose()
at SoftPro.OrderTracking.Client.OrderTracking.CloseOrder(IOrder order)
at SPS.NextAce.SPS.Save(MessageData message, Boolean replaceReqEx) in C:\fnf\dev\TeamA\Source\FNF.SPS.NextAce\SPS.NextAce\SPS.cs:line 149
at SPS.NextAce.SPS.Update(MessageData message) in C:\fnf\dev\TeamA\Source\FNF.SPS.NextAce\SPS.NextAce\SPS.cs:line 96
at SPS.NextAce.SPS.Update(String xml, String metadata) in C:\fnf\dev\TeamA\Source\FNF.SPS.NextAce\SPS.NextAce\SPS.cs:line 89
at SPS.NextAce.SPS.Update(FileInfo file, String metadata) in C:\fnf\dev\TeamA\Source\FNF.SPS.NextAce\SPS.NextAce\SPS.cs:line 79
at NextAceFTPFileWatcher.NextAceFTPFileWatcher.OnChanged(Object source, FileSystemEventArgs e) in C:\fnf\dev\TeamA\Source\FNF.SPS.NextAce\NextAceFTPFileWatcher\NextAceFTPFileWatcher.cs:line 103
InnerException:
Mark McKenna

Re: SPS API CloseOrder Exception

Post by Mark McKenna »

What version of Select are you running?
joe.campbell
Posts: 3
Joined: Thu Dec 10, 2009 11:49 am

Re: SPS API CloseOrder Exception

Post by joe.campbell »

It's the latest for FNF - SP5 (2.4.30715.84)
Hadi Chemaly

Re: SPS API CloseOrder Exception

Post by Hadi Chemaly »

Joe,

This is typically caused by concurrent logins to Select using the same {username, machine name} pair. Such scenario is currently not supported.

Can you tell us a little more about how are you running your integration code (from within Select or a separate project)? What username are you logging in as (is it admin)? Is anyone else logging in concurrently with the same username on another machine/terminal server? Since you are only seeing this intermittently, we need as much details as you can provide to find out what's causing this. Logs from the machine running Select Server can also help.
joe.campbell
Posts: 3
Joined: Thu Dec 10, 2009 11:49 am

Re: SPS API CloseOrder Exception

Post by joe.campbell »

Yes, there is a concurrent logon. We are creating a new logon for the NextAce updates. We will test and update you.
Thanks for the quick response. Love your new discussion board!
Post Reply