Login failure: Object reference not set

If you are having a problem using Fortress, post a message here.

Moderator: SourceGear

Post Reply
ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Login failure: Object reference not set

Post by ajj3085 » Thu Mar 20, 2008 8:21 am

Hi,

I installed Vista SP1, and have been getting a lot more of these now. It seems to happen almost every time I start typing to edit a file, which causes an automatic checkout.

I have the lastest version of Fortress client and server.

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Thu Mar 20, 2008 8:23 am

The exact error I get from the client is: Object reference not set to an instance of an object.

The checkout works, but the file does not have it's Read-only flag cleared, so I have to manually do that.

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Mar 20, 2008 9:28 am

I'm sorry for the inconvenience. We've had a few intermittent reports of this, but haven't yet isolated a cause. Does it come and go, or are you always seeing it, now that it's happened?

Would you mind turning on diagnostic logging, and sending me a log that includes this error? It if it also included a full Visual Studio startup and opening the solution, that would be helpful. You can attach the log here or email it to ian at sourcegear dot com.
Ian Olsen
SourceGear

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Thu Mar 20, 2008 10:36 am

It seems to be everytime now since applying SP1. I'll enable the logging and see if that uncovers anything.

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Thu Mar 20, 2008 11:10 am

Here's a log; I typed into the file BundleItems.cs, which was not checked out:

3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] In SccProviderService.QueryEditFiles()
3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] Files: C:\source\MedQuotes.Business\MedQuotes.Business\MedQuotes.Business.csproj
3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] QueryFlag: QEF_AllowInMemoryEdits
3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] QueryFlag: QEF_ReportOnly
3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] File Status: MedQuotes.Business.csproj: Controlled, Exists on disk, Edited, Checked out by me on this machine.
3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] C:\source\MedQuotes.Business\MedQuotes.Business\MedQuotes.Business.csproj is approved for in-memory edit because it is checked out.
3/20/2008 1:07:19 PM <vsip ide>: [<No Name>:2152] Edit Verdict: QER_EditOK
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] In SccProviderService.QueryEditFiles()
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] Files: C:\source\MedQuotes.Business\MedQuotes.Business\BundleItems.cs
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] QueryFlag: QEF_AllowInMemoryEdits
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] QueryFlag: QEF_ReportOnly
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] File Status: BundleItems.cs: Controlled, Exists on disk, None, No relevant checkouts.
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] C:\source\MedQuotes.Business\MedQuotes.Business\BundleItems.cs is NOT approved for in-memory edit because it is not checked out and checkouts are required.
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] Edit Verdict: QER_NoEdit_UserCanceled
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] In SccProviderService.QueryEditFiles()
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] Files: C:\source\MedQuotes.Business\MedQuotes.Business\BundleItems.cs
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] QueryFlag: QEF_AllowInMemoryEdits
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] File Status: BundleItems.cs: Controlled, Exists on disk, None, No relevant checkouts.
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] C:\source\MedQuotes.Business\MedQuotes.Business\BundleItems.cs is NOT approved for in-memory edit because it is not checked out and checkouts are required.
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] C:\source\MedQuotes.Business\MedQuotes.Business\BundleItems.cs is NOT approved for in-memory edit because it is not checked out and checkouts are required.
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] Exclusively checking out $/dotnet/MedQuotes.Business/MedQuotes.Business/BundleItems.cs
3/20/2008 1:07:20 PM <eventengine>: [<No Name>:2152] Event fired: VaultClientOperationsLib.BulkMessageEvent
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] [Vault Message] Checking out file $/dotnet/MedQuotes.Business/MedQuotes.Business/BundleItems.cs
3/20/2008 1:07:20 PM <connection>: [<No Name>:2152] CheckOut started.
3/20/2008 1:07:20 PM <connection>: [<No Name>:2152] CheckOut finished.
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] RefreshCheckOutList started
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] Call GetCheckOutListChanges(Rep 2, Rev 20305, LastUpdt 11/14/2006 3:32:54 PM)
3/20/2008 1:07:20 PM <connection>: [<No Name>:2152] GetCheckOutListChanges started.
3/20/2008 1:07:20 PM <connection>: [<No Name>:2152] GetCheckOutListChanges finished.
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] GetCheckOutListChanges returned: Rev 20308 completeList False, newLastUpdt 11/14/2006 3:32:54 PM
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] New items:
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] (1 items)
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] FileID 2198:
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] Path $/dotnet/MedQuotes.Business/MedQuotes.Business/BundleItems.cs, User andyj, LockType 2, Hostname andyj/sta.medvt.us, LocalPath C:\source\MedQuotes.Business\MedQuotes.Business\BundleItems.cs, LockedWhen 3/20/2008 1:07:20 PM, MiscInfo
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] Release items:
3/20/2008 1:07:20 PM <checkoutlist>: [<No Name>:2152] (0 items)
3/20/2008 1:07:20 PM <eventengine>: [<No Name>:2152] Event fired: Forced Synchronous VaultClientOperationsLib.CheckOutsChangedEvent
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] In Vault.GetSolutionSpecificInternalChangeSet()
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] Leaving Vault.GetSolutionSpecificInternalChangeSet()
3/20/2008 1:07:20 PM <eventengine>: [<No Name>:2152] Forced Synchronous VaultClientOperationsLib.CheckOutsChangedEvent completed.
3/20/2008 1:07:20 PM <vsip ide>: [<No Name>:2152] Scheduled task for UI thread: UIThreadTask 'Void RefreshAllNodes()'
3/20/2008 1:07:20 PM <eventengine>: [<No Name>:2152] Forced Synchronous VaultClientOperationsLib.CheckOutsChangedEvent completed.
3/20/2008 1:07:20 PM <mrd>: [<No Name>:2152] Updating checkoutlist for pend of Rename: $/dotnet/MedQuotes.Business/MedQuotes.Business/Internal/LineItems/BundleSubLineItem.cs to $/dotnet/MedQuotes.Business/MedQuotes.Business/Internal/LineItems/BundleSubLineItemNode.cs
3/20/2008 1:07:20 PM <generic>: [<No Name>:2152] Exception applying changes to check out list:
3/20/2008 1:07:20 PM <generic>: [<No Name>:2152] [System.NullReferenceException: Object reference not set to an instance of an object.
at VaultClientOperationsLib.TreeCache.UpdateCheckOutListWithPendingChange(ChangeSetItem item, Boolean undo, VaultCheckOutItem[]& newItems, VaultCheckOutRelease[]& releaseItems)
at VaultClientOperationsLib.TreeCache.UpdateCheckOutListWithPendingChanges(ChangeSetItemColl items, Boolean undo, VaultCheckOutItem[]& newItems, VaultCheckOutRelease[]& releaseItems)
at VaultClientOperationsLib.TreeCache.UpdateCheckOutListWithInternalChangeSet(ChangeSetItemColl itemsToIgnore, VaultCheckOutItem[]& newItems, VaultCheckOutRelease[]& releaseItems)
at VaultClientOperationsLib.ClientInstance.RefreshCheckOutList(Boolean isRetry, ChangeSetItemColl committedItems)]Object reference not set to an instance of an object.
at VaultClientOperationsLib.TreeCache.UpdateCheckOutListWithPendingChange(ChangeSetItem item, Boolean undo, VaultCheckOutItem[]& newItems, VaultCheckOutRelease[]& releaseItems)
at VaultClientOperationsLib.TreeCache.UpdateCheckOutListWithPendingChanges(ChangeSetItemColl items, Boolean undo, VaultCheckOutItem[]& newItems, VaultCheckOutRelease[]& releaseItems)
at VaultClientOperationsLib.TreeCache.UpdateCheckOutListWithInternalChangeSet(ChangeSetItemColl itemsToIgnore, VaultCheckOutItem[]& newItems, VaultCheckOutRelease[]& releaseItems)
at VaultClientOperationsLib.ClientInstance.RefreshCheckOutList(Boolean isRetry, ChangeSetItemColl committedItems)

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Mar 20, 2008 12:12 pm

