Error when Add File/Folder

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

Moderator: SourceGear

Post Reply
amerino
Posts: 4
Joined: Fri Oct 31, 2008 6:22 am

Error when Add File/Folder

Post by amerino » Fri Oct 31, 2008 6:33 am

Hi, I've install and configure a server vault. I've no problem unless I try to upload a folder from the GUI, then I get a message as: "Object reference not set to an instance of an object".

When I try it in other server works fine, so I suppose that the problem is in server side. Any idea?

Thanks,

This is the last occurence in client side log:

31/10/2008 13:10 <generic>: [GUIClientWorkerThread:1912] [System.NullReferenceException: Referencia a objeto no establecida como instancia de un objeto.
en VaultClientOperationsLib.TreeCache.IsFilenameMergeable(String filename)
en VaultClientOperationsLib.ChangeSetItem_AddFile.CreateRequest(ClientInstance ci)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, String strChangeSetComment, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID, Int32[]& retBegEndTx)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl changeSetItems)
en VaultClientPresentationLib.GUIClientInstance.AddFilesFolders(RepositoryExplorerSelection selection, Boolean WorkingFolderMode, String[] defaultItems)
en VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)]Referencia a objeto no establecida como instancia de un objeto.
en VaultClientOperationsLib.TreeCache.IsFilenameMergeable(String filename)
en VaultClientOperationsLib.ChangeSetItem_AddFile.CreateRequest(ClientInstance ci)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, String strChangeSetComment, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID, Int32[]& retBegEndTx)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy, CommitType committype, VaultDateTime dateImport, Int32 nUserIDImport, Int64& nRevID)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl givenItems, Boolean keepCheckedOut, Boolean removeLocalCopy)
en VaultClientOperationsLib.ClientInstance.Commit(ChangeSetItemColl changeSetItems)
en VaultClientPresentationLib.GUIClientInstance.AddFilesFolders(RepositoryExplorerSelection selection, Boolean WorkingFolderMode, String[] defaultItems)
en VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)

Stack Trace:
en VaultClientPresentationLib.GUIClientInstance.ShowCommandException(Exception e, IWin32Window dialogOwner)
en VaultClientPresentationLib.GUIClientThread.ProcessCommand(GUIClientThreadCommand command, GUIClientThreadCommandResult& outputResult)
en VaultClientPresentationLib.GUIClientThread.Start()
en System.Threading.ThreadHelper.ThreadStart_Context(Object state)
en System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
en System.Threading.ThreadHelper.ThreadStart()

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error when Add File/Folder

Post by Beth » Fri Oct 31, 2008 9:37 am

Could you look for a corresponding error in the Vault Server Log and post it?

What might help is if I could see both logs entirely. You can either post them here and remove them later, or you can send an email to support at sourcegear.com (attn: Beth) with those files attached and a link to this forum thread.
Beth Kieler
SourceGear Technical Support

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: Error when Add File/Folder

Post by jeremy_sg » Fri Oct 31, 2008 9:45 am

I'm working with Antonio offline already.

hs: 214055
Subscribe to the Fortress/Vault blog

amerino
Posts: 4
Joined: Fri Oct 31, 2008 6:22 am

Re: Error when Add File/Folder

Post by amerino » Mon Nov 03, 2008 2:04 am

