Problem renaming entry

Running following code to rename entries:
Hashtable hashtableEnvironment = new Hashtable();
hashtableEnvironment.put(
Context.INITIAL_CONTEXT_FACTORY,
"com.sun.jndi.ldap.LdapCtxFactory"
hashtableEnvironment.put(
Context.PROVIDER_URL, "ldap://ip:port"
Hashtable env;
//read parameters from properties file
readParameters();
env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY,initialContextFactoryLDAP);
env.put(Context.PROVIDER_URL,providerUrlLDAP);
env.put(Context.SECURITY_PRINCIPAL,securityPrincipalLDAP);
env.put(Context.SECURITY_CREDENTIALS,securityCredentialsLDAP);
env.put("java.naming.ldap.version","3");
DirContext dirContext = new InitialDirContext(env);
String DNa = "o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi";
String DNb = "ou=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi";
dirContext.rename(DNa, DNb);
dirContext.close();
Exception follows:
javax.naming.InvalidNameException: o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=A
mmattilaiset, c=fi: [LDAP: error code 64 - Update Error: Naming Violation]; rema
ining name 'o=testiPT, o=testiPT, o=testiRP, o=Juuri, l=Ammattilaiset, c=fi'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(Unknown Source)
at com.sun.jndi.ldap.LdapCtx.c_rename(Unknown Source)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_rename(Unknown Source)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(Unknown Sourc
e)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(Unknown Sourc
e)
at javax.naming.InitialContext.rename(Unknown Source)
at LDAP.main(LDAP.java:64)
Renaming the leaf-node goes well, but any middle-node brings the above exception.
The LDAP server is providing both versions 2 and 3 simultaneusly. The admin tells me its ok and that there should be no problem with the server maybe being restricted to v2... Anyone had similar case? Any ideas would be appreciated.
Thanks,
Igor

Little more specifically about the above question; renaming just the leaf name works fine, but changeing any node-type (= o --> ou) gives problems.
Igor

Similar Messages

  • Rename entry

    Hi!
    I'm trying to rename entries of my openldap directory, but when I do 'ctx.rename("uid=nom1,ou=People","uid=nom2,ou=People);' I've got the Exception : NameAlreadyBoundException, whereas It's a new rdn????
    Could someone explain my what's the problem???
    Tanks a lot !
    Lucie

    whether u want to rename or rebindI want to have exactly the same entry, with a new name : rename isn't what I have to do? If I do a rebind,and unbind the old entry, I will do exactly the same work as the work of a rename, won't I???

  • I have Speedgrade CS6 installed on my Mac and i have problems renaming my layers when I am grading. I was wondering if anybody can tell me how to rename my layers(Under the look tab). If not, is it because thins is not possible in Speedgrade CS6.

    I have Speedgrade CS6 installed on my Mac and i have problems renaming my layers when I am grading. I was wondering if anybody can tell me how to rename my layers(Under the look tab). If not, is it because this is not possible in Speedgrade CS6.

    No you can't. Renaming grading layers is a features since version 7 a.k.a. CC. Time to upgrade?

  • Problem renaming items

    I have encountered a problem renaming two different page items. The items are date items and are on different pages. The problem was that the validation for the item only worked for the previous item name.
    After I deleted the old item and created a new item with the new name, the validations started working. However, even after deleting the old item, the validation still also works with the old name.
    I'm using 1.6.0.00.87. The problem is similar to the one reported here: Re: Process Only Works with Previous Item Name I also did this within the same session as in that case. After logging out and back in, it was no longer possible to reference the old item in the validation. However, renaming the new item causes the problem again, so it's a readily reproducible problem.
    Rodney

    I mentioned that there were two different items to indicate that the problem happened two separate times for unrelated items, so it wasn't a one-time fluke.
    The scenario...
    1. Start with a working page with an item and a validation for that item and an action to trigger the validation.
    2. Test the page with a case that causes the validation to fail.
    3. Edit the page..
    3a. Change the name of the item.
    3b. Change the name of the item referenced in the Validation Expression 1 field of the validation to match the new item name.
    4. Test the page and notice that the validation always fails even when you enter valid values.
    I expect your statement: "BTW, anytime you rename an item, you'll have to test the revised application in a new session." applies. Have I been too dense to notice a warning about this gotcha? If not, I'd suggest documenting this prominently somewhere since the developer interface makes it look like there would be no problem especially since some item references automatically change when an item name is changed (e.g., the Associated Item field in the Error Messaging section of the validation).
    Rodney

  • Calendar problem - recurring entries

    Since downloading 4.7 to solve another problem, Outlook entries that were previously "1 day" recurring entries (i.e., birthdays), now span 2 days and say 6:00 am to 6 am.  This in turn, has been taken up by Outlook on my computer.  Help!

    Yes, I have this problem. In my case, it appears as unwanted recurring entries on iCal, which are not there on the iPhone.
    There's major problems with synching iPhones with iCal via iTunes. Apple have told me that they do not advise this route (USB/iTunes) for iOS4 iPhones synching with iCal, instead they advise over-the-air synching via MobileMe (but that is fraught with problems too).

  • Problem rename sharepoint 2010 search service application admin database

    Hi all,
    i have a problem that hopefully someone has an answer to.  i am not too familiar with sharepoint so please excuse my ignorance.
    we have sharepoint 2010 on a windows 2008r2 server.  everything seems to work fine.  but as you know, the default database names are horrendous.  i have managed to rename all of them, except for the "search service application" admin
    database.
    the default is: Search_Service_Application_DB_<guid>
    the other 2 databases (crawl and property) were renamed without a problem.
    we are following the article from technet on how to rename the search service admin db (http://technet.microsoft.com/en-nz/library/ff851878%28en-us%29.aspx).  it says to enter the following command:
    $searchapp | Set-SPEnterpriseSearchServiceApplication -DatabaseName "new database name" -DatabaseServer "dbserver"
    however, i get an error about identity being null.  no big deal, i add the -Identity switch and the name of my search service application.  but the real problem comes the error it throws:
    Set-SPEnterpriseSearchServiceApplication : The requested database move was aborted as the associated search application is not paused.
    At line:1 char:54
    + $searchapp | Set-SPEnterpriseSearchServiceApplication <<<<  -Identity "Search Service Application" -DatabaseName "SharePoint2010_Search_Service_Application_DB" -DatabaseServer "dbserver"
        + CategoryInfo          : InvalidData: (Microsoft.Offic...viceApplication:
       SetSearchServiceApplication) [Set-SPEnterpriseSearchServiceApplication], I
      nvalidOperationException
        + FullyQualifiedErrorId : Microsoft.Office.Server.Search.Cmdlet.SetSearchS
       erviceApplication
    when i look at the crawling content sources, i see "Local SharePoint Sites" and it's status is Idle.  i even looked at this article on how to pause the search to no avail.  (http://technet.microsoft.com/en-us/library/ee808864.aspx)
    does someone know how i can rename my Search Service Applcation Admin database properly?  or at least "pause" that service so i can rename it?
    thank you all in advanced

    If you want to have no guids for your search admin db, i recommend you check out this script :)
    just delete your search service application (assuming you have just started)
    Alpesh Nakar's Blog
    Alpesh
    Just SharePoint Just SharePoint Updates
    SharePoint Conference Southeast Asia
    Oct 26-27 2010 Contributing Author
    SharePoint 2010 Unleashed
    MCTS: SharePoint 2010 Configuration
    MCITP: SharePoint 2010 Administrator

  • Problem with entries from the ical client/server

    Hi together,
    I have the problem that my events are not longer visible in the ical-client of my assistant and I also can not see the events from her. Also I can not see this/my entries on the other clients (iphone, ipad).
    When I add an entry to my calendar on mac Book an then I look the the calendar in the wiki (to have a look on the server local) I can not see my calendar-entries there. So they are not written down. But why?
    In the log I find a lot of this entries:
    127.0.0.1 - "user as xxb" 08/Nov/2010:10:11:58 +0200 "REPORT(CalDAV:calendar-query) /calendars/_uids_/wiki-xxb/calendar/ HTTP/1.1" 207 65 "https://www.xxxx.ch/groups/xxb/" "Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; de; rv:1.9.2.12) Gecko/20101026 Firefox/3.6.12" i=8012 t=131.9 or=1 responses=0
    and:
    2010-11-08 09:56:29+0100 [-] caldav-8009 [-] http://twistedcaldav.method.propfind#error Error reading property ('DAV:', 'current-user-privilege-set') for resource /calendars/_uids_/wiki-xxb/calendar/: <StatusResponse 401 Access denied while reading property {DAV:}current-user-privilege-set.>
    and:
    2010-11-08 09:56:52+0100 [-] mailgateway 2010-11-08 09:56:52+0100 IMAP4DownloadProtocol,client http://twistedcaldav.mail.IMAP4DownloadProtocol#error IMAP login failed for icaladmin
    Does someone have an idea what the problem may be?
    It worked fine till the begin of last week - I can not remember to change something in this time.
    Thanks
    Marco

    COH-571 is corrected in the 3.2 pre-release. See:
    http://wiki.tangosol.com/display/COH32UG/Release+Notes
    Sorry for the inconvenience :) .. if you prefer a patch for 3.1 or 3.1.1, it will still be available from support at Tangosol.
    Peace.

  • Problems renaming and batch renaming in Bridge

    Hello Everyone,
    I am having trouble renaming files in Bridge.
    I am connected to my companies server but on certain folders I cannot rename files within here. The batch rename button becomes unclickablle.
    I have tried purging the cache for individual folders but no luck as of yet.
    Any help would be amazing.
    Thanks.

    then it is the folder or they said you had access but it is not the case. Don't know how you check this yourself but on a Mac a simple get info command on a file, folder or disk shows if I have access at all and if I have read an write permissions instead of read only.
    If you can rename the files locally but can't copy them to the new location it seems this location is the problem. Just for proof try to copy the same file to a new folder somewhere else.

  • Problem renaming File

    Hello,
    I have a problem about renaming file. This is the file.
    "C:\Documents and Settings\Rose 2\Desktop\download directory\5406-5473\a " . It has no extension so I need to add extension(.mp3). here's my code:
                File mFile = new File(soundFile.getParent(),"a.mp3");
                soundFile.renameTo(mFile);
                System.out.println(mFile.toString());
                if (mFile.exists()) {
                    setAudiofile(mFile);
                } else {
                    System.out.println("mFile does not exist");
                }the soundFile variable is the original file. The output of my code is nothing and I don't see a.mp3.
    Result of System.out.println(mFile .toString()) :
    C:\Documents and Settings\Rose 2\Desktop\download directory\5406-5473\a.mp3
    Thanks in advance and Happy New year!!!

    The output of my code is nothing and I don't see a.mp3.But you posted some output...
    Anyway try if (mFile.exists()) {
        System.out.println("mFile *does* exist");
        setAudiofile(mFile);
    } else {
        System.out.println("mFile does not exist");
    }What is the output?
    By the way, your code gives no hint as to what setAudiofile() does - including the possibility, albeit unlikely, that it deletes a.mp3. Rather than post a snippet excised from a longer piece of code, construct a SSCCE that illustrates renameTo() not working.
    http://homepage1.nifty.com/algafield/sscce.html

  • Web Page Composer: Problems creating entry points for iViews

    Hi experts, i´ve been trying to add an iView to a page. I know i have to create an entry point to a folder created on the PCD.
    I followed instructions on help link http://help.sap.com/saphelp_nw70/helpdata/EN/06/4776399abf4b73945acb8fb4f41473/content.htm
    Now, when i try to create a new entry point link to the pcd folder i don´t see any navigation that can get me to the pcd.
    Actually When i click the browse button it opens the Web Content folder where i can see 2 subfolders
    - Cross-Site Content
    - Sites
    I also have this options:
    - Favorites
    - Personal Documents
    - Recently used
    - Common folders
    - Public Documents
    None of it seems to be the access to the PCD.
    I´ll appreciate any help
    Thanks in advance

    Hi Sandeep,
    i don't know if your problem was solved already.
    Here a quick overview of all steps, that you need to perform.
    1. Make your PCD available in the KM.( See Link below for details) Your folders need to have 'Read'-Permission for the Everyone-group!
    2. Search your iView-folder now in the KM. Look at Details -> Properties -> Access Links -> ID
    3. Provide this ID in the wpcDragExplorerEntryPoints . (Should be sharedcontent=/wpccontent/Cross-Site Content;/documents/MyFolder; /pcd)
    Link to SAP Help Documentation
    Best Regards,
    Marcus
    Edited by: Marcus Böhm on Jul 3, 2008 12:11 PM
    Edited by: Marcus Böhm on Jul 3, 2008 12:13 PM

  • Problems Registry entry Nokia C7

    Hi
    I need some help with Nokia C7
    Registry entry  erases call list every day . The day after I can´t check my old entries .
    i tryed all the settings, but nothing.
     Please help me solve it. it is very annoyng.
    Thanks everybody

    I have to have the same problem, on my nokia C7.

  • Problems with entries into input prompt on browser

    The browser -- be it safari or firefox – doesn't allow me to make input entries at all. This is entirely new to me. Until now I never had problems (OS X 10.8.2). On another partition with 10.6.8 there are no problems. So I actually have to change the partition and the OS version in order to use online banking.
    Whar could be the reason?
    Thanks for useful hints.

    Thanks for the hint. Id didn't solve my problem, though.
    In the meantime I found out that the numeric field was blocked. Although I don't know how I managed to block it, it was blocked in fact and now that I got it unblocked "all is well that ends well".
    Kindest regards WR

  • Problem renaming Soundbooth markers

    Anyone else seeing this - sometimes during marker rename, Soundbooth 1.0 (build 999) nabs capital letters as keyboard shortcuts instead of putting them into the Name field. This is on an Intel Mac OS X 10.4.11. Here is one way to make this happen.
    1. Move aside user Soundbooth settings (optional; sets baseline for test). These are
    ~/Library/Preferences/Adobe/Soundbooth/1.0/Workspace and
    ~/Library/Preferences/Adobe/Soundbooth/1.0/Adobe Soundbooth Prefs
    2. Start Soundbooth.
    3. Open some .mp3 file. File / Open / ... click on file name in browser
    4. Select a stretch of a few seconds in the file by dragging in the Editor panel.
    5. Use the menu bar to zoom - "View / Zoom To Selection". Bug may not appear if you use the keyboard shortcut.
    6. Open Markers panel.
    7. Click "+" icon to add a Marker.
    8. Click in "Name" field to edit marker name. Field outline turns blue.
    9. Try to change name from "Marker 01" to "Marker 01F". Pressing "F" toggles frequency display instead of inserting F into marker name. Other shortcut keys are also erroneously intercepted by the GUI.
    Workarounds:
    Don't use capital letters in marker names.
    Don't use menu form of View/Zoom..., use "S".
    Copy desired marker name from some non-Soundbooth window and paste into Marker panel.
    Save work and restart Soundbooth.

    Scott: It took me this entire day (9 hours), to tediously "sync" my imported soundtrack of various sounds, with 30 jpegs, and it isn't because I'm not doing the procedures correctly. I'll telling you this, because, sadly enough, you might encounter a similar problem in IMovie-09...When you open the clip Duration (Inspector), and change the time of a single image from the usual 04:00 (seconds), to say,03:24, and hit 'Done", then go back to check the time, you'll find that in some cases, the "new" time may be 02:00 or 04:00, or whatever iMovie decides to enter. This doesn't happen with every image, but it did on 3 of mine. I have no idea how to correct/prevent this from happening again tomorrow. (?) I just loaded Logic Studio last week, and thus far, making a film in iMovie *****!
    Good Luck!

  • Problems renaming iPod

    I was recently having problems with some of my songs on my ipod, im not going to go into detail, but some songs would just stop, during play, and my ipod would be non-responsive, and skip onto the next song. So anywho, i restored iPod, thinking the hdd was the problem. It restored, got my songs on there, but now its name is just IPOD. I dont have the option to change it anymore in itunes, and would like to know how I can rename it again.

    Very easily.
    Connect your iPod to your computer. Once you see your iPod in the "Source" list in iTunes, double click on it. The cursor should appear in order for you to backspace on your keyboard and delete the word iPod. Type in whatever you want to name your iPod and hit "Enter". This should do it.
    Why did you say you don't have the option to change the name in iTunes anymore?

  • Problem Renaming iTunes Tracks

    I'd pull my hair out if I had more of it. Periodically, when renaming a track in iTunes the name reverts right before my eyes, when I play the track right after renaming it!
    My process:
    1. I find the track to rename
    2. I select Get Info for the track
    3. I select the field "Name"
    4. I edit the track name
    5. I press "OK"
    6. I go to play the song and the old track name reappears instead of the one I just entered!
    I've even tried renaming the track in the Finder, so that the edit of the name is now in both the Finder and iTunes, and still iTunes reverts it back to the old name.
    Important to Note: This is not a usual occurrence, but happens enough to push me to the edge ...   ;<)

    It now sounds like the files have tags.  Some file formats (mentioned before) do not accept tags, and I think some that do may not have tags until they are created.  At least, in my old version of iTunes there is a "create ID3 tags" feature under Advanced and it creates several different versions as well as "none".
    iTunes works this way.  You add a file; it reads the tag data (if any) and uses that to fill in entries for that data in its own database (Library.itl), so there's some redundancy here.  If you edit the tag, iTunes changes the information in the database and re-writes the file with the new tag data.  If you use a third party editor to change a tag in a file, it will not change in iTunes until you play or activate reading the file, at which time iTunes compares the file tags to its own database and if they differ it updates its  database to match the file tags.  For some reason when you are now changing a tag in iTunes it seems it is not re-writing the file.  It is changing the data in its own database, but when you play the file it is comparing the datasets, seeing the file has different, and changing it all back again.  I don't know why.  I have seen this happen before and reverted to using a third party editor (MP3Rage) to change the tags on the file.  Tagging protocol isn't cast in stone.  It is possible your dBpoweramp is playing by slightly different tagging rules than iTunes, and iTunes cannot edit the tags in those files but it can still read them.
    Things to try:
    If the new iTunes still has the create tags feature see if creating the tags will let them be edited.
    Use a third party editor. 

