Ldapssl_client_init always returns -1 when using nsldapssl32v50.dll

We have an iPlanet Directory Server v5.2 installed and SSL has been configured on it.
When we call ldapssl_client_init(CERTDBPath, NULL) we always get a the return value as -1.
We used nsldapssl32v30.dll and the corresponding lib and tried the same program and it worked perfectly fine.
Now the question is why does this call fail when using the 5.0 version of the library.
We have tried calls to ldapssl_client_init in the different ways like
--> ldapssl_client_init("D:/Program Files/Sun/MPS/alias", NULL)
with the cert7.db in this path. This failed
--> ldapssl_client_init("D:/Program Files/Sun/MPS/alias/slapd-mydb-cert7.db", NULL)
This also failed
We need to use the v5 of the library bcoz the older versions are not compliant with LDAP v3 for referral support.
Our current environment is Win2k Server SP4 and iPlanet Dir Server 5.2.
Please help us sort out this issue.
Thanks
Raghu

The function "ldapssl_client_init" returns -1, if I use LDAP SDK 6.0 binaries (source downloaded from http://wiki.mozilla.org/LDAP_C_SDK and compiled). It returns same error code i.e. -1, if we use precompiled binaries.
But if I use the old LDAP 5.2 binaries, it works fine.
Here is a sample code that I used to test ldapssl_client_init() on RHAS3.0:
#include <ldap.h>
#include <ldap_ssl.h>
#include <stdio.h>
/* Initialize client, using mozilla's certificate database */
int main(void) {
/* "/home/infwaer/test/" is the folder that contains cert7.db and key3.db*/
if(ldapssl_client_init( "/home/infwaer/test/", NULL ) < 0) {
printf( "Failed to initialize SSL client...\n" );
return( 1 );
else
printf( "Initialized SSL client...\n" );
I used the following command to compile it with 5.2 binaries, and was able to successfully call the function ldapssl_client_init:
gcc ldapclient.c -I/home/infwaer/nsldap/5.2/RHAS3.0/include
-L/home/infwaer/saurabh_review/lib -lldap50 -lnspr4 -lplds4 -lplc4 -lsoftokn3 -lnss3 -lssl3 -lprldap50 -lssldap50 -ldigestmd5 -lsasl
But when I compiled it using 6.0 binaries using the same command:
gcc ldapclient.c -I/home/infwaer/nsldap/6.0/RHAS3.0/include
-L/home/infwaer/saurabh_review/lib -lldap60 -lnspr4 -lplds4 -lplc4 -lsoftokn3 -lnss3 -lssl3 -lprldap60 -lssldap60 -ldigestmd5 -lsasl
It gave the error "failed to initialize" (as written in the code !)
Please help me out; n let me know if it is a known issue with LDAP SDK 6.0. Or we need to do some special settings for version 6.0 to work properly.
Thanks & Regards,
Saurabh

Similar Messages

  • Values of return code when using dba_audit_session

    Is there anywhere I can look up the possible values for return code when using dba_audit_session?
    I am generating a report over the data and have so far only been able to provide the returncode and whether the username exists (ie username or "other" error)
    Thanks
    (using 9i)

    So far I have fathomed out:
    Return code: 0 everything OK
    Return code: 1017 wrong username or password
    Return code: 28000 locked account
    Return code: 28001 expired account

  • Output parameters always return null when ExecuteNonQuery - No RefCursor

    I am trying to call a procedure through ODP that passes in one input parameter and returns two (non-RefCursor) VARCHAR2 output parameters. I am calling the procedure using ExecuteNonQuery(); however, my parameters always return null. When I run the procedure outside of ODP, such as with SQLPlus or SQL Navigator, the output parameters are populated correctly. For some reason, there appears to be a disconnect inside of ODP. Is there a way to resolve this?
    Anyone have this problem?
    Here is the basic code:
    ===========================================================
    //     External call of the class below
    DBNonCursorParameterTest Tester = new DBNonCursorParameterTest();
    ===========================================================
    //     The class and constructor that calls the procedure and prints the results.
    public class DBNonCursorParameterTest
         public DBNonCursorParameterTest()
              //     The test procedure I used is a procedure that takes a recordID (Int32) and then returns a
              //     general Name (Varchar2) and a Legal Name (Varchar2) from one table with those three fields.
              string strProcName                    = "MyTestProc;
              OracleConnection conn               = new OracleConnection(DBConnection.ConnectionString);
              OracleCommand cmd                    = new OracleCommand(strProcName,conn);
              cmd.CommandType                         = CommandType.StoredProcedure;
                   //     Create the input parameter and the output cursor parameter to retrieve data; assign a value to the input parameter;
              //     then create the parameter collection and add the parameters.
              OracleParameter pBPID               = new OracleParameter("p_bpid",               OracleDbType.Int32,          ParameterDirection.Input);
              OracleParameter pBPName               = new OracleParameter("p_Name",               OracleDbType.Varchar2,     ParameterDirection.Output);
              OracleParameter pBPLegalName     = new OracleParameter("p_LegalName",     OracleDbType.Varchar2,     ParameterDirection.Output);
              pBPID.Value = 1;
              //     Open connection and run stored procedure.
              try
                   conn.Open();
                   cmd.Parameters.Add(pBPID);
                   cmd.Parameters.Add(pBPName);
                   cmd.Parameters.Add(pBPLegalName);
                   cmd.ExecuteNonQuery();
                   Console.Write("\n" + cmd.CommandText + "\n\n");
                   //for (int i = 0; i < cmd.Parameters.Count; i++)
                   // Console.WriteLine("Parameter: " + cmd.Parameters.ParameterName + " Direction = "     + cmd.Parameters[i].Direction.ToString());
                   // Console.WriteLine("Parameter: " + cmd.Parameters[i].ParameterName + " Status = "          + cmd.Parameters[i].Status.ToString());
                   // Console.WriteLine("Parameter: " + cmd.Parameters[i].ParameterName + " Value = "          + cmd.Parameters[i].Value.ToString() + "\n");
                   foreach (OracleParameter orap in cmd.Parameters)
                        Console.WriteLine("Parameter: " + orap.ParameterName + " Direction = "     + orap.Direction.ToString() + " Value = " + orap.Value.ToString());
                        Console.WriteLine("Parameter: " + orap.ParameterName + " Status = "          + orap.Status.ToString());
                        Console.WriteLine("Parameter: " + orap.ParameterName + " Value = "          + orap.Value.ToString() + "\n");
                   //     End Test code.
              catch (Exception ex)
                   throw new Exception("ExecuteQuery() failed: " + ex.Message);
              finally
                   this.Close();
         public void Close()
              if (conn.State != ConnectionState.Closed)
                   conn.Close();
    =========================================================
    Other things to note:
    I have no problems with returning RefCursors; they work fine. I just don't want to use RefCursors when they are not efficient, and I want to have the ability to return output parameters when I only want to return single values and/or a value from an insert/update/delete.
    Thanks for any help you can provide.

    Hello,
    Here's a short test using multiple out parameters and a stored procedure. Does this work as expected in your environment?
    Database:
    /* simple procedure to return multiple out parameters */
    create or replace procedure out_test (p_text in varchar2,
                                          p_upper out varchar2,
                                          p_initcap out varchar2)
    as
    begin
      select upper(p_text) into p_upper from dual;
      select initcap(p_text) into p_initcap from dual;
    end;
    /C# source:
    using System;
    using System.Data;
    using Oracle.DataAccess.Client;
    using Oracle.DataAccess.Types;
    namespace Miscellaneous
      class Program
        static void Main(string[] args)
          // change connection string as appropriate
          const string constr = "User Id=orademo; " +
                                "Password=oracle; " +
                                "Data Source=orademo; " +
                                "Enlist=false; " +
                                "Pooling=false";
          // the stored procedure to execute
          const string sql = "out_test";
          // simple input parameter for the stored procedure
          string text = "hello!";
          // create and open connection
          OracleConnection con = new OracleConnection(constr);
          con.Open();
          // create and setup connection object
          OracleCommand cmd = con.CreateCommand();
          cmd.CommandText = sql;
          cmd.CommandType = CommandType.StoredProcedure;
          // the input paramater
          OracleParameter p_text = new OracleParameter("p_text",
                                                       OracleDbType.Varchar2,
                                                       text.Length,
                                                       text,
                                                       ParameterDirection.Input);
          // first output parameter
          OracleParameter p_upper = new OracleParameter("p_upper",
                                                        OracleDbType.Varchar2,
                                                        text.Length,
                                                        null,
                                                        ParameterDirection.Output);
          // second output parameter
          OracleParameter p_initcap = new OracleParameter("p_initcap",
                                                          OracleDbType.Varchar2,
                                                          text.Length,
                                                          null,
                                                          ParameterDirection.Output);
          // add parameters to collection
          cmd.Parameters.Add(p_text);
          cmd.Parameters.Add(p_upper);
          cmd.Parameters.Add(p_initcap);
          // execute the stored procedure
          cmd.ExecuteNonQuery();
          // write results to console
          Console.WriteLine("   p_text = {0}", text);
          Console.WriteLine("  p_upper = {0}", p_upper.Value.ToString());
          Console.WriteLine("p_initcap = {0}", p_initcap.Value.ToString());
          Console.WriteLine();
          // keep console from closing when run in debug mode from IDE
          Console.WriteLine("ENTER to continue...");
          Console.ReadLine();
    }Output:
       p_text = hello!
      p_upper = HELLO!
    p_initcap = Hello!
    ENTER to continue...- Mark

  • Po_headers_sv3.get_po_status is not returning Status when used in Report

    Hi,
    po_headers_sv3.get_po_status is not returning any value when used in an RDF report. But, when I set the MO Context in TOAD/SQL*Plus and running the same query, it is returning the status.
    EBS Version : R12.1.3
    Oracle Forms Version : 10g
    Below is my query that I used.
    * File Name :
    * Modified By :
    * Modified Date :
    * Purpose : This report is modified for <> project. The changes are required due to PO_HEADERS_V, PO_LINES_V view changes in R12
    * Modification History
    * Change 1 : Replaced the view PO_HEADERS_V with the MOAC synonym PO_HEADERS
    * Change 2 : Added AP_SUPPLIERS in the query to fetch VENDOR_NAME
    * Change 3 : Added a join condition to fetch VENDOR_NAME
    * Change 4 : Added a function po_headers_sv3.get_po_status to fetch PO_STATUS
    SELECT POH.SEGMENT1,
    POH.CREATION_DATE,
    POH.ATTRIBUTE14 AS AR,
    POH.ATTRIBUTE15 AS LS,
    POH.ATTRIBUTE13 AS OBC,
    POL.AMOUT,
    PAHTEMP.FULL_NAME,
    APS.VENDOR_NAME,
    *         poheaders_sv3.get_po_status (poh.po_header_id) Status -- Change 4 _+
    FROM PO_HEADERS POH, -- Change 1
    AP_SUPPLIERS APS, -- Change 2
    (SELECT PO_HEADER_ID,
    Sum(UNIT_PRICE*QUANTITY) AS AMOUT -- unit_price* quantity = extended_price
    FROM PO_LINES
    GROUP BY PO_HEADER_ID) POL,
    (SELECT PAH.OBJECT_ID,
    PAH.EMPLOYEE_ID,
    PAPF.FULL_NAME
    FROM PO_ACTION_HISTORY PAH,
    PER_ALL_PEOPLE_F PAPF
    WHERE (PAH.OBJECT_ID,
    PAH.SEQUENCE_NUM)
    IN (SELECT OBJECT_ID,
    Max(SEQUENCE_NUM)
    FROM PO_ACTION_HISTORY
    WHERE OBJECT_TYPE_CODE = 'PO'
    AND ACTION_CODE = 'APPROVE'
    GROUP BY OBJECT_ID)
    AND PAH.EMPLOYEE_ID = PAPF.PERSON_ID(+)
    AND TRUNC(PAPF.EFFECTIVE_START_DATE) <= TRUNC(SYSDATE)
    AND TRUNC(PAPF.EFFECTIVE_END_DATE) >= TRUNC(SYSDATE)) PAHTEMP
    WHERE POH.PO_HEADER_ID = POL.PO_HEADER_ID(+)
    AND POH.PO_HEADER_ID = PAHTEMP.OBJECT_ID(+)
    AND POH.VENDOR_ID = APS.VENDOR_ID -- Change 3
    AND (TRUNC(POH.CREATION_DATE) >= TRUNC(:P_DATE_FROM) OR :P_DATE_FROM IS NULL)
    AND (TRUNC(POH.CREATION_DATE) <= TRUNC(:P_DATE_TO) OR :P_DATE_TO IS NULL)
    AND (POH.SEGMENT1 >= :P_NUM_FROM OR :P_NUM_FROM IS NULL)
    AND (POH.SEGMENT1 <= :P_NUM_TO OR :P_NUM_TO IS NULL)
    AND (POH.ATTRIBUTE13 >= :P_OBC_FROM OR :P_OBC_FROM IS NULL)
    AND (POH.ATTRIBUTE13 <= :P_OBC_TO OR :P_OBC_TO IS NULL)
    AND (POH.ATTRIBUTE14 >= :P_AN_FROM OR :P_AN_FROM IS NULL)
    AND (POH.ATTRIBUTE14 <= :P_AN_TO OR :P_AN_TO IS NULL)
    AND (POH.ATTRIBUTE15 >= :P_LS_FROM OR :P_LS_FROM IS NULL)
    AND (POH.ATTRIBUTE15 <= :P_LS_TO OR :P_LS_TO IS NULL)
    &LP_CONDITION_ORDER
    Please help me in this.

    learnt that PO number has generated in SRM and the same PO number not exist in ECC.
    check SM58 , rz20 log or Application monitor for the shopping cart.
    or monitor shopping cart click the icon follow on document and errror message must throw in 1 minutes.
    let us see .
    1. what is the settings in define backend OBJECTS
    2. check all basic data in the shopping cart - especially org data
    3. run bbp_check_consistancy report for your id?
    4. every user has the same issue?
    SEE THE RICHARDO technique
    http://wiki.sdn.sap.com/wiki/display/SRM/ShoppingCartStatusI1111-+Resubmit
    Muthu
    Report BBP_ALERT_SB_NOTTRANSFERED is available to change the status of the shopping cart item from I1111 to 'Error in transmission' (I1112) and later on, it is possible to retransfer this shopping cart from Application Monitor/Monitor Shopping Cart transactions.
    1480994  How to process a shopping cart with status I1111
    Edited by: Muthuraman Govindasamy on Jul 16, 2010 11:31 PM

  • LDAP search API doesn't always return NamingException when timeout

    I am from My Oracle Support (MOS) (http://support.oracle.com) team. 
    In MOS we connect to corporation OID (external) to search for user by email, and search for user's groups.
    But sometimes, the OID search API simply return without any results, and doesn't throw any exception, but we know the user exist,  or user has group memberships.
    Here is the code snippet:
    1. Create connection
        env.put("com.sun.jndi.ldap.read.timeout", "3000");
        env.put("com.sun.jndi.ldap.connect.timeout", "3000");
        Context ctx = NamingManager.getInitialContext(env);
    2. search for user by email address
    try {
        idCtx.search(OidServiceConstants.SEARCH_BASE, searchFilter,  searchControls);
    catch (Exception e) {
    // handle exception and retry, etc.
    3.   get user's group membership
    PropertySetCollection propSetColl =
    Util.getGroupMembership(idCtx, userDn, new String[0],
    false, "uniquemember");
    In step #1, the timeout is set to 3s for both connection and read operations. but the problem is that in step #2 and #3,
    the API sometimes throw NamingException to indicate there is timeout, such as
    javax.naming.NamingException: LDAP response read timed out, timeout used:3000ms.; remaining name 'dc=oracle,dc=com'
    Sometimes it doesn't, but we have confirmed the times with backend OID team and know that it took 8s.
    So how to make the API throw exception reliably ?

    Hi, Navneet Nair
    did you set up an OSS Message for the Portal-User Problem, if so, can u tell me the result and/or how you fixed your logon trouble...
    in fact i found out, when i change the user as you describe above, i have the same problem. when then i log off again, and come back withe the just before logged in user, i get the correct result on the webdynpros. <b>So I have to log off twice to actually change</b> the corresponding result on the webdynpro - strange thing is, taht in fact on the Portal screen in the upper left corner each time, i swap users the correct username is displayed...
    we are running ep 6 patch level 10...
    thanks for a hint,
    mattthias
    Message was edited by: matthias kasig
    Message was edited by: matthias kasig

  • VBAI crashes when using NiViAsrl.dll

    I hope this isn't too much of a noob question...
      Suddenly last week, without any warning, VBAI would no longer start.  All my versions of VBAI had the same failure.  When launched the splash screen would declare "Initializing Plug-ins: nnnnnnn"  then "Validating Plug-ins" ... and that was it.  It would just sit there, spinning my mouse pointer until a message box proclaimed "NI Vision Builder nnnn has stopped working".  The poor thing never got past the splash screen.  It did not matter what version I ran.  I tried 3.6, 2009 SP1, 2010, and 2011 SP1, all had the same symptom.  I un-installed them.  I re-installed them.  Same problem.
      In the Windows control panel I checked the event viewer, looking for more insight on the error.  Here is a list of errors that occurred within 10 seconds of the crash:
    Events:
    E1) LabVIEW information:     Error: 404 "Not Found" for "/national instruments/vision/vision builder ai/4.2.0/", file "c:/program files (x86)/national instruments/shared/ni webserver/www/national instruments/vision/vision builder ai/4.2.0/": Can't access URL
    E2) LabVIEW information:     Error: 404 "Not Found" for "/national instruments/vision/vision builder ai/commserver", file "c:/program files (x86)/national instruments/shared/ni webserver/www/national instruments/vision/vision builder ai/commserver": Can't access URL
    E3) Vision Builder.exe    4.2.0.0    4d2fa0d5    NiViAsrl.dll    5.0.0.49152    4c23895a    c0000005    0000ac83    2394    01cd5ae877235c04    C:\Program Files (x86)\National Instruments\Vision Builder AI 2011\Vision Builder.exe    C:\Program Files (x86)\IVI Foundation\VISA\WinNT\Bin\NiViAsrl.dll    be9fb414-c6db-11e1-82af-0024e8840468      
    -- Events 1 & 2 above occurred because there is no directory ".../www/national instruments/vision/vision builder ai/4.2.0/" 
    -- Event 3 is a mystery to me.  The file is there, it is 79KB, and was created 6/24/2010, but I don't know what it does.
    Questions:
    Q1)  How do I get / install the directory and all the files that go into: "c:/program files (x86)/national instruments/shared/ni webserver/www/national instruments/vision/ bla bla bla bla bla  ?
    Q2) Do I need the afore mentioned files?
    Q3) What is "NiViAsrl.dll"?
    Q4) How do I go about re-installing "NiViAsrl.dll"?
    Thanks and admiration:
    T1) Thank you in advance for assisting me with this pressing issue.
    T2) My response will be delayed until sometime Friday morning.
    T3) Your knowledge on such matters as these are worthy of great praise.
    Solved!
    Go to Solution.

    The problem was the NIvisa ini file MAX was reading. 
    I deleted the ports from
    C:\ProgramData\National Instruments\NIvisa\visaconf.ini
    Rebooted
    And everything is cool.
     - That means VBAI 2011 SP1 doesn't lock up when it starts.
    Both visaconf.ini files are attached inside the .ZIPs
    This problem was first noticed on June 29th, so note when software was uninstalled in the report.  As part of my initial troubleshooting I got out the biggest hammer I could find and deleted all versions of VBAI and any vision related tools, and tried to repair Device Drivers Aug 2011, and tried to install Device Drivers feb 2012, and Re-installed VBAI 2011 SP1.  I still have to put vision acquisition (etc.) back on.
    A knowledge base article was helpful in finding the ini file location.
    "Why Do I Get a Conflict Error When I Try to Rename my Serial Port in Measurement & Automation Explo...
    Document ID:   3719MD5S
    Attachments:
    ni_support_sansSerialNum.zip ‏771 KB
    ni_support_afterComRemoved_sansSerialNum.zip ‏800 KB

  • EJBs cannot return null when used in Model?

    Hi,
    hopefully this question is in the right place.
    I´ve spent now a few days on tracking a single problem. I am trying to create an web dynpro application with the functionality contained in EJBs. One of my methods in a stateless SessionBean returns an object or null. This SessionBean is bound via model binding to the context of a component controller. Everything works fine as along as the method call returns an object, but if it does not (which is the usual case) the application throws an empty exception without any description. Thanks to this forum i checked the defaultTrace log and found this information:
    [EXCEPTION]
    {0}#1#java.lang.NullPointerException
         at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.setPropertiesForModelClass(EJBGenericModelClassExecutable.java:429)
         at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.fillReturnParameterToMc(EJBGenericModelClassExecutable.java:634)
         at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.execute(EJBGenericModelClassExecutable.java:135)
         at com.test.testprog.testprogwebdynpro.main.Main.doLogin(Main.java:243)
         at com.test.testprog.testprogwebdynpro.main.wdp.InternalMain.doLogin(InternalMain.java:213)
         at com.test.testprog.testprogwebdynpro.main.LoginView.onActionButtonEinloggen(LoginView.java:189)
         at com.test.testprog.testprogwebdynpro.main.wdp.InternalLoginView.wdInvokeEventHandler(InternalLoginView.java:139)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingView.invokeEventHandler(DelegatingView.java:131)
         at com.sap.tc.webdynpro.progmodel.controller.Action.fire(Action.java:72)
         at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.doHandleActionEvent(ProcessingEventPhase.java:156)
         at com.sap.tc.webdynpro.clientserver.phases.ProcessingEventPhase.execute(ProcessingEventPhase.java:91)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequestPartly(WindowPhaseModel.java:161)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.doProcessRequest(WindowPhaseModel.java:109)
         at com.sap.tc.webdynpro.clientserver.window.WindowPhaseModel.processRequest(WindowPhaseModel.java:96)
         at com.sap.tc.webdynpro.clientserver.window.WebDynproWindow.processRequest(WebDynproWindow.java:469)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:52)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doExecute(ClientApplication.java:1431)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.doProcessing(ClientApplication.java:1251)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToApplicationDoProcessing(AbstractExecutionContextDispatcher.java:158)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForAppProcessing.doService(DispatchHandlerForAppProcessing.java:35)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToApplicationDoProcessing(ExecutionContextDispatcher.java:114)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:81)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:507)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.dispatch(ApplicationSession.java:527)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doApplicationProcessingStandalone(ApplicationSession.java:458)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:249)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:699)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:231)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:231)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.delegateToRequestManager(AbstractExecutionContextDispatcher.java:205)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.DispatchHandlerForRequestManager.doService(DispatchHandlerForRequestManager.java:38)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.AbstractDispatchHandler.service(AbstractDispatchHandler.java:116)
         at com.sap.engine.services.servlets_jsp.server.deploy.impl.module.IRequestDispatcherImpl.dispatch(IRequestDispatcherImpl.java:93)
         at com.sap.tc.webdynpro.serverimpl.wdc.sessionctx.ExecutionContextDispatcher.dispatchToRequestManager(ExecutionContextDispatcher.java:140)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:93)
         at com.sap.tc.webdynpro.serverimpl.core.sessionctx.AbstractExecutionContextDispatcher.dispatch(AbstractExecutionContextDispatcher.java:105)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doContent(AbstractDispatcherServlet.java:87)
         at com.sap.tc.webdynpro.serverimpl.core.AbstractDispatcherServlet.doPost(AbstractDispatcherServlet.java:61)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:66)
         at com.sap.engine.services.servlets_jsp.server.Invokable.invoke(Invokable.java:32)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:431)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:289)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:387)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:376)
         at com.sap.engine.services.servlets_jsp.filters.ServletSelector.process(ServletSelector.java:85)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.servlets_jsp.filters.ApplicationSelector.process(ApplicationSelector.java:160)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.WebContainerInvoker.process(WebContainerInvoker.java:67)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.ResponseLogWriter.process(ResponseLogWriter.java:60)
         at com.sap.engine.services.httpserver.chain.HostFilter.process(HostFilter.java:9)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.DefineHostFilter.process(DefineHostFilter.java:27)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.filters.MonitoringFilter.process(MonitoringFilter.java:29)
         at com.sap.engine.services.httpserver.chain.ServerFilter.process(ServerFilter.java:12)
         at com.sap.engine.services.httpserver.chain.AbstractChain.process(AbstractChain.java:71)
         at com.sap.engine.services.httpserver.server.Processor.chainedRequest(Processor.java:309)
         at com.sap.engine.services.httpserver.server.Processor$FCAProcessorThread.run(Processor.java:222)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:152)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:247)
    The request has the cardinality 1..1, the response 0..1 and the return value 1..1. The last one cannot be changed.
    Is that correct that an EJB method call must return an valid object or do i have to change something in order to allow the return of null? Or is this a bug?
    Thanks for any answer in advance

    Hi,
    what are you returning? Objects or basic types? When the methods says it returns a string, a null object is no problem. Btw.  i cannot set the cardinality of the of the return node. It´s fixed as 1..1.
    My session bean looks so
    @Stateless(name="TestBean")
    @WebService
    public class TestBean implements TestLocal {
         public int add(int zahl1, int zahl2)
              return zahl1 + zahl2;
         public String concat(String text1, String text2)
              return text1.concat(text2);
         public String zeroString(String text1)
              return null;
         public User zeroUser(String text1)
              return null;
    The WDP Controller Method looks like this
      public void doejbtest( )  {
        //@@begin doejbtest()
           try
                IZeroStringRequestElement req = wdContext.currentZeroStringRequestElement();
                Request_TestLocal_zeroString obj = req.modelObject();
                req.setText1("test");
                obj.execute();
                wdComponentAPI.getMessageManager().reportWarning("String request was successful");
           catch(Exception e)
                wdComponentAPI.getMessageManager().reportException("String request failed");
                wdComponentAPI.getMessageManager().raisePendingException();
           try
                IZeroUserRequestElement req = wdContext.currentZeroUserRequestElement();
                Request_TestLocal_zeroUser obj = req.modelObject();
                req.setText1("test");
                obj.execute();
                wdComponentAPI.getMessageManager().reportWarning("User request was successful");
           catch(Exception e)
                wdComponentAPI.getMessageManager().reportException("User request failed");
                wdComponentAPI.getMessageManager().raisePendingException();
        //@@end
    The result of the call is
    Warning: String request was successful
    Error: User request failed
    The Cardinalities are:
    Request Cardinality : 1..1
    Response Cardinality : 0..1
    Return Cardinaliy : 1..1 (no value for the string, fixed for the user)

  • Default Heap Size when using jmsc.dll

    We have had some crashes using Weblogic JMS (v 11.x) with one of our C-API apps.
    How can I find out the xmx size being used by Java?

    If you turn on JMSDEBUG (by setting it to 'y') the JMS C API may print out the JVM options. The log messages will go to the files started with "ULOG" in the directory where your app runs from. You can change the location by setting the ULOGPFX variable in your client environment.
    You can override the JVM settings with JMSJVMOPTS variable.
    Hope this helps.

  • Linking error when using C++ DLL for writing TDM files

    I try to integrate TDM into my C++ code. Then I downloaded the package from the NI website "Integrating TDMS in Third-Party Products". I tested the the sample "writeFile.c". But a  linking error as following occurred:
    1>Linking...
    1>nilibddc.lib(implib.obj) : error LNK2019: unresolved external symbol __imp__wsprintfA referenced in function _LoadDLLIfNeeded
    1>.\Debug/Test TDM.exe : fatal error LNK1120: 1 unresolved externals 
    Can anyone help me out. Many thanks. 
    Solved!
    Go to Solution.

    I migrated my code from VC++ 6 compiler to VC++ 2005. Then linking errors are gone.
    nilibddc.lib(implib.obj) : error LNK2001: unresolved external symbol ___security_cookie
    nilibddc.lib(implib.obj) : error LNK2001: unresolved external symbol @__security_check_cookie@4
    P.S. "Read me" from NI says "The Microsoft 32-bit format is compatible with Microsoft Visual C version 6.0". But I tested the code with VC++6 professional with SP6 package and upgrade the SDK to the latest version that supports vc6. I still have the linking errors. My test seems prove that the dll does not support VC6. 
    Message Edited by Kuo on 04-22-2010 05:03 AM

  • How to trap null return values from getters when using Method.invoke()?

    Hi,
    I am using Method.invoke() to access getters in an Object. I need to know which getters return a value and which return null. However, irrespective of the actual return value, I am always getting non-null return value when using Method.invoke().
    Unfortunately, the API documentation of Method.invoke() does not specify how it treats null return values.
    Can someone help?
    Thanks

    What do you get as a result?I think I know what the problem is.
    I tested this using following and it worked fine:
    public class TestMethodInvoke {
    public String getName() {
    return null;
    public static void main(String args[]) throws SecurityException, NoSuchMethodException, IllegalArgumentException, IllegalAccessException, InvocationTargetException {
    Object o = new TestMethodInvoke();
    Class cls = o.getClass();
    Method m = cls.getMethod("getName", (Class[]) null);
    Object result = m.invoke(o, (Object[])null);
    if (result == null) {
    System.err.println("OK: Return value was null as expected");
    else {
    System.err.println("FAILED: Return value was NOT null as expected");
    However, when I use the same technique with an EJB 3.0 Entity class, the null return value is not returned. Instead, I get a String() object. Clearly, the problem is the the EJB 3.0 implementation (Glassfish/Toplink) which is manipulating the getters.
    Regards
    Dibyendu

  • Return key disabled when using safari with Mavericks OS X

    Hi,
    Has anyone got a way to use return key when using safari??

    niall1111 wrote:
    It is,and always was, the return key that did this in snow leopard and other operating systems!
    ??? I have two Macs that can run Snow Leopard & in neither of them does the return key take me back a page. Also, nowhere in the lists of keyboard shortcuts for OS X or any of the browsers I use (Safari, Firefox, & Chrome) is the return key mentioned as providing this shortcut.
    Some web pages may have been programmed to respond to the return key that way, but not many I have ever encountered are. I guess it is possible some extension or other third party add-on might provide that function, but itis definitely not something that has ever been built into OS X or any of the common browsers used with it.
    In Safari (on Snow Leopard, Lion, Mountain Lion, & Mavericks) two keyboard shortcuts are provided by default to go back a page: one is the CMD-[ combination Barney already mentioned. The other is CMD + the left cursor key. Likewise, CMD+] or CMD + the right cursor key will take you forward a page (if you have previously gone back to a previous page).

  • SelectInputMethod() method of InputContext always returning false in JWS

    Hi,
    I am setting the Locale on a textArea using the api:
    TextArea.getInputContext().selectInputMethod(Locale).
    This api is always returning false, when run on Java Web Start.
    However, it returns the correct value, when run on Java.
    Has any one faced such issue?
    Thanks,
    Charanjeet
    Message was edited by:
    jannyguy

    When I trace the nativePath of the file I am trying to find it shows "C:\Users\User\AppData\Roaming\Arakaron.debug\Local Store". This is the exact path I am following in Explorer. Now, instead of applicationStorageDirectory I can do documentsDirectory and it reads that the file is in fact there. With the applicationStorageDirectory it only registers that the file exists after I copy from the embedded db file. 

  • CI - Powershell Boolean Rule Always Returns True

    I'm trying to create a configuration baseline / item for a particular piece of software using a powershell script of data type Boolean. However, I'm having the issue that the evaluation is always returning compliant whether the workstation is or not. The
    script is as follows:
    $ErrorActionPreference = "SilentlyContinue"
    $Condition1 = (Test-Path -LiteralPath 'HKLM:\SOFTWARE\Adobe\Premiere Pro')
    $Condition2 = (Test-Path -LiteralPath 'C:\Program Files\Adobe\Adobe Premiere Pro CS6\Presets\Textures\720_govt1_bar.png')
    if ($Condition1) {
    if ($Condition2) {echo $true}
    else {echo $false}
    else {echo $true}
    This script works perfectly fine when run locally and always returns $true or $false as expected. However it only ever returns Compliant when used in a CI. It doesn't matter what the state of the 2 conditions are, it always evaluates Compliant.
    Any ideas?

    I'm beginning to wonder if there is variation between how well this feature works on Windows 7 and Windows 8.1. I'm beginning to notice that it usually works well on 7 but I have constant hell with it on 8. The last thing I tried which seemed to work (assuming
    it was not just randomness) was accepting the default "Platform" settings of the CI/CB. Before I had chosen Windows 7 and 8.1 only and was never able to return any value except Compliant on 8. Accepting the all platforms default Finally
    allowed me to show a state of Non-Compliant on 8. This was using a powershell script of string data type as discussed previously.
    My latest torment is discovering how to force a true re-evaluation of an updated CI/CB. In my non-compliant Win8 example, I have added a remediation script to an existing Monitor-Only CI and configured it to remediate. In my Win 7 members of the collection,
    everything works successfully, the condition is remediated and the state reports Compliant but on the Win8, although the local Control Panel applet shows both the CB and CI to have new revisions and the evaluation shows it has run with a new date/time,
    the remediation script never runs and changes to Compliant.
    Any suggestions how I can force an updated CI/CB to really re-evaluate, not just report it has?

  • Field Number(19,8) always returns Zero!

    Thanks for reading this
    I am developing an application in VB6 on
    NT 4 SP5 and have come accross a very strange
    error. This project is a migration from
    Sequel Server, I am redoing an ACCESS application.
    In one of the tables, the Latitude and Longitude is stored as of Type Number(19,8)
    (don't ask why - I didn't design the tables).
    All of the data is being retrieved through disconnected ADO recordsets. The data is being written with ADO connection SQL statements.
    Writing of the values through the Oracle ODBC driver seems to work properly (8.01.05 - 02/02/99). When I read the values through a ADO Recordset query, the latitude and longitude always returns 0 (when they are not null).
    I tried switching to the Microsoft ODBC Driver for Oracle, and that driver works fine. The latitude and longitude are correct.
    I can view the data fine through SQL Plus or
    ACCESS via linked Tables, so the data is OK.
    Thanks
    John
    null

    And what does this have to do with JDBC?
    There was a bug in one of the earlier 8.x Oracle ODBC drivers that woukld cause this behavior. Get the latest patch version of the driver frorm Oracle support and you will be fine.

  • Text converted to graphics when using shapes from iWork

    I'm in the process of constructing a web site and want to have a site directory along the right side of each page. I started off using square text boxes and making room for the directory by using iWeb's text wrap, adding an inline transparent square to a conveniently located paragraph and resizing it as necessary. However, I found that sometimes depending on which object was selected when I uploaded the site the square seemed to cover up my link box - possibly even when it was sent to the back.
    Then I learned that I could use shapes from Pages and edit them in iWeb, so I created a polygon with an opening for the site directory, and used it for my text box on each page. That worked great in that the directory was no longer behind the text box. However when I uploaded the web site, I eventually realized that my text boxes were all converted to graphics.
    As a test I created a page identical to an existing page with a square used as a text box, and it reverts to being text.
    Here's my web site if anyone wants to check it out - look at the main page and also at the Test Page reachable from the directory on the right.
    http://web.mac.com/peterynh
    A couple questions:
    1. Does this mean that shapes created using the drawing tool in Pages that are made editable and then modified in iWeb will always produce graphics when used as text boxes? Is there any way around this?
    2. Is the same a problem if shapes are created in other programs (e.g. Illustrator)?
    3. Is there any other way I haven't thought of to create the same basic design which would preserve the text boxes as text?
    Thanks for any help!,
    Peter
    PowerMac Dual G5, 2.3 GHz   Mac OS X (10.4.5)  

    James - Thanks for the suggestions and ideas.
    You know, I think it's possible to put a textbox
    inside another text box......and in that fashion
    still be able to wrap text in the main text box
    around the interior text box. However, I am not sure
    whether that will necessarily make all the text
    converted into an image.
    I tried that with interesting results. I couldn't resize the text box except through the Inspector for some reason. Once I pasted in the text, the box moved down below the site directory box to where there was room for a full-width text box; so it didn't accomplish the purpose.
    About using iWeb's built-in text-wrap through adding an inline graphic:
    This would work too...just make sure to select your
    text box and click on the "Backward" button in order
    to make sure that your main text box with the
    transparent "placeholder" image is behind your
    directory box that you want displayed. The same
    thing can be achieved by selecting your directory box
    and clicking "forward" so that it becomes the
    frontmost element.
    That makes sense. I tried that originally; maybe I wasn't careful about sending things to the front/back. The biggest problem is that if paragraphs don't line up with the site directory box, or if I edit text on the page, the text doesn't wrap very neatly around where I want it to. Otherwise this would be a good solution. I may end up doing this unless a better idea materializes, if such is even possible ...
    Thanks for the suggestions. I'll be interested to see if any better ideas appear; if none do in the next couple days I may just declare the problem solved as well as possible until iWeb 2.0 appears.
    Peter
    PowerMac Dual G5, 2.3 GHz   Mac OS X (10.4.5)  

Maybe you are looking for

  • Hello Adobe Reader Developers. I need some functionality in Adobe Pdf Reader

    I need a slideshow functionality of a pages with speed settings. Actually i did not want to change pages by swiping on it. I want to move up the pdf pages automatically so that i can only have work to read the content of pages from 1 line to other li

  • Business Area in FI Doc Differs in COPA Doc

    Hello, In an FI document, business area was different against the business area recorded in COPA document. We could not trace how this happened. FI Doc   BA1 PA Doc BA2 To correct, we reversed the FI document. But, reversal did not meet the objective

  • Flash Players communicating

    I am compiling a small chat application in Flash CS6. I am interested to know how Flash Players communicate with one another. Specifically, how do Flash players send messages back and forth to a specific peer. I know Flash players have to know their

  • Spotify won't open on Windows 8.1

    Hi! A day ago, my Spotify desktop app was working fine, but now today, I am experiencing issues where Spotify doesn't open at all when I click the icon on the desktop, and when I click it on the taskbar, the icon glows like it's open, then fades and

  • Plays for sure will not recongize my pla

    I recently downloaded the plays for sure firmware upgrade for my zen sleek photo. But when I plug it into my usb port the player shows its connected but the software doesn't. I am running vista on my laptop. Help is greatly appreciated