Connect timeout for InitialDirContext creation doesn't always work

Hi,
I've got a problem with the InitialDirContext creation timeout settings.
If I set com.sun.jndi.ldap.connect.timeout=5000, and I "mistype" the connection URL to something non-existent, or the port to something where nothing is listening, then this timeout kicks in, and the InitialDirContext creation fails (this is good so far).
However, if I set the URL to port 25 (for example), where another service (in this case SMTP) is listening, then the InitialDirContext creation will hang for ever waiting for a valid ldap response to the login request.
What other timeouts could I set for jndi to avoid this?
I've seen that this bug (http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4410856) was closed as fixed, but I don't think it's really fixed (or if it is, I haven't found what the correct procedure would be to fix this issue)
java version is:
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode)
thanks for any help,
regards,
mitch
Message was edited by:
peter.radics

Szia P�ter!
B�nhegyi Kristof vagyok �s szeretn�k veled besz�lni, abban az esetben ha te vagy az a Radics P�ter aki a Magyar Tv 2 n�l dolgozt�l anno. K�rlek keress meg a krisban(kukac)msn.com mail cimen.
�dv�zlettel
B�nhegyi Kristof

Similar Messages

  • Keyboard shortcut for magnifier tool doesn't always work

    Hi!
    I have some problems with the opening the magnifier tool via assigned keyboard shortcuts. I assigned opt+z as shortcut for the magnifier tool, and it sometimes work but often don't, and I have no idea why. It always works when opening the tool from the menu. I also tried to assign it to opt+x (which I have used for the "highlight text" in the same program, which always worked), but with the same results.
    I have also found that if I press the shortcut for close magnifier (even if I have closed it already) and then press the shortcut for opening it will open. In a similar fashion, the shortcut for closing the magnifier (when it's open) won't work until I have pressed the "open magnifier"-shortcut first (which shouldn't do any difference.) This could either be a strange bug, or something is happening that I'm not aware of.
    Help much appreciated (need to read and highlight pdf:s efficiently for university)!

    This has never happened to me for Chinese.
    I wonder what application you're using when this happens? Or does it happen in any application?
    It's possible for an application to have a setting that matches the input language to the font. So I can guess that maybe what is happening is that your cursor is in Korean somehow when you want to switch so that the app wants you to input Korean even though you've switched.
    I suppose what I'm suggesting is that if it is happening in one application, there might be an application-related reason.

  • Shortcut for switching language doesn't always work.

    I put the shortcut in as comman-space to switch from english to korean. However, sometimes when I use Korean then switch to English it gets stuck on Korean even when I see the English sign at the top. This happens switching from English to korean as well. So I always end up having to switch back and forth twice in order for it to actually switch the language. What is the problem?

    This has never happened to me for Chinese.
    I wonder what application you're using when this happens? Or does it happen in any application?
    It's possible for an application to have a setting that matches the input language to the font. So I can guess that maybe what is happening is that your cursor is in Korean somehow when you want to switch so that the app wants you to input Korean even though you've switched.
    I suppose what I'm suggesting is that if it is happening in one application, there might be an application-related reason.

  • [svn:osmf:] 18047: Fix FM-1076: Reconnect timeout doesn't always work.

    Revision: 18047
    Revision: 18047
    Author:   [email protected]
    Date:     2010-10-06 16:29:01 -0700 (Wed, 06 Oct 2010)
    Log Message:
    Fix FM-1076: Reconnect timeout doesn't always work.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/FM-1076
    Modified Paths:
        osmf/trunk/framework/OSMF/org/osmf/net/NetLoader.as

    "Is it intended to cope with NetConnection.Connect.IdleTimeOut of FMS disconnecting clients after some time of inactivity?"
    The answer is no. Stream reconnect is all about trying to reconnect in the event of a dropped network connection. For the IdleTimeOut scenario, listen for the MediaErrorEvent.MEDIA_ERROR event on the MediaPlayer and check for an error of MediaErrorCodes.NETCONNECTION_TIMEOUT. You can handle that however you wish in your player.
    - charles

  • Turning off thumbnail caching doesn't always work

    The standard solution for stopping the creation of thumb nail files doesn't always work. This assumes that since you don't display thumbnails you don't create thumb nails. Not true. If you try to move a JPG created by Windows Media Player as message is
    displayed. This message asks you if you really want to move a system file. The message displays a thumbnail. So instantly a THUMBS.DB file is created. Now the whole purpose of the exercise was to move stuff out of the folder, so that after a bit of fiddling
    you could reorganise & delete the folder. Now you can't delete the folder, unless you mess around and do it later. There is obviously a (non intuitive) work around. But it would be better if Microsoft allowed you to force the delete.

    Hi,
    As far as I know there is no official way to turn off thumbnail caching. The only option in Group Policy is Turn off taskbar thumbnails.
    Local Computer Policy\User Configuration\Administrative Templates\Start Menu and Taskbar\Turn off taskbar thumbnails
    Do you encounter any difficult position that must disable thumbnail caching?
    Roger Lu
    TechNet Community Support

  • My iphone 5 power button doesn't always work.  I have heard this is an issue and Apple will replace it if under warranty, but I have a broken screen.  Will they still replace it?

    My iphone 5 power button doesn't always work.  I have heard this is an issue and Apple will replace it if under warranty, but I have a broken screen.  Will they still replace it?

    It is unlikely but you can atleast try they might set it up for free but expect an email about paying 269 for physical damage

  • My phone keeps freezing and the home button doesn't always work

    My phone keeps freezing and the button on the front of phone doesn't always work when typing my phone goes slow

    Try this... You will Not Lose Any Data...
    Close All Open Apps...
    Turn the Phone Off...
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... ( But can take Longer...)
    Release the Buttons...
    Turn the Phone On...
    http://support.apple.com/kb/ht1430

  • HT4060 I have to wiggle the plug to charge my iPad and it doesn't always work

    What is the possible fix for my having to wiggle the connector to charge my iPad, and that doesn't always work?

    That's not normal. You can try another cable. If the issue repeats, then it's something with your iPad. If your device is still under warranty, take it in and have it assessed. If they determine that it's a manufacturer's defect, they can replace it, but if they determine it's 'abuse or neglect' then they won't.
    If your device isn't under warranty you may be eligible for an out of warranty replacement.

  • "Put" command doesn't always work

    Hi,
    I'm looking for a confirmation that the put command doesn't
    always work in DW8.
    I don't use check in/out, so I have started to rely on the
    Put command, rather than going in to Windows Explorer to copy and
    paste web page changes from Local to Remote (via LAN). But even
    when I know there are differences between the local and remote
    file, the Put command will often report that the Local file was not
    moved to the Remote location because DW thinks the Remote file is
    the same as the Local. I get a log message like this:
    "the file" - same - not transferred
    But, I can confirm the local is newer than the remote by
    manually copying and pasting. I can see a different timestamp and
    file size in Windows Explorer.
    Is this command "broken" in DW8?
    Thanx,
    Chris

    > I'm looking for a confirmation that the put command
    doesn't always work in
    > DW8.
    You won't get it from me. I have never had it fail since DW2.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "ChrisRi" <[email protected]> wrote in
    message
    news:egg99f$2s3$[email protected]..
    > Hi,
    >
    > I'm looking for a confirmation that the put command
    doesn't always work in
    > DW8.
    >
    > I don't use check in/out, so I have started to rely on
    the Put command,
    > rather
    > than going in to Windows Explorer to copy and paste web
    page changes from
    > Local
    > to Remote (via LAN). But even when I know there are
    differences between
    > the
    > local and remote file, the Put command will often report
    that the Local
    > file
    > was not moved to the Remote location because DW thinks
    the Remote file is
    > the
    > same as the Local. I get a log message like this:
    >
    > "the file" - same - not transferred
    >
    > But, I can confirm the local is newer than the remote by
    manually copying
    > and
    > pasting. I can see a different timestamp and file size
    in Windows
    > Explorer.
    >
    > Is this command "broken" in DW8?
    >
    > Thanx,
    >
    > Chris
    >
    >

  • On a 5s how do you make the light turn off when phone rings or when you receive text, at work I would like to shut that off. Also seems like vibrate doesn't always work?

    On a 5s how do you make the light turn off when phone rings or when you receive text, at work I would like to shut that off. Also seems like vibrate doesn't always work? I had a 4s and didn't have these issues

    Thank you, I did find that. Still my phone does not always vibrate when ringer is off for texts and calls, only sometimes?

  • ITunes 10.4.1 Problem with Key Command Go to Current Song - Doesn't always work

    Since updating to iTunes 10.4.1, I've noticed that the key command, command + L doesn't always work to display the current song.

    I have this problem in iTunes 10.7 (21). The "Go to Current Song" option exists in the Controls menu, but even when audio is playing it is disabled.

  • Why won't Firefox always minimize/resize? Using F11 is a patchy solution that doesn't always work

    Firefox won't always minimize or resize. The upper right hand corner just pulsates. Looking through forums, I found that using f11 can help, but it doesn't always work. Often I have to reboot.
    == This happened ==
    Not sure how often
    == A year ago, maybe

    Start Firefox in [[Safe Mode]] to check if one of the add-ons is causing the problem (switch to the DEFAULT theme: Tools > Add-ons > Themes).
    * Don't make any changes on the Safe mode start window.
    See:
    * [[Troubleshooting extensions and themes]]
    * [[Troubleshooting plugins]]
    If it does work in Safe-mode then disable all extensions and then try to find which is causing it by enabling one at a time until the problem reappears.
    * Use "Disable all add-ons" on the [[Safe mode]] start window to disable all extensions.
    * Close and restart Firefox after each change via "File > Exit" (Mac: "Firefox > Quit"; Linux: "File > Quit")

  • My iPhone 4 home button doesn't always work. sometimes its just not responsive. other times, it works great. what's the problem, and how do I get it fixed? my iphone  is 2 days old

    my iPhone 4 home button doesn't always work. sometimes its just not responsive. other times, it works great. what's the problem, and how do I get it fixed? my iphone is 2 days old

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iPhone: Hardware troubleshooting
    http://support.apple.com/kb/TS2802
    -Griff W.

  • IPhone 3GS Sleep/wake button doesn't always work

    Recently i upgraded my iphone 3gs to iOS 5.0.1,
    Since then, my sleep/wake button doesn't always work.
    It's pretty annoying, and i hope there is a solution to this issue.
    Thanks in advance.

    One possibility is that your phone is more occupied with "managing" iOS 5.0.1 since it has more features etc. This could especially be the case if you are using a lot of apps.
    Another option is that the button is simply worn out... I used to have that issue with the home button of my old iphone 3g. However, if the problem started occuring right after you upgraded your iOS, it probably is a software issue...

  • Http connection timeout for business services from proxy service?

    I've only done limited experiments in ALSB (2.1) at this point, but a question occurred to me, and I can't find this mentioned in the docs anywhere.
    When a proxy service configures a connection to a downstream business service through HTTP, is it possible to configure an http connection timeout value? This will cause the connection attempt to fail if it takes too long to determine whether the connection attempt succeeded or failed.
    I've heard that this is one advantage that Axis has over JAXRPC/SAAJ, as a connection timeout value can be specified.

    Hello Billy
    Thanks for the reply. I thought there may be some implementation of begin_request in another environment that had the option to specify a connect timeout. But as you have explained, it doesn't work like that. As always, I learn something every day!
    So realistically if I want to stop the calling process hanging in the event of the server not being available, I need use the message based approach...send a message containing the request to another process via a message queue and attach to the reply queue and wait for a message comming back with a timeout. Does that sound like a reasonable approach?
    Thanks
    David

Maybe you are looking for

  • Help! Received email requesting my Apple ID and Password from Apple Customer Support

    I think this is an attempt to steal ID Dear client, We inform you that your Apple ID will be expired in less than 48 Hours. You must perform a verification of your informations the fastest possible, otherwise your ID will be destroyed. Just click the

  • Soapfaultcode:1 Error when consuming webservice through abap proxy class

    Hi All, I am facing a issue executing a proxy class created by consuming web service. I have consumed a web service which queries data from oracle server to process them in SAP.We have created a Proxy class and did the following configurations: 1) Cr

  • Can't connect to JDBC

    Hope someone can help me out here. I have a sample Java program that simply connects to a table in an Oracle database and tells me if it connected ok or not. The program compiles without complaint, however when I trying to execute it I get the follow

  • Iq500 reinstall issue

    Touchsmart iQ500. Windows Vista 64bit My Touchsmart iQ500 HD crashed. I have replaced drive with a WD Caviar Green 1TB SATA. Having received a set of reinstall disks from HP Support I'm now having issues with the install, the supplementary disk is fa

  • How to setup  10.3 and cloud?

    I installed new iTunes on my Mac. Also I synced my iPad and iPhone 4 but I'm not seeing an option to download music from cloud?