JNDI and OID schema

i was able to create a new objectclass the first time but when i ran my code again to create another one, i got the below error. i use the below code to lookup the schema before adding an objectclass. ctx is an initialDirContext object
(DirContext)ctx.getSchema("").lookup("ClassDefinition")
and it failed right at the getSchema(""). do you have any ideas why this happen?
java.lang.StringIndexOutOfBoundsException: String index out of range: -2
at java.lang.String.substring(String.java, Compiled Code)
at com.sun.jndi.ldap.LdapSchemaParser.readOIDs(LdapSchemaParser.java, Compiled Code)
at com.sun.jndi.ldap.LdapSchemaParser.readTag(LdapSchemaParser.java, Compiled Code)
at com.sun.jndi.ldap.LdapSchemaParser.readNextTag(LdapSchemaParser.java, Compiled Code)
at com.sun.jndi.ldap.LdapSchemaParser.desc2Def(LdapSchemaParser.java:261)
at com.sun.jndi.ldap.LdapSchemaParser.objectDescs2ClassDefs(LdapSchemaParser.java:149)
at com.sun.jndi.ldap.LdapSchemaParser.LDAP2JNDISchema(LdapSchemaParser.java:112)
at com.sun.jndi.ldap.LdapSchemaCtx.createSchemaTree(LdapSchemaCtx.java:66)
at com.sun.jndi.ldap.LdapCtx.buildSchemaTree(LdapCtx.java:1363)
at com.sun.jndi.ldap.LdapCtx.getSchemaTree(LdapCtx.java:1320)
at com.sun.jndi.ldap.LdapCtx.c_getSchema(LdapCtx.java:1261)
at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_getSchema(ComponentDirContext.java:422)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getSchema(PartialCompositeDirContext.
java:395)
at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.getSchema(PartialCompositeDirContext.
java:384)
at javax.naming.directory.InitialDirContext.getSchema(InitialDirContext.java:241)
at com.access360.enrole.util.SchemaLoaderUtil.writeSchemaToDirectory(SchemaLoaderUtil.java:5
0)
at LdapTest.run(LdapTest.java:33)
at LdapTest.main(LdapTest.java:11)

Hello Andy:
Im setting up a test case now to test your scenario. I should have an answer for you in the next day or two. Thanks for your patience.
Jay
null

