2 Replies Latest reply: Nov 7, 2012 11:43 PM by BikashBagaria RSS

    Issue with OIM API for IT Resource.

    Caddick
      Guys,

      I am using below code to fetch IT Resource Value, and its giving me below error. Same code is working fine with other method , but failing for this method in same class.

      Error :-

      2012-11-09 12:20:59,829 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: tcDataBase/getUser encounter some problems: Invalid user found: UNKNOWN
      java.lang.RuntimeException: Invalid user found: UNKNOWN
           at com.thortech.xl.server.tcDataBase.getUser(Unknown Source)
           at com.thortech.xl.ejb.beansimpl.tcITResourceInstanceOperationsBean.findITResourceInstances(Unknown Source)
           at com.thortech.xl.ejb.beansimpl.tcITResourceInstanceOperationsBean.findITResourceInstances(Unknown Source)
           at com.thortech.xl.ejb.beans.tcITResourceInstanceOperationsSession.findITResourceInstances(Unknown Source)
           at sun.reflect.GeneratedMethodAccessor222.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
           at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:237)
           at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
           at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:169)
           at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
           at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
           at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
           at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
           at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:168)
           at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
           at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
           at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)
           at org.jboss.ejb.Container.invoke(Container.java:960)
           at sun.reflect.GeneratedMethodAccessor133.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:155)
           at org.jboss.mx.server.Invocation.dispatch(Invocation.java:94)
           at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
           at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
           at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:659)
           at org.jboss.invocation.local.LocalInvoker$MBeanServerAction.invoke(LocalInvoker.java:169)
           at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:118)
           at org.jboss.invocation.InvokerInterceptor.invokeLocal(InvokerInterceptor.java:209)
           at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:195)
           at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:61)
           at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:70)
           at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:112)
           at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:100)
           at $Proxy575.findITResourceInstances(Unknown Source)
           at Thor.API.Operations.tcITResourceInstanceOperationsClient.findITResourceInstances(Unknown Source)
           at sun.reflect.GeneratedMethodAccessor220.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at Thor.API.Base.SecurityInvocationHandler$1.run(Unknown Source)
           at Thor.API.Security.LoginHandler.jbossLoginSession.runAs(Unknown Source)
           at Thor.API.Base.SecurityInvocationHandler.invoke(Unknown Source)
           at $Proxy800.findITResourceInstances(Unknown Source)
           at com.pldt.adapter.utils.OIMUtil.getITResourceParameters(OIMUtil.java:103)
           at com.pldt.adapter.ad.ActiveDirectoryProvisioning.disableADUser(ActiveDirectoryProvisioning.java:617)
           at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
           at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpDISABLEADUSER.DISABLEADUSER(adpDISABLEADUSER.java:107)
           at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpDISABLEADUSER.implementation(adpDISABLEADUSER.java:52)
           at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
           at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
           at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
           at com.thortech.xl.dataobj.tcScheduleItem.insertResponseMilestones(Unknown Source)
           at com.thortech.xl.dataobj.tcScheduleItem.eventPostUpdate(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
           at com.thortech.xl.adapterfactory.events.tcAdpEvent.updateSchItem(Unknown Source)
           at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeProcessAdapter(Unknown Source)
           at com.thortech.xl.adapterfactory.events.tcAdpEvent.finalizeAdapter(Unknown Source)
           at com.thortech.xl.adapterGlue.ScheduleItemEvents.adpPLDTSEPARATEDCHECK.implementation(adpPLDTSEPARATEDCHECK.java:55)
           at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
           at com.thortech.xl.dataobj.tcScheduleItem.runMilestoneEvent(Unknown Source)
           at com.thortech.xl.dataobj.tcScheduleItem.eventPostInsert(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.insert(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
           at com.thortech.xl.client.events.tcTriggerUserProcesses.insertMileStones(Unknown Source)
           at com.thortech.xl.client.events.tcTriggerUserProcesses.trigger(Unknown Source)
           at com.thortech.xl.client.events.tcUSRTriggerUserProcesses.implementation(Unknown Source)
           at com.thortech.xl.client.events.tcBaseEvent.run(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.runEvent(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.eventPostUpdate(Unknown Source)
           at com.thortech.xl.dataobj.tcUSR.eventPostUpdate(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
           at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.updateUserRecord(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.provisionObject(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.linkToUser(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.applyActionRules(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.checkDataSorted(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.eventPostUpdate(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.update(Unknown Source)
           at com.thortech.xl.dataobj.tcDataObj.save(Unknown Source)
           at com.thortech.xl.dataobj.tcTableDataObj.save(Unknown Source)
           at com.thortech.xl.dataobj.tcRCE.finishDataReceived(Unknown Source)
           at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.finishReconciliationEvent(Unknown Source)
           at com.thortech.xl.schedule.jms.reconOffline.ProcessOfflineReconMessages.execute(Unknown Source)
           at com.thortech.xl.schedule.jms.messagehandler.MessageProcessUtil.processMessage(Unknown Source)
           at com.thortech.xl.schedule.jms.messagehandler.ReconMessageHandlerMDB.onMessage(Unknown Source)
           at sun.reflect.GeneratedMethodAccessor223.invoke(Unknown Source)
           at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
           at java.lang.reflect.Method.invoke(Method.java:597)
           at org.jboss.invocation.Invocation.performCall(Invocation.java:359)
           at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:495)
           at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:158)
           at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:116)
           at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(CallValidationInterceptor.java:63)
           at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:121)
           at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:350)
           at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:181)
           at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:109)
           at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:205)
           at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
           at org.jboss.ejb.MessageDrivenContainer.internalInvoke(MessageDrivenContainer.java:402)
           at org.jboss.ejb.Container.invoke(Container.java:960)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:1092)
           at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:1392)
           at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:266)
           at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:906)
           at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:170)
           at org.jboss.mq.SpySession.run(SpySession.java:323)
           at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:194)
           at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
        • 1. Re: Issue with OIM API for IT Resource.
          Dhananjay Neeraj2
          I could never get rid of this issue... However I know the work around which we successfully used in the Production environment with the consent of the client:-

          2012-11-09 12:20:59,829 ERROR [XELLERATE.ACCOUNTMANAGEMENT] Class/Method: tcDataBase/getUser encounter some problems: Invalid user found: UNKNOWN
          java.lang.RuntimeException: Invalid user found: UNKNOWN


          Similarly, sometimes you might see Exception related to ANONYMOUS


          Workaround:

          Create 2 users UNKNOWN and ANONYMOUS in the Production environment... Make their passwords very complex..Set their challenge questions too, if any... . And forget about them.. You are never supposed to log in.... Make them SYS ADMIN...

          I found this work-around from some Meta Link 2 years back..
          • 2. Re: Issue with OIM API for IT Resource.
            BikashBagaria
            Since this is you custom code I would recommend looking at the article: 1109539.1 and 1243224.1. Can you try by restarting the server and trying the code which is failing? ANONYMOUS, UNKNOWN & USER users are special in JAAS context and we should be careful about creating those.

            -Bikash