Maybe you are looking for

  • Removing email address from auto populate box in ICal invites

    I deleted a contact/email address from my address book but his name/email still shows up in ical as choice for invites. His address is not in my mail's "previous recipients" list and is removed from contacts. How do I stop it from being a choice to p

  • File name selection without selecting the extension

    It would be more user friendly if selecting a file name in the metadata field "File Name" would only select the name and not the name + extension. You mostly don't change the extension but you do change the file name. Now if I want to rename a file I

  • Attaching a document from program running in batch

    Hi experts, i need to find a way, to attach a document (e. G. a CV) to an applicant via object services. Problem is, the document will be provided by a program, running in batch-mode without front-end access. I tried to debug the manual action, but u

  • Now that I've added extra RAM...

    ...that is now 3GB of RAM on 2.16ghz 667Mhz processor...I haven't yet noticed anything new other than RAM preview in MOTION 3 is faster. I'd like some opinions from others who have done this and wether the $90 expense is worth it and what advantages

  • Alias for urls

    Hi experts, I have some b2b shops with long url... for example: http://<server>:<port>/b2b/b2b/init.do?scenario.xcm=conf_ipc_bob_prj&shop=INTERNAL&language=ES http://<server>:<port>/b2b/b2b/init.do?&language=ES&shop=SHOP_PRJ&umelogin=YES&scenario.xcm