OMB: unable to set SQLLoader properties in a Mapping (TRAILING_NULLCOLS...)

Hello,
I've created a Mapping from a Flatfile to a table.
Since SQL-Loader is used I have to set several properties (TRALING_NULLCOLS, FILELOCATION, etc)
However, every property I try to set fails by the same error:
OMBALTER MAPPING 'MAP_DIM_UNIT_TEST' \
      SET PROPERTIES (TRAILING_NULLCOLS) VALUES ('true')
--> OMB02902: Error setting property TRAILING_NULLCOLS of MAP_DIM_UNIT_TEST: MMM1034: Property TRAILING_NULLCOLS does not exist.Reading and setting these properties on Mappings created by the Design Center was no problem.
What am I missing?
When configuring a Mapping in the Design Center I have to create the "SQL Loader Data Files".
Maybe that's got something to do with it. I have no idea how to do that with OMBPlus.
Any clue?
Regards
uhuebner

Hi
You should set the GENERATION LANGUAGE property to SQLLOADER for the map. The property set is different depending on the type of the map, the UI does some tricks I think and sets up, but the API does not (it does at certain points like generation/validation).
Here are some other snippets you will find useful.....
1. To add a source data file to a mapping:
OMBALTER MAPPING 'LOAD_LOCATIONS' ADD SOURCE_DATA_FILE 'LOCATIONS_APAC'
2. To define the discard file info
OMBALTER MAPPING 'LOAD_LOCATIONS' MODIFY SOURCE_DATA_FILE 'LOCATIONS_APAC' SET PROPERTIES (DISCARD_FILE_LOCATION,DISCARD_FILE_NAME) VALUES ('APAC_FILE_STG_LOC', 'apac_discard.txt')
3. To define the data file info
OMBALTER MAPPING 'LOAD_LOCATIONS' MODIFY SOURCE_DATA_FILE 'LOCATIONS_APAC' SET PROPERTIES (DATA_FILE_LOCATION, DATA_FILE_NAME) VALUES ('APAC_FILE_STG_LOC', 'apac_data.txt')
4. To define the bad file info
OMBALTER MAPPING 'LOAD_LOCATIONS' MODIFY SOURCE_DATA_FILE 'LOCATIONS_APAC' SET PROPERTIES (BAD_FILE_LOCATION,BAD_FILE_NAME) VALUES ('APAC_FILE_STG_LOC', 'apac_bad.txt')
5 To query the files it is not obvious (or consistent with other commands)...
OMBRETRIEVE MAPPING 'SR_AGS_LDR' GET SOURCE_DATA_FILE
Notice the 'GET SOURCE_DATA_FILE' is singular even though it possibly return a list (in most other commands some form of the plural is used ie. GET TABLE OPERATORS).
Cheers
David

