Error InvalidNameException: Rename node in LDAP

import java.util.Hashtable;
import javax.naming.*;
import javax.naming.directory.*;
import javax.naming.ldap.*;
* Insert the type's description here.
* Creation date: (3/2/2001 9:28:09 AM)
public class test1 {
public static String
INITCTX="com.sun.jndi.ldap.LdapCtxFactory";
public static String MY_HOST="ldap://aks:389/";
public static String MGR_DN="cn=orcladmin";
public static String MGR_PW="welcome";
public static void main(String[] args) {
try
Hashtable env = new Hashtable();
Control[] ctrl = new Control[3];
env.put(Context.INITIAL_CONTEXT_FACTORY,INITCTX);
env.put(Context.PROVIDER_URL, MY_HOST);
env.put(Context.SECURITY_AUTHENTICATION, "simple");
env.put(Context.SECURITY_PRINCIPAL,MGR_DN);
env.put(Context.SECURITY_CREDENTIALS,MGR_PW);
DirContext ctx = new InitialLdapContext(env, null);
ctx.rename("cn=sa1,ou=GPM,o=GPF","cn=sa4,ou=GPM,o=GPF");
ctx.close();
catch(NamingException e) {
     System.out.println(e.getRemainingName());
e.printStackTrace();
System.exit(1);
catch (Exception e) {
     e.printStackTrace();
     System.exit(1);
throws an error:
cn=sa1,ou=GPM,o=GPF
javax.naming.InvalidNameException: cn=sa1,ou=GPM,o=GPF: [LDAP: error code 34 - E
rror in DN Normalization.]; remaining name 'cn=sa1,ou=GPM,o=GPF'
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2593)
at com.sun.jndi.ldap.LdapCtx.processReturnCode(LdapCtx.java:2411)
at com.sun.jndi.ldap.LdapCtx.c_rename(LdapCtx.java:584)
at com.sun.jndi.toolkit.ctx.ComponentContext.p_rename(ComponentContext.j
ava:692)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(PartialCompos
iteContext.java:248)
at com.sun.jndi.toolkit.ctx.PartialCompositeContext.rename(PartialCompos
iteContext.java:239)
at javax.naming.InitialContext.rename(InitialContext.java:382)
at test1.main(test1.java:41)
I have proper data in LDAP which is "Oracle Internet Directory". Rename works properly if i use command line tool provided by Oracle. So this is not a problem with data.
Please help me.
Thanks,
Naveen

Seems that you might have wrong default naming context.
try something like:
public static String
MY_HOST="ldap://aks:389/dc=what,dc=ever,dc=com
Kullervo

Similar Messages

  • Error while renaming column in Apex 3.2.1

    Hi,
    I am getting the following error while renaming column in Oracle Apex 3.2.1 through SQL workshop:
    "ORA-24344: success with compilation error"
    Interestingly, it only gives an error when I rename the column again to its original name. For example, if I renaming the column X to X1 (no problem) but renaming back to X, I get this error. Same is true for X to X1 to X2 without any issues but renaming back from X2 to either X1 or X, I get the same error.
    Any insight into this issue would be very helpful and greatly appreciated.
    Thanks,
    Milaan

    I've moved a step ahead, getting the new apex screen at http://127.0.0.1:8080/apex/ and can also login to my application. However there is no image for Application Express on http://127.0.0.1:8080/apex/ and I cannot click on the Login button. Hitting http://127.0.0.1:8080/i/ does list down the images. Any clue on what could be the problem?
    For others reference: I'm not sure what was wrong, but I tried the entire steps again, with the 2 changes: shutdown the listener and job process ( in step 3.1) before running 'apexins' and second that I installed on SYSAUX and not USERS (in step 4)
    1. Downloaded apex_3.2.1.zip to C:\Software
    2. unzip apex_3.2.1.zip to C:\Software\apex
    3. started command prompt and set these variables
    set ORACLE_HOME=C:\oraclexe\app\oracle\product\10.2.0\server
    set ORACLE_SID=xe
    set ORACLE_PATH=C:\oraclexe\app\oracle\product\10.2.0\server\bin
    set LD_LIBRARY_PATH=C:\oraclexe\app\oracle\product\10.2.0\server\lib
    3.1 Shutdown the listener and job services
    4.
    sqlplus /nolog
    CONNECT SYS as SYSDBA
    @apexins SYSAUX SYSAUX TEMP /i/
    5.
    sqlplus /nolog
    CONNECT SYS as SYSDBA
    @apxchpwd
    6.
    Stopped and Started the Database, also the listener and job processes
    7.
    sqlplus /nolog
    connect sys as sysdba
    @apxldimg.sql c:\software
    8.
    sqlplus /nolog
    connect sys as sysdba
    exec dbms_xdb.setListenerLocalAccess (l_access => FALSE);

  • Error while create user in LDAP - LDAP: error code 1

    Hi Guy's, I am getting below error while creating user in LDAP MS AD.
    cn=3001,ou=sAP_IDM,dc=springswf,dc=comcn<mx:TEXT>putNextEntry failed storingOU=SAP_IDM,DC=springswf,DC=com</mx:TEXT>
    <mx:LTEXT>Exception from Add operation:javaxnaming.NamingException: {LDAP: error code 1 = 00000000: LdapErr: DSID-OC090AE2, coment: In order to perform this operation a successful bind must be completed on the connection.,data0,vece
    Steps I am following:
    1. create a job through wizard and pick from (IC->jobs->Active Directory->Create Active Directory User)
    2. Destination tab values that I am passing:
    dn: cn=Dummyuser,ou=SAP_IDM,dc=<main domain>,dc=com
    objectClass: top|person|organizationalPerson|user
    sn: Surname
    givenName: GivenName
    displayName: Dummy user displayname
    Under <main domain> an OU has been created called SAP_IDM for testing user creation from IDM.
    Admin user account created called <XYZ> and has full control over SAP_IDM OU.
    I am passing <XYZ> credentials into my job for user creation.
    Thanks for you help!

    Farhan,
    Based on the error message presented,
    In order to perform this operation a successful bind must be completed on the connection
    Make sure that you're using the correct information to do the AD Bind.  User name should be something like cn=administrator,cn=users,dc=xxx,dc=xxx and the proper password.
    Matt

  • Web-dynpro application -ERROR: ICF service node "/sap/bc/webdynpro/sap/zqm_cto_arr_general1" does not exist (see SAP Note 1109215) (termination: ERROR_MESSAGE_STATE)

    i have created my web-dynpro application in development. and sent to quality . whenever i will execute my dynpro in quality  i got one message
    ERROR: ICF service node "/sap/bc/webdynpro/sap/zqm_cto_arr_general1" does not exist (see SAP Note 1109215) (termination: ERROR_MESSAGE_STATE)
    whenever i saw  sicf  transaction my web-dynpro is not seen . my dynpro application name is more then 15 character. what i will do . please give me valuable suggestion.....

    Hi Ashok,
                   for your requirement the application is not exist in particular place. It means, the webdynpro application is saved at different package or different location.
                  Please change the webdynpro component name and save it in particular request in package, then transport it to quality ..(development server )
    then go to SICF  t.code .. sap->bc->webdynpro->sap->find  out your application and activate the service of your webdynpro application.
    Now test it ... this solution might helpful to you .
    Regards,
    Naveen M

  • Error in BPM - Error when processing node '0000000065' ParForEach index

    Hi All,
    I have an issue .. I have done 1:n mapping successfully and would like to place the Send step in loop instead of a Block .. The reason being I have the count of how many times the Send step should executed for multiline.. I need to receive an Acknowledgement for each send step.. If I dont receive the required number of Acknowledgements then .. I need to revert back some Creations which is a business requirement ..
    So .. I have initialized a container operation variable i to '0' .. Then the loop condition is i < count .. Send the multi-container .. Receive the Response .. If dont receive the desired response for any one of the multi-line then I need to do a cancellation process in a loop again .. So .. now I am getting an Exception "Error when processing node '0000000065' (ParForEach index 000000)
    Message no. SWP088" in the loop step ..
    It is fine if somebody can suggest alternate logic can be applied as well but first preference to use a loop which consumes lesser system resources ..
    Kindly look into the Issue
    Regards,
    Raj
    Edited by: raj2112 on Sep 21, 2010 2:34 PM

    if you use a loop step, you will send one message per time. ussing block step you have parallel processing ussing ParForEach. now is for  X reason the item cannot be created, do a roll back in the target system. the problem here you will do the rollback once the last message reach.
    the other posibility is to handle application ack in the sender step. it will let you know it the message was processed success and this ack could be the end condition of your block step. but you cannot use this with loop step.
    take a look to this
    http://help.sap.com/saphelp_nw04/helpdata/en/55/65c844539349e9b1450581ab44a5e6/frameset.htm

  • DAC message while running execution plan - "Error while loading nodes"

    I have just installed and setup Informatica 8.6.1, DAC, BI apps 7.9.6 for a Oracle Ebs R12.1.1 source instance
    In informatica I have defined 2 relational sources "DataWarehouse" and "ORA_R1211" - the same names as in physical data sources of DAC
    I have mentioned the flatfile parameter as "ORA_R1211_Flatfile" in DAC
    after successfully build, when I run the ETL the error "Error while loading nodes" occurs.
    the log file shows the following details:
    START OF ETL
    20 SEVERE Sat Apr 23 21:57:58 GST 2011
    ANOMALY INFO::: Error while loading nodes.
    EXCEPTION CLASS::: java.lang.NullPointerException
    com.siebel.etl.engine.core.SessionHandler.getNodes(SessionHandler.java:2842)
    com.siebel.etl.engine.core.SessionHandler.loadNodes(SessionHandler.java:473)
    com.siebel.etl.engine.core.ETL.thisETLProcess(ETL.java:372)
    com.siebel.etl.engine.core.ETL.run(ETL.java:658)
    com.siebel.etl.engine.core.ETL.execute(ETL.java:910)
    com.siebel.etl.etlmanager.EtlExecutionManager$1.executeEtlProcess(EtlExecutionManager.java:210)
    com.siebel.etl.etlmanager.EtlExecutionManager$1.run(EtlExecutionManager.java:165)
    java.lang.Thread.run(Thread.java:619)
    21 SEVERE Sat Apr 23 21:57:58 GST 2011
    *     CLOSING THE CONNECTION POOL DataWarehouse
    22 SEVERE Sat Apr 23 21:57:58 GST 2011
    *     CLOSING THE CONNECTION POOL ORA_R1211
    23 SEVERE Sat Apr 23 21:57:58 GST 2011
    END OF ETL
    *****************

    Hi,
    Mark the current EP as completed and re-assemble the subject area, generate parameters and build the EP and run the load.
    Thanks,
    Navin KumarBolla

  • Reg:bsp error in ICF node

    hi ,
    i had developed a BSP Application in sap 4.7 ,but when i test it iam getting the below error .
    certain ICF nodes must be released in transaction SICF for the BSP Extensions HTMLB
    SAP/BC/BSP/SAP/SYSTEM
    SAP/BC/BSP/SAP/PUBLIC/BC
    SAP/PUBLIC/BSP/SAP/PUBLIC/BC
    could any one help me out regarding this issue.
    Thanks & Regards
    Satish.

    In OSS note <b>517484</b> on https://websmp204.sap-ag.de/notes , and there we can find that for BSP following services should be activated!
    <b>Goto SICF Tcode & activate the below nodes:</b>
    /default_host/sap/bc/bsp/sap
    /default_host/sap/bc/bsp/sap/system
    /default_host/sap/bc/bsp/sap/public/bc
    /def ault_host/sap/public/bc (available for 620 with Support Package 34)
    /default_host/sap/public/bc/ur (available for 620 with Support Package 34)
    /default_host/sap/public/bsp/sap/public
    /default_host/sap/public/bsp/sap/public/bc
    /defaul t_host/sap/public/bsp/sap/system
    /default_host/sap/public/bsp/sap/htmlb (as of Release 620 Support Package SAPKB62026)
    Note: After you activate the BSP service, the corresponding application services must also be activated.
    Raja T
    Message was edited by:
            Raja Thangamani

  • Error in renaming indexes (clarification needed)

    Dear All,
    I am working on core banking application.
    Whe we try to do BOD(begining of day) for the system i.e. taking the system to next business date get the error "Error in renaming indexes on ETD".
    ETD is a table name. And this error occurs only on 8th and 14th of every month not on any other date.For basic information while doing BOD system recreate the indexes on daily basis. But , we get this error only on particular date 8th and 14th of every month. Is there any clue , so that we can check the privilege level things on particular date and compare it with other dates..?

    Hi All,
    Thanks! I will confirm with my vendor regarding this that why there is a need to recreate the indexes on daily basis.
    But I want know same application is doiing same job ver well on another days except the 8th and 14th of every month.
    Is there any query so that I can check the privileges assign to user for recreating the indexes on general days (when there is no problem for recreting the indexes)
    AND then same query we will execute on 8th day of the month.
    Lastly i will compare my script is changing the privilige or not...
    ETD is a table name of application (for transaction details..).
    And we are using Oracle9i Enterprise Edition Release 9.2.0.5.0 - 64bit Production.
    Thanks All
    James.

  • OBIEE Error 'Root XML Node nqw not found in island!'

    Hello,
    After I altered my Hyperion Essbase structure, my OBIEE Reports don't open.
    I increase one generation in my accounts hierachy, and now when I try open my OBIEE reports, I get the follow error:
    "Root XML Node nqw not found in island"
    Any help?
    Thanks,

    Hi Naresh,
    I hope you have resolved the issue by this time.
    In my case, it was related to an invalid filter on the report.
    I have removed the filter by updating the report .xml file from Catalog Manager.
    Hope this helps other with similar issue.
    Thanks,
    Ravi

  • I have an error of invalid node structure

    I have an error of invalid node structure.  Can I save my data from my hard drive? Is it even fixable?

    Invalid Node Structure is not a hardware failure, it never was (you may still have a hardware failure, but the Invalid Node error is not indicative of this problem. 
    Still, Disk utility will certainly fail to fix it, and DiskWarrior will probably fail too.  
    But don't despair.  Try this, and don't give up till you've tried it at least three times.
    First, get the name of the partition of the failing volume.   You can get it most easily by finding your disk in Disk Utility, selecting your partition (not the drive) and type cmd-i.    Look for "Disk Identifier" right at the top.
    Then,  open up Terminal, and type this:
    sudo /sbin/fsck_hfs -yprd /dev/disk5s2 
    substituting your disk identifier for the one already here.   Keep the "/dev/" part.   Enter your password, and wait.  It may take a while.  I have had this fail several times before finally working so its important to keep trying.   It's faster than a reformat!!!
    If the afflicted disk is your startup disk, you will need to do this in recovery mode: restart the computer, hold down option, and wait for the disk options to appear.   Select that, then proceed to Disk Utility and then Terminal as described above.  
    Good luck, and always keep a backup!
    chris watts

  • Error : Cannot connect to the LDAP server

    I have exported a file called "test1.ldif"
    and then import in a new Oracle ldap server using the command:
    ldapadd -p 389 -D cn="directory manager" -w <password> -f test1.ldif
    But there is error "Cannot connect to the LDAP server".
    Actually, I'm migrating the ldap data from 1 machine to another, please advise. Thanks

    Check your ldap port, by default it is 4032...
    --Bill                                                                                                                                                                                                           

  • Error converting DOM nodes into SOAP nodes

    Hi,
    i am doing an http call using http binding activity in oracle soa suite 11g.The http call requires some header information.When I pass the header information through headers in invoke activity and invoke the http call,I get an error " Error converting DOM nodes into SOAP nodes".What might be the reason and how to solve it.
    Naresh

    Hello,
    It appears your code is trying to repeat messagePart itself. Split Joins strictly adheres to a WSDL definition for incoming and outgoing messages.
    Instead of repeating <RootElement> which is defined as single occurance in your message definition within WSDL, you should find a way to tweak the WSDL to have "repetitive node which will become single message after split" within 1 Root element.
    This will call for having need of implementing transformation within split join based on need of target input message. Below is the example:
    WSDL contains:
    <wsdl:message name="inputMessageName">
         <wsdl:part name="partInput" element="rootElement"/>
    </wsdl:message>
    What your current xml structure is(please note how message itself is repeating below while it has been defined as single in wsdl, unfortunately there is nothing maxOccurs for message in WSDL definition , although you can define multiple parts but that is not case here):
    <soap:Body>
    <rootElement>
    </rootElement>
    <rootElement>
    </rootElement>
    <rootElement>
    </rootElement>
    </soap:Body>
    What Split-Join expects(If you have existing wsdl then you need to tweak it to conform to below kind of structure then use transformation within split join to convert it into correct xml structure for outgoing):
    <soap:Body>
    <rootElement>
         <repetitiveElementSpecificToIndividualSplitRequest/>
         <repetitiveElementSpecificToIndividualSplitRequest/>
         <repetitiveElementSpecificToIndividualSplitRequest/>
    </rootElement>
    </soap:Body>
    I hope this helps.
    Regards,
    Ankit

  • Jcontrol.exe stops with Error executing Bootstrap Node in EP

    Hello Everybody,
    We have Enterprise Portal 6.0 installed on our system with 1 GB RAM .The jcontrol.exe gets stopped in MMC ,the developer trace gives the error :
    Error executing Bootstrap Node
    Iam trying to restore Portal Application on another server with 2 GB RAM.I have taken OS level Offline backup of the system and restored it on another server of 2GB RAM.After that when I boot the server again
    jcontrol.exe gets stopped giving the same problem in developer trace:
    Error executing bootstrap node
    I want to change memory parameters for the system through configtool as given in note 723909 but iam even not able to connect to configtool,while connecting to configtool the error message given is
    Error connecting to DB
    Although i hv manually through command prompt shutdown and started the database but still gives the same problem?
    How to change the various memory parameters then? Kindly revert at earliest.Kindly revert to the issue at earliest as this is urgent and iam struggling with this issue since many day.Ur reply if found useful shall be awarded points.
    Regards,
    Saumya

    Hi,
    I would go with Michael's suggestion about system copy. I don't think just copying the files from one machine to another would serve the purpose. Let's not forget it's a totally different server all together and while installations, there are references to hostnames.
    Java system copy would be an ideal solution or i would suggest you to go for an upgrade of the same old server for RAM related issues.
    Regards,
    Sunil

  • ORA-01511:error in renaming data file & ORA-01516: nonexistent data file

    Hi all,
    DB version is 10.2.0.2 and Applications 12.0.6 on RHEL 4
    While creating data file mistakenly we created with '?' as follows:
    "/d01/CRP/db/apps_st/data/tx_?data53.dbf"
    After that we tried to rename those data file using below steps but we are geting error message as follows:
    1.SQL>ALTER TABLESPACE APPS_TS_TX_DATA OFFLINE NORMAL; at DB in OPEN stage
    2.$mv /d01/CRP/db/apps_st/data/tx_?data53.dbf /d01/CRP/db/apps_st/data/tx_data53.dbf
    3.ALTER TABLESPACE APPS_TS_TX_DATA RENAME DATAFILE '/d01/CRP/db/apps_st/data/tx_?data53.dbf' TO '/d01/CRP/db/apps_st/data/tx_data53.dbf';
    ERROR at line 1:
    ORA-01511: error in renaming log/data files
    ORA-01516: nonexistent log file, datafile, or tempfile
    "/d01/CRP/db/apps_st/data/tx_?data53.dbf"
    After that we tried to revert back by moving to original name usinf os commnds i.e tx_?data53.dbf and tried to open the database as follows but getting error message as follows:
    SQL> startup mount
    ORACLE instance started.
    Total System Global Area 1073741824 bytes
    Fixed Size 1264892 bytes
    Variable Size 440402692 bytes
    Database Buffers 620756992 bytes
    Redo Buffers 11317248 bytes
    Database mounted.
    SQL> recover database;
    Media recovery complete.
    SQL> alter database open ;
    alter database open
    ERROR at line 1:
    ORA-01092: ORACLE instance terminated. Disconnection forced
    Please help us t oresolve the Issue
    Edited by: 912734 on Feb 15, 2012 2:43 AM

    Errors in alert log file:
    ALTER TABLESPACE APPS_TS_TX_DATA RENAME DATAFILE '/d01/CRP/db/apps_st/data/tx_?data53.dbf' TO '/d01/CRP/db/apps_st/data/tx_data53.dbf'
    Wed Feb 15 15:38:58 2012
    ORA-1525 signalled during: ALTER TABLESPACE APPS_TS_TX_DATA RENAME DATAFILE '/d01/CRP/db/apps_st/data/tx_?data53.dbf' TO '/d01/CRP/db/apps_st/data/tx_data53.dbf'...
    Wed Feb 15 15:40:10 2012
    ALTER TABLESPACE APPS_TS_TX_DATA RENAME DATAFILE '/d01/CRP/db/apps_st/data/tx_ data53.dbf' TO '/d01/CRP/db/apps_st/data/tx_data53.dbf'
    Wed Feb 15 15:40:10 2012
    ORA-1525 signalled during: ALTER TABLESPACE APPS_TS_TX_DATA RENAME DATAFILE '/d01/CRP/db/apps_st/data/tx_ data53.dbf' TO '/d01/CRP/db/apps_st/data/tx_data53.dbf'...
    ALTER TABLESPACE APPS_TS_TX_DATA ONLINE
    Wed Feb 15 15:41:09 2012
    Errors in file /d01/CRP/db/tech_st/10.2.0/admin/CRP2_oraapps/bdump/crp2_dbw0_1605.trc:
    ORA-01157: cannot identify/lock data file 11 - see DBWR trace file
    ORA-01110: data file 11: '/d01/CRP/db/apps_st/data/tx_
    data53.dbf'
    ORA-27037: unable to obtain file status

  • Deploy occurs errors after rename project.

    deploy occurs errors after rename project.
    local project (in JAVA perspective refactor->rename)
    then rebuild,create,deploy.an erros occurs:
    2009-5-19 9:35:35 /userOut/deploy (com.sap.ide.eclipse.sdm.threading.DeployThreadManager) [Thread[Deploy Thread,5,main]] ERROR:
    [013]Deployment aborted
    Settings
    SDM host : 10.98.3.59
    SDM port : 50018
    URL to deploy : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp6550783345363564101WYJ_WD_FlightList.ear
    Result
    => deployment aborted : file:/C:/DOCUME1/ADMINI1/LOCALS~1/Temp/temp6550783345363564101WYJ_WD_FlightList.ear
    Aborted: development component 'WYJ_WD_FlightList'/'local'/'LOKAL'/'0.2009.05.19.09.30.59'/'0':
    Caught exception during application deployment from SAP J2EE Engine's deploy service:
    java.rmi.RemoteException: Cannot deploy application local/WYJ_WD_FlightList.. Reason: Clusterwide exception: Failed to deploy application local/WYJ_WD_FlightList. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?; nested exception is:      com.sap.engine.services.deploy.container.DeploymentException: Clusterwide exception: Failed to deploy application local/WYJ_WD_FlightList. Check causing exception for details (trace file). Hint: Are all referenced components deployed and available on the engine?
    (message ID: com.sap.sdm.serverext.servertype.inqmy.extern.EngineApplOnlineDeployerImpl.performAction(DeploymentActionTypes).REMEXC)
    Deployment exception : The deployment of at least one item aborted
    Can anyone help me?
    thanks a lot!

    Thanks for Rajat Jain  and Umang Mathur  's answers 。
    the demo project can be download in SDN::TutWD_FlightList.zip   
    before i sign this thread ,i've followed the issue : (project folder,.project file )
    Rename package for an existing Web Dynpro App
      tips:if i only change .project file,i can not import the project.
    but these do not work。it shows the same erros.
    after then i just try to redo this in the other way: (in java perspective ,refactor->rename)。
    it shows the same errors.
    my environment:
    studio:Version: 7.0.11
    JAVA AS:7.00 sp18

Maybe you are looking for