Referenced object could not be reoslved

I have 2 classes, a imports b.
Using loadjava they both load properly, but the resolve stage fails. I am loading them into a user with all the appropriate java privs.
The error :
referenced object user1.b could not be resolved
Although the class is actually just b
Ideas anyone

Ah well, you see, I personally steer clear of JDeveloper, and do the loading manually -- using the "loadjava" utility directly. That way, I seem to avoid these strange problems you get when the "wizard" doesn't quite cut the mustard. But that's just me and my preference -- I am not inferring that you should also avoid JDeveloper's "wizards".
Sorry I can't help you any more.
Good Luck,
Avi.

Similar Messages

  • 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

  • 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]

  • Referenced memory could not be read - error

    Hey, In an application on stop command, I exit from labivew on exit I get an error the referenced memory could not be read click ok to terminate program can any one suggest why this error is seen
    how this can be resolved?
    enclosed a screen shot of error
    Regards
    anil
    Attachments:
    error log.PNG ‏6 KB

    Hi AndreasC,
    This error message occurs when LabVIEW memory space goes corrupt and is often due a DLL or CIN code.
    There can be two reasons for this:
    1. Try removing all DLL calls in your code and see if it works. Most of the time, the corruption is traced to a call to a DLL function that has incorrectly passed inputs to the Call Library Function node, often by passing an uninitialized string or array, or by writing past the bounds of the string or array in the DLL function. Some DLL functions assume that a string buffer is presized to 256 bytes, 1 KB, or some other size. If a smaller sized string buffer is passed, the DLL can write past the buffer and corrupt the dataspace that follows.
    2. This error can also be caused when running a LabVIEW built executable. If the VI calls a WinAPI DLL function and uses the full path to the DLL in the Call Library Function Node, the LabVIEW Application Builder will create a copy of the DLL in the data directory of the executable. Some DLLs such as WinAPI DLLs should only reside in one location, such as C:\WINDOWS\system32, otherwise errors/crashes can occur when called. To prevent this, remove the DLL path in the Call Library Function Node when calling WinAPI DLLs.
    Some users have faced similar problems and the above solutions have worked for them.
    Here are the links to those discussions:
    http://forums.ni.com/ni/board/message?board.id=170&message.id=67230&requireLogin=False
    http://forums.ni.com/ni/board/message?board.id=170&thread.id=229434&view=by_date_ascending&page=1
    Regards,
    Ujjval

  • "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

  • 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

  • Microsoft Access will not Sync to SharePoint - Publish Failed: The Object Could not be Committed to the Server

    I created a very simple Microsoft Access database with one table and one form. When I published it to SharePoint, everythng worked fine. It published succesfully and there were no errors. I continued to make enhancements to the database and when I attempted
    to sync to SharePoint, I got a message that the operation failed. I clicked OK and the issues table noted the following:
    Move to SharePoint Site Issues
    Issue
    Reason
    Object Type
    Object Name
    Field Name
    The object could not be committed to the server.
    Table
    Vendor Location Information
    The object could not be committed to the server.
    Form
    Add a New Vendor
    The object could not be committed to the server.
    Navigation Pane
    Navigation Pane
    The object could not be committed to the server.
    VBA Properties
    VBA References
    The object could not be committed to the server.
    Database Properties
    DBProps
    An error occurred while recording the local application status. Please re-synchronize with the Web application. No current record.
    <tfoot></tfoot>
    I thought this was weird so I downloaded the Assets database from Microsoft to determine if it was my database or something else. After it was downloaded and saved to my computer, I attempted to publish it to SharePoint and I got the same error.
    What is weird, though, is that if I use the assets web database template in SharePoint (the one that is preloaded), it works fine. Once I open that database it in Access though and click sync, I get the same error message.
    Does anyone know why this is happening?

    I tried it again this morning creating a completely new table / form and this is the error I get:
    Move to SharePoint Site Issues
    Issue
    Reason
    Object Type
    Object Name
    Field Name
    The object could not be committed to the server.
    Table
    VLI
    The object could not be committed to the server.
    Form
    ANV
    The object could not be committed to the server.
    Navigation Pane
    Navigation Pane
    The object could not be committed to the server.
    VBA Properties
    VBA References
    The object could not be committed to the server.
    Database Properties
    DBProps
    An error occurred while recording the local application status. Please re-synchronize with the Web application. No current record.
    <tfoot></tfoot>

  • Adobe Form Translation error Omitted Objects (Could not be Converted)

    Hi,
    I am new to this forum. I have an issue with Adobe form Translation. Through SE63 (or through the form translation itself) , whenever I try to translate into any language it gives me an error "  Omitted Objects (Could not be Converted)". And the translation doesnt get saved. I tested with other forms and the translation works perfectly fine. Its the problem only with this particular form. In fact any change gives error. For e.g. I copy the English the translation to the Greek or the Hungarian one, and if I delete a character and save it it gives me an error.
    Please help me if you have faced similar issues have any knowledge about it.
    Thanks in advance
    Shivam

    Hi David,
    Thanks for answering my query. I had installed a new patch and even that did not work. However I managed to make it work. I dont know if its the correct way but it worked for me. On furthur analyses I found out that the problem was with XML tags. This was throwing an error. Also, on looking at the translations I Observed that there were few close tags "</trans-unit> " which had no open "<trans-unit>" for them. I simply deleted the extra close tags and the translation worked fine after that.
    Point to be noted is that the extra tags were not there in the original english translation. They only appeared when I tried to change the Greek or Hungarian translation and saved them.
    Hope it helps anybody.
    Thanks.

  • Adobe Forms - Translation error (Omitted Objects (Could not be Converted):)

    Hi Experts,
    I have developed an invoice(adobe forms) in my development server and translated this invoice for FRENCH(F) and moved this request to Quality server and now i am trying to translate the same form for GERMANY(DE) in dev server, i am getting a message when i am saving the object "Omitted Objects (Could not be Converted):" and the text are not changed (which means english text remains not changed while translating into DE)
    i hope it is not related to SAP Logon GUI problem, because i developed a sample form and i tested it for some languages(while translating, it has not pgiven any error message like "Omitted Objects (Could not be Converted):". am using SAP 710 release and patch 14)
    Please help me to solve this problem
    Thanks and regards
    Vijayendran.R

    HI Priya,
    Thank you, i ahve implemented the same..
    it is working fine..
    Thanks & Regards
    Vijayendran.R

  • Error Message : Object could not be scheduled within the specified time interval

    Post Author: mohamed elkashef
    CA Forum: Publishing
    Dear All when i try to run event for daily reports it sometimes take generation status failed with this error  message : Object could not be scheduled within the specified time interval so  i need to know the reason of failure and how can i fix  this error  thanks a lot 

    Post Author: nvnaresh
    CA Forum: Publishing
    Dear jsanzone,
    I'm facing the same error even when the server time out is more than the query execution time of the report.By server time out I assume connection time out of WebI report server which I have set to 180 min.But the actual query takes maximum of 5 min.
    We are using BO XIR2+SP2.
    I scheduled a webI report to get saved in Excel format to an Unmanaged disk location upon a File Event.
    We have 3 such reports to be scheduled on the same event.
    Expected frequency of File Event getting fired in a day is twice.Scheduling frequency I have set it as every one hour with the file event.
    This usually should work fine.
    But frequently 1 or 2 of the above 3 instances are getting failed with the following error "Object could not be scheduled with in specified time interval " after being in Running state for few hours(8). Amazingly this is not happening every time. May be once or twice in a week.This works fine after I restart the BO services and the same thing repeats after 3 or 4 days.
    Do I need to increase any server parameters?
    Why is this happening randomly?  

  • 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

  • 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

Maybe you are looking for