阅读:1764 回复:2
hugeng
5

帖子

8

跟帖

1037

积分

中级榴莲
中级榴莲

增加用户时,提示用户编码重复!

楼主#
更多 发布于:2017-07-16 23:05
目前安装了v10准备测试,流程还没有跑,只是在做用户、部门资料的同步。
之前增加了一个登录账号为  lhy 的普通用户,后来将此用户删除了。


再次增加 登录账号为 lhy 的用户时,提示 用户编码重复!


查看H3数据库表OT_USER,发现有code为lhy的用户记录还在,但是在后台管理就是无法搜索到lhy的用户。
删除表中的记录,可是还是提示  用户编码重复!
武汉技术支持团队
40

帖子

1181

跟帖

3860

积分

论坛版主
论坛版主
1楼#
发布于:2017-07-17 11:55
手动操作数据库后,需要重启引擎服务
hugeng
5

帖子

8

跟帖

1037

积分

中级榴莲
中级榴莲
2楼#
发布于:2017-07-17 12:02
重启h3服务后,在后台管理创建员工,成功。

但是,此员工账号登录portal,如果密码随便乱输,提示用户名密码错误。
输入正确密码,页面无反应,浏览器调试分析发现返回的是:
<!DOCTYPE html>
<html>
    <head>
        <title>值不能为 null。<br>参数名: key</title>
        <meta name="viewport" content="width=device-width" />
        <style>
         body {font-family:"Verdana";font-weight:normal;font-size: .7em;color:black;}
         p {font-family:"Verdana";font-weight:normal;color:black;margin-top: -5px}
         b {font-family:"Verdana";font-weight:bold;color:black;margin-top: -5px}
         H1 { font-family:"Verdana";font-weight:normal;font-size:18pt;color:red }
         H2 { font-family:"Verdana";font-weight:normal;font-size:14pt;color:maroon }
         pre {font-family:"Consolas","Lucida Console",Monospace;font-size:11pt;margin:0;padding:0.5em;line-height:14pt}
         .marker {font-weight: bold; color: black;text-decoration: none;}
         .version {color: gray;}
         .error {margin-bottom: 10px;}
         .expandable { text-decoration:underline; font-weight:bold; color:navy; cursor:hand; }
         @media screen and (max-width: 639px) {
          pre { width: 440px; overflow: auto; white-space: pre-wrap; word-wrap: break-word; }
         }
         @media screen and (max-width: 479px) {
          pre { width: 280px; }
         }
        </style>
    </head>

    <body bgcolor="white">

            <span><H1>“/Portal”应用程序中的服务器错误。<hr width=100% size=1 color=silver></H1>

            <h2> <i>值不能为 null。<br>参数名: key</i> </h2></span>

            <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

            <b> 说明: </b>执行当前 Web 请求期间,出现未经处理的异常。请检查堆栈跟踪信息,以了解有关该错误以及代码中导致错误的出处的详细信息。

            <br><br>

            <b> 异常详细信息: </b>System.ArgumentNullException: 值不能为 null。<br>参数名: key<br><br>

            <b>源错误:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code>

执行当前 Web 请求期间生成了未经处理的异常。可以使用下面的异常堆栈跟踪信息确定有关异常原因和发生位置的信息。</code>

                  </td>
               </tr>
            </table>

            <br>

            <b>堆栈跟踪:</b> <br><br>

            <table width=100% bgcolor="#ffffcc">
               <tr>
                  <td>
                      <code><pre>

[ArgumentNullException: 值不能为 null。
参数名: key]

