- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在 OIM 中使用 EntityManager API 来更新属性。下面是代码。但我在“entMgr.modifyEntity(“User”,userLogin,mapAttrs);”处遇到异常。这是因为使用用户登录吗?我在运行时从适配器获取用户登录,它是字符串。有人可以帮我解决这个问题吗?
代码:
HashMap<String, Object> mapAttrs = new HashMap<String, Object>();
mapAttrs.put("Street", response);
EntityManager entMgr = Platform.getService(EntityManager.class);
logger.info("EntityManager is intialized"+ entMgr);
logger.info("User Login::"+userLogin);
try {
logger.info("Entered into try");
entMgr.modifyEntity("User",userLogin, mapAttrs);
logger.info("Attribute Updation is succesfull");
response="SUCCESS";
logger.info("Response::"+ response);
return response;
} catch (InvalidDataTypeException e) {
logger.info("InvalidDataTypeException has been encountered");
e.printStackTrace();
response="FAILURE";
return response;
} catch (InvalidDataFormatException e) {
// TODO Auto-generated catch block
logger.info("InvalidDataFormatException has been encountered");
e.printStackTrace();
response="FAILURE";
return response;
} catch (NoSuchEntityException e) {
logger.info("NoSuchEntityException has been encountered");
// TODO Auto-generated catch block
e.printStackTrace();
response="FAILURE";
return response;
} catch (StaleEntityException e) {
logger.info("StaleEntityException has been encountered");
// TODO Auto-generated catch block
e.printStackTrace();
response="FAILURE";
return response;
} catch (UnsupportedOperationException e) {
logger.info("UnsupportedOperationException has been encountered");
// TODO Auto-generated catch block
e.printStackTrace();
response="FAILURE";
return response;
} catch (UnknownAttributeException e) {
logger.info("UnknownAttributeException has been encountered");
// TODO Auto-generated catch block
e.printStackTrace();
response="FAILURE";
return response;
} catch (ProviderException e) {
logger.info("ProviderException has been encountered");
// TODO Auto-generated catch block
e.printStackTrace();
response="FAILURE";
return response;
}
}
异常:
java.lang.reflect.InvocationTargetException
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
Caused by: java.lang.NumberFormatException: For input string: "BYUNJ"
at java.lang.NumberFormatException.forInputString(NumberFormatException.java:65)
at java.lang.Long.parseLong(Long.java:441)
at java.lang.Long.parseLong(Long.java:483)
at oracle.iam.oimdataproviders.impl.OIMUserDataProvider.modify(OIMUserDataProvider.java:614)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.modifyEntity(EntityManagerImpl.java:607)
at oracle.iam.platform.entitymgr.impl.EntityManagerImpl.modifyEntity(EntityManagerImpl.java:564)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149)
at oracle.iam.platform.utils.DMSMethodInterceptor.invoke(DMSMethodInterceptor.java:35)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy362.modifyEntity(Unknown Source)
com.thortech.xl.dataobj.util.tcAdapterTaskException: For input string: "BYUNJ"
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpHRBPGROUPASSIGN.ASSIGNHRBPGROUP(adpHRBPGROUPASSIGN.java:121)
at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpHRBPGROUPASSIGN.implementation(adpHRBPGROUPASSIGN.java:60)
at com.thortech.xl.client.events.tcBaseEvent.run(tcBaseEvent.java:221)
at com.thortech.xl.dataobj.tcDataObj.runEvent(tcDataObj.java:2496)
at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(tcScheduleItem.java:3437)
at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(tcScheduleItem.java:811)
at com.thortech.xl.dataobj.tcDataObj.insert(tcDataObj.java:606)
at com.thortech.xl.dataobj.tcDataObj.save(tcDataObj.java:478)
at com.thortech.xl.ejb.beansimpl.tcProvisioningOperationsBean.retryTasks(tcProvisioningOperationsBean.java:4635)
at Thor.API.Operations.tcProvisioningOperationsIntfEJB.retryTasksx(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at com.bea.core.repackaged.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:310)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182)
at com.bea.core.repackaged.springframework.aop.framework.ReflectiveMethodInvoca
最佳答案
我想我从未尝试过使用 EntityManager 或 UserManager 进行用户登录。请改用 usr_key。
关于java - OIM 中的实体管理器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50961698/
是否可以根据权利请求提供帐户,或者 OIM 期望帐户在权利请求之前已经存在? 我已经有一个应用程序实例,它有 2-3 个权利 当 OIM 用户请求对特定应用程序实例的授权时,我假设该 OIM 用户必须
数据库查询以检查用户的帐户状态 数据库查询以检查用户的授权状态 数据库查询以检查角色和访问策略映射。 如果有人有这些疑问,请告诉我? 最佳答案 帐户状态 SELECT usr.usr_login,ob
我正在 OIM 中使用 EntityManager API 来更新属性。下面是代码。但我在“entMgr.modifyEntity(“User”,userLogin,mapAttrs);”处遇到异常。
数据库查询以检查用户的帐户状态 数据库查询以检查用户的授权状态 数据库查询以检查角色和访问策略映射。 如果有人有这些疑问,请告诉我? 最佳答案 帐户状态 SELECT usr.usr_login,ob
我创建了一个自定义属性并将其值更新为“true”。现在我正在尝试获取自定义属性值为“true”的所有用户。我正在尝试使用下面的 API,但我只能传递 OOTB 属性。请帮忙。 列表 listOfSta
我需要从第三方应用程序进行 oim 用户身份验证。我正在寻找相同的 OIM API。 最佳答案 在 OIM 中,身份验证被卸载到应用程序服务器(即 WebLogic),因此您必须添加一个身份验证提供程
在 OIM 11gR2 PS3 中,创建用户时我想保存在请求的理由框中输入的字符串。创建用户时,我没有设置工作流程,因为我不需要任何批准。你知道有什么方法可以做到这一点吗? 谢谢 最佳答案 我发现,检
在打印流程任务信息时,我得到了列Process Instance.Task Details.Row Version 的一些非人类可读值 当我通过 API 检查列类型时 tcResultSet.getC
我创建了一个基于 ICF 的平面文件连接器,它使用 REST Web 服务从文件中读取/写入数据。我使用 jersey 实现 1.6 来编写 Web 服务和将调用该 Web 服务的 java 客户端。
我正在尝试使用部署向导安装 OIM 11gPS2。 idmrockstar 对这个过程有很好的描述: http://idmrockstar.com/blog/2014/07/oracle-identi
我正在使用 oracle OIM 11g api(在 oracle.iam 包中)。我使用类 oracle.iam.platform.OIMClient 来获取所有 OIM 客户端服务,如 UserM
我们有一个场景,我们必须为 OIM 11G R2 PS3 中的少数用户分配部分管理员角色。 OIM 中可用的 OOTB 功能不符合要求。我想知道是否有任何方法可以在某处添加自定义功能,以便我可以在将其
尝试此代码 Account a = findAccountIdByUID(uid); ProvisioningService provService = oimClient.getService
我使用 IKVM 将 Oracle 的 OIMClient 库转换为 dll。不想用java,想用.NET,但是没有OIM for .NET的API。 如果有人使用过 OIM,那么您要做的就是创建 O
我是一名优秀的程序员,十分优秀!