InvalidUriException: Try to copy a folder under src/mimes/Components to KM

Hi Everybody,
how can i copy a folder under src/mimes/Components/myFolder to KM-Content? Until now i try it with the following piece of code, but with no success. I get the Exception: InvalidUriException.
          IResourceContext ctx = buildResourceContext();                             
          RID sRid = RID.getRID("/LocalDevelopment~vd~de.gp.portal/_comp/src/mimes/Components/myFolder");                                            
          RID tRid = RID.getRID(vdElem.getTargetPath());     
          wdComponentAPI.getMessageManager().reportSuccess(tRid.toString());                                             
          IResource resource = ResourceFactory.getInstance().getResource(sRid,ctx);          
          ICopyParameter copy_param = new CopyParameter(true);
          copy_param.setIgnorePropertyFailures(true);                              
          resource.copy(tRid,copy_param);         
regards,
Seed

Hi,
the full exception was:
com.sapportals.wcm.repository.InvalidUriException: Invalid RID: No repository manager found for prefix: /LocalDevelopment~vd~de.gp.portal
souce code:
          IResourceContext ctx = buildResourceContext();  
          RID sRid = RID.getRID("/LocalDevelopment~vd~de.gp.portal/src/mimes/Components/myFolder");                                                 
          RID tRid = RID.getRID(vdElem.getTargetPath());                              
          IResource resource = ResourceFactory.getInstance().getResource(sRid,ctx);          
          ICopyParameter copy_param = new CopyParameter(true);
          copy_param.setIgnorePropertyFailures(true);                              
          resource.copy(tRid,copy_param);   
regards,
Seed