Similar Messages

  • How to read and map schema into Java objects

    I'm new to JNDI and LDAP<br>
    How can I read the schema from a directory into Java objects?<br>
    I need access to the object classes and get all the required and optional attributes... then details about the attributes themselves like its type, cardinality (single or multivalued), etc.

    Hi naidu,
    1. We can use this type of path
    computername
    folder
    file.ext
    2. We can use this in GUI_UPLOAD
       and it will run on presentation server,
       connect to
    computer
       and read the file contents.
    regards,
    amit m.

  • EUS with OVD and OID

    Has any one configured OVD 11gR1 and OID 11gR1 with DB 11gR1 for EUS? Can you share your experience in configuring these components?
    Thanks,

    1. Extending Schema : Even though we have selected the 'auto-update schema' option during OAMIdentityServer installation, is it mandatory to explicitely extend the schemas of OVD and OID, as mentioned in the "Extending Directory Schemas" section in "Setting up OAM with OVD" chapter of 'OAM Installation guide'.
    - no, if you selected auto update (and it completed successfully), you do not have to extend the schemas manually
    2. Creating Mapping Files:
    a. Out of the box, if we try to create New Mapping, the FileTemplate listing does not have any entry that corresponds to OID.
    b. On the other hand, to load the Mapping Templates explicitely, plugins\OracleAccessmanagerOViDTemplates\mapping_templates folder does not contain the OID related mapping template files.
    a - no, I do not see any templates that correspond directly to OID either
    b - i do not see this directory int eh file system at all
    What are you trying to map?
    dave

  • Can Portal and OID Metadata Repository be shared?

    Hi
    I am designing a solution for my client which includes Portal and OID implementation. I was then posed the question whether the portal and oid metadata repository should be shared. Is there any best practice that anyone can share? Thanks!
    Regards
    Dave

    Hi Dave,
    I had faced this question once & I opted to use a separate Database for the Portal Schemas.
    I am not aware of any document that details the best practices - but, my deisgn was based on the fact that the Portal Schemas would grow in future based on the number of Portal Pages & Applications. Our Client had forecast hat they would be using Portal quite heavily & hence, a separate MR was the way to go for us.
    We just installed a new Oracle Database, used the Oracle Metadata Repository Creation Assistant & registered the database with Oracle Internet Directory. During the installation of Portal, the Oracle Universal Installer offers a choice of Metadata Repositories for the Portal Schema.
    Regards,
    Sandeep

  • OID Schema Storage

    Hi,
    I need the information of OID Schema. The Schema of OID will be stored in which format? And the location at which the Schema gets stored in OID?
    Whether it is in Database or a Flat File.
    Thanks in Advance,
    Sandy

    Hi,
    In OID, schema is stored under 'cn=subschemasubentry'. All data including schema is in the database.
    You could export the OID schema through 'ldapsearch' command -
    ldapsearch -h <host> -p <port> -D cn=orcladmin -w <bind_password> -b cn=subschemasubentry -s base -v "objectclass=*" > /tmp/OID_SchemaExport.ldif
    -- Pramod Aravind

  • Ods and odssm schemas missing in oracle db 11.2.0.1 installation.

    Hi,
    I'm trying to install webcenter suite installation on windows 2008 R2 server.
    As a starting point installed oracle db 11.2.0.1
    As a second step, tried to run rcu script and found that the ODS and ODSSM schemas are not created as a part of the installation.
    Any idea why they are not created or how they can be created?
    Thanks,
    Raam.

    This might help
    http://download.oracle.com/docs/cd/E12839_01/install.1111/e12002/oid.htm

  • JNDI and JDK 1.2

    Hello everyone,
    I am trying to add entries into an LDAP using JDK 1.2 and JNDI. I have succesfully removed and listed entries(I added the entries by using JDK 1.3), but still cannot add anything to the LDAP.
    I have been using an LDAP browser to verify that the entries that I added with JDK 1.3 where indeed added. In conjuction with JDK 1.2, I have been pointing my classpath to the jndi.jar file. I have also added the providerutil.jar, and ldap.jar file to my classpath.
    Perhaps I am missing another jar file. I have download and put in my classpath, from sun's JNDI website
    (http://www.columbia.edu/~he99/jndi-ext.html) these packages ( meaning all of the jar files contained in
    these packages). I put all of them in one folder and pointed to the folder from my classpath:
    JNDI 1.2.1
    LDAP 1.2.4
    DNS 1.2
    NIS 1.2.1
    FS Context
    COS Naming 1.2.1
    I also tried using the -classpath option while compiling and running my code to explicitly and individually
    point to each jar file. I am aware that there are two different versions of the provierutil.jar file among the
    above mentioned packages. The one that is 79 KB is the only one that works, however. I have also tried
    pointing to only the individual packages from my classpath. Also, I have tried mixing and matching different
    jar files from different packages.
    I get the error message printed below this paragraph when trying to add an entry with JDK 1.2(using JNDI), but no error messages when trying to list or remove an entry. With JDK 1.3, I get none of these error messages (Im using the same exact code for both JDK 1.2 and JDK 1.3, with the exception that I add the JNDI and other necessary jar files when using JDK 1.2).
    javax.naming.directory.SchemaViolationException: [LDAP: error code 65 - attribute not allowed]; remaining
    name 'cn=haro,ou=MDS3'
    at com.sun.jndi.ldap.LdapCtx.mapErrorCode(Compiled Code)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Compiled Code)
    at com.sun.jndi.ldap.LdapCtx.processReturnCode(Compiled Code)
    at com.sun.jndi.ldap.LdapCtx.c_bind(Compiled Code)
    at com.sun.jndi.toolkit.ctx.ComponentDirContext.p_bind(Compiled Code)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(Compiled Code)
    at com.sun.jndi.toolkit.ctx.PartialCompositeDirContext.bind(Compiled Code)
    at javax.naming.directory.InitialDirContext.bind(Compiled Code)
    at AddService.main(Compiled Code)
    This may have to do something with what is said here:
    http://www.columbia.edu/~he99/jndi-ext.html
    Particularly the following:
    "When a Reference is read from the naming or directory service and a codebase specifying where to load
    the factory class for the reference has been specified, JNDI will attempt to load the class from the
    locations specified in code base. In order for the class loading to succeed, you must grant the application
    the permissions appropriate for the URLs named in the codebase. For example, if the URL scheme is "http"
    or "ftp", you must grant the application the appropriate java.net.SocketPermission; if the URL scheme is
    "file", you must grant the application the appropriate java.io.FilePermission.
    If you are using JNDI as an installed extension, that is, jndi.jar has been installed in the
    $JAVA_HOME/jre/lib/ext directory, you need to take no further action."
    I have created a directory in unix and made a jre folder with lib and ext as a subfolders and then
    made the variable "$JAVA_HOME" point to that directory, in which I put all of the jar files from those
    packages (with the 79 KB providerutil jar). Still, I get the same error message.
    Does anyone know how to resolve this problem? (My development team has coded everything with JDK 1.2 so far and cannot migrate to JDK 1.3 so late in our implementation).

    ref13E,
    I think it's not because of the jdk. I use jdk1.4 and get the same exception.
    Wht is the LDAP server that you use? We use AD.
    Regards,
    George

  • Questions on SSO and OID implementation on oracle EBIZ R12.0.6 ID 376811.1

    Hello Guys,
    IS ORACLE 10g enterprise edition is same oracle identity management because I am bit confused what is going on when we logged an SR we have been told to use oracle 10g AS (10.1.3.5) but in the note its always says oracle 10g AS 10.1.4.X. which is in turn an Identity management so we need install oracle 10gAS (10.1.3.5) then on top of that we install oracle identity management which comprises of OSSO and OID . is it correct ??
    in reference note 376811.1
    please advise
    thanks
    MN

    Hello Hussien,
    Anyways I upgraded to 10.1.3.5 patch_set 10gAs on ebiz r12.0.6
    I have other question regarding the doc ID 376811.1
    in there is section
    Pre-Install Task 4: Apply the latest certified Application Server Patchset
    Oracle E-Business Suite Release 12 is certified with the Application Server Patch Sets listed in the table below:
    Certified AS Patchset Download Location One-off Patch details (if any)
    Oracle Identity Management 10g Release 3 Patch Set 1 (10.1.4.2) 5983637 8811442
    Oracle Identity Management 10g Release 3 Patch Set 2 (10.1.4.3) 7215628 8811442
    Oracle Application Server and Oracle Developer Suite 10g Release 2 (10.1.2) Patch Set 2 (10.1.2.2.0) 4960210
    Oracle Application Server and Oracle Developer Suite 10g Release 2 (10.1.2) Patch Set 3 (10.1.2.3.0)
    5983622
    Follow the installation instructions provided in the patch README to install the patch on your Identity Management Server and to check supported operating systems.
    Oracle always recommends latest certified AS patchset for E-Business Suite customer
    I installed oracle 10gas 10.1.4.0.1 its up and running so do i need to just apply the patchset oracle Identity management 10gR3 patcheset (10.1.4.3)
    or  I have to apply  both 10.1.4.3 and the oracle Application server 10g release 2 (10.1.2)patch set 3(10.1.2.3.0) ???
    because in enterprise manager application server control it says version 10.1.2.0.2 and identity management components show 10.1.4.0.1 .
    thanks in advance.

  • SSO and OID concepts

    Is there any document which explains the concept and architecure of SSO and OID concepts in simple words ??

    Check the following notes/documents:
    Overview of Oracle Single Sign-On
    http://download.oracle.com/docs/cd/B32110_01/web.1013/b28957/toc.htm
    Note: 261914.1 - Integrating Oracle E-Business Suite Release 11i with Oracle Internet Directory and Oracle Single Sign-On
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=261914.1
    Note: 233436.1 - Installing Oracle Application Server 10g with Oracle E-Business Suite Release 11i
    https://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=233436.1

  • AD and OID connector installation on Base version 11.1.1.5.0 failed.

    Hi Experts,
    I am trying to install AD and OID connectors on base oim 11.1.1.5.0
    OID connector version: Release 9.0.4.12
    AD connector version: Release 9.1.1.7
    while installing these connectors in 3 steps
    a. Configuration of connector libraries
    b. Import of the connector XML files (by using the Deployment Manager)
    c. Compilation of adapters
    first step passed and it is failing at 2nd step and 3rd
    Error:
    DOBJ.XML_IMPORT_ERROR Missing root objectcom.thortech.xl.dataobj.tcUSR [DataObjectDef] (importable)
    can anyone suggest me on this.
    Thanks,

    What's the error in the log files? full stacktrace?
    -Bikash

  • Questions about CIN tax procedure choice and pricing schemas

    Hi all,
    I have to implement SAP on a Indian company and I'm verifying all particularity about this country (in particular tax procedures and the great number of differents tax conditions used).
    I have two questions about tax procedures and pricing schemas. Every feedback about thse points will be appreciated.
    a) To choose tax procedure TAXINN or TAXINJ which are the elements that I have to consider?
         I have read lot of documentation about CIN implementation and Iu2019m oriented to choose TAXINN schema, but If possible I  would  to understand better which are on behalf of one choice or another.
    b) To define pricing schemas for India, after check with local users and using examples of documents (in particular tax invoice) actually produced, I have understood that taxes have to be applied on amount defined starting from price list, minus discounts recognized to customer plus surcharges eventually to bill (packing, transport,  etc.).
    Itu2019s correct for any type of taxes that tax amount is calculated on u201Cnet valueu201D defined at item level or there are exceptions to this rule?
    Thanks in advance
    Gianpaolo

    hi,
    this is to inform you that,
    a) About point 1 I know the difference between the 2 tax procedures (conditions or formulas). I also have read in others post in the FORUM that TAXINN is preferable. So I would to understand which are the advantages to choose instead TAXINJ. There are particular reasons or it'a only an alternative customizing setting?
    a.a. for give for posting the link : plese give me the advantages of TAXINJ and TAXINN
    CIN - TAXINN and TAXINJ
    b) About point 2, to define which value has to be used as base amount to calculate taxes isn't a choice, but is defined depending by fiscal requirement of the country, in this case India fiscal requirement. I know that, as Lakshmipathi
    write as answer on my question, exception could be, but it was important for me to understand if I have understood correctly the sequence of the pricing condition in the schema in "normal" situation.
    b.b. you can create your own pricing procedure for this and go ahead.
    hope this clears your issue.
    balajia

  • How to install ORAESB and ORAWSM schema

    I installed oracle database 10.2. I'm not clear as to how to install ORAESB and ORAWSM schemas which are required for SOA Suite 10.1.3 installation.

    Please ignore the previous question. I've located the soa_schema directory.

  • What is the recommended way of connecting to repository out of WebDAV, RMI, JNDI and JCA connector ?

    What is the recommended way of connecting to repository out of WebDAV, RMI, JNDI, and JCA connector possibilities provided by CQ 5.5?

    Hi dp_adusumalli,
    I recognized your list of ~8 questions you posted at around the same time, as I received that same list in our customer implementation from Arif A., from the India team, visiting San Jose. :-)
    I provided him feedback for most of the questions, so please check back with Arif for that info.
    For this particular question, can you provide specifics for the types of interactions you are interested in?
    Understanding the kinds of things you need to achieve will help determine which of the CQ/CRX interfaces is best suited for the task(s).
    I've collated a few points on this subject on this page:
    Manipulating the Adobe WEM/CQ JCR
    Regards,
    Paul

  • How to change the input and output schema in BPEL process

    hi',
    Please tell me how to change the input and output schema in BPEL process after the process is made.
    thanks
    Yatan

    If your intention is just changing the content you are passing to bpel/returning from bpel
    Here is another way
    just update your default created xsd files with new elements, update wsdl elements in message definition and chnage bpel code to reflect new elements in activities
    Regards,
    Praveen

  • Run the Repository Creation Utility (RCU) to install the SOA and MDS schema

    Hi
    I am new to SOA Suit and RCU installation.
    Can any one help me to provide a link to download RCU for linux OS 64-bit.
    how to Run the Repository Creation Utility (RCU) 11gR1PS3 to install the SOA and MDS schemas (Please provide the doc file are installation steps)
    I have installed following softwares
    1. Install Linux OS 64-bit
    2. Install the Oracle 11gR2 (11.2.0.1.0) 32-bit or 64-bit Database.
    3. Install WebLogic 11gR1PS3 (10.3.4.0) 64-bit.
    4. Install SOA Suite 11gR1PS3 (11.1.1.4.0) 64-bit
    Thanks in advance......
    Bye
    Phani

    Hi Dasari,
    Thanks for your reply.
    I have downloaded RCU from
    Prerequisites & Recommended Install Process
    Repository Creation Utility 11.1.1.4.0 Size: 308 MB, Check Sum: 2446020112
    http://www.oracle.com/technetwork/middleware/soasuite/downloads/index.html
    but I didn't saw rcu.sh but I saw RCU_HOME/BIN/rcu.bat file, which is support windows environment.
    I am looking RCU for linux OS 64-bit.
    if the same will use for both windows and linux that to 64-bit. please help me the RCU runing steps
    Thanks
    Phani

Maybe you are looking for

  • Error message when inbox tries to load

    When checking my Yahoo email, Firefox will attempt to open my inbox, but it immediately changes to this message: "There seems to be a problem loading the message 'No Reply'." Then, when I click on the inbox button, it opens with no problem. This only

  • Using the FilenameFilter interface to get the extension of a file

    Hello... I am trying to write a java program which is going to parse multiple xml documents and load them into the db. In a directory, there could be files other than xml files. Hence, i want to parse only files which have an .xml extension. I am usi

  • Trying to reinstall my CS6 Upgrade

    I have had my computer rfomatted and all software deleted in the process. I have been using CS5 extended for a few years now.  When I went back in to upload my recent purchase of CS6 Upgrade which I have been using for the past 3 months..it doesn't r

  • Installing the Forms Runtime Component

    Hi everybody..... I'm having problems on deploying my forms 6i application in a client-server environment. When a select to install only the runtime component, it does not create the environment variables FORMS60_PATH, UI_ICON and TNS_ADMIN. After in

  • Rebate accurals

    hi, sap gurus, good after noon to all, i configured rebate agreements and there is no any fault in configuration of rebates. but when i am posting the billing document to accounting it saving but it is saying that error in account determination in th