11 Replies Latest reply: Feb 11, 2014 7:13 AM by Kumar Lakshmipathy RSS

LoadLookupManager Error

Kumar Lakshmipathy Explorer
Currently Being Moderated

Hi ,

 

We have a custom program written in 6.0 to load a spec programatically by using the pkid but when this program is run with 6.1 API we are getting error.

 

The method we are using to load the spec :

 

ISpecificationService specService = mHelper.GetSpecService();

specService.Load(PKID) //  Fails while loading

 

Any idea on how to resolve this issue.

 

Error:

 

"   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.LoadLookupManager(ILookupServiceManagerDO lookupServiceManagerDO)\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.AddLookupManager(ILookupServiceManagerDO lsDO)\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.LoadLookupManagers()\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.Init_Internal()\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.get_LookupManagersByManagerID()\r\n   at Xeno.Prodika.Services.LookupService.LookupService.get_LookupManagersByManagerID()\r\n   at Xeno.Prodika.Services.LookupService.LookupService.GetLookupManagerByManagerID(String ManagerID)\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.LinearProcessSimplePeerBase.GetStatusFromID(String statusId)\r\n   at Xeno.Prodika.GSMLib.Workflow.SpecProcessPeer.get_Status()\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.LinearProcessSimplePeerBase.CreateActivityForCurrentState()\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.LinearProcessSimplePeerBase.Bind(ILinearWorkflowManager wfmgr, ILinearProcess process)\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.ProxyLinearProcess..ctor(ILinearWorkflowManagerAdmin wfmgr, ILinearProcessTemplate processTemplate, ILinearProcessPeer peer)\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.ProxyLinearProcessManager.Load(ILinearProcessLoadArg arg)\r\n   at Xeno.LinearWorkflow.WorkflowManager.LinearWorkflowManagerBase.LoadProcess(ILinearProcessLoadArg arg)\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.LoadLinearProcess()\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.Load_Internal(String specID, Boolean throwOnError, IXDataObject newObj)\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.Load(String specID, Boolean throwOnError)\r\n   at PicassoCalcs.frmLaunchCalcs.ProcessSpec(String PKID, progressLog pLog) in C:\\xfile1.cs:line 143"

  • 1. Re: LoadLookupManager Error
    Ivy Zhu Journeyer
    Currently Being Moderated

    Could you tell us the detailed error message?

    if the error message include the ManagerID, please run below script, and send us the script result.

    select * from commonLookupServiceManagers where ManagerID ='@managerID';

  • 2. Re: LoadLookupManager Error
    Kumar Lakshmipathy Explorer
    Currently Being Moderated

    The error we are getting is

     

    [System.ApplicationException] = {"Error loading lookup manager for 'SecurityClassificationMgr'"}

    Data = {System.Collections.ListDictionaryInternal}

    InnerException = {"Object reference not set to an instance of an object."}

    Message = "Error loading lookup manager for 'SecurityClassificationMgr'"

    Source = "GeneralServices"

    StackTrace = "   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.LoadLookupManager(ILookupServiceManagerDO lookupServiceManagerDO)\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.AddLookupManager(ILookupServiceManagerDO lsDO)\r\n   at X...

    TargetSite = {Xeno.Prodika.Services.LookupService.ILookupManager LoadLookupManager(Xeno.Prodika.Services.LookupService.ILookupServiceManagerDO)}

     

    i ran the query with Managerid = SecurityClassificationMgr, and getting below result

     

    pkid FactoryClassname ManagerID ConfigValues Private DexVersion

    21763F9EE875-59FB-46A2-BEDF-982A2207E15B Xeno.Prodika.ObjectLevelSecurity.LookupManager.OLSConfigurableLookupManagerFactory,ObjectLevelSecurity SecurityClassificationMgr ItemDO=SecurityML,Filter=fkParent like '5656%',ItemPropertyList=fkParent|Name,keyitemproperty=fkParent,SortItemProperty=Name,ItemFactory=Xeno.Prodika.Services.LookupService.TranslatingLookup.KeyValPairLookupItemFactory 0 0

     

    Regards,
    Kumar

  • 3. Re: LoadLookupManager Error
    Ron M Pro
    Currently Being Moderated

    Make sure you have the ObjectLevelSecurity.dll assembly included

  • 4. Re: LoadLookupManager Error
    Kumar Lakshmipathy Explorer
    Currently Being Moderated

    Even after i added the  ObjectLevelSecurity.dll its not working, its giving the same error. However when the updated the factory class name for 'SecurityClassificationMgr' to

    (FactoryClassname = 'Xeno.Prodika.Services.LookupService.TranslatingLookup.TranslatingLookupManagerFactory' ). It started working without any error.

    But i am not sure if its right way , can you please confirm.

     

    Regards,
    Kumar

  • 5. Re: LoadLookupManager Error
    Ivy Zhu Journeyer
    Currently Being Moderated

    The config of FactoryClassname = 'Xeno.Prodika.Services.LookupService.TranslatingLookup.TranslatingLookupManagerFactory is used before 6110 version. In 6110 version and after 6110, the config is updated to FactoryClassname ='Xeno.Prodika.ObjectLevelSecurity.LookupManager.OLSConfigurableLookupManagerFactory,ObjectLevelSecurity'. So, please let me which version you are using. Thanks.

  • 6. Re: LoadLookupManager Error
    Kumar Lakshmipathy Explorer
    Currently Being Moderated

    We are using 6.1 , but the custom application is upgraded from 6.0 to 6.1, Are you saying that we have to Implement the Objectlevelsecurity in our code. If so can you please explain how to do it.

     

    Regards,
    Kumar

  • 7. Re: LoadLookupManager Error
    Ron M Pro
    Currently Being Moderated

    Kumar,

    Is your custom app a stand-alone application, stand-alone web application, or is it something hosted in PLM4P? When you say you added ObjectLevelSecurity.dll, do you mean you added it to your stand alone app alongside the other required DLLs?

  • 8. Re: LoadLookupManager Error
    Kumar Lakshmipathy Explorer
    Currently Being Moderated

    Ron,

     

    Its a stand alone application , but its not a new application it was working fine in 6.0 version . But yes i referenced the objectlevelsecurity.dll along other dlls but even then its giving the same security error.

     

    at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.LoadLookupManager(ILookupServiceManagerDO lookupServiceManagerDO)\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.AddLookupManager(ILookupServiceManagerDO lsDO)\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.LoadLookupManagers()\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.Init_Internal()\r\n   at Xeno.Prodika.Services.LookupService.LookupServiceCacheSlot.get_LookupManagersByManagerID()\r\n   at Xeno.Prodika.Services.LookupService.LookupService.get_LookupManagersByManagerID()\r\n   at Xeno.Prodika.Services.LookupService.LookupService.GetLookupManagerByManagerID(String ManagerID)\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.LinearProcessSimplePeerBase.GetStatusFromID(String statusId)\r\n   at Xeno.Prodika.GSMLib.Workflow.SpecProcessPeer.get_Status()\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.LinearProcessSimplePeerBase.CreateActivityForCurrentState()\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.LinearProcessSimplePeerBase.Bind(ILinearWorkflowManager wfmgr, ILinearProcess process)\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.ProxyLinearProcess..ctor(ILinearWorkflowManagerAdmin wfmgr, ILinearProcessTemplate processTemplate, ILinearProcessPeer peer)\r\n   at Xeno.LinearWorkflow.WorkflowObjects.Proxy.ProxyLinearProcessManager.Load(ILinearProcessLoadArg arg)\r\n   at Xeno.LinearWorkflow.WorkflowManager.LinearWorkflowManagerBase.LoadProcess(ILinearProcessLoadArg arg)\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.LoadLinearProcess()\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.Load_Internal(String specID, Boolean throwOnError, IXDataObject newObj)\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.Load(String specID, Boolean throwOnError)\r\n   at Xeno.Prodika.Services.Specification.SpecificationService.Load(String specID)\r\n   at PicassoCalcs.frmLaunchCalcs.ProcessSpec(String PKID, progressLog pLog) in C:\\xfile.cs:line 143"

  • 9. Re: LoadLookupManager Error
    Kumar Lakshmipathy Explorer
    Currently Being Moderated

    The problem is not yet solved, i was happy earlier thinking it was. But looks like one of our resources went and updated the factory class name in the database. Which made it look like it was working. The question is still open.

     

    Regards,

    Kumar

  • 10. Re: LoadLookupManager Error
    Prashant J Newbie
    Currently Being Moderated

    Kumar

     

    I think you might be running into this issue because you have not recompiled all your extensions on v6.1.  When you upgrade from v6.0 to v6.1, you to potentially recompile all your custom DLLs using the new libraries from v6.1.  In many cases you do not have to, but if you are loading these DLLs into your custom code then you have to.

     

    If you have not already done so, try to recompile your customization / extension DLLs using v6.1 DLLs and redeploy the new DLLs.

     

    From the stack trace, this looks like the Calc Program that is running into issues.  Just recompile the Calc Program using v6.1 DLLs - it should work.

    You may have to do the same thing for the Nautilus integration as well as for the HAZOX integration.

     

    Regards

    Prashant J

  • 11. Re: LoadLookupManager Error
    Kumar Lakshmipathy Explorer
    Currently Being Moderated

    Thanks for all your assistance, we were able to resolve this issue. The issue was that factory reference to Object level security dll was incorrect. And when we update the factory reference in the config file the issue related to security got fixed.

    Regards,
    Kumar

Legend

  • Correct Answers - 10 points
  • Helpful Answers - 5 points