Similar Messages

  • Not able to see the list of pictures under src- mimes......

    Hi there,
    I want to save images to dispay in webdynpro java application,to do this i am trying to save .jpg pictures under src-> mimes->component->com.test.comp1 ,when i draw pic in paint and save in the corresponding directory but when i try to see the list of pictures i had saved under com.test.comp1 no picture list gets displayed. any clues?
    Thanks in advance
    Rashmi.
    Edited by: Rashmi Gupta on Jan 4, 2009 2:37 PM
    Edited by: Rashmi Gupta on Jan 4, 2009 2:38 PM

    Hi Rashmi,
    Once you copy the pictures in Navigator view (from Eclipse), it means it is available as a project workspace resource.
    But for Web Dynpro (part of NetWeaver Developer Studio from SAP) to use these pictures in application development, you have to come to the Web Dynpro Explorer and do a 'Reload' & 'Rebuild project' (right click on the project & choose from the context menu options)
    These pictures are not meant to be visible in Web Dynpro Explorer view but you can now bind the Image UI Element to these pictures in any view under the said Web Dynpro component.
    Kind Regards,
    Nitin

  • No src/mimes/Components/MyComponent folder

    Hello,
    I've taken over finishing writing an application that a consultant started writing for us.  I want to add an html file to my src/mimes/Components/[MyComponent] folder, but... none exists!  I can see src/mimes/Components, but there's nothing underneath that.  I didn't create the component to begin with, the consultant did... is there anything they could have done to cause that not to show up?  What can be done about it now?
    Points will be awarded for a helpful answer.
    Thanks,
    Jennifer

    Hi Jennifer,
    Might be the other developer not added the folder structure to the Activity while check in the code. Generally if no objects exist it wont add to the activity.
    So now what you can do is, go to Navigator perspective and add the package and files which you want and refer the same path in your code.
    Regards
    Abhilash

  • NetWeaver Developer Studio - mimes/components folder

    Hi,
    I have some applications with small help-icons. I can save them in mimes/components/<component class>. It works for most applications, but in one project the components-folder is empty. If I know the correct component-name, I can create this subfolder, but I don't know where I can see the correct component-name. So I mean the full component-name. The folder-name of the other projects is longer as just the component-name (The node next to "Web Dynpro Components").
    Do you where I can see that?
    Edited by: stefan1983 on Jan 6, 2010 3:59 PM

    Hi,
    Double Click on your Component, "Properties" tab -> Controller Properties -> Name
    This is the string you are looking for. Use as suggested above in order to create your folder under the mimes/components.
    Hope it helps,
    Daniel

  • Error copying production folder

    Hello everyone. I'm hoping someone can help. The following query comes from a discussion forum I am on at work (school) and I thought someone here might be able to help. I actually don't know what the fellow is talking about so.... hopefully some of you will and will reply and I will be able to help him out. Here is his query: (thanks for your help)
    We use four emacs for video editing. At the moment we just use iMovie and
    things work fine, except that when I want to back up student work I
    receive
    an error on trying to copy the production folder from its location in
    Movies
    to our USB drive. Detaisla re as follows:
    You cannot copy some of these items to the destination because their names
    are too long or contain invalid characters for the destination. Do you
    want
    to skip copying these items and continue copying the other items?
    I usually quit the processes, go into the media folder and copy the files
    over manually. It seems the error only appears when I try to copy the
    folder. The copy of the folde ris created, some files are copied, then
    this
    error. Obviously something Macish I have no idea about.
    How do other schools back up their Mac iMovie productions?

    Hi Jenny,
    two reasons for such an behavior...:
    a) iMovie cannot work with usb(2) connected drives... (usb cannot handle singles files that large)
    b) iMovie needs "MacOsExtended" drives, not FAT-formatted... what, for sure that usb drive is.... same here, the specific file struture of iM projects cannot be handled by such drives (you can format any drive to MOE with Disk Utility, but any data gets lost while that process!)
    to back up iM projects, you need to have a firewire connected harddrive which is MacOsExtended formatted... in the next PC shop you get'em cheap, format with Disk Utility - Boom!Done...
    school? I used slate&chalk to store school projects.........................
    besides: I usually quit the processes, go into the media folder and copy the files over manually. ... sorry, but that is some dangerous, wrong usage of a Mac! iM has a very fragile file structure, you move whole project folders/iMovie packages, not the single media content, you damage projects that!... that "sysAdmin" risks the work of your scholars, he/she should read a Mac book... never let Windows Admins touch a Mac!! Macs don't need Admins at all ;-)))

  • Read XML file in folder /src/mime...

    Hello,
    I got a XML file with some data which I need for my application. I put the file in the folder: src/mime/components/com.sap.test/mydata.xml
    I also tried src/packages/com/sap/test/mydata.xml
    How can I access this file?
    e.g. I tried
    InputStream is = getClass().getClassLoader().getResourceAsStream("mydata.xml");
    Thanks
    Rene

    HI Rene,
    Let the xml file be mydata.xml inside src/mime/components/com.sap.test/
    To access to this file,
    String url=WDURLGenerator.getResourcePath(wdComponentAPI.getComponent().getDeployableObjectPart(),"mydata.xml");
    File f=new File(url);
    try
    FileInputStream fos=new FileInputStream(url);
    catch (Exception e)
    wdComponentAPI.getMessageManager().reportException("While reading file "+e,true);
    Regards,
    Fahad Hamsa

  • NullPointer in copy a folder into my RM

    Hi,
    I created a Repository Manager by implementing
    com.sap.netweaver.bc.rf.mi.AbstractManager
    . When I copy a document from outside like /etc to my RM, createResource() in my NamespaceManager is called. However, when I try to copy a folder from /etc into my RM, a NullPointerException is thrown, and from the log, createResource() is not called. I am confused about this. What should I do to copy a folder into my RM?
    More stacktrace is:
    ava.lang.NullPointerException
            at com.sapportals.wcm.repository.CollectionImpl.internalCopy(CollectionImpl.java:1268)
            at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:2019)
            at com.sapportals.wcm.repository.ResourceImpl.copy(ResourceImpl.java:1992)
            at com.sapportals.wcm.rfadapter.CopyUtility.copy(CopyUtility.java:116)
            at com.sapportals.wcm.rendering.uicommand.cm.CopyUtil.singleNewCopy(CopyUtil.java:96)
    Thanks,
    Ray

    Hi Ray - okay, we'll need a little more information in order to be able to help you. I can suggest that if you contact my via email (address is in my SDN business card) and give me your source code, I can have a look.
    The internal code path for these calls is a little complicated.
    In general, this operation will go back to the namespace manager. Perhaps the createCollection() call is returning null. <b>Have you tried using the debugger</b>?

  • No package with component name in src/mimes

    Hi,
    I want to put a gif image file in src/mimes/components/<component name>.
    I am giving reference of this image in my View's image UI element.
    However, when I navigated to 'src/mimes/components', I don't find any subfolder with name of my component.
    Hence my view is not able to locate the image.
    What should I do now?
    Thanks and regards,
    Amey

    Hi,
    Is it  a DC ? or simple project .
    This is structure :_comp\src\mimes\Components\<package + your DC name>.
    try with close the project then rebuild + reload . If it still not there , delete the gen and gen_wdp folder from your file system, after this close +rebuild + reload .
    Try out.
    BR
    Satish Kumar

  • How to deploy content of webdynpro- src- mimes via JDI ?

    Hello,
    maybe anyone has overcome this problem already.
    I am developing a webdynpro application using JDI scenario 2+ (dev in track). The application has a xml ini file and some pictures in the src->mimes->Components folder.
    When I build and deploy the DC directly from the developer studio (DC build, DC deploy), the files appear somewhere at usr/sap/JC00.../temp/webdynpro/.../Components.
    Then I check in->activate->release all changes and transport them from Development to Consolidation. My application changes are transported properly, but the /usr/sap/JC00/../temp/webdynpro ends on the level of my vendor
    --> none of the files at src->mimes->Components have been deployed.
    Does anyone have an idea, what is wrong with my DC/installation ?
    BTW: I have just upgraded all involved machines to NW04 SP13.
    Stefan

    Hi Sidhardt,
    I get an exception thrown by my application because it cannot find an ini file.
    I then examined the file system of the run time system and had to find out, that the directory structure ends after the <vendor> (E:\usr\sap\J2E\JC00\j2ee\cluster\server0\temp\web\tdata).
    Each time I tried it out, I have activated and released by activities and the imported the activity into the Cons. System (for sure) by using the transport studio. The status afterwards was "import succeeded" and the activity appears on the assembly tab.
    Now, after changing the J2EE system of my developer studio to the run time system SMA922, the file exists at
    E:\usr\sap\J2E\JC00\j2ee\cluster\server0\temp\web\tdata\td~cp.webgui\Components\de.technidata.cfp.suppliercollaboration.SupplierCollaboration\cfp_ini.xml.
    Vendor: tdata
    DC: td/cp.webgui
    WebDynpro Component: SupplierCollaboration
    Component package:  de.technidata.cfp.suppliercollaboration
    Does this information help you ?
    Regards,
    Stefan

  • When I try to copy files from my computer (just pics) to my iPhone's media folder via Finder under 10.7, I get this error...

    I'm using MacFuse to connect via Finder. It worked before, even on 10.7. But since I cannected th eiPhone to my Windows 7 dual boot partition, now it won't work! Maybe it was just a coincidence, not sure. Just returns this error:
    "The operation can’t be completed because an unexpected error occurred (error code -8003)."
    I get this one when I try to copy files OFF of the iPhone:
    "The operation can’t be completed because an unexpected error occurred (error code -8072)."
    Sounds like a permissions error to me. So I fixed permissions on my Mac with disc utility, but same problem. Then chmod with terminal the media folder. Did nothing. So I can't change permissions, and they're not broken. What could've happened? I'm like, locked out of my device!

    Repair Apple Application Support.
    START/CONTROL PANEL/PROGRAMS N FEATURES/highlight APPLE APPLICATION SUPPORT, then click the REPAIR button

  • When I try to copy my iTunes music to my music folder on my external drive it says "The operation can't be completed because the item "audio" is in use." How do I get this to go away so I can copy the files?

    I have never gotten this error before. I also tried restarting my computer but it says the same thing. I had no problem copying my documents or photos. Please help!

    Quit iTunes if it's running. Launch the Activity Monitor application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Activity Monitor in the page that opens.
    Select My Processes from the menu in the toolbar of the Activity Monitor window, if not already selected. Enter "iTunes" (without the quotes) in the "Filter" text field. Select and quit any process shown in the process table. Try the copy again.

  • Why I cant view my picture on my iphoto and if I try to copy to any folder it Shows "The item on the clipboard cant be pasted to this location. (One or more of the item may have been deleted or are no longer available) "

    Why I cant view my picture on my iphoto and if I try to copy to any folder it Shows "The item on the clipboard cant be pasted to this location. (One or more of the item may have been deleted or are no longer available) "

    There are 9 different versions of iPhoto and they run on 9 different versions of the Operating System. The tricks and tips for dealing with issues vary depending on the version of iPhoto and the version of the OS. So to get help you need to give as much information as you can. Include things like:
    - What version of iPhoto.
    - What version of the Operating System.
    - Details. Describe the problem as fully as you can. For example, if you have a problem with exporting, then explain by describing how you are trying to export, and so on.
    - History: Is this going on long? Has anything been installed or deleted? - Are there error messages?
    - What steps have you tried already to solve the issue.
    - Anything unusual about your set up? Or how you use iPhoto?
    Anything else you can think of that might help someone understand the problem you have.

  • Hello. I am running the newest version of itunes on my PC. everytime I try to copy a cd to itunes it gives me an error message that says I do not have write access for my itunes media folder or a folder within it. I cannot get this resolved.

    Hello. I am running the newest version of itunes on my PC. everytime I try to copy a cd to itunes it gives me an error message that says I do not have write access for my itunes media folder or a folder within it. I cannot get this resolved using the solution given on the error message. I have been using itunes for 4 years and have never encountered this problem until yesterday. Help would be greatly appreciated.

    Quit iTunes.
    Go to My Music folder.
    Select the iTunes folder, right click > Properties.
    Click the Security tab and make sure you have full Read/Write privileges.

  • I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen

    I am using an iMac and i am selling it tomorrow. So i am trying to back up all my files on my transcend external HD 500GB. I am not able to create a folder in the transcend and also even if I try to copy a file in the transcend folder. It just wont happen. Please help !!
    My transcend HD is on read only mode I guess. What to do? I dont have a windows computer to check and I need to create the back up right now..

    Welcome to Apple Support Communities
    It looks like the external disk is formatted in NTFS, a format that OS X can't write in. The solution is to format the external drive in "Mac OS Extended (Journaled)" (if you are going to get a Mac), or "MS-DOS (FAT)" (if you are going to get a PC) as Format in Disk Utility > http://pondini.org/OSX/DU1.html
    Then, you will be able to copy the files you need to the external drive. Note that "MS-DOS (FAT)" doesn't support files bigger than 4 GB.
    <Edited By Host>

  • I just installed Camera Raw 8.7.1. It put the folders in a "Pug-Ins" folder under \Programs\Common Files. My Photoshop CC 2014 is in \Programs\Adobe\Adobe Photoshop CC2014. When I try to open a NEF file from my Nikon D750, CC 2014 says it cannot open it;

    I just installed Camera Raw 8.7.1. It put the folders in a "Pug-Ins" folder under \Programs\Common Files. My Photoshop CC 2014 is in \Programs\Adobe\Adobe Photoshop CC2014. When I try to open a NEF file from my Nikon D750, CC 2014 says it cannot open it; it is an unsupported file type. So what do I need to do? TIA, Rob

    *** Moved to Photoshop Discussion Thread ***