[TargetInvocationException: 调用的目标发生了异常。]
   OThinker.Clusterware.LogicUnitConnection.Invoke(String ModuleName, String MethodName, Object[] Parameters, Object[]&amp; Parameters2) +712
   OThinker.H3.Client.OrganizationClient.GetParents(String ObjectID, UnitType ParentUnitType, Boolean Recursive, State State) +275
   OThinker.H3.Controllers.UserValidator.ValidateAdministrator() in d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Web\UserValidator.cs:588
   OThinker.H3.Controllers.UserValidator.ValidateFunctionAcl(String FunctionCode, AclType AclType, Boolean WithinCache) in d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Web\UserValidator.cs:1299
   OThinker.H3.Controllers.UserValidator.LoadRunnableFunctions() in d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Web\UserValidator.cs:1461
   OThinker.H3.Controllers.OrganizationController.getFunctionApps() in d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Controllers\Organization\OrganizationController.cs:350
   OThinker.H3.Controllers.OrganizationController.getCurrentUser() in d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Controllers\Organization\OrganizationController.cs:318
   OThinker.H3.Controllers.OrganizationController.LoginIn(String userCode, String password) in d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Controllers\Organization\OrganizationController.cs:63
   lambda_method(Closure , ControllerBase , Object[] ) +179
   System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters) +242
   System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters) +39
   System.Web.Mvc.Async.AsyncControllerActionInvoker.&lt;BeginInvokeSynchronousActionMethod&gt;b__36(IAsyncResult asyncResult, ActionInvocation innerInvokeState) +12
   System.Web.Mvc.Async.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult) +139
   System.Web.Mvc.Async.AsyncInvocationWithFilters.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3c() +112
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass45.&lt;InvokeActionMethodFilterAsynchronouslyRecursive&gt;b__3e() +452
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass30.&lt;BeginInvokeActionMethodWithFilters&gt;b__2f(IAsyncResult asyncResult) +15
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass28.&lt;BeginInvokeAction&gt;b__19() +37
   System.Web.Mvc.Async.&lt;&gt;c__DisplayClass1e.&lt;BeginInvokeAction&gt;b__1b(IAsyncResult asyncResult) +241
   System.Web.Mvc.Controller.&lt;BeginExecuteCore&gt;b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState) +29
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
   System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult) +53
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +19
   System.Web.Mvc.MvcHandler.&lt;BeginProcessRequest&gt;b__4(IAsyncResult asyncResult, ProcessRequestState innerState) +51
   System.Web.Mvc.Async.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult) +111
   System.Web.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute() +606
   System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean&amp; completedSynchronously) +288
</pre></code>

                  </td>
               </tr>
            </table>

            <br>

            <hr width=100% size=1 color=silver>

            <b>版本信息:</b>&nbsp;Microsoft .NET Framework 版本:4.0.30319; ASP.NET 版本:4.0.30319.34009

            </font>

    </body>
</html>
<!--
[ArgumentNullException]: 值不能为 null。
参数名: key
   在 System.Collections.Generic.Dictionary`2.FindEntry(TKey key)
   在 OThinker.Data.ThreadSafeDictionary`2.get_Item(TKey key)
   在 OThinker.Organization.x6b732ea74df20930.x52e063d01e879d93(Unit x6f11dec328a15d44, UnitType xb68797bca6ef12b2, Boolean x296502f587554156, State xffb3238a8fd59aa7)
   在 OThinker.Organization.xcc70b48911e528b1.GetParentUnits(String UnitID, UnitType ParentUnitType, Boolean Recursive, State State)
   在 OThinker.Organization.xcc70b48911e528b1.GetParents(String UnitID, UnitType ParentUnitType, Boolean Recursive, State State)
   在 OThinker.Organization.Organizer.GetParents(String UnitID, UnitType ParentUnitType, Boolean Recursive, State State)
[TargetInvocationException]: 调用的目标发生了异常。

