FileUplaod UI : Object could not be found in cache, key is null!

Hi,
I get problem using FileUpload UI Element.
When I select a file (any file .) and push a button (uplaod bt), I get an error message below the FileUpload UI:
==>  Object could not be found in cache, key is null!
There is something odd cause in the event linked to my upload button the function is completly emtpy. So it is not o Code error. And of course I've make the context attribute Modifiable :
IWDModifiableBinaryType type = (IWDModifiableBinaryType) wdContext.getNodeInfo().getAttribute(IPrivateExternalOrderCompView.IContextElement.FILE_RESOURCE).getModifiableSimpleType();
Any Idear ?
Regards,

Hi,
Ok guys thanks for your answers, I fixed my problem.
The thing was I missused simple modify type.
So here is what I'm doing :
In my context View :
file type : Binary
wdInit of the View :
IWDAttributeInfo attInfo = wdContext.getNodeInfo().getAttribute(IPrivateExternalOrderCompView.IContextElement.FILE);
          ISimpleTypeModifiable type = attInfo.getModifiableSimpleType();
          IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
That's it !
Everything goes good.
Thanks
Regards,

Similar Messages

  • Webdynpro - Object could not be found in cache, key is null

    Folks
    I am getting this marvelous exception for which I am not able to find any not in SAP Service Portal as well. Any insights shared will be highly appreciated.
    [EXCEPTION]
    com.sap.tc.webdynpro.services.sal.util.cache.ResourceNotFoundException: Object could not be found in cache, key is null!... [see details]
    EXCEPTION]
    com.sap.tc.webdynpro.services.sal.util.cache.ResourceNotFoundException: Object could not be found in cache, key is null!
    at com.sap.tc.webdynpro.services.sal.util.cache.WebResourceCache.getResource(WebResourceCache.java:108)
    at com.sap.tc.webdynpro.services.sal.util.cache.WebResourceCache.getResource(WebResourceCache.java:134)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.datatransport.DataTransportFactory.getOutputMassDatasource(DataTransportFactory.java:93)
    at com.sap.tc.webdynpro.services.sal.datatransport.core.InternalMassDataTransport.getOutputMassDatasource(InternalMassDataTransport.java:50)
    at com.sap.tc.webdynpro.progmodel.context.ModifiableBinaryType.parse(ModifiableBinaryType.java:133)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.doParse(DataContainer.java:1434)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.validatePendingUserInput(DataContainer.java:1324)
    at com.sap.tc.webdynpro.clientserver.data.DataContainer.validatePendingUserInput(DataContainer.java:681)
    at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.validate(ClientComponent.java:715)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doValidate(WindowPhaseModel.java:326)
    at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:120)
    at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:335)
    at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:143)
    at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:319)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingStandalone(ClientSession.java:713)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:666)
    at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
    at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:62)
    at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doPost(DispatcherServlet.java:53)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:760)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:401)
    at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:266)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:386)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:364)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:1039)
    at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:265)
    at com.sap.engine.services.httpserver.server.Client.handle(Client.java:95)
    at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:175)
    at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
    at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
    at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
    at java.security.AccessController.doPrivileged(Native Method)
    at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:102)
    at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:172)

    Is the system 6.40 release ? Have you referred to SAP Note 923694  ?
    Search in SAP Notes for 'Importing A Web Dynpro Hot Fix', find the one relevant for your SP level and make sure you have implemented those fixes if you find one for the SP.
    Hope this helps
    Regards,
    Snehal

  • File Upload Error : Object could not be found in cache, key is null!

    I am having this problem. when I attach a file and press submit button, it gave me
    "Object could not be found in cache, key is null !"
    In my ViewController context I have Invoice_DOC attribute (binary, fileupload)
    and that is mapped to ComponentContoller.attribute(INVOICE_DOC).
    here is wdDoInit() method of my view controller..
    public void wdDoInit()
        IWDAttributeInfo attInfo =
              wdThis.wdGetDemurrageCompController().wdGetContext ().nodeSubmitElements().getNodeInfo().getAttribute(IPrivateDemurrageComp.ISubmitElementsElement.INVOICE_DOC);
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) attInfo.getModifiableSimpleType();
    Any Idea why I am having this..
    I went through some tutorials, The controller node has cardinality of 1..1...

    Hi,
    Could you please try with the following code. Here I have an Action for file uploading.
    public void wdDoInit()
    //@@begin wdDoInit()
    // get attribute info for context attribute "FileResource"
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(
    IPrivateFileUploadView.IContextElement.FILE_RESOURCE);
    // make the context attribute's simple type modifiable.
    // Only with this line of code the binary data (stored within the
    // context attribute) can be parsed. The Web Dynpro Runtime stores
    // the mime-object’s metadata within the attribute’s type metadata.
    attributeInfo.getModifiableSimpleType();
    // set the file details invisible
    wdContext.currentContextElement().setDetailsVisibility(
    WDVisibility.NONE);
    //@@end
    //Another method for File upload button
    public void onActionUploadFile(
    com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent) {
    //@@begin onActionUploadFile(ServerEvent)
    // get attribute info for context attribute 'FileResource'
    IWDAttributeInfo attributeInfo =
    wdContext.getNodeInfo().getAttribute(
    IPrivateFileUploadView.IContextElement.FILE_RESOURCE);
    // get modifiable binary type from the attribute info,
    // requires type cast.
    IWDModifiableBinaryType binaryType =
    (IWDModifiableBinaryType) attributeInfo.getModifiableSimpleType();
    IPrivateFileUploadView.IContextElement element =
    wdContext.currentContextElement();
    // if a file in the 'FileResource' attribute exists
    if (element.getFileResource() != null) {
    try {
    String mimeType = binaryType.getMimeType().toString();
    byte[] file = element.getFileResource();
    // get the size of the uploaded file
    element.setFileSize(this.getFileSize(file));
    // get the extension of the uploaded file
    element.setFileExtension(
    binaryType.getMimeType().getFileExtension());
    // NOTE: context attribute 'FileName' must not be set
    // because the FileUpload-UI-element property 'fileName'
    // is bound to it. Consequently the fileName is automatically
    // written to the context after file upload.
    // set the details visibility attribute
    element.setDetailsVisibility(WDVisibility.VISIBLE);
    // report success message
    wdComponentAPI.getMessageManager().reportMessage(
    IMessageFileUpDownloadComp.SF_UPLOAD,
    new Object[] { binaryType.getFileName()},
    false);
    } catch (Exception e) {
    throw new WDRuntimeException(e);
    // if no file in the 'FileResource' attribute exists
    else {
    // set the details visibility attribute, hide details
    element.setDetailsVisibility(WDVisibility.NONE);
    // report error message
    IWDMessageManager msgMgr = wdComponentAPI.getMessageManager();
    msgMgr.reportContextAttributeMessage(
    element,
    attributeInfo,
    IMessageFileUpDownloadComp.NO_FILE,
    new Object[] { "" },
    true);
    // clear the FileResource context value attribute
    element.setFileResource(null);
    //@@end
    Thanks
    Chandan

  • Object could not be found in cache, key is null!

    this is what I am getting when i tried to upload a file..the binary attribute is mapped to comp controller  attribute...
    I dont understand the exact meaning of this message...
    Please reply

    Hi Amit
    this is what I am doing.
    In my view controller, I have a fileData of binary type, is mapped to comp controller attribute.
    So when am calling compController.Populate() method from view doInit()...
    Populate method
    public void Populate( )
        //@@begin Populate()
      IWDAttributeInfo attInfo1 = wdContext.nodeSubmitElements().getNodeInfo().getAttribute (wdContext.currentSubmitElementsElement().INVOICE_DOC);
    ISimpleTypeModifiable type = attInfo1.getModifiableSimpleType();
    IWDModifiableBinaryType binaryType = (IWDModifiableBinaryType) type;
    //end
    I tried wdContext.createSubmitElementsElement().INVOICE_DOC also but still getting the same problem..
    -vd

  • "The attempted operation failed. An object could not be found" error when double clicking on an ics file

    Operation System: Windows 8 Pro
    System Type: 64-bit Operating System
    Office: MS Office Professional Plus 2013
    I am getting "The attempted operation failed. An object could not be found" error when I double click on an .ics file to an appointment to my calender. My outlook.com account's data file is set as default and this error only occurs if
    that is the default data file. I thought that maybe my profile is corrupted. So, I opened up a new profile with the below steps and only add my outlook.com account there:
    1-) Open up the Control Panel and go to Mail section
    2-) Click "Show Profiles"
    3-) Click "Add" and give a name to your profile.
    4-) Configure your outlook.com account (with Auto Account setup, not manual steps)
    5-) Finally, set that profile to be used always.
    Then, I opened up the Outlook 2013 and clicked on the .ics file to add that appointment but got the same error.
    Is this a known issue or specific to me?
    Thanks!

    yes, I have the same problem.
    The workaround of saving the ICS file and then importing it into the current calendar
    works, 
    but the ICS calendar
     displays in other section, NOT in the section of my old events.
    why  ??

  • Account 'Cost elem. for settlmt AuC to CO objects' could not be found for

    Hi All,
    I am facing one error massage at the time of CWIP Asset settled in Cost centre
    Account 'Cost elem. for settlmt AuC to CO objects' could not be found for area 01
    Message no. AU133
    Which G/L Account (cost element) we have to assing there in Account determinati A090.
    What is empact this our G/L Account.
    Please help me to resolve this issue.
    Thanks & Regards,
    juhis

    Hi AP,
    Thanks for your reply,
    We find one element there assgin but that is not a G/L account what we do we can assgin that element in the Account determination in that asset account determination OR we have to create new G/L Account.
    When we create new G/L Account in which Account head we have to create and what is impact that g/l account in our Balance sheet account.
    Please help me ot understand that Process.
    Edited by: juhis022 on Mar 2, 2012 10:15 AM

  • Account 'Cost elem. for settlmt AuC to CO objects' could not be found for a

    Hi All,
    we are facing one error massage at the time of settlment KO88.
    Account 'Cost elem. for settlmt AuC to CO objects' could not be found for area 01
    Message no. AU133
    Diagnosis
    When creating the accounting document, the system could not find account 'Cost elem. for settlmt AuC to CO objects' in depreciation area 01 for company code CSEB.
    Procedure
    Enter this account in the account determination for Asset Accounting.
    Thanks & Regards,
    juhi

    Hi Juhi...
    Please check the below procedure....
    If you are using the Internal order process, then
    KO01 - IO Creation
    ME21N - PO creation with IO as Account assignement
    MIGO
    MIRO
    1. IO to AUC Settlement
    Define the Settlement Rule iin IO - KO02   (AUC Asset)
    KO88
    Settlement type is  "Automatic"
    For Cost analysis....you can refer to KOB1   or    KO03 -> EXtras -> Cost Analysis
    2. AUC to Fixed Asset or Cost Center
    KO02 - Settlement Rule - Cost center   or   Fixed Asset
    KO88
    "Full Settlement"
    If the process is
    AIAB and AIBU
    Refer to
    AW01N
    Hope it gives some idea
    Thanks

  • When you try to send or to receive email in Outlook 2010, you may receive one of these error messages: 0x8004010F: Outlook data file cannot be accessed. or 0x8004010F: The operation failed. An object could not be found.

    0x8004010F: The operation failed. An object could not be found.
    1. reviewed Profile instructions
    2. Ran SytTools thinking it would fix the error. NO although I could send received I ended up with a giant pst 
    3. Back to Profile Instructions.
    4. Set up new profile with my email address. email address tested well. Run Outlook. loads as outlook data PST
    and  gmail address PST.  Deleted all the Gmail subscriptions to improve speed. Original error was gone but have two GIGANIC PST FILES.
    5. Set up another new profile with my email address and a named pst.  Run Outlook under that Profile -
    comes up with newly named pst and the gmail addrress pst (although I can't figure out where that pst is located. Will not let me use email address as default Profile.  Tried different approaches and still ended up always with the gmail address pst.  Deleted
    all profiles but email address and comes   up.
    6. Should I just go ahead and use the gmail address pst  I need to import data or download data from gmail
    to get last years correspondence.e
    7. Outlook is my lifeblood, I am in communications and every submitted email gets moved to a file with an update.
    Help?
    8. One option is to merge psts but might make worse mess.
    Thanks.  Beautiful Beach weather here!

    To resolve error 0x8004010F , identify the current location of your default Outlook data file, and then create a new Outlook profile.
    Step 1- Locate the default Outlook data file
    Click Start, and then click Control Panel.
    In Control Panel, click Mail.
    In the Mail Setup - Outlook dialog box, click Show Profiles.
    Select your current Outlook profile, and then click Properties.
    In the Mail Setup - Outlook dialog box, click Data Files.
    Select the Data Files tab in the Account Settings dialog box, and then note the name and location of the default data file for your profile (a check mark will denote the default data file).
    Click Close.
    Step 2 - Create a new Outlook profile
    Step 3 - Configure your new Outlook profile as the default profile
    More detailed steps you can refer to this KB article:
    http://support.microsoft.com/kb/2659085

  • Have several ringtones in my itune. while synchronising 2 errors appear.1. several objects could not be found,2. an iphone was found but could not be indentified. iph.4s was new reset, ios 6

    have several ringtones in my itune. while synchronising 2 errors appear.1. several objects could not be found,2. an iphone was found but could not be indentified. iph.4s was new reset, ios 6

    Hi Grant,
    Here is what I did and so far seems it is wworking.
    1. I deleted oDesk and ShareFile. I removed them using MacKeeper (I found this application very usefull for uninstalling applications as MacKeeper looks for them all over the computer: cache, preferences, application support etc.) While for oDesk is simple as I can look myself for oDesk in any file names, whith ShareFile was a little tricky to amke it amnually as MacKeeper find files that contain Citrix name then ShareFile. I will not guess unless I would search the internet on how to manually remove sharefile from my system.
    2. I manually delete all cahe files and folders from ~Library and ~User/Library.
    3. After reboot I installed Onyx and order maintanance where I checked all its options, including but not limited to DNS caches, fonts caches, everything.
    4. After I reboot computer, I went in Disk Utility and Repaired permissions.
    Reboot again. Now seems to work fine. At least odesk Team is working properly. I will have a second thought for installing ShareFile.
    Some romanian mac users suggested to check my router connectivity and change some DNS in it. Looks like that was also a problem on some MACs. I recall the few weeks ago I had an issue with TP Link router. My computer wasn't connected to internet, though router showed that there is internet connection. I ping router from my computer and I received answer from ping. I ping google from computer, nothing. I ping google from router, was wroking. I connected the computer directly to internet without router, was wroking. When connected back through router, nothing. I contacted the guys from TP Link and they suggested to use google DNS instead of those my ISP provided. But since then I had not experienced any issue with router and internet, until now. The DNS are still those from google.
    I will keep you updated if any issues are appear again. So far, it is working perfectly as it supposed to work.
    Warm regards,
    Sebastian

  • Remove-DfsnRootTarget - The requested object could not be found

    Hi,
    I just discovered that both target paths in a DFS root target is referenced by NetBIOS name, not FQDN (the names is generalized):
    Get-DfsnRootTarget -Path \\Contoso.local\AccountingSoftware| Format-List
    Path                  :
    \\Contoso.local\AccountingSoftware
    TargetPath            :
    \\Contoso-FS1\AccountingSoftware
    State                 : Online
    ReferralPriorityClass : sitecost-normal
    ReferralPriorityRank  : 0
    Path                  :
    \\Contoso.local\AccountingSoftware
    TargetPath            :
    \\Contoso-FS2\AccountingSoftware
    State                 : Online
    ReferralPriorityClass : sitecost-normal
    ReferralPriorityRank  : 0
    The goal is to remove and re-add the target paths one by one in order to use FQDN.
    When trying to remove one of the targets, I receive the following error:
    Remove-DfsnRootTarget -TargetPath "\\Contoso-FS2\AccountingSoftware" -Path "\\Contoso.local\AccountingSoftware"
    Remove-DfsnRootTarget : The requested object could not be found.
    What could be the reason for this? I get a similar error message both when using the DFS MMC tool and dfsutil.

    Hi,
    Based on your description, we can follow the article below to configure DFS to use fully qualified domain names in referrals.
    How to configure DFS to use fully qualified domain names in referrals
    http://support.microsoft.com/kb/244380/en-us
    Best regards,
    Frank Shen

  • The attempted operation failed. An object could not be found. Outlook 2010 error

    I am unable to search other mailbox in Outlook 2010, getting the following error: The attempted operation failed. An object could not be found. I removed both instances of
    KB2956128
    installed
    on 2/11/2015. It worked for a while and issue returned againa. Any suggestions?

    Hi,
    Thank you for your reporting. We have noticed this, and would like to collect more information for further investigation.
    Can you guys share your detailed system info? Also, if you have any log files about the issue, kindly share with us by sending them to this email account:
    [email protected] (please use the link of this thread as the subject).
    We appreciate your assistance with this.
    Regards,
    Melon Chen
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs. Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Outlook 2010 / Exchange 2013: The operation failed. An object could not be found.

    Both KB2956128 and KB2956203 causing issue. Removing the patch fixes the issue. I need to know what the best way to remove the patch remotely is. Maybe a SCCM job with this:
    msiexec /I {90140000-0012-0000-0000-0000000FF1CE}MSIPATCHREMOVE={DEFF916D-4268-49CF-8FF3-E26253582E13}
    msiexec /i {90140000-001A-0409-0000-0000000FF1CE}MSIPATCHREMOVE={DEFF916D-4268-49CF-8FF3-E26253582E13}
    Please advise. Also looking for time frame for a fix to be published or these updates are rolled back/pulled by Microsoft. Thank you.
    Also this is being reported by multiple people with no resolution. Example:
    http://community.spiceworks.com/topic/790986-outlook-2010-bug-the-attempted-operation-failed-an-object-could-not?page=1

    Hi,
    Thank you for your feedback and apologize for the inconvenience caused.
    We have heard several reports regarding issues caused by KB2956128. We've escalated this issue, but we're not sure whether and when there will be an hotfix for this issue. Please look out for our official blog articles and install
    all available updates released.
    Thanks for your understanding and support.
    Steve Fan
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • The file aqq12s0m.sys could not be found during Win XP installation

    When I try to reinstall XP pro I receive message "The file aqq12s0m.sys could not be found. press any key to continue." and when I press it, comp restarts.
    Any clue about that file?

    Hi,
    is this the original recovery CD or a genuine Windows XP installation disk??
    Following reasons for that problem:
    - Disc is damaged or scratched or warped or simply not working
    - CD/DVD drive has some problem
    - Some piece of hardware does not work properly
    - Memory could be faulty
    Try to exclude these points and you will get the answer on that file.
    Usually, such problem appears (I mean with a non-working file) when the CD is scratched or the drive does not work like it should..
    Cheers

  • After December 2014 update, Compile Error - calling Excel Objects Sub "Object library invalid or contains references to object definitions that could not be found"

    When try to call Sub in Excel Objects > SheetXX after the original xlsm is modified and saved by another user in diff machine, getting an error below and seems Excel cannot identify any subs exists in Sheet.
    Compile error:
    Object library invalid or contains references to object definitions that could not be found
    Note: it seems that this problem has been occurring After December 2014 update and still exists even after applying the fix:
    http://blogs.technet.com/b/the_microsoft_excel_support_team_blog/archive/2014/12/11/forms-controls-stop-working-after-december-2014-updates-.aspx)

    Hi Kwlee324,
    Thanks for sharing the workaround with us. It would be very helpful for others who have the same issue.
    Also I found a two useful links about the error message "Object library invalid or contains references to object definitions that could not be found":
    https://support.microsoft.com/kb/2703186
    http://blogs.msdn.com/b/vsod/archive/2009/06/05/visual-basic-6-controls-stop-working-after-security-advisory-960715.aspx
    Hope it is helpful.
    Regards & Fei
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Error in Workflow: At least one entry could not be found in object buffer

    Hi All,
    I am getting an error " At least one entry could not be found in object buffer" every time i try to open the BO in the binding section. I have cleared the buffer, have deleted the binding and BO and added again multiple times. But still the error is coming. Can anyone suggest a solution for this.

    What system are you on?  ECC? CRM?
    Are you sure that the object instance exists?

Maybe you are looking for