Similar Messages

  • Unable to set template properties

    I have a site which is based off of a responsive design (HTML5/CSS3/jQuery). I've setup a nice template for our Contribute users however I get the "Unable to set template properties" error when I would try to enter the template properties. Additionally, repeating regions don't work at all. No error, nothing. They work great with Dreamweaver, but not Contribute.
    I previously had this issue with an older (non-responsive) site which was based off of a Dreamweaver CS5.5 built in template. However with that site, I would get the following error when trying to work with a repeating region, "You can't add items to repeating regions because the draft's parent template is missing or not available to users in your role. Please contact the website administrator." I was able to fix this with the following Contribute 6.5 settings.
    Users can ONLY be able to create new pages from copies of select pages. I just made blank versions of the templates I wanted people to use, and just saved them in the /Templates directory.
    Be sure creating new pages from site templates is turned OFF.
    Be sure creating new pages from content types is turned OFF.
    This is not the case with the newer site. I've tried both transitional and compatibility modes in the Contribute site settings but still nothing.
    Anyone experiencing this or have any fix ideas?

    Update:
    Looks like I'm going to have to settle on not using nested templates. I gave it a try with on a page from a single un-nested template and both template properties and repeating regions worked.
    So now I'll be including all the global code via PHP includes rather than a master Dreamweaver template. Not sure how that will effect broken link reports or global link updates but it looks like it's the only solution for now.

  • Why do users get "unable to set template properties" message?

    Hi there,
    I am trying to administer a new site that was created with DW and has a .dwt (Templates/ locatedat the site root). I'm creating "Publisher" role connection keys so users can edit their subsections of the site. Users should be able to modify template properties when they edit/create new pages.
    While testing the keys, the users report that they can connect and edit pages. However, when they try to modify template properties on either a new or existing page, they get this message "Unable to set template properties" and are prevented.
    I've tried redefining the site and starting all over, tried CS3 vs. CS4 to see if it was a compatibility issue, looked at forum after forum but can't find any answers. I am experienced with DW but new to Contribute administration so I don't know what else to try. Hoping that someone will have encountered this before and can suggest a solution.
    Thanks in advance!
    ps- Let me know if there's other info I can provide to help troubleshoot.

    I did find this April 9, 2009 post from majtom2grndctrl that suggests the issue is how contribute treats https:// sites. My site is set up as majtom2grndctrl described and I am having the same problem.
    "I've got a problem with not being able to edit Template Properties on our test sites we host on HTTPS servers. I've narrowed down the problem to Contribute CS4 ignoring the website root configuration when it looks for the Templates folder. For example, say you have a site hosted at the following address:
    https://www.yourdomain.com/yourfolder/
    Contribute is configured to know your site is in /yourfolder/, but for whatever reason, when you open or create a page, and Contribute reads the InstanceBegin template="/Templates/file.dwt" tag at the beginning of HTML documents, it looks for a Templates folder at the HTTP server root, not in /yourfolder/. This prevents Contribute from loading the template while editing a document, and any attempt to edit Template Properties will yield the infamous "Unable to set template properties" dialog box."

  • OMB Plus to set CDC properties of Oracle Module

    Hi,
    Does anybody know if it is possible to set the CDC properties of an Oracle Module using OMB Plus?
    I was thinking in the lines of
    OMBALTER ORACLE_MODULE 'MY_CDC_MODULE' SET PROPERTIES (CDC_CODE_TEMPLATE) VALUES ('PUBLIC_PROJECT/BUILT_IN_CT/JCT_10G_CONSISTENT_MINER')
    but this does not work, and I can't see any appropriate properties in the documentation.
    In addition to setting the CDC template I would like to be able to choose the tables to include in CDC using a script as well. Any help would be appreciated
    Roald
    Edited by: roheie on Oct 12, 2010 12:17 AM

    Hi Oleg,
    I think I may need to clarify my question. I am no trying to alter a template mapping, I am trying to alter the properties of the Oracle Module that is the source for the CDC template mappings
    What I am trying to do in the script is the same operation as you do in the Design Center when you expand Databases->Oracle and then double click your 'CDC_SOURCE_SYSTEM' (example name) module to get to the properties wizard. In there you can set 'Metadata Location', 'Data Location', 'CDC Code Template', and 'CDC tables'. The first two of these I am already setting in my script, what I am asking is how I can set the last two of these properties
    Regards,
    Roald

  • Unable to Edit Template Properties

    I have created an optional editable area in a DW template for
    a submenu. It functions properly in DW when I create a new page and
    go to Modify>Template Properties.
    However in Contribute 4 (on a page created from this
    template) when I go to Format>Template properties, I receive a
    popup message that says "Unable to set Template Properties" ......
    despite the fact that at the top of the page (in Edit mode), there
    is a message that says "Some items on this page can only be edited
    by setting Template Properties.
    Here is a link to one of the pages
    http://www.blackbusinesspro.com/events.html
    Can someone tell me why the template properties have become
    uneditable in Contribute 4 but are editable in DW?

    Well, I just got Template Properties working .... not sure
    how I did it.
    The only change I made was to upload the templates associated
    with the pages on this site (somehow I had neglected to do so).
    Once the templates were uploaded, "Template Properties"
    startedshowing up.
    Go figure....!

  • Unable to set properties of Namespace-Objects

    hi,
    i've run into a problem with the Namespace-objects. I'm
    unable to set the uri- or the prefix-property - but acording to the
    api - they should be writable.
    var ns:Namespace = new Namespace("aa", "aa:ns/");
    ns.uri = "bb:ns/";
    ns.prefix("bb");
    both ways to set the properties fail ... the first genertates
    a compilererror informing me that the property is read-only. the
    second fails while executing with "Error #1006: value is not a
    function" (tried this because the first way doesn't work).
    so i guess either the information in the api are incorrect or
    somethings wrong with the Namespace-Object.
    since i need to set these properties i would be glad if
    anyone could tell me if there is a workaround.
    thanks
    daniel

    hi there,
    try this:
    Calendar calendar = Calendar.getInstance();
    System.out.println("current week of the year is: " + calendar.get(cal.WEEK_OF_YEAR));
    System.out.println(cal.getTime());
    calendar.set(cal.WEEK_OF_YEAR, 32);
    System.out.println("week of the year is now: " + calendar.get(cal.WEEK_OF_YEAR));
    System.out.println(cal.getTime());
    hope this helps,
    PSChan
    Sun Microsystems

  • Unable to set specific background properties

    Hi!
    I'm trying to set this properties in portal-skin.css:
    .lateral .menu .atual, .lateral .menu .atual:hover {
         background: #002F42; /* Old browsers */
         background: -moz-linear-gradient(top, #002F42 0%, #00425B 100%); /* FF3.6+ */
         background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#002F42), color-stop(100%,#00425B)); /* Chrome,Safari4+ */
         background: -webkit-linear-gradient(top, #002F42 0%,#00425B 100%); /* Chrome10+,Safari5.1+ */
         background: -o-linear-gradient(top, #002F42 0%,#00425B 100%); /* Opera 11.10+ */
         background: -ms-linear-gradient(top, #002F42 0%,#00425B 100%); /* IE10+ */
         background: linear-gradient(to bottom, #002F42 0%,#00425B 100%); /* W3C */
         -pie-background: linear-gradient(#002F42, #00425B);
    But when the page is rendered at the browser, this properties are ignored.
    PS.: Jdeveloper consider this: "Illegal value for property: background".
    How can i add this properties? Is impossible to do this?
    Tks.

    I don't fully understand the issue that you are facing. From your reply, it looks like the HTML for the components have the correct CSS classes applied. The actual style defined by these classes doesn't get applied.
    Can you post the following
    1) Code snippet of the view components where these styles are used? I am assuming it's a page template or a JSF fragment that you are trying to apply this style to.
    2) The HTML source rendered for these components?
    3) Also check the generated CSS to see if your style class definitions appear in it.

  • Unable to Set Master Slide Properties

    I'm not sure how this happened, because I could do this in the past, but for some reason I cannot set properties for the master slides in my project.
    I am using Captivate 7 32-bit, and when I click on a master slide I get the "Master Slide View" message and can add/remove/modify objects on the master slide.  But, for some reason, I cannot set the properties of the master slide iteself anymore.  Specifically, I am trying to re-name one of the master slides, and the properties view is the same as the last filmstrip slide that I viewed.
    For example, I am editing slide 2/10 from the filmstrip.  I decide to change the master slide associated with this slide.  So, I click on the master slide tab, then select the master slide I want to edit.  The "Master Slide View" message appears, but the properties tab remains the same as the last slide I was viewing on the filmstrip.  If I select an object on the master slide (like a text box), I can modify the properties of that text box.  But, I cannot modify properties for the master slide I am working with.
    Any ideas of how to re-enable the properties of the master slide?  I already restarted Captivate and my computer a couple of times.

    See tip #8 in this list:
    http://www.infosemantics.com.au/adobe-captivate-troubleshooting/basic-troubleshooting-tech niques
    If you want 300 more troubleshooting tips for Cp, you'll need to read the book:
    http://www.infosemantics.com.au/troubleshoot-adobe-captivate

  • SETTING PROPERTIES FOR A MAPPING VIA OMBPLUS ISN'T WORKING

    Hi, i have a problem with OMBPLUS:
    I have a script which creates a mapping and then is supposed to change properties for the mapping and seems to do so via OMBRETRIEVE. But when looking in OWB the properties aren't changed.
    If I change any of the properties inside OWB and then run the script again, then the properties are changed. Does anyone know why the behavior is like this?
    /thanx Joel
    When running the script the output looks like this:
    CREATE MAPPING 'XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED FAIL OVER TO ROW BASED}
    ALTER MAPPING PROPERTIES FOR 'T_A_TEST_XXX_1_IN'... DONE
    DEFAULT_OPERATING_MODE={SET BASED}
    -- ALL DONE --
    The script:
    set temp_module "TMP"
    set tmp_table1 "XXX_1"
    set tmp_table2 "XXX_2"
    set map_name "XXX_1_IN"
    puts -nonewline "CREATE MAPPING '$map_name'... "
    OMBCREATE MAPPING '$map_name' \
    ADD TABLE OPERATOR '$tmp_table1' BOUND TO TABLE '../$temp_module/$tmp_table1' \
    ADD TABLE OPERATOR '$tmp_table2' BOUND TO TABLE '../$temp_module/$tmp_table2' \
    ADD CONNECTION \
    FROM GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table1' \
    TO GROUP 'INOUTGRP1' OF OPERATOR '$tmp_table2'
    OMBCOMMIT
    puts "DONE"
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts -nonewline " ALTER MAPPING PROPERTIES FOR '$map_name'... "
    OMBALTER MAPPING '$map_name' \
    SET PROPERTIES (DEFAULT_OPERATING_MODE) \
    VALUES ('SET BASED')
    OMBCOMMIT
    set prop [OMBRETRIEVE MAPPING '$map_name' GET PROPERTIES (DEFAULT_OPERATING_MODE) ]
    puts "DEFAULT_OPERATING_MODE=$prop"
    puts "-- ALL DONE --"
    puts ""
    OMBDISCONNECT

    Thanks for your idea Roman, but it doesn't solve my problem.
    The problem is regardless of which property (Runtime parameters in OWB) I try to change. Before ANY property is changed via OWB (GUI) the changes via OMB doesn't come to effect (even if RETREIVE after OMBCOMMIT says so).
    Regards, Joel

  • Cannot set project properties

    When I attempt to set the project properties in LiveType, I get the following error:
    "An unexpected error occurred."
    "(Modal session requires modal window)"
    This comes up whether I create a blank project, or create one from a template. In short, I am unable to establish any properties in my project at all.
    Has anyone else seen this?
    Thanks!
    Brian

    A bit of Google research: one or more files that tell Mac OS X how to build the LiveType interface are broken.
    Delete the LiveType application and associated .pkg files in Library/Receipts.
    Reinstall LiveType from the main FCS disk.

  • Unable to set effects in loaded application

    Hi All,
    I'm ABLE to get UIComponents from loaded app and set their properties. It's loaded as a child in same domain.
    I'm UNABLE to set any effects like Rotate or Glow on the same UIComponent.
    I have mxml definitions of the effect i need in the parent app.
    Have tried several ways to try to get it to work.
    glowPulse.target = [eventTarget];
    glowPulse.play
    // TypeError: Error #1006: dispatchEvent is not a function
    eventTarget.setStyle("showEffect", rotate );
    // no effect
    Is it possible or are you stuck with just setting simple properties and using functions defined in sub app like a  remote object service call?
    Thanks in advance,
    Kevin

    I don't quiet understand your question .. but, try this..
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute"  >
        <mx:Script>
            <![CDATA[
            import mx.controls.Button;
            import src.SharingComp;
                import mx.controls.Alert;
               import mx.managers.PopUpManager;
               private function createPopUp(event:MouseEvent):void {
                    var button:Button = Button(event.currentTarget);
                    button.setStyle("showEffect", "Fade");
                    button.visible = false;
                    button.visible = true;      
            ]]>
        </mx:Script>
        <mx:Button x="31" y="56" label="Button" click="createPopUp(event)"/>
    </mx:Application>
    Hope this helps,
    BaBo,

  • Unable to set group acl

    I am trying to import a 3.0.6 content area into a 3.0.6 portal
    schema. When I run contimp it imports the rows for the tables
    correctly. When it tries to merge I receive errors such as
    Unable to set group acl for: INTRANET/36/22025/FOLDER many times
    with the 22025 number changing. INTRANET is the name of the
    schema which I am importing the content area from.
    In the portal site the new content area name is present but
    there are no options for edit, properties etc and when I try to
    access the content area I receive Error 30502: The folder ID
    does not exist.
    Thanks for any help.

    Hi
    I took an export of my 3.0.6 content area using contexp. I then
    upgraded this portal schema to 3.0.9 which did not go
    correctly. The folders and content area is there but I cannot
    access the pages. I receive a 'Page not found' error. I am
    therefore trying to import the 3.0.6 export into another 3.0.6
    schema using contimp.
    Thanks for your help.

  • Unable to set the colorIndex Property of the Interior Class

    HI
    Iam trying to Update the Accound Dim with New Property 'CostAcc" IN SAP BPC.
    i entered the text and lenth of the property then i clicked on Modify The Dim Property. then its giving a warning message"Unable to set the colorIndex Property of the Interior Class"
    BPC Experts pls send me a  sollution
    Thanks in advance
    Regards
    NarsiP
    SAP BPC Consultant
    OutLookSoft SA

    Did you process your account dimension before to add you property?
    Are you sure that your account dimension was working before to apply your modification?
    Did you add just one property ore more properties?
    Did you delete any existing properties?
    Did you try to do modify account dimension without adding any porperties to see if that dimension is fine?
    Regards
    Sorin Radulescu

  • Unable to set configured property "/Initial.initialServices"

    Hi All,
    I am getting following error-
    05:21:52,006 INFO  [STDOUT] Unable to set configured property "/Initial.initialServices" atg.nucleus.ConfigurationException: Unable to resolve component /com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet
    05:21:52,013 INFO  [STDOUT] **** Error
    05:21:52,064 INFO  [STDOUT] Unable to set configured property "/Initial.initialServices" atg.nucleus.ConfigurationException: Unable to resolve component /com/progiweb/fbconnect/pipeline/FacebookProfileRequestServlet
    I have checked the config path of both components and the structure of servlet is as below-
    src/com/progiweb/fbconnect/pipeline/FacebookAuthStatusServlet.java  and  src/com/progiweb/fbconnect/pipeline/FacebookProfileRequestServlet.java.java
    And for the properties files I have created them under the path- config/atg/dynamo/servlet/dafpipeline  and  config/atg/dynamo/servlet/pipeline
    Inside these I am keeping the FacebookAuthStatusServlet.properties and FacebookProfileRequestServlet.properties files
    The path of Initial.properties is as below- config/atg/dynamo/servlet/Initial.properties
    The content of Initial.properties is -
    initialServices+=\
      /atg/dynamo/servlet/dafpipeline/FacebookAuthStatusServlet,\
      /atg/dynamo/servlet/dafpipeline/FacebookProfileRequestServlet
    Should I need to keep the both pipeline- dafpipeline and pipeline or only one of them?
    And my pipeline structure is correct or not?
    How to resolve the above error?
    Please help regarding this!
    Regards,
    Prateek

    The content of config/atg/dynamo/servlet/dafpipeline/FacebookAuthStatusServlet.properties is as below-
    $class=com.progiweb.fbconnect.pipeline.FacebookAuthStatusServlet
    $scope=global
    serviceInfo=This servlet handle facebook redirection if it's a new user.
    insertAfterServlet=/atg/dynamo/servlet/dafpipeline/FacebookProfileRequestServlet
    redirect=true
    redirectURI=register.jsp
    profileUpdater=/fbconnect/userprofiling/FacebookProfileUpdater
    loggingDebug=false
    And the content of config/atg/dynamo/servlet/pipeline/FacebookAuthStatusServlet.properties is as below-
    $class=com.progiweb.fbconnect.pipeline.FacebookAuthStatusServlet
    $scope=global
    serviceInfo=This servlet handle facebook redirection if it's a new user.
    insertAfterServlet=/atg/dynamo/servlet/pipeline/FacebookProfileRequestServlet
    redirect=true
    redirectURI=register.jsp
    profileUpdater=/fbconnect/userprofiling/FacebookProfileUpdater
    bypassExtensions=.css,.gif,.jpg,.swf
    loggingDebug=false
    I think this will clear the confusion.
    Regards,
    Prateek

  • Unable to set Password Policy controls

    When I call oracle.ldap.util.User.autheticateUser() I receive the exception "Unable to set Password Policy controls". What is the cause of this error? I was not able to find anything useful through google searches.
    I am running everything inside ServiceMix. Furthermore, I am able to create a context and retrieve properties through oracle.ldap.util.User.getProperties().
    Here is the stack trace:
    my.company.Exception.AuthenticationException: Unable to set Password Policy controls
    at my.company.OracleLdap.authenticateClient(OracleLdap.java:171)
    at service.AuthenticationInInterceptor.isAuthenticated(AuthenticationInInterceptor.java:55)
    at service.AuthenticationInInterceptor.handleMessage(AuthenticationInInterceptor.java:32)
    at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:243)
    at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:111)
    at org.apache.cxf.transport.http_osgi.OsgiDestination.doMessage(OsgiDestination.java:80)
    at org.apache.cxf.transport.http_osgi.OsgiServletController.invokeDestination(OsgiServletController.java:321)
    at org.apache.cxf.transport.http_osgi.OsgiServletController.invoke(OsgiServletController.java:107)
    at org.apache.cxf.transport.http_osgi.OsgiServlet.invoke(OsgiServlet.java:53)
    at org.apache.cxf.transport.http_osgi.SpringOsgiServlet.invoke(SpringOsgiServlet.java:48)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:179)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:103)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:713)
    at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:159)
    at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
    at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:401)
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.handle(HttpServiceServletHandler.java:64)
    at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
    at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:766)
    at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.handle(HttpServiceContext.java:111)
    at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:68)
    at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
    at org.mortbay.jetty.Server.handle(Server.java:326)
    at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
    at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:945)
    at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:756)
    at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
    at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
    at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:410)
    at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
    Caused by: oracle.ldap.util.UtilException: Unable to set Password Policy controls
    at oracle.ldap.util.User.authenticateUser(User.java:1243)
    at my.company.OracleLdap.authenticateClient(OracleLdap.java:158)
    ... 29 more
    Edited by: user1094798 on Feb 22, 2011 12:53 PM
    Edited by: user1094798 on Feb 22, 2011 12:55 PM
    Edited by: user1094798 on Feb 22, 2011 1:17 PM

    I fixed it by changing the way my InitialDirContext is created.
    Previously I was using:
    InitialDirContext ctx = oracle.ldap.util.jndi.ConnectionUtil.getDefaultDirCtx(hostname, portNum, adminName, adminPass);
    Now I'm using:
    Hashtable env = new HashTable();
    env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
    env.put(Context.PROVIDER_URL, "ldap://" + hostname + ":" + portNum);
    env.put(Context.SECURITY_PRINCIPAL, adminName);
    env.put(Context.SECURITY_CREDENTIALS, adminPass);
    InitialDirContext ctx = new InitialDirContext(env);
    Edited by: user1094798 on Feb 23, 2011 8:29 AM