Server stack trace:
   在 OThinker.Clusterware.xea93bc06112e2031.InvokeMethod_I(String InternalTokenId, Boolean IsClientInvoking, String LogicUnitCode, String CFName, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
   在 OThinker.Clusterware.x9ea53fd36a4b0781.InvokeMethod_O(String LogicUnitCode, AuthenticationInfo AuthenticationInfo, String& NewTokenId, String CurrentUICultureName, String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
   在 System.Runtime.Remoting.Messaging.StackBuilderSink._PrivateProcessMessage(IntPtr md, Object[] args, Object server, Object[]& outArgs)
   在 System.Runtime.Remoting.Messaging.StackBuilderSink.SyncProcessMessage(IMessage msg)

Exception rethrown at [0]:
   在 OThinker.Clusterware.LogicUnitConnection.Invoke(String ModuleName, String MethodName, Object[] Parameters, Object[]& Parameters2)
   在 OThinker.H3.Client.OrganizationClient.GetParents(String ObjectID, UnitType ParentUnitType, Boolean Recursive, State State)
   在 OThinker.H3.Controllers.UserValidator.ValidateAdministrator() 位置 d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Web\UserValidator.cs:行号 588
   在 OThinker.H3.Controllers.UserValidator.ValidateFunctionAcl(String FunctionCode, AclType AclType, Boolean WithinCache) 位置 d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Web\UserValidator.cs:行号 1299
   在 OThinker.H3.Controllers.UserValidator.LoadRunnableFunctions() 位置 d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Web\UserValidator.cs:行号 1461
   在 OThinker.H3.Controllers.OrganizationController.getFunctionApps() 位置 d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Controllers\Organization\OrganizationController.cs:行号 350
   在 OThinker.H3.Controllers.OrganizationController.getCurrentUser() 位置 d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Controllers\Organization\OrganizationController.cs:行号 318
   在 OThinker.H3.Controllers.OrganizationController.LoginIn(String userCode, String password) 位置 d:\工作目录\钱程\H3 BPM(v10.0)\5.系统开发\UI\OThinker.H3.Controller\Controllers\Organization\OrganizationController.cs:行号 63
   在 lambda_method(Closure , ControllerBase , Object[] )
   在 System.Web.Mvc.ReflectedActionDescriptor.Execute(ControllerContext controllerContext, IDictionary`2 parameters)
   在 System.Web.Mvc.ControllerActionInvoker.InvokeActionMethod(ControllerContext controllerContext, ActionDescriptor actionDescriptor, IDictionary`2 parameters)
   在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<BeginInvokeSynchronousActionMethod>b__36(IAsyncResult asyncResult, ActionInvocation innerInvokeState)
   在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncResult`2.CallEndDelegate(IAsyncResult asyncResult)
   在 System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3c()
   在 System.Web.Mvc.Async.AsyncControllerActionInvoker.AsyncInvocationWithFilters.<>c__DisplayClass45.<InvokeActionMethodFilterAsynchronouslyRecursive>b__3e()
   在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass30.<BeginInvokeActionMethodWithFilters>b__2f(IAsyncResult asyncResult)
   在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass1e.<>c__DisplayClass28.<BeginInvokeAction>b__19()
   在 System.Web.Mvc.Async.AsyncControllerActionInvoker.<>c__DisplayClass1e.<BeginInvokeAction>b__1b(IAsyncResult asyncResult)
   在 System.Web.Mvc.Controller.<BeginExecuteCore>b__1d(IAsyncResult asyncResult, ExecuteCoreState innerState)
   在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   在 System.Web.Mvc.Controller.EndExecuteCore(IAsyncResult asyncResult)
   在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   在 System.Web.Mvc.MvcHandler.<BeginProcessRequest>b__4(IAsyncResult asyncResult, ProcessRequestState innerState)
   在 System.Web.Mvc.Async.AsyncResultWrapper.WrappedAsyncVoid`1.CallEndDelegate(IAsyncResult asyncResult)
   在 System.Web.HttpApplication.CallHandlerExecutionStep.System.Web.HttpApplication.IExecutionStep.Execute()
   在 System.Web.HttpApplication.ExecuteStep(IExecutionStep step, Boolean& completedSynchronously)
-->
游客

返回顶部