Thanks Andy. I have a hunch. Does this file still exist in the repository, at either name?

Code: Select all

$/dotnet/MedQuotes.Business/MedQuotes.Business/Internal/LineItems/BundleSubLineItem.cs
or
$/dotnet/MedQuotes.Business/MedQuotes.Business/Internal/LineItems/BundleSubLineItemNode.cs
Ian Olsen
SourceGear

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Thu Mar 20, 2008 12:38 pm

Yes, as the second name (with Node appended).

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Mar 20, 2008 12:52 pm

In the stand-alone client, in the pending changes pane, does the pending rename of that file appear red, with Namespace Conflict in the Details column?
Attachments
NamespaceConflict.PNG
NamespaceConflict.PNG (17.6 KiB) Viewed 10116 times
Ian Olsen
SourceGear

ajj3085
Posts: 228
Joined: Thu Feb 16, 2006 11:39 am

Post by ajj3085 » Thu Mar 20, 2008 1:07 pm

I've seen that before, but I don't believe that file was in a conflict. I did, after posting the log, commit the rename separately (I have a large change set that isn't ready to go yet) and now the error seems to have stopped.

As an aside, what is the resolution to the Namespace conflict? As I said, I've seen it before, but clicking on Resolve did nothing..

ian_sg
Posts: 787
Joined: Wed May 04, 2005 10:55 am
Location: SourceGear
Contact:

Post by ian_sg » Thu Mar 20, 2008 1:15 pm

I'm glad to hear the error's gone away.

We have found a case where pended move/renames that have namespace conflicts cause an object reference error. A fix will ship with 1.1.1.

When you right-click a namespace conflict and choose resolve, you should get a dialog giving you the option to un-pend the change or alter its path.
Ian Olsen
SourceGear

Post Reply