How to obtain error codes from LDAP exceptions

Is there a way to obtain the error codes returned by LDAP services. In our application, we want to give more understandable messages and solution to rectify the issues, for the exception thrown while accessing LDAP. The NamingException does not contain error codes. Is there a way to obtain the error codes? If not, is there a neat way to handle this?
Thanks in advance
Sankar
Edited by: sansun08 on Nov 14, 2009 9:40 AM

Huh?
If it says ignore duplicate keys then that would suggest to me that it isn't an error. If there is no error, then you won't get an error.
So if you want an error then either remove the ignore or explicitly do a query first and create your own error if the id is already there.

Similar Messages

  • How to Extract Error Text from RFC.Exception within BPM?

    Hi,
    I have a scenario MPA -> XI <-> RFC.  A synchronous RFC call will be performed inside a BPM on a SAP system.  An exception message is expected if RFC raises exception.  However, there don't seem to be any mechanism that allows logic/step in BPM to extract the error text from the RFC exception message in order to send it out to user as an error alert.
    Appreciate if anyone can shed some lights.  Thx in advance.
    Regards
    Chong Wah

    Hi,
    you can always wrap your RFC with another one
    in which you'll catch the exception
    and pass in a normal field back to the XI
    and then do the standard as per my weblog:
    /people/michal.krawczyk2/blog/2005/03/13/alerts-with-variables-from-the-messages-payload-xi--updated
    Regards,
    michal
    <a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

  • How to retrieve error information from an exception handler?

    I have an Embedded PL/SQL block in a Pro*C
    application that uses something like the following to catch exceptions and fill a host variable with diagnostic information.
    It then re-raises the exception so that
    the global error handler specified with a
    WHENEVER SQLERROR DO ... can log the error and determine the appropriate action.
    EXCEPTION
    WHEN OTHERS THEN
    :zerrtext := 'Failure occurred at ' &#0124; &#0124; mylocator;
    RAISE;
    According to all the Oracle docs this should work; but it does not. Re-Raising the exception within PL/SQL appears to negate the assignment of the string data to the host variable. When the global error handler runs, the host variable is empty.
    The assignment works if the 'RAISE' is commenting out; but then the detailed Oracle exception data is lost, and the global error handler never gets an opportunity to run.
    Does anyone know why re-raising the exception voids the assignment within the PL/SQL exception handler; and how to prevent this from happening?

    Have you tried getting the value from 'sqlerrm'? In PL/SQL this is a built-in placeholder for the ORA-xxxx code and message when trapping exceptions.
    Hope this helps,
    - Alex
    null

  • How to obtain CMYK code from a pattern swatch?

    Anyone know how this can be done? when I click on a pattern swatch it says its cmyk is black (regarldess of the color it actually is).

    WHich version?
    If CS3 and above, apply the pattern to some object and then use Edit > Edit colors > Recolor art.
    or drag the pattern out of the swtches panel and then select the black objects.

  • How do i resolve error code from hardware test

    How do I resolve error code from hardware test.

    by bringing your mac to your local Apple store or AASP for repair.

  • How to fix  Error Code: U43M1D204?

    How to fix  Error Code: U43M1D204? When trying to update.

    Hi There,
    Kindly check the name and version of update and try to install there patch manually from the below mentioned links.
    All Adobe CC 2014 Updates: The Direct Download Links for Mac OS | ProDesignTools
    All Adobe CC 2014 Updates: The Direct Download Links for Windows | ProDesignTools
    If you are not able to install the patch,Kindly try
    Enabling and using the "root" user in OS X - Apple Support
    Hidden Admin (Windows): Enable and Disable the Built-in Administrator Account (Standard 7 SP1)
    You can also try :Troubleshoot update issues | CS5, CS5.5, CS6
    Thanks,
    Atul Saini

  • Database Connector error: 'cannot obtain error message from server'

    I am using Oracle stored procedures and I have used IN parameters for input and INOUT parameter of REF_CURSOR TYPE for returning resultset in Crystal Report 2008 by using package. Now when I am trying to add the package in the Crystal Report, parameter input box prompts, I enter some values and gets Database Connector error: 'cannot obtain error message from server'.
    But when I do not use INPUT parameters and use OUT parameter of REF_CURSOR type it runs well without any issues.
    We are using ODBC connection for Oracle.
    Kindly suggest.

    Hello,
    Search the Knowledge Base for "oracle store procedures" and you'll find a document on how to write a SP so CR can use them.
    Thank you
    Don

  • How to get user information from ldap - bpm11g

    hi all,
    i need know how to do get information from ldap, but using adf bean for show user data in adf form.
    anyone knows about this ?
    tks.

    Neal wrote:
    >
    Hi,
    I am using WLS default authentication to protect my JSP pages. Can someone tell
    me if it is possible to add more fields to the default login box (in addition
    to login and password boxes, I want to ask user the department name). In additional,
    can WLS propogate this information (department name) along with other security
    credentails to other J2EE components such as EJBs? In my EJBs I want to be able
    to get the department name that user provided during login and then use that for
    conditional business logic.
    Any insights on this subject will be greatly appreciated.
    TIA,
    -NealYou can't do this with the default simple authentication. That can only handle a
    username / password combination.
    You should be able to do this with JAAS. You could write a LoginModule that
    populates the department as a Principal or public Credential on the Subject in
    addition to the normal authentication. You would have to do a callback handler
    that passed through the department info to it.
    This link has more on WLS's stab at JAAS:
    http://e-docs.bea.com/wls/docs61/security/prog.html#1039659
    Once you have associated the Subject with the access control context by invoking
    a doAs() you should be able to get it back at any point with
    Subject.getSubject(AccessController.getContext()) to get access to the
    department info.
    It will all be a bit of a chore, mind.

  • 'Cannot obtain error message from server' when trying to use ODBC

    Post Author: Grant C
    CA Forum: Data Connectivity and SQL
    Hi, I'm developing some reports using Crystal XI on my local PC, using an Oracle 10i back end on a separate server.  The SQL for the report is in a method in an oracle package.
    When I set the datasource location, selecting 'Oracle Server' then entering the details works fine, and the report runs.  However, when I try to use an ODBC connection I get the following error:
    Database Connection Error: 'Cannot obtain error message from server.'
    The ODBC link is set up as a System DSN, which works fine when I test it.  I think I need to use ODBC as some of the reports (which I inherited) seem to fail when run on the Crystal Server, and it seeme to be the ones set up with ODBC which work.
    Any thoughts?  Thanks.

    Hi Mars-
    It sounds like your NI-DAQ installation may have become corrupted. I would suggest uninstalling and reinstalling the DAQmx 7.4 driver to correct this problem and ensure that you're up to date. This download is available here: NI-DAQ 7.4
    If the problem persists you may want to uninstall and reinstall LabVIEW and then NI-DAQ in that order. The error message will usually give an indication as to which VI the error occurred in. Please let us know which VI is failing if you're unable to avoid the error with these suggestions.
    Have a good day-
    Tom W
    National Instruments

  • Server 2012 errors for timeout -- LDAP error number: 55 -- LDAP error string: Timeout Failed to get server error string from LDAP connection

    Hello, currently getting below error msg's utilizing software thru which LDAP is queried for discovering AD objects/path and resource enumeration and tracking.
    Have ensured firewalls and port (389 ) relational to LDAP are not closed, thus causing hanging.
    I see there was a write up on Svr 2003 ( https://support.microsoft.com/en-us/kb/315071 ) not sure if this is applicable, of if the "Ntdsutil.exe" arcitecture has changed much from Svr 03. Please advise. 
    -----------error msg  ----------------
    -- LDAP error number: 55
    -- LDAP error string: Timeout Failed to get server error string from LDAP connection

    The link you shared is still applicable. You can adjust your LDAP policy depending on your software requirements.
    I would also recommend that you in touch with your software vendor to get more details about the software requirements.
    This posting is provided AS IS with no warranties or guarantees , and confers no rights.
    Ahmed MALEK
    My Website Link
    My Linkedin Profile
    My MVP Profile

  • Error during Custom Build - error PRJ0019: A tool returned an error code from "Performing Custom Build Step"

    Hi All,
    I was trying to develop C++ web service using GShop with Visual Studio 2005.I refered a tutorial :-
    http://guruce.com/blogpost/hosting-webservices-on-windows-embedded-compact-windows-ce-using-gsoap .
    AS per the tutorial i proceeded. But, i stuck-up when making a custom build with Helloworld.wsdl.Here is the output :
    1>------ Rebuild All started: Project: HelloWorldWebService, Configuration: Debug Pocket PC 2003 (ARMV4) ------
    1>Deleting intermediate and output files for project 'HelloWorldWebService', configuration 'Debug|Pocket PC 2003 (ARMV4)'
    1>Performing Custom Build Step
    1>'D:\Test' is not recognized as an internal or external command,
    1>operable program or batch file.
    1>Project : error PRJ0019: A tool returned an error code from "Performing Custom Build Step"
    1>Build log was saved at "file://d:\Test Code\HelloWorldWebService\HelloWorldWebService\Pocket PC 2003 (ARMV4)\Debug\BuildLog.htm"
    1>HelloWorldWebService - 1 error(s), 0 warning(s)
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========
    As given in the tutorial i kept my custom build command line as : -
    $(SolutionDir)\gsoap-2.8\gsoap\bin\win32\wsdl2h.exe -s $(InputPath) -o $(ProjectDir)$(InputName).h
    and outpouts : $(InputName).h
    I kept GSHOP in the project filder :- D:\Test Code\HelloWorldWebService
    Kindly help.
    Jyotiranjan

    Hi Jyotiranjan,
    I’m glad to hear that you got it working.
    Thank you for sharing your solutions
    experience here. It will be very beneficial for other community members who
    have similar questions.
    Best regards,
    Lucy
    Lucy Liu [MSFT]
    MSDN Community Support | Feedback to us
    Get or Request Code Sample from Microsoft
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Database Connection Error: Cannot obtain error message from the server

    I have a SQL statement that wants to add a temp table to the database.   The SQL statement works fine but when I try to add it via 'Add Command' feature in Crystal XI R2, I get the following error message:
    Database Connection Error: Cannot obtain error message from the server
    Any ideas?
    Thanks in advance,
    Zack H.

    Hi Raghavendra,
    I am using this in the 'Add Command' feature but I get the error message displayed in the subject line:
    CREATE TABLE #TibetanYaks(
    YakID char(4),
    YakName char(20) )
    INSERT INTO #TibetanYaks (YakID, YakName)
    SELECT  LastName, FirstName
    FROM      Employee
    WHERE      EmployeeID between '2000' and '3000'
    I haven't tried to add this as a stored procedure but I imagine it will work as I have no problems yet with stored procedures.  I simply want to be able to use temporary tables for the sole purpose of that session and not creating anything static in the database.
    By the way, even though I get the error message, when I look on the backend database, I see that the temporary table was successfully created...its just not brought across correctly in Crystal.
    Any ideas?
    Zack H.

  • TS3694 How to resolve error code 1015 in restoring apple iphone. Please guide

    How to resolve error code 1015 in restoring apple iphone. Please guide.

    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743
    ERROR 1015...
    This Error Code is indicative of the Device being jailbroken / Hacked...
    Sorry... But...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
    You will need to look elsewhere.

  • Can anyone tell me how to correct error code 108 in power point

    Can anyone tell me how to correct error code 108 in power point?
    It appears that a PP presentation has completely disappeared, giving only the error that the file has been deleted or moved (which it hadn't). Is there a way to retrieve it.
    It is visible in 'All my Files' but when clicked says that PP cannot be opened
    Thanks for your help.

    You might try looking/posting here.
    Microsoft Support – Office for Mac
    Microsoft Support – Office for Mac (2)

  • When I try to Export, I get an error code from compressor (-1)?

    I have battled with this issue now for days and I dont know what else to do, I just recently installed the OSX Mavericks beta 2, however I do not think this is the problem
    I am running a 2012 15" 2.6 i7 Quad Core, 8Gb ram MBP (With problem export problem)
    I also have a 2011 iMac, 2.7 i5 Quad Core, 12Gb ram (no problems)
    I have never had issues with FCPX like this before and It still runs perfectly other than the fact that EVERY single option under the SHARE toolbar is frozen.
    It gives me an error code from compressor saying that it coudnt be sent to it (Compressor 4). I tried re-installing it and deleteing the preferences. I tried to trash the preferences in FCPX, I tried deleting all the render files, I tried shutting down FCPX and re-opening it many times, I checked for any damaged video/audio, and NOTHING has worked. Please Help

    Where did this disk image come from? The application has no installer. It installs directly into the Applications folder from the App Store. Are you trying to run the application from the disk image?

Maybe you are looking for