Maybe you are looking for

  • G5 Power PC vs Imac...which is better for editing with final cut studio 2?

    This is my present computer: iMac 3.06GHz Core 2 Duo (2008 model) 4 gigs of 800 mhz ddr2 sdram (this is the max ram for this computer! ) NVIDIA GeForce 8800 GS 512 MB Hard drive: 465 gig (I use mainly external drives for editing) I use this mainly fo

  • Anyone else have this problem with mail on 4s ?

    Whenever I load mail app , my mail would say downloading on the bottom.. it would try to download 150 emails.. than it says downloading 300 emails . Anyone else ahve this problem ? This just started with IOS 7  and I have no clue how to fix this . My

  • Thumbnails stopped working in Elements 9

    I have about 5000 photos in elements 9 organizer.  I recently imported a few hundred more from Iphoto on my Imac.  The thumbnails for those new imports do not display.  I can get the thumbnails for all of the previous 5000 photos but not for these. 

  • Ipad/iphone accepts browser proxy setting with IPSEC but not PC or Mac

    I have two ASA5505's in failover and set up the the IPSEC client group policy for non-inherited browser proxy settings. I have a manual IP address and the typical port 8080 configured. What is not working are Windows and Macbook laptop clients. iPads

  • Cleaning up Podcasts on itunes interface

    In order not to lose the subscription to the podcast program i want, but in the interest of clearing those i do not want anymore ( videos i have seen already ) how do i without losing the subscription trash permanently these messy and growingly space