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>?

Similar Messages

  • I backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    i backup my iphone on my pc and copy backup file into drive D then i setup new OS on my pc. after that i copy the backup file into itunes backup folder but itunes can't find the backup file to restore my iphone. how can i restore my iphone?

    Don't you just love changes in interfaces?
    I found the answer to my question.
    When you attach a device (iPhone, iPad) to your Mac, in iTunes 12 in appears as a tiny icon in the second "row" of the iTunes display. Click the icon and the familiar iTunes display for the device appears. From there, on the Summary screen, you can see the dates of the backups of the device (iCloud and backup to the computer). You can also use the button to backup to the computer.

  • Images I move from one folder into another are disappearing, at first it was occurring immediately if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location.

    Images I move from one folder into another are disappearing, at first it was occurring immediately and only if I did not copy and paste the images. Today however I found out that images I had been using for days just up and vanished from their new location. A few of these images had copies in another folder that remained and the ones I couldn't find may or may not have ever had copies. I had backed up my system with time machine recently as well, so I went into the backup to retreive the lost images. When I searched and found the backup copies I got the error "the file alias cannot be opened because the original cannot be located". The crazy thing is that the images that remained on my computer did not give me the same error and opened like they should.
    In short images that I am creating, saving, and using are disapearing so epically that even time machine versions are affected when retrieval is attempted. Any suggestions as to what I could be doing wrong without realizing it? Or perhaps other people have had similar bugs that are software related and have a solution?

    Hi Kevin,
    I understand what you tried to do but it doesn't work that way. Swapping drive names will just mess things up.
    You should be able to reconnect the files though: in the Locate Referenced Files dialog make sure you click the Show Reconnect Options button — this will give you access to all the connected drives. Locate one of the files and hit Reconnect All. Should do the trick.
    Best

  • How to copy contents of folder into new folder with Automator?

    What is the simplest, fastest Automator workflow to copy the contents of a folder into a new folder? And without using 3rd party actions.
    I have a template folder structure called .ProjectFolder (to keep it invisible) so I need to copy the contents of this folder into a new folder, preferably with the ability to name the new folder on the fly. I don't want to use 3rd party actions because this is something I then need to maintain. Thanks.

    957911 wrote:
    Oracle guru,
    I am looking for a before or after trigger statement that will copy existing values inserted in the previous row into columns A & B. Then insert those values in a new row into column A & B if null? Same table. Hopefully my question is clear enough.
    -Oracle 10g express
    -I have an existing " before insert trigger" that insert id and timestamps when a new row is created.
    -Table is composed of column like id,timestamps,A,B and more.
    Thanks in advance
    PierreI will call it a very Wrong design.
    It is a wrong Table Design. You are duplicating the data in table and not complying with the Database Normalization rules.
    How about Verifying if Column A & B are NULL before inserting and inserting another row and avoiding it in Triggers?
    If you are bent to achieve this, below code might be helpful. However, I would never go with this approach. If you would care about explaining the reason for going ahead with such a data model, people could suggest better alternative that might conform with Normalization rules.
    create or replace trigger trg_test_table
    after insert on test_table
    for each row
    declare
      pragma autonomous_transaction;
    begin
      if :new.col_a is null and :new.col_b is null then
        insert into test_table
        select 2, systimestamp, col_a, col_b
          from test_table
         where pk_col = (select max(pk_col) from test_table b where b.pk_col < :new.pk_col);
      end if;
      commit;
    end trg_test_table;Read SQL and PL/SQL FAQ and post the mentioned details.
    Do not forget to mention output from
    select * from v$version;

  • I copied my PS CS5 Plug Ins folder into my CS6  one & it started having problems opening & errors...

    I copied my PS CS5 Plug Ins folder into my CS6  one & it started having problems opening & errors... would someone be able to tell me what the basic/original ones should be in PS CS^6 Plug In folder please?

    That would be any other plug-ins you've installed after Photoshop.  Out of the box that folder is completely empty with Photoshop CS6.
    To be completely accurate, what you did wrong was that you copied plug-ins that were supplied by Adobe with the earlier version of Photoshop.  Those plug-ins logically conflict with the current ones Adobe supplies with Photoshop, which are now provided in another place.
    They've changed the folder structure, so no longer are any plug-ins supplied by Adobe put in that folder.  Hopefully for a future version update you can copy those you have in Photoshop CS6 without getting yourself into the same trouble.
    -Noel

  • I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?

    I have copied my CDs into iTunes  (currently running v11) to play on my iPod.  I have now bought a non Apple mp3 player to use when I am out running.  How can I copy the many tracks I want from iTunes onto the new player?
    Thanks

    I tried Notpod but can't get it to work.  Part of the problem, I suspect, is that I can't create a folder on my player (a SanDisk Clip+).  I also can't do this in Windows Explorer.  Whilst I can see the Clip+ in Explorer, the option to create a new folder isn't there.
    The error mesag I get in Notpod is:
    "Unhandled exception has occurred in your application.  If you click Continue, the application will ignore this error and attempt to continue.  If you click Quit the application will close immediately.
    InvalidArgument=Value of '0' is not valid for 'SelctedIndex'. Parameter name: SelectedIndex"
    Then, when I plug the Clip+ into a USB port, iTunes thinks it is my iPad - which is because, I guess, Notpod hasn't worked.
    I can drag and drop files from the Music folder where my iTunes tracks are stored onto the Clip+ and they get converted but I'd rather synchronise a Playlist from iTunes if I can.
    Thanks anyone who can help

  • How do I share my movies with my wife's iTunes account on the same iMac, without having to actually copy the movie into her library?

    I apologize if this is already in the forum somewhere, I simply could not find this question being asked anywhere.  We have an iMac running Lion with all of the latest updates as well as the latest version of iTunes.  All of the digital movies we've purchased through iTunes, have been purchased through my iTunes account.  However, my wife is the one with the iPad, and syncs it with her own iTunes library and her own Apple ID.  I have turned on Homesharing for my library, and she can see my library from within her iTunes account.  We turned on the feature to automatically copy new movies into her library so that she could sync those movies onto her iPad.  However, I quickly discovered that it is literally storing a second copy of the movie file in her iTunes folder, and therefore eating up precious hard drive space.  Is there a way for her to "check" movies in my homeshare library from within iTunes to sync with her iPad when she connects it, without actually copying those movies into her iTunes folder?  If not, any suggestions on how we can solve this issue?

    What you're describing is the expected behaviour.  I believe though that is also is the easiest way to have all the contents available to both of you at all times.  If you have a spacious hard drive you should probably allow this to happen as anything else will be harder to manage.
    My suggestion would be the following if you want to try something different.
    Store all your music at a location that is accessible by both of you — an example would be to use your Public Folder as the locations where iTunes will go and look for all the media files—.  Your wife does have access to it.
    In the Finder you will need to move the folder name iTunes Music to the location in your Public Folder (see above).  Once that's done, you and your wife will have to go into the iTunes Preferences > Advance Preferences and un-check Copy files to iTunes Media folder when adding to library.  From this point on, you can continue to use iTunes as usual.  You'll need to tell your wife what has been newly downloaded/imported into your iTunes so she can manually go look for those items in that Public Folder iTunes of yours and import them into her iTunes.  She will not duplicate by doing that, but, like I say this is an all-manual work.
    She can do the same, so you have access to contents she imported herself.  One more downside of this is that both usernames have to be active in your iMac.  If yours isn't, she won't be able to access any item (song, book, app) located in your Public Folder's iTunes.
    I'm sure there's a way, if you have an router with external hard drive conectivity, for both of you to be able to access —independently— the iTunes Media at all times but I was just reading at another post that doing so can further complicate things.
    Hope this helps.  Please let me know what you think or decide to do.
    Jorge...

  • How do I copy iTunes folder which is on my external hard drive to my iTunes folder on my mini mac?

    I am new to Apple computers.  I have just downloaded an iTunes file from my pc onto an external hard drive and I want to know how I copy this file into my iTunes folder on my imac.

    Connect the external hard drive to your iMac.
    Open iTunes, go to the File menu, then select the item "Import into Library" and select your song in the file chooser that will appear. Press the ok button.

  • Importing *.url favorites (from a HDD folder) into Mac - HELP?!

    Background:
    My old PC (running Win. XP) hard disc drive failed, and I had a local computer shop clear the contents onto a 500GB external HDD as I couldn't do it.
    Issue:
    They have put the favorites into a folder, simply with all the links down as .url ending files. eg:
    remember to do this.url
    shop link.url
    website link.url
    etc...
    How on earth do I get these into Safari (or even Firefox) on my Mac? I tried importing with both browsers, but they can't recognise the filetype it seems. While Safari (but NOT Firefox) can open each link individually if I click on it, as I have 1000+ in here, I can't possibly open them all rename and resave; I need to do a mass-import job.
    (Note I don't have access to a Windows machine, and importantly they are coming from a file on a separate HDD and not from Windows machine where they can perhaps be exported out.)
    ...did some Googling, but no joy. Help appreciated

    DONE IT !!
    Finally found this out myself...
    You will need (borrow): *a Windows machine (or have it running in bootcamp/virtual machine on mac)*.
    {quote:title=*Follow this:*}{quote}
    – copy the folder with all your *.url files in it onto the Windows machine (eg. onto the desktop); a usb stick or email the file to the win machine seems easiest.
    – find the Favorites folder on the win machine (I was using old win98 where it's at ~WindowsFavorites, but may be slightly different path on newer versions), where you'll notice all the fav's already on the win machine you are using (if any) will be saved as .url ending files.
    – copy & paste your .url links into that folder in one go (or just select the ones you want).
    – open IE (Internet Explorer), and export the fav's under the File drop-menu option; usually Export or similar. It will produce an .htm file and ask where you want to save (back onto Desktop perhaps).
    – copy this .htm file onto your Mac somewhere (via usb stick/email, again), open *Safari>File>Import Bookmarks*, and they'll appear inside Safari as an imported set of bookmarks. (NB: you may/may not have to change the file ending from .htm to .html manually before importing for it to work.)
    Et voila!
    Now you can do what you like with them (including re-sorting/re-filing, or importing/exporting to Firefox/other browser of choice, or upload to online bookmark site, or ... well you get the idea).
    Pain in the backside you can't do this natively inside OS X, but at least there IS a solution. Shame it took me hours to work it out!

  • Move a large folder into another folder without the need of a time machine backup?

    I have a large folder (FolderX) about 40GB and i was wondering if it is possible to move the folder into another folder, but also move it in my time machine backup so it won't see the need to backup, because it will cost me a extra 40GB of storage while the folder is allready on the backup HD.
    So to give a picture:
    Current situation:
    Macintosh HD > Users > Username > Documents > FolderX
    Wanted move:
    Macintosh HD > Users > Username > Documents > Work > FolderX
    Is this possible?

    Did you copy the TM files, or move them? If you moved them, the repository is destroyed. Erase the volume and start over.

  • Cannot copy iTunes folder from Windows to Mac because of Permission

    I have my iTunes library on a windows machine, running windows 7. The library is organized inside the iTunes folder.
    I am trying to put this same iTunes onto my new macbook pro. I tried copying the folder to an external HD and plugging that into my mac. When I tried to just copy the iTunes folder to the Mac HD I got:
    I messed around with the permissions in Windows, but I couldn't get it to change. I tried everything I could find in the security tab for the disk and the permissions on the folder.
    I decided to try and see if iTunes could just do it itself. So I replaced it itunes library (which was blank) on my Mac with that of my windows. I then opened a song, and followed the promt to locate it. iTunes found all my songs (on the external HD) just as you would expect. Now I tried to consolidate to get everything over to the mac. About halfway through i got this error:
    So SOME of the songs and apps and books copied over but only about half and now it won't go any further. I went back to windows and tried to mess with the HD secruities again, but nothing worked.
    One more note: when I open the HD on my mac it says "You have read access only" in the security tab. I know every other thread on this like suggests changing that but there is nowhere for me to do that.
    Can anyone help me?

    I then opened a song, and followed the promt to locate it. iTunes found all my songs (on the external HD) just as you would expect.
    That's not what I would expect if you copied the entire /iTunes/ folder to the new computer.
    Try this...
    Open a Finder window.
    Select Users/yourusernname.
    Right click - get info.
    Scroll to the bottom (Sharing & Permissions).
    Make sure you can Read & Write.
    Click the gear icon at bottom and select Apply to enclosed items.
    Let it finish.
    Delete the /Music/iTunes/ folder.
    Then  copy the entire /iTunes/ folder from the external to /Music/ on the internal.

  • 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 ;-)))

  • Create new Collection by simply dragging a "Folder" into "Collections"

    Ability to create new Collection by simply dragging a "Folder" into "Collections". Currently the collection name has to be created manually and files dragged into it.
    Note: Collections are important because this is the only way you can have "virtual copies" separated into different folders. For example I wanted to have set of virtual B&W images in its own folder (and the original color images in a different folder). You could only do this in "Collections". "Folders" does not allow you to separate a virtual copy from its original (because the virt copy is not really a file).
    Joe

    Thanks Sean, Good analogy! I'll have to give your method a try.
    However, I'm finding that in LR1.0 I'll probably need to create a "Collection" of almost all my "Folders" (past and future) because of the ability to have virtual copies separated into sub collections. To do so, even in the way you describe, seems to require too much typing. It would be nice to be able to simply drag folders (which I've already gone to the trouble of naming) into a Collection and have it keep the name. In Beta 4 you only had "Shoots" to deal with, hence it wasn't an issue. Now you have "Folders" and "Collections". That in itself is a little confusing; but I understand why it was done (i.e. the "why no folders?" complaints of beta testers).
    Speaking of not liking to type; I've already typed too much here... : )
    -Joe

  • I accidentally cut instead of copied a folder of previously imported raw files. When I pasted the folder back I could see it in Windows Explore but not in the LR library. How can I work with these files again?

    HI,
    My daughter will often ask me to give her raw files I've taken at family events so that she can process them in her own copy of LR. (I work too slowly, apparently.) Recently I inadvertently cut instead of copied a folder. When I pasted it back I could see it in Windows Explorer but not in my LR library. I thought that re-importing the files might work, LR gave me a message that they were already imported. I expect there is a way to make the files available again in LR and would be grateful for some advice.
    thanks
    Ken

    The solutions is either of the following:
    Adobe Lightroom - Find moved or missing files and folders
    Copy the photos back into the exact same folder and folder location that they were in before
    I don't know what you actually did "when I pasted it back" ... but the bigger issue is that you shouldn't be working with these files in your operating system, period. Once you import them into Lightroom, you don't manage these files in your operating system.

  • Robocopy not copying the folder creation date

    We migrate the data between 2  Windowsfile servers using robocopy and it works finew ith issues. Only issue is it doesnt copy the folder creatiopn date from source to destination server, it does copy the file creation date without any issues. Command
    we use is as below.
    robocopy.exe %1 %2 /COPYALL /MIR /ZB /R:10 /W:2 /TEE /DCOPY /LOG+:robocopy_%3.log
    This command is called using a batch file where we specify the source and destination using the below syntax.
    call Robocopy_Module.bat "C:\Backup" "C:\Restore"
    Kindly advise if this is normal behaviour , if not what is the correct command used to copy the Folder creation dates.

    I was using like this
    Go to CMD prompt,
    RUN as Administrator
    Type  
    robocopy "source path" "destination Path" / MIR
    It will copy including time stamps.
    or create seprate folder in a destination place and copy everything into that folder.
    It will work.

Maybe you are looking for

  • Difference between  crm 3.0  and crm  4.0  and crm 5.0

    Please  tell  what is diff  between  crm  3,4,5. Thanks

  • Problem with my canvas

    I have two classes. I try to write �test� in a Canvas, but nothing happens, why? import java.applet.*; import java.awt.*; public class fot extends Applet { myCanvas bild; public void init(){ bild = new myCanvas(); add(bild);} public class myCanvas ex

  • OMS sysman password reset

    I installed OEM on my Windows 2000 client successfully. I logged in as sysman and changed my password. I wish to now re- set my password as I can't remember what it was. The question is does anyone know how to reset the sysman super administrator pas

  • Photoshop Elements Organizer Iphoto

    I've used Photoshop Elements (3.0) Organizer for about a year, and I have inserted Notes on a lot of my pictures, which I assume is similar to the Comments section of iphoto. Is there any way (besides retyping/copying/pasting) to get those Notes into

  • Add search (torch) functionality with in custom form

    Hi I wanted to add search functionality (torch) in my custom form. How to do that? Any guideline or ez steps to follow to give serach on certain field of my custom form? regards