This is the today occurences. I try login with user "amp" and login failed, so I try with "admin" and goes on.
----03/11/2008 08:38 sgvaultsystem--()--
System Started
Version 4.1.3.18336
Cache Level = 1
DataBase Buffer Size (KB) = 256
LogFile Path = C:\WINNT\Temp\sgvault
Log Level = Quiet
Archive Log = Weekly
ReverseDNS Lookup = True
Maximum HTTP Request Length = 102400
Overwrite Log on Startup = False
Session Timeout = 4320
SGVault Working Directory = C:\WINNT\Temp
SGVault Server URL =
Identity = BALEARES\ASPNET
----03/11/2008 08:38 amp--AMERINO(1.0.0.35)--SSL Disabled Rolling Back a transaction en VaultServiceSQL.VaultSqlConn.RollbackTransaction()
en VaultServiceAPILib.VaultServiceAPI.Login(VaultSqlConn conn, Boolean allowwebonly, String strLogin, String strDecryptedPassword, String strHostname, String strSessionID, String strDomain, String& strToken, VaultUser& vu, Int32& nValidUserAttempts)
en VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String& strAuthToken, String strDomain)
en VaultServiceAPILib.VaultServiceAPISystem.DoLogin(Boolean allowwebonlyusers, Boolean bAdminLogin, HttpSessionState hss, String strHostname, String strLogin, String strPassword, String strRMKey, String& strAuthToken)
en VaultService.VaultService.Login(String strHostname, Boolean bUseFullFiles, String username, String strEncryptedPassword, String strRMKey, String& strAuthToken)
en System.RuntimeMethodHandle._InvokeMethodFast(Object target, Object[] arguments, SignatureStruct& sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
en System.RuntimeMethodHandle.InvokeMethodFast(Object target, Object[] arguments, Signature sig, MethodAttributes methodAttributes, RuntimeTypeHandle typeOwner)
en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture, Boolean skipVisibilityChecks)
en System.Reflection.RuntimeMethodInfo.Invoke(Object obj, BindingFlags invokeAttr, Binder binder, Object[] parameters, CultureInfo culture)
en System.Web.Services.Protocols.LogicalMethodInfo.Invoke(Object target, Object[] values)
en System.Web.Services.Protocols.WebServiceHandler.Invoke()
en System.Web.Services.Protocols.WebServiceHandler.CoreProcessRequest()
en System.Web.Services.Protocols.SyncSessionlessHandler.ProcessRequest(HttpContext context)
en System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
en System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
en System.Web.HttpApplication.ApplicationStepManager.ResumeSteps(Exception error)
en System.Web.HttpApplication.System.Web.IHttpAsyncHandler.BeginProcessRequest(HttpContext context, AsyncCallback cb, Object extraData)
en System.Web.HttpRuntime.ProcessRequestInternal(HttpWorkerRequest wr)
en System.Web.HttpRuntime.ProcessRequestNoDemand(HttpWorkerRequest wr)
en System.Web.Hosting.ISAPIRuntime.ProcessRequest(IntPtr ecb, Int32 iWRType)

----03/11/2008 08:38 amp--AMERINO(1.0.0.35)--SSL Disabled Login failed: FailInvalidPassword
----03/11/2008 08:38 admin--AMERINO(1.0.0.35)--SSL Disabled Login

jeremy_sg
Posts: 1821
Joined: Thu Dec 18, 2003 11:39 am
Location: Sourcegear
Contact:

Re: Error when Add File/Folder

Post by jeremy_sg » Mon Nov 03, 2008 9:22 am

This Rolling Back a Transaction message for a failed login attempt is not an error. I put extra logging when rolling back a transaction, since we do that sometimes when there is a real error. This is just a normal error (invalid password) that writes out a scarier sounding "Rolling Back a Transaction" message in the log file.
Subscribe to the Fortress/Vault blog

amerino
Posts: 4
Joined: Fri Oct 31, 2008 6:22 am

Re: Error when Add File/Folder

Post by amerino » Mon Nov 03, 2008 10:06 am

I know it. I posted it because a user request it, so that everybody could see both logs.

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error when Add File/Folder

Post by Beth » Mon Nov 03, 2008 2:02 pm

Thanks for the update. Sorry for the misunderstanding.
Beth Kieler
SourceGear Technical Support

amerino
Posts: 4
Joined: Fri Oct 31, 2008 6:22 am

Re: Error when Add File/Folder

Post by amerino » Tue Nov 04, 2008 10:28 am

The problem has been solved. I did set the Mergeable file list empty and this is not correct.

Thanks,

Beth
Posts: 8550
Joined: Wed Jun 21, 2006 8:24 pm
Location: SourceGear
Contact:

Re: Error when Add File/Folder

Post by Beth » Tue Nov 04, 2008 1:26 pm

Thanks for the update.
Beth Kieler
SourceGear Technical Support

Post Reply