Maybe you are looking for

  • Exports from Keynote to Flash doesn't work

    I am trying to create an automatic slide show and export it as an .swf (or anything) to run on a web site and it doesn't work. For documentation of my tests go to: http://www.equalivote.com/abKeynoteExportTESTS.pdf

  • IPod plays while 'switched off'

    My iPod is 2 years old. 80Gb with colour display. For the last 9-10 months I go to use and and the battery's flat or I find it playing. When I connect to my computer I find it's been playing for hours. It comes on when I'm out etc so it's nothing I'm

  • Can we demodulate the signal recieved at DAQ card without using any hardware interface(by only using labview)?

    Hi all, Can we demodulate the signal recieved at DAQ card without using any hardware interface(by only using labview)? if yes then how? please give brief idea. Regards, Amit

  • Partition problem on external drive 1TB

    When I partitioned in three (1TB) my external disk using my MacAir with Leopard, it worked, no problem. I than ran time machine to back up the MacAir on one partition and it worked fine as well. But with one of my MacBook Pro with Tiger I've tried th

  • Syndicating the right record

    hi All we are working on Central master data mgmt scenario in MDM. portal is used for creating new records and upon Approval they shud b syndicated to remote system. We are using Java API AddSyndicationrecord ID from portal to syndicate and passing t