Object as Key in Dictionary

Hi,
In what scenarios classes or object types should be used as a key in dictionary? Is this really a good programming practice?
I think not (as I can't think of any scenario where it's must) , please explain. 
Regards, Vinay

 "if I have to add different type of object to one collection as key, and commands as values"
So at any point of time, one object will have one command asociated with it... I still would not like to keep it inside dictionary. I can have command be as a property of object
itself (Since the command is directly associated with the object... so there is no harm in keeping it as a part of the object itsef)...
Sorry, but in my view; this does not add any value to my programm.
Agree with one point which it says "depends on the idea and programming style"... In the real world "OOPs" I was trying to understand how using object in the dictionary gives me
any kind of distinct advantage to my programm... So for example... adding supercharged engines to a car make it more powerful than a normal engine and ofcource to add power power to the same volume of the engine u need to have supercharging (may be turbocharging
but yep... u need this)... else some one will have to increase the engine size!!!!
With all the examples given above; I always have an alternative which in my view is better... or m more convinced to implement it other way around rather than storing
the object as key.
When some one speaks about performance benefit of keeping object ("Which by nature are more complex than value types") as key rather than containing the value in the object
(though the dictionary will differentiate only on the basis of hashmap of the object)... I am not fully convinced that this will add to any performance gain over keep the object as value rather than key or rather keep the object in a non-keyvalue pair collection
if someonly has to simply loop and achieve something.
The reason why I started this debate was; since the object as a whole is quite complex; and property or unique reference is quite simple to identify the object. Why would some
one like the object to classify properties/events/or an lesser entity at all??? A cleaner approach should be to classify objects by smaller entities like color/metal/engine to identify a car class for example etc... not a car to identify an engine!
ofcource a programmer can go the other way... if wishes to!
one possible scenario would have been in this case would have been, say an IT employee class collection to represent an IT department in an organisation. though this would
have been ideal but then, it would have been really added un-necessary complexity to go on with dictionary or an custom key value collection approach in this case.
I am still thinking about an appropriate example to fit in the scenario where I could have added object as a key in keyvalue collection to add some value to my code... in terms
of performance... simplicity... flexibility!
This was just my view... your feedback is welcome.

Similar Messages

  • Using my objects as keys in a hash map

    I need the following type of code to work (ClDate is my own class):
                var testDic:Dictionary = new Dictionary();
                var key1:ClDate = new ClDate(10000);
                var key2:ClDate = new ClDate(20000);
                var key3:ClDate = new ClDate(30000);
                var key4:ClDate = new ClDate(40000);
                testDic[key1] = 1;
                testDic[key2] = 2;
                testDic[key3] = 3;
                testDic[key4] = 4;
                var key:ClDate = new ClDate(20000);
                var retNum:Number = testDic[key];
    The current Dictionary or Array does not work since they do not enable passing a comparison function that will enable comparing my own objects. Is there any existing implementation that works?
    -Sam.

    Object (when acting as a map) uses toString() as a poor man's hashcode implementation, so you can get more-or-less the behavior you want by implementing the toString() method in your CIDate class and then storing the instances in an Object (rather than a Dictionary).
    E.g., say your CIDate looks like this:
              public class CIDate {
                public var num:Number
                public function CIDate(num:Number) { this.num = num }
                public function toString():String { return num.toString(); }
    You can use toString() as a comparison operator by keeping things in an Object instead of a Dictionary:
                var testDic:Object = {};
                var key1:ClDate = new ClDate(10000);
                var key2:ClDate = new ClDate(20000);
                var key3:ClDate = new ClDate(30000);
                var key4:ClDate = new ClDate(40000);
                testDic[key1] = 1;
                testDic[key2] = 2;
                testDic[key3] = 3;
                testDic[key4] = 4;
                var key:ClDate = new ClDate(20000);
                var retNum:Number = testDic[key];
    Then retNum should be '2', as expected. This is sort of a hack, but it might work for what you're doing.

  • GPMC problem: Item has already been added. Key in dictionary: "Key being added:"

    I have the following scenario:    
    I use the Hungarian Windows 7 Professional 64 bit OS
    I use the Group Policy Management Console (GPMC) to connect to a domain controller in a domain environment.
    I try to generate a report for a Group Policy object (GPO) in the GPMC window.
    In this scenario, I experience the following issue:
    I cannot generate the report. Additionally, I receive an error message that resembles the following:  
    Item has already been added. Key in dictionary: "Key being added:"
    I found a KB article for this symptoms:
    http://support.microsoft.com/kb/2254754
    I downloaded the following hotfix to my system:
    Package:
    KB Article Number(s): 2254754
    Language: All (Global)
    Platform: x64
    Location: (http://hotfixv4.microsoft.com/Windows%207/WindowsServer%202008%20R2/sp1/Fix321583/7600/free/415811_intl_x64_zip.exe)
    I unzipped the hotfix. When I started the msu package with my administrator user, the package says the following:
    The update is not applicable for this computer.
    I got the following in my event viewer:
    System
    - Provider
       [ Name]  Microsoft-Windows-WUSA
       [ Guid]  {09608C12-C1DA-4104-A6FE-B959CF57560A}
       EventID 3
       Version 0
       Level 2
       Task 0
       Opcode 0
       Keywords 0x8000000000000000
    - TimeCreated
       [ SystemTime]  2014-09-10T06:31:58.153372600Z
       EventRecordID 2117
       Correlation
    - Execution
       [ ProcessID]  823116
       [ ThreadID]  822724
       Channel Setup
       Computer *******************
    - Security
      [ UserID]  S-1-5-21-1957994488-1606980848-682003330-*****
    - EventData
      UpdateTitle
      ErrorCode 2149842967
      ErrorString
      CommandLine "C:\Windows\SysWOW64\wusa.exe" "C:\Temp\d\Windows6.1-KB2254754-x64.msu" 
    Please help me to solve my problem.
    Thanks in advance,
    Laszlo Farkas

    I don't understand, what do you mean tweak the XML for the filterfile version entry.
    The GPO is the Default Domain Policy. Our AD functional levels (forest, domain) are 2012. If I started GPMC on the domain controller then I do not receive the "Item has already been added..." message, I can open the report succesfully. Our domain
    was on 2003 level before the migration, but we had the same problem ("Item has already been added...")  on Win 7 clients, but on DC with Windows 2003 works well.
    GPMC logging logs the followings when try to open Default Domain Policy on Windows 7 client:
    gpmgmt.log:
    [371c.41c4]  9/10/2014 14:32:21:926  [WARNING] CGPMReport::GenerateReport :ConvertToXml/Html failed with 0x80070057.
    [371c.41c4]  9/10/2014 14:32:21:936  [WARNING] CGPMReport::GenerateReportFromGPO : GenerateReport failed with 0x80070057
    gpmgmtManaged.log:
    Reporting(16568.3)14:32:21 GPO::ConvertToHtml:******The following exception occured:
    *******Message    : Az elemet korábban már felvették. Kulcs a szótárban: „Felhasználói jegy maximális élettartama”; Felvétel alatt álló kulcs: „Felhasználói jegy maximális élettartama”.
    *******StackTrace :
    System.ArgumentException: Az elemet korábban már felvették. Kulcs a szótárban: „Felhasználói jegy maximális élettartama”; Felvétel alatt álló kulcs: „Felhasználói jegy maximális élettartama”.
       a következő helyen: System.Collections.SortedList.Add(Object key, Object value)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.TablePolicySectionTemplate.SetPolicies(IEnumerable policies)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.Windows.Security.SecurityTemplate.AddAccounts(AccountPolicy[] policies)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.Windows.Security.SecurityTemplate.AddSettings(GPOExtensionData securityExtension, GPOExtensionData ipsecExtension, GPOExtensionData saferExtension, GPOExtensionData pkExtension,
    GPOExtensionData wlanSvcExtension, GPOExtensionData dot3SvcExtension, GPOExtensionData napClientMgmtExtension, GPOExtensionData firewallExtension, GPOExtensionData auditExtension, GPOExtensionData srpExtension)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.Windows.Security.SecurityTemplate.SetSecurity(GPOExtensionData securityExtension, GPOExtensionData ipsecExtension, GPOExtensionData saferExtension, GPOExtensionData pkExtension,
    GPOExtensionData wlanSvcExtension, GPOExtensionData dot3SvcExtension, GPOExtensionData napClientMgmtExtension, GPOExtensionData firewallExtension, GPOExtensionData auditExtension, GPOExtensionData srpExtension)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.Windows.WindowsSettingsSectionTemplate.CreateSubsectionTemplates(ArrayList subsections, Hashtable nameExtensionMap)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.Windows.WindowsSettingsSectionTemplate.SetWindowsSettings(IEnumerable extensions)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.MainSettingsSectionTemplate.SetConfiguration(IEnumerable extensionDataList)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.ConfigurationSectionTemplate.AddContent(IEnumerable extensionDataList)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Settings.ConfigurationSectionTemplate.SetConfiguration(GPOUserOrComputerConfig config)
       a következő helyen: Microsoft.GroupPolicy.Reporting.Html.Gpo.GpoReportTemplate.SetGpo(GPO gpo)
       a következő helyen: Microsoft.GroupPolicy.Reporting.GPO.ConvertToHtml()

  • Item has already been added. Key in dictionary: '???' Key being added: '???'

    Since 1 week I am unable to access any of the Sharepoint 2010 sites that exist in my farm. The error that is shozn is:
    Item has already been added. Key in dictionary: '???'  Key being added:
    Here is the stacktrace:
    [ArgumentException: Item has already been added. Key in dictionary: '???' Key being added: '???']
    System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) +10065554
    System.Collections.Specialized.StringDictionary.Add(String key, String value) +89
    Microsoft.SharePoint.SPWeb.GetProperties() +563
    Microsoft.SharePoint.Utilities.SPPropertyBag..ctor(GetProperties getProperties, UpdateProperties updateProperties) +62
    Microsoft.SharePoint.SPWeb.get_Properties() +130
    Microsoft.Office.Server.Utilities.PageUtility.GetPagesListName(SPWeb web) +39
    Microsoft.SharePoint.Publishing.PublishingWeb.get_PagesListName() +152
    Microsoft.SharePoint.Publishing.CachedArea..ctor(PublishingWeb area, String id, String parentId, CachedUserResource title, String url, CachedUserResource description, CachedObjectFactory factory) +3914
    Microsoft.SharePoint.Publishing.CachedArea.CreateCachedArea(PublishingWeb area, CachedObjectFactory factory, String parentId) +590
    Microsoft.SharePoint.Publishing.CachedObjectFactory.CreateWebFromUrlNoUpperCase(String url, Guid webIdHint, String urlCaseHint) +555
    Microsoft.SharePoint.Publishing.WebControls.ConsoleUtilities.IsMasterPageGalleryUrlForSite(Uri uri) +117
    Microsoft.SharePoint.Publishing.WebControls.ConsoleVisibleUtilities.ConsoleAppliesInCurrentContext() +41
    Microsoft.SharePoint.Publishing.Internal.WebControls.PublishingRibbon.OnLoad(EventArgs e) +95
    System.Web.UI.Control.LoadRecursive() +66
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Control.LoadRecursive() +191
    System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +2428
    Also, when I am trying to access my homepage on the root sitecollection, I see this error:
    The DataSourceID of 'V4QuickLaunchMenu' must be the ID of a control of
    type IHierarchicalDataSource.  A control with ID 'QuickLaunchSiteMap' could not
    be found.

    Recently have you removed, deleted, changed password of any account used in sharepoint.
    Check in > Security > Manage account
    Check in IIS > Application pool, if any pool is stopped.
    If you have a old copy of web.config files, check if they were modified.
    Was any new solution\wsp deployed in farm
    please share ULS logs, event viewer and fiddler traces.
    If this helped you resolve your issue, please mark it Answered

  • Error while releasing PO :  System error: block object EKKO, Key PO Number.

    Dear All,
    I am getting error while releasing PO :  System error: block object EKKO, Key PO Number.
    Please help to resolve.

    Hi Friend,
    How the issue is resolved, because i am facing the same issue, while positing Service entry sheet.
    If you can give us solution, it will be more useful and more appreciated
    REgards
    RS

  • OIM - Task Assignment Adapter - How to get the object instance key?

    Hello experts,
    I'm trying to use a task assignment adapter to assign an approval task dynamically. Basically, the user can request a resource like "CustomApp Profiles" and we create an object form to let them choose the profile that he needs. Each profile has an owner, which is populate in a Lookup (Owner is the code and Profile is the decode).
    So, in the approval task, I need to get the profile selected by user in the object form and search into the lookup who is the owner of that profile. But I don't know how can I get the object instance key using the parameters that can be mapped to a task assignment adapter.
    Looking into the OIM documents, I believe that the easier way is using the request key, because the REQ_KEY is a foreign key in OBI table.
    Did anyone knows how can I get the object instance key using the request key? Can I use some API or should I execute a SQL statement directly in OIM database?
    Best Regards,
    Nitto

    To retry a task that is in a rejected state, you use the SCH_KEY which is the task key.  In OIM, all rejected tasks are listed in the OTI table.  It contains all the important information about a rejected or pending task.
    You can use the APIs found in the tcProvisioningOperationsIntf class to retrieve open tasks.
    -Kevin

  • 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'

    Hi ,
    i am trying to integrate the JSP in ALBPM studio 6.0
    while running the application i am getting the following error.
    Unexpected error during interactive component execution.
    Unexpected error during interactive component execution. Caused by: This Execution is not waiting for a result Caused by: The task could not be successfully executed. Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'. Caused by: Invalid BPM Object context key fuego.web.execution.exception.UnexpectedExecutionException: Unexpected error during interactive component execution. at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:187) at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117) at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:228) at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:689) at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:61) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at sun.reflect.GeneratedMethodAccessor126.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156) at java.security.AccessController.doPrivileged(Native Method) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152) at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48) at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63) at sun.reflect.GeneratedMethodAccessor123.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAsPrivileged(Unknown Source) at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275) at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197) at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50) at
    Any clue regarding this will be highly appreciated ..
    Thanks in advance
    regards
    Lalatendu

    Hi ,
    i got the answer finally !! :))
    there was one small block missing from my engine.xml file in side package *<Workspace><Project Name>\config\engine.xml*
    that is
    *<node name="startPapiWs">*
    *<map/>*
    *</node>*
    but i couldn't figure out where i missed out the steps for configuration because of which the proper xml generation didn't happened.
    After this my application started working ..if any one facing similar problem may be helpful
    Thanks
    Lalatendu

  • Org.apache.jasper.JasperException: Invalid BPM Object context key

    Hi - I get following error while submitting the page. Has anyone seen this error before?
    Tomcat error: 'ApplicationDispatcher[workspace] Servlet.service() for servlet jsp threw exception
    org.apache.jasper.JasperException: Invalid BPM Object context key
    at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:254)
    at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295)
    at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at org.apache.catalina.core.ApplicationDispatcher.invoke(ApplicationDispatcher.java:684)
    at org.apache.catalina.core.ApplicationDispatcher.doForward(ApplicationDispatcher.java:432)
    at org.apache.catalina.core.ApplicationDispatcher.access$000(ApplicationDispatcher.java:116)
    at org.apache.catalina.core.ApplicationDispatcher$PrivilegedForward.run(ApplicationDispatcher.java:131)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.apache.catalina.core.ApplicationDispatcher.forward(ApplicationDispatcher.java:348)
    at fuego.portal.servlet.WamServlet.requestForward(WamServlet.java:418)
    at fuego.portal.servlet.WamServlet.forward(WamServlet.java:299)
    at fuego.portal.servlet.Controller.doPost(Controller.java:275)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)

    I am also getting "Invalid BPM Object context key" when migrating the 5.7 application to Oracle 10.3. It works fine in 5.7. Did you get it resolved; no one replied here. I also logged it but not sure how good is this forum.

  • List of all objects in the data dictionary

    How to capture the list of all objects in the data dictionary named like PSDFDI and verify they are granted to the FDIREADR role

    See the database security guide http://docs.oracle.com/cd/B28359_01/network.111/b28531/authorization.htm#BABFHBFH
    Finding Information About User Privileges and Roles
    This section discusses the system views that have the grant information.
    The tricky part of this is that because roles can be granted to other roles the data is hierarchical.
    So start with the grants made to the FDIREADR role. So referring to the doc above;
    select * from role_role_privs where role = 'FDIREADR'will list the roles granted to your role.
    You will want to look at ROLE_ROLE_PRIVS, ROLE_TAB_PRIVS and ROLE_SYS_PRIVS.
    I suggest you walk thru the views manually to see how the information is related. Then write a test script that queries the views for you.

  • The task failed with error: Invalid BPM Object context key, can any one hel

    The application works fine on version 5.7. I am trying to migrate to 10.3 angetting the error when tried to execute task. This is coming up from opening a jsp page; don't know exact code/line number as the error message is in a popup window and doesn't show it clearly in logs:
    The task could not be successfully executed. Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'.
    See log file for more information [Error code: workspace-1255544311265]
    The log shows the below starting from just before the error upto the complete error msg:
    ExecutionDispatcher.actionId: RUN_INSTANCE_TASK
    WamJsp: commit prepare.
    java.lang.NullPointerException
    java.lang.NullPointerException
         at fuegoblock.net.NewJSP$1.prepare(NewJSP.java:185)
         at fuego.web.execution.InteractiveInvocation.retryExecution(InteractiveInvocation.java:72)
         at fuego.web.execution.InteractiveExecution.retry(InteractiveExecution.java:246)
         at fuego.web.papi.TaskExecutor.runInstanceTask(TaskExecutor.java:375)
         at fuego.web.papi.TaskExecutor.execute(TaskExecutor.java:98)
         at fuego.workspace.servlet.ExecutorServlet.doAction(ExecutorServlet.java:117)
         at fuego.workspace.servlet.BaseServlet.doPost(BaseServlet.java:229)
         at fuego.workspace.servlet.BaseServlet.doGet(BaseServlet.java:220)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:689)
         at fuego.workspace.servlet.AuthenticatedServlet.service(AuthenticatedServlet.java:83)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)
         at sun.reflect.GeneratedMethodAccessor201.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:161)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:245)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.SingleThreadPerSessionFilter.doFilter(SingleThreadPerSessionFilter.java:64)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at fuego.web.filter.CharsetFilter.doFilter(CharsetFilter.java:48)
         at fuego.web.filter.BaseFilter.doFilter(BaseFilter.java:63)
         at sun.reflect.GeneratedMethodAccessor94.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
         at java.lang.reflect.Method.invoke(Unknown Source)
         at org.apache.catalina.security.SecurityUtil$1.run(SecurityUtil.java:243)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAsPrivileged(Unknown Source)
         at org.apache.catalina.security.SecurityUtil.execute(SecurityUtil.java:275)
         at org.apache.catalina.security.SecurityUtil.doAsPrivilege(SecurityUtil.java:217)
         at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:197)
         at org.apache.catalina.core.ApplicationFilterChain.access$000(ApplicationFilterChain.java:50)
         at org.apache.catalina.core.ApplicationFilterChain$1.run(ApplicationFilterChain.java:156)
         at java.security.AccessController.doPrivileged(Native Method)
         at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:152)
         at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)
         at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)
         at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)
         at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)
         at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)
         at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)
         at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)
         at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:667)
         at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)
         at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)
         at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)
         at java.lang.Thread.run(Unknown Source)
    Unexpected Error:The task could not be successfully executed.
    Reason: 'fuego.xobject.util.InvalidContextKey: Invalid BPM Object context key'.
    Can any one please help?
    Javed

    Hi Javed,
    I'm having similar error. What was the root cause of your problem? How did you fix that?
    Thanks,
    Bharat

  • Getting the Object Access key

    This weird question,
    But does any one know how to get the object access key for Standard SAP object is changed..
    Normally when we try to do any modification on Standard SaP object it asks for and access key.. We need to enter it once, after which the object is open for editing.
    I have an SAP object which as been modified .
    I want to know that number?? Is it possible..
    Any help will be highly appreciated..
    Regards,
    Samir.

    Hi Samir,
    You have to contact SAP Support to obtain the access key for a Standard SAP Object. The correct channel for that is the OSS, where yo can raise a message requesting the same.
    But you are saying that there's one object that has already been modified. Who has done the modification ? When they have done it, they must have specified the access key. If you want to modify the same object, then the best thing for you to do is to contact the person who has changed it.
    By the way, have the modifications been done using the Modififcation Assistant?
    Regards,
    Anand Mandalika.

  • How to find Object Instance.Key

    Hi all, I have a problem. I have a workflow as: I am as being an administrator, request for a resource for a user. And then an approver approves it. But before he approves I want to see the object form prepopulated with target user's information. So that I wrote i java class and attah as process task adapter to update task of approval process of the resource. In code I will set the form values using setObjectFormData(long plObjectInstanceKey, java.util.Map phAttributeList) function of tcFormInstanceOperationsIntf. But ı don't know how to get plObjectInstancekey which is "Object Instance.Key". I tried to use getAssociatedUsers operation but it does not work since my resource is not provisioned to user yet. Any idea?

    It's immediately available when you go to map the values on your adapter. It should be under Object Data and the available values from there.
    -Kevin

  • Object Info Key

    Dear all,
    i want to see all the orders or notifications created against an equipment. For that i am trying to configure the object info key in spro. Need some help on how to proceed
    Also, when i assign the object key to the order type. What should be the next step to be followed, i mean where in the order can i see the object information. i'm checking under iw33 - display order
    Expecting a quick resonse and help.
    thanks in advance
    Abhi

    Abhi,
    In an equipment/floc there is a blue "I" button in the navigation bar at the top of the screen.
    In an order/notif the same button is in the Reference Object sub-screen
    PeteA

  • OIM10g fetch object instance key

    Hi,
    Please help me on how to get object instance key when input value is only a process instance key for a resource object.
    Thanks,
    Ramesh

    I did not test this code. Give a try and post ur results here.
    input: ProcessInstanceKey
    tcProvisioningOperationsIntf ProvUtility=(tcProvisioningOperationsIntf) utilFactory.getUtility ("Thor.API.Operations.tcProvisioningOperationsIntf");
    tcUserOperationsIntf userOperations=(tcUserOperationsIntf) utilFactory.getUtility ("Thor.API.Operations.tcUserOperationsIntf");
    tcResultSet procDetail=ProvUtility.getProcessDetail(ProcessInstanceKey);
    long objInstanceLKey=0;
    if (procDetail.getRowCount()>0)
    procDetail.goToRow(0);
    long taskInstanceKey=procDetail.getLongValue("Process Instance.Task Details.Key");
    tcResultSet taskDetails = tcProvisioningOperationsIntf.getProvisioningTaskDetails(taskInstanceKey);
    taskDetails.goToRow(0);
    long userKey=taskDetails.getLongValue("Users.Key");
    String objectName=taskDetails.getStringValue("Resource Objects.Name");
    tcResultSet provisionedObjects = userOperations.getObjects(userKey);
    for (int count = 0; count < provisionedObjects.getRowCount(); count++)
    objResultSet.goToRow(count);
    if (provisionedObjects.getStringValue("Objects.Name").equalsIgnoreCase(objectName))
         objInstanceLKey=objResultSet.getLongValue("Users-Object Instance For User.Key")
    System.out.println("Object Instance Key:"+objInstanceLKey);
    Thanks,
    Srini

  • Hashtable with persistent object as key and collection as value

    I am trying to use a Hastable with a persistent object as the key and a
    collection as the value. A long time ago, Abe White said:
    "Kodo currently does not support a map in which the keys are persistent
    objects and the values are collections. I think your best bet would be
    to create an intermediate class that has a 1-1 relation to the "key" and
    a collection of persistent objects for the "value". Then keep a
    collection of these intermediate objects. You could use jdoPostLoad and
    jdoPreStore to hash/unhash the collection of intermediate objects to/from
    a Map if you need to."
    So I made an intermediate class, which gave me a Hashtable with a persistent
    object as the key and another for the value. Then the one for the value
    contains the collection. This works but I'm wondering about the
    performance, would this method be slower?
    Also it was said that version 3.0 would support this. I'm curious if this
    is available in 2.5 or if it's still planned for 3.0.
    Thanks
    Michael

    I'm observing massive performance problems but I didn't think it could be
    caused by this intermediary object but maybe that is the problem. For
    example if I start a transaction to delete everything (with 3,000 records
    which in turn has 3,000 records which in turn has 2 lists each) theprogram
    crashes before it can finish the transaction. I then put in some loops to
    delete 100 records at a time and this runs but it took over an hour to
    delete the 3,000 records.
    Do you have any other ideas of how to improve the performance? Are there
    any alternatives?I solved the performance problem. I was storing web page content (all the
    HTML) in a String which by default is in the default-fetch-group. I had
    been thinking this was using lazy-loading but it wasn't. So I put
    default-fetch-group=false for this property and now the performance is
    great. It makes sense because it was retrieving approximately 5k of text
    for each record! When deleting 3,000 records this comes out to be 14 megs.
    Moral of the story: Use the default-fetch-group wisely!!

Maybe you are looking for

  • How do I cancel a cancelation?

    I've just had one of the craziest days of my live. To start with I'm deaf to the extent that I cannot carry out a normal telephone conversation. A few days ago I was advised that we now had Infinity 1 in our area and asking whether I would like to si

  • Adobe 11 std, Installation, serial number not valid.

    Good afternoon, While finishing the installation of Adobe 11 standard, the serial number is requested. I input the one provided in the License certificate issued by the SW provider in our company.(hiding some digits for security reason ) but the prog

  • Exporting Premiere sequence into specific Encore project

    Is there an "option" or drop down menu that would allow someone to specify an Encore project in which to export to from Premiere? I tried it through Adobe Bridge but it automatically opened a new Encore project. I also had my targeted Encore project

  • Package Linked Smart Objects not available

    Hello, I have Photoshop CC on my pc and Windows 8. File > Package is not available... Can anybody help me!

  • Multiple view of contentPane of a JFrame

    Hello, I want to make a java program like Windows Explorer. I want to make it like "MDI" (Multiple document interface) like Windows Explorer so that users can drag files/folders from one window to the others. When I create the second, third, etc wind