CryptImportKey returns Invalid Parameter

Hello,
I've been trying for a while to import a ".pfx" file into an ACOS5 smart card (I need to do it by code).
I've managed to find a code online that does something to that effect but I've been having trouble making it work.
While it compiles properly, the program stops at CryptImportKey returning an error code of 87: Invalid Parameter (The program stops at the "Done 6.55" step in the code below).
Here is the source code of the program:
#include "stdafx.h"
using namespace std;
int _tmain(int argc, _TCHAR* argv[])
     cout<<"Starting...\n";
     ifstream f1;
     f1.open("file.pfx",ios::binary);
     f1.seekg( 0, ios::end );
     size_t len = f1.tellg();
     char* charData = new char[len];
     f1.seekg(0, ios::beg);
     f1.read(charData, len);
     f1.close();
     cout<<"Done 1\n";
     //  convert char* to _CRYPTOAPI_BLOB
     byte* byteData = (BYTE*)charData;
     _CRYPTOAPI_BLOB pkcs12data = _CRYPTOAPI_BLOB();
     pkcs12data.cbData = static_cast<DWORD>(len);
     //buf = ctypes.create_string_buffer(datastr);
     pkcs12data.pbData = byteData;                    //ctypes.cast(buf, ctypes.POINTER(ctypes.c_byte));
     // the rest also needs some editing
     cout<<"Done 2\n";
     HCERTSTORE hCS;
     hCS = PFXImportCertStore(&pkcs12data, L"1111", CRYPT_EXPORTABLE | CRYPT_USER_KEYSET );
     if(hCS == NULL)
     return 1;
     cout<<"Done 3\n";
     PCCERT_CONTEXT pCC(NULL);
     PBYTE pData(NULL);
     DWORD sizeOfData(0);
     BOOL success;
     BOOL callerFree;
     CRYPT_KEY_PROV_INFO* pKeyProvInfo(NULL);
     HCRYPTPROV cryptoProvider(0), cardCryptoProvider(0);
     DWORD cryptAcquireCertificatePrivateKeyFlags = AT_KEYEXCHANGE;
     HCRYPTKEY cryptKeyHandle(0);
     HCRYPTKEY sessionKeyHandle(0);
     HCRYPTKEY importedKey(0);
     BYTE* pPk(NULL);
     DWORD pkSize;
     DWORD err;
     cout<<"Done 4\n";
     // log in using PIN
     /*// PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN
     char* pin;
     //char* cardPIN = "12345678";
     long pinBufferLength = 8+1;
     pin = new char[pinBufferLength];
     WideCharToMultiByte(GetACP(), 0, L"12345678", pinBufferLength-1, pin, pinBufferLength, 0, 0);
     pin[pinBufferLength-1] = 0;
     cout<<"Done 5\n";
     byte* pinData = (BYTE*)pin;
     success = CryptSetProvParam(cardCryptoProvider, PP_KEYEXCHANGE_PIN, (BYTE*)pinData, 0);
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 6\n";
     delete [] pin;
     */// PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN PIN
     pCC = CertEnumCertificatesInStore(hCS, pCC);
     if(pCC == NULL)
          return 1;
     cout<<"Done 6.1\n";
     CertGetCertificateContextProperty(pCC, CERT_KEY_PROV_INFO_PROP_ID, NULL, &sizeOfData);
     pData = new BYTE[sizeOfData];
     success = CertGetCertificateContextProperty(pCC, CERT_KEY_PROV_INFO_PROP_ID, (PVOID)pData, &sizeOfData);
     if(!success) {
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 6.2\n";
     pKeyProvInfo = (CRYPT_KEY_PROV_INFO*) pData;
     success = CryptAcquireCertificatePrivateKey(pCC,NULL, NULL, &cryptoProvider, &cryptAcquireCertificatePrivateKeyFlags, &callerFree);
     if(!success) {
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 6.3\n";
     success = CryptGetUserKey(cryptoProvider, AT_KEYEXCHANGE, &cryptKeyHandle);
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 6.4\n";
     // export key
     /*success = CryptGenKey(cryptoProvider, CALG_3DES, CRYPT_EXPORTABLE, &sessionKeyHandle);
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 6.45\n";
     //cout<<pkSize <<endl;
     success = CryptExportKey(cryptKeyHandle, NULL, PRIVATEKEYBLOB, 0x00, NULL, &pkSize );
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     pPk = new BYTE[pkSize];
     cout<<pkSize <<endl;
     success = CryptExportKey(cryptKeyHandle, NULL, PRIVATEKEYBLOB, 0x00, pPk, &pkSize );
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<pkSize <<endl;
     cout<<"Done 6.5\n";
     if(CryptAcquireContextW(&cardCryptoProvider, L"11111111-1111-1111-1111-111111111111", L"Advanced Card Systems CSP v2.3", PROV_RSA_FULL,CRYPT_MACHINE_KEYSET))
          printf("Key container has been opened.\n");
     else{
          DWORD d = GetLastError();
          printf("%u\n",d);
          //return 1;*/
          if(CryptAcquireContextW(&cardCryptoProvider, L"11111111-1111-1111-1111-111111111111", L"Advanced Card Systems CSP v2.3", PROV_RSA_FULL,CRYPT_NEWKEYSET))
               printf("A new key container has been created.\n");
          else{
               DWORD d = GetLastError();
               printf("%u\n",d);
               return 1;
     cout<<"Done 6.55\n";
     // import key
     success = CryptImportKey(cardCryptoProvider, pPk, pkSize, 0, 0x00, &importedKey);
     //success = CryptImportKey(cardCryptoProvider, pPk, pkSize, sessionKeyHandle, 0, &importedKey);
     //success = CryptImportKey(cardCryptoProvider, pPk, pkSize, CRYPT_BLOB_VER3, CRYPT_EXPORTABLE, &importedKey);
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 6.6\n";
     // import certificate
     success = CryptSetKeyParam(importedKey, KP_CERTIFICATE, pCC->pbCertEncoded, 0);
     if(!success){
          err = GetLastError();
          printf("%u\n",err);
          return 1;
     cout<<"Done 7\n";
     if(pCC) {
          CertFreeCertificateContext(pCC);
     if(pData) {
          delete [] pData;
          pData = NULL;
     if(pPk) {
          memset(pPk, 0, pkSize);
          delete [] pPk;
          pPk = NULL;
     if(importedKey) {
          CryptDestroyKey(importedKey);
     if(cryptKeyHandle) {
          CryptDestroyKey(cryptKeyHandle);
     if(callerFree && cryptoProvider) {
          CryptReleaseContext(cryptoProvider, NULL);
     cout<<"end of program\n";
     return 0;
}I'd greatly appreciate any advice concerning this problem.
Thanks in advance.
Regards,
Pascal Andraos.

umm... you are very lost. This is a Java programming forum on a sun.com website.

Similar Messages

  • Invalid Parameter Bindings

    Hi there!
    I'm writing a Stock Take (Inventory Control) system. I need to create some temporary rows from one table into another in order to do some calculations.
    I'm trying to add rows to a STOCK_TmpQOH table. I get the values from a STOCK_TmpQOH table and then just add a few columns' values. In VB it would have been easy... Insert into using a Select... but now... in JSC one need to read the NEXT ID each time... so I cant just use the normal autonumber... anyways...
    ...basically I have rows in Table X.... I need to copy it to Table Y and add a few columns...
    HERE's the ERROR:
    Cannot add new Stock Takejava.sql.SQLException: [sunm][SQLServer JDBC Driver]Invalid parameter binding(s).
    HEREs my CODE:
    ~~~~~~~~~~
    public String cmdNext_action() {
    //        // bind trip detail fields
    //        // GET DATA
    //        java.sql.Date date = (java.sql.Date) tripDataProvider.getValue("TRIP.DEPDATE");
    //        dateCal.setValue(date);
    //        // SAVE DATA
    //        java.util.Date uDate = (java.util.Date) dateCal.getValue();
    //        if ( uDate != null ) {
    //            java.sql.Date date = new java.sql.Date( uDate.getTime() );
    //            tripDataProvider.setValue("TRIP.DEPDATE", date);
            //Convert to the correct format IN STRING!
            Date myDate = calSDate.getSelectedDate();
            Format formatter;
            formatter = new SimpleDateFormat("dd/MM/yyyy");
            String sDate = formatter.format(myDate);
            String sReturn;
            if (stock_stakeDataProvider.canAppendRow()) {
                try {
                    //Set the NEXT step...
                    int iStep = getSessionBean1().getSTakeStep().intValue();
                    iStep++;
                    Integer x = Integer.valueOf(iStep);
                    getSessionBean1().setSTakeStep(x);
                    //ADD THE NEW STAKE
                    //=================
                    RowKey rowkey = stock_stakeDataProvider.appendRow();
                    stock_stakeDataProvider.setCursorRow(rowkey);
                    stock_stakeDataProvider.setValue("STakeID", rowkey, getApplicationBean1().getNextSTakeID());
                    stock_stakeDataProvider.setValue("LocID", rowkey, getSessionBean1().getLocID());
                    stock_stakeDataProvider.setValue("SDate", rowkey, sDate);
                    stock_stakeDataProvider.setValue("Status", rowkey, new Integer(1));
                    stock_stakeDataProvider.setValue("Step", rowkey, getSessionBean1().getSTakeStep());
                    //Set the NEXT STakeID in memory
                    //  must happen BEFORE update - else its TOO large
                    getSessionBean1().setSTakeID((Integer) getApplicationBean1().getNextSTakeID());
                    stock_stakeDataProvider.commitChanges();
                    //ADD TMP QOH for STAKE
                    //=====================
                    //Default value for new QOH = 0
                    Double dQOH = new Double(0.00);
                    //Double dQOHold;
                    if (stock_qohDataProvider.getRowCount() > 0) {
                        stock_qohDataProvider.cursorFirst();
                        do {
    //                        System.out.println(">> " + stock_qohDataProvider.getValue("StockID"));
                            //For each Stock in QOH for this Location
                            //  add a TMP QOH record
                            if (stock_tmpqohDataProvider.canAppendRow()) {
                                try {
                                    RowKey rowkey2 = stock_tmpqohDataProvider.appendRow();
                                    stock_tmpqohDataProvider.setCursorRow(rowkey2);
                                    stock_tmpqohDataProvider.setValue("TempID", rowkey2, getApplicationBean1().getNextTempID());
                                    stock_tmpqohDataProvider.setValue("STakeID", rowkey2, getSessionBean1().getSTakeID());
                                    stock_tmpqohDataProvider.setValue("StockID", rowkey2, stock_qohDataProvider.getValue("StockID"));
                                    //Double dQOHold = Double.valueOf(rs.getString("QOH"));
                                    stock_tmpqohDataProvider.setValue("QOH_Old", rowkey2, (Double) stock_qohDataProvider.getValue("QOH"));
                                    stock_tmpqohDataProvider.setValue("QOH", rowkey2, dQOH);
                                    stock_tmpqohDataProvider.setValue("SDate", rowkey2, sDate);
                                    stock_tmpqohDataProvider.commitChanges();
                                } catch (Exception ex) {
                                    log("Cannot add Temp Stock Take", ex);
                                    error("Cannot add Temp Stock Take" + ex.getMessage());
                                    sReturn = "stake1";
                        } while (stock_qohDataProvider.cursorNext());
                    info("New Stock Take added");
                    sReturn = "stake2";
                } catch (Exception ex) {
                    log("Cannot add new Stock Take", ex);
                    error("Cannot add new Stock Take" + ex.getMessage());
                    sReturn = "qoh";
            } else {
                log("Cannot add New Stock Take");
                error("Cannot add New Stock Take");
                sReturn = "qoh";
            return sReturn; //sReturn
        }Thanks SO much for the help!

    Hi,
    there is an Oracle style using ":varname" but this wont work with Server. When you created the ADF BC project, did you make sure that the project uses SQL92 as its flavor and not Oracle ?
    Frank

  • PL/SQL:- Invalid Parameter binding

    While calling a pl/sql function returning table type is shows error:
    Invalid parameter binding
    Parameter name: ""

    The problem is coming from .NET and most probably for NULL values.
    SQL> set serverout on
    SQL> create TYPE TEMP_TABLE AS OBJECT (
      2  COLUMN1 VARCHAR2(128),
      3  COLUMN2 VARCHAR2(32),
      4  COLUMN3 VARCHAR2(128));
      5  /
    Type created.
    SQL> create TYPE TEMP_TABLE_REC AS TABLE OF TEMP_TABLE;
      2  /
    Type created.
    SQL> create function SP_TEMP RETURN TEMP_TABLE_REC AS
      2 
      3  v_process_inputs TEMP_TABLE_REC :=TEMP_TABLE_REC();
      4 
      5  CURSOR CUR_EQUIP IS
      6  SELECT 'b' FROM dual
      7  UNION
      8  SELECT 'f' FROM dual;
      9 
    10  REC_EQUIP CUR_EQUIP%ROWTYPE;
    11 
    12  BEGIN
    13 
    14  OPEN CUR_EQUIP;
    15  LOOP
    16  FETCH CUR_EQUIP INTO REC_EQUIP;
    17  EXIT WHEN CUR_EQUIP%NOTFOUND;
    18  v_process_inputs.EXTEND;
    19 
    20  v_process_inputs(1):=TEMP_TABLE('a','b','c');
    21 
    22  END LOOP;
    23  CLOSE CUR_EQUIP;
    24 
    25  RETURN v_process_inputs;
    26  END SP_TEMP;
    27  /
    Function created.
    SQL> declare
      2     result temp_table_rec;
      3  begin
      4    -- Call the function
      5    result := sp_temp;
      6    FOR i in 1..RESULT.COUNT LOOP
      7     dbms_output.put_line(RESULT(i).COLUMN1||'--'||RESULT(i).COLUMN2||'--'||RESULT(i).COLUMN3);
      8    END LOOP;
      9  end;
    10  /
    a--b--c
    PL/SQL procedure successfully completed.Note the last null values ----.

  • Error: Invalid Parameter when trying to extend volume in Windows Server 2012

    From VMware, I added space to a Hard Drive to a Windows Server 2012 VM.  I then went into the WinServer console, and opened Disk Management.  I did a rescan on the disk.  It found the extra space.  I right mouse click on the Disk,
    and choose Extend Volume, choose the available space, and then an error returned of 'Invalid Parameter'.
    In Disk Manager, the new larger space is assigned, but Windows Explorer and everything else only recognizes the original smaller size.  
    EventManager shows Event ID 265: A pointer device did not report a valid unit of angular measurement.  Event ID 257: A pointer device reported a bad angular physical range. Event ID 258: A pointer device reported a bad angular logical range.
    Anyone have a solution for this problem?

    Hi,
    Please try to use the command line utility diskpart to extend the drive.
    1. Open a command prompt
    2. Type in diskpart
    3. Type list volume
    4. Type select volume #  
    5. Type extend [size=n] [disk=n]
    For more detailed information about diskpart, please see:
    DiskPart Command-Line Options
    http://technet.microsoft.com/en-us/library/cc766465(v=ws.10).aspx
    You could refer to the article below to troubleshoot the issue:
    Windows Server 2008 drive doesn’t expand correctly after extending in VMware VI client
    http://consultingblogs.emc.com/greggrobertson/archive/2010/05/27/windows-server-2008-drive-doesn-t-expand-correctly-after-extending-in-vmware-vi-client.aspx
    Please Note: Since the website is not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy of this information.
    Best Regards,
    Mandy 
    If you have any feedback on our support, please click
    here .
    We
    are trying to better understand customer views on social support experience, so your participation in this
    interview project would be greatly appreciated if you have time.
    Thanks for helping make community forums a great place.

  • Utl_http does not give a very helpful error message: Invalid Parameter

    I'm writing PL/SQL to consume a web service on another server. In trying to execute this snippet of code, I receive this error:
    ORA-28783: Invalid parameter
    ORA-06512: at "SYS.UTL_HTTP", line 1023
    ORA-06512: at line 29
    Line 29 is the utl_http.begin_request statement shown below.
    I'm baffled as to what the error message might point to and I'm looking from any insight others may have. The message is so generic as to be useless and I can't find any examples of others receiving this particular error when executing begin_request.
    Please note that this is an SSL/HTTPS connection. If I remove the "S" and just use HTTP, I receive an appropriate message from the web server. (A tiny web page telling me I should be using the https version and not the http version.) I can also go to, for example, Google or CNN's web sites and pull back data but those are not SSL connections. It is the SSL part that isn't working.
    This isn't a SOAP error since I never get a chance to create my SOAP message and place it in the request.
    I've tried changing the POST to GET and the HTTP version to 1.0 just to see if the error message changes and it does not.
    My wallet file is in place on the database server, placed in an accessible folder by
    the DBAs. This code can see the wallet, I believe, because if I change the wallet
    path to something non-existent, I receive a different error. I imported the web site certificate for the site I'm connecting to and placed that in the wallet. I've been able to cause "certificate chain" errors with empty wallets, so I think the certificate is correct.
    I used SOAP-UI (www.soapui.org) and was quickly able to connect to the web server and begin having a "SOAP conversation", so I know the web services I'm connecting to are working. It is something in the database itself that is preventing this from executing - the wallet, a setting in the database, something like that. But what?
    =======================================================
    utl_http.set_response_error_check(enable=>true);
    utl_http.set_detailed_excp_support(enable => TRUE);
    utl_http.set_follow_redirect(5);
    utl_http.set_wallet('file:/...', '*******');
    --**** SET THE URL FOR THIS REQUEST *******
    http_req:= utl_http.begin_request(
    'https://....' --location of web services I want to use
    , 'POST'
    , utl_http.HTTP_VERSION_1_1
    =======================================================

    You seemrd to have ruled out most potential problems I could think of.
    The error message just states that there is something wrong with the parameters that you use. Only point I can currently think of is a problem with the returned value.
    How did you declare you http_req variable? Does it use the utl_http.req type?

  • Help with Invalid Parameter Binding issue

    let me prefix this with the fact that I'm about as ignorant as can be when it comes to oracle so speak slowly and hopefully I'll catch the low hanging fruit.
    I've inherited a project that someone else wrote and I'm trying to make the code base work, but I am getting 2 error messages and don't really know where to start to fix it.
    My project is using ActiveReports (yea I hate it too) to call a function into a 10g database. It is returning an error saying Invalid Identifier. When I try to run the function in visual studio I get an invalid parameter binding error message and it says parameter name "" (empty quotes, so who knows).
    here's what I have:
    the type definition:
    TYPE type_A AS OBJECT (date_a VARCHAR2(25), start_date VARCHAR2(25), end_date VARCHAR2(25), items_total INT, items_with_x INT, items_without_x INT, items_with_x_percent DECIMAL(7,6), items_without_x_percent DECIMAL(7,6))
    the type table:
    TYPE type_A_table AS TABLE OF type_A
    the function that is erroring:
    <em>FUNCTION func_A (start_date_str IN VARCHAR2, end_date_str IN VARCHAR2) RETURN type_A_table PIPELINED
    IS
    PRAGMA AUTONOMOUS_TRANSACTION;
        start_date_filter TIMESTAMP := TO_DATE(start_date_str,'MM/dd/yyyy HH:MI:ss AM');
        end_date_filter TIMESTAMP := TO_DATE(end_date_str,'MM/dd/yyyy HH:MI:ss AM');
        items_total INT;
        items_with_x INT;
        items_without_x INT;
        items_with_x_percent DECIMAL(7,6);
        items_without_x_percent DECIMAL(7,6);
        temp type_A;
    BEGIN
        SELECT COUNT(*) INTO items_total FROM atable WHERE (create_date BETWEEN start_date_filter AND end_date_filter);
        SELECT COUNT(*) INTO items_with_x FROM atable WHERE conditionx=1 AND (create_date BETWEEN start_date_filter AND end_date_filter);
        SELECT COUNT(*) INTO items_without_x FROM atable WHERE conditionx=0 AND (create_date BETWEEN start_date_filter AND end_date_filter);
        items_with_x_percent := 0.00;
        items_without_x_percent := 0.00;
        IF items_total > 0 THEN
            items_with_x_percent := (items_with_x*1.00)/(items_total*1.00);
            items_without_x_percent := (items_without_x*1.00)/(items_total*1.00);
        END IF;
        temp := type_A(
            TO_CHAR(CURRENT_DATE,'MM/dd/yyyy HH:MI:ss AM'),
            start_date_str,
            end_date_str,
            items_total,
            items_with_x,
            items_without_x,
            items_with_x_percent,
            items_without_x_percent
        PIPE ROW(temp);
        RETURN;
    END;</em>
    I've changed some of the details here from the original so there may be some syntax errors but hopefully you get the gist of the situation.
    any help would be appreciated.
    Thanks

    activereports is a report generator for .net
    as for why it's written the way it is, I have no idea. Like I said, I didn't write it, I'm only trying to get it to work. There is far too much of it (and I'm far under-skilled) to go back and re-write everything the way it should be.
    this function is pretty simple, it takes a start & end date as a string as parameters to the function. it converts those to timestamps and query's an existing table with data for the number of times condition X is true or false with in that date range. This is what the report being generated reports on.
    This one was short and simple which is why I posted it. Others are far more complex and do loop, but for the sake of simplicity I posted this one. I get the same error with all the rest and I figure if I can get one working, the rest probably suffer from the same issue so fixing the rest should be fairly straight forward.
    as for priv's the user is granted all priv's (that are available when you create a new user in 10g XE's web admin interface), and it won't let me grant/remove priv's from the visual studio addin for myself.

  • Invalid parameter value Error while Extending PoReqDistributionsVO

    Hi,
    My Requirement is to restrict user from enetring certain values in a field in iProcurement Page based on some condition. The attribute on which I have to place the validation is CodeCombinationId and the VO name is PoReqDistributionsVO. So, I extended the VO and generated the VORowImpl class for the extended VO. Please note that I have extended the VO just to override the setter method for the CodeCombinationId in the VORowImpl. I did not change any other thing on the VO. Once I deploy the code, I am getting the following error for the first time:
    ## Detail 0 ##
    oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value PoReqDistributionsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    And then if I try to open the page again, it gives me multiple distribution lines. (Say for example I have only one distribution line for the requistion line and my distribution table PO_REQ_DISTRIBUTIONS_ALL has total 20 records, then all the 20 records are getting displayed in the front end.)
    So, clearly after I extended the VO, the viewlink is not able to identify the viewlink.
    I went through the following thread:
    oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value
    As suggested in the therad, I thought of copying all the view link related methods from the original VO files. But, I could not get any Viewlink related information in any of the three seeded files PoReqDistributionsVO.xml, PoReqDistributionsVOImpl.class and PoReqDistributionsVORowImpl.class. But I can find one View Link oracle.apps.icx.por.req.server.ReqLineToDistributionsVL in teh server which is linking PoRequisitionLinesVO to PoReqDistributionsVO.
    Could anyone suggest me what I need to do to resolve the issue.
    Edited by: 892480 on Oct 20, 2011 8:13 AM

    Hi Gurus,
    Any suggestion on the above issue?

  • REP-2103: PL/SQL formula returned invalid value or no value

    Hi all,
    Before clone the report GEPS FA Prepare Mass Addition Report runs fine. But after cloned from production, it shows error:
    Enter Password:
    REP-0004: Warning: Unable to open user preference file.
    REP-2103: Column 'G_MASS_ADDITION_INVOICE' : PL/SQL formula returned invalid value or no value.
    REP-0069: Internal error
    REP-57054: In-process job terminated:Terminated with error:
    REP-2103: Column 'G_MASS_ADDITION_INVOICE' : PL/SQL formula returned invalid value or no value.
    Actually I didn't have such column 'G_MASS_ADDITION_INVOICE'. This is a group name. I tried a lot, such as widden the formula column width or delete the formula column, but it still show this error. I didn't have any trigger or other formula column. Even I create a new report use the same name with a single query( select sysdate from dual), but it still shows the same error.
    Is there anyone faced this issue before or can help me ? Thanks
    ares
    Edited by: 930967 on Jun 13, 2012 12:46 AM

    Hi;
    Please see:R12 GL Account Balances Across Ledgers (GLRGCBGT) Report Errors With: REP-0004 MSG-00025 MSG-00104 MSG-01221 REP-2103 REP-0069 REP-57054, Program Exited With Status 1 [ID 1316929.1]
    Regard
    Helios

  • Invalid parameter SECONDARY_RECORD-PSKEY Error in Personal Data Screen

    Hi All,
    We are using EHP6. The Personal Data  iview is throwing an error while trying Edit something.
    I am able to add a new register  but getting the following dump while trying to Edit/Save
    This apply for all the employees.
    This apply for all the employees.
    I looked through SAP Note-1815863 - Dump in Class CL_HRPA_INFOTYPE_CONTAINER Method. However all the tables mentioned in that Note seemed to be configured properly.
    Any help will be appreciated.
    Short Dump
    Error while processing your query
    What has happened?
    The URL call sap/bc/webdynpro/sap/HRESS_A_PERSINFO was terminated because of an error.
    Note
    The following error occurred in system DEV : Invalid parameter SECONDARY_RECORD-PSKEY , value 1008119301067 9999123120130621000
    The error occurred on application server HRE_05 and in work process. 8
    The termination type was: RABAX_STATE
    The ABAP call stack was:
    Method: IF_HRPA_INFTY_CONTAINER_DATA~MODIFY_SECONDARY_RECORD of program CL_HRPA_INFOTYPE_CONTAINER====CP
    I have checked:
    Report RPUPAV00.
    Subtype config, inconsistent data.
    I updated table V_T582V & V_T582W.
    I maintained tcode-GENIL_MODEL_BROWSER.
    I also have checked the following:
    sap > bc> webdynpro > HRESS_A_PERSINFO   ----check this once activate or not ...right click and check is it activated or not
    I also have run the report RPUFIXDS for that personal number, , however the issue follow.
    The error not occur when I delete the register for the the following  V_T582V & V_T582W, however the fields for the infotype secondary not appear in the dynpro of the infotype 0002.
    Thanks
    Regards

    There could be several possible causes
    Usually this error occurs if a secondary infotype functionality has been delivered via SP or SNOTE for infotype 0002 but the PERNR you are using does not have secondary infotype record
    Tables V_T582V & V_T582W determine if a secondary infotype will be used - if you remove entries here this will deactivate the secondary infotype useage - this might be one way to resolve the issue - but perhaps you wish to use the secondary infotype - in some cases it might be required- for example ESS might expects a secondary infotype and throw an error if there is an issue
    If you wish to use the secondary infotype you need the delivered entries in V_T582V & V_T582W and you need to run RPUPAV00 for any PERNR that has a 0002 record existing prior to the new secondary infotype being introduced to ensure they have a secondary infotype record key that matches the primary infotype key

  • VO Substitution : JBO-25006 : Invalid parameter value passed for source

    Hello All,
    I want to add 2 new fields (attribute columns) to an existing VO for which I am trying to use VO substitution. I have followed these steps.
    1.     Downloaded all the class files from server to local machine
    2.     Opened an OA project and extended the VO by changing sql query to add 2 attribute columns
    3.     Added 2 transient VO attributes to map them to the added fields in sql query
    4.     Create a BC4J substitution and imported jpx file using jpximporter
    While opening the page which consisted the original VO that I extended (creditRequestsVO), I am getting below error. Appreciate if anyone can throw any light on this.
    Exception Details.
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1247)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    ## Detail 0 ##
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    oracle.apps.fnd.framework.OAException: oracle.jbo.InvalidParamException: JBO-25006: Invalid parameter value creditRequestsVO for source passed to method ViewLinkImpl.setSource. Explanation: view def mismatch
    at oracle.apps.fnd.framework.OAException.wrapperException(OAException.java:896)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.prepareException(OAPageErrorHandler.java:1169)
    at oracle.apps.fnd.framework.webui.OAPageErrorHandler.processErrors(OAPageErrorHandler.java:1435)
    at oracle.apps.fnd.framework.webui.OAPageBean.processRequest(OAPageBean.java:2542)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:1892)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:536)
    at oracle.apps.fnd.framework.webui.OAPageBean.preparePage(OAPageBean.java:424)
    at OA.jspService(_OA.java:212)
    at com.orionserver.http.OrionHttpJspPage.service(OrionHttpJspPage.java:59)
    at oracle.jsp.runtimev2.JspPageTable.service(JspPageTable.java:379)
    at oracle.jsp.runtimev2.JspServlet.internalService(JspServlet.java:594)
    at oracle.jsp.runtimev2.JspServlet.service(JspServlet.java:518)
    at javax.servlet.http.HttpServlet.service(HttpServlet.java:856)
    at com.evermind.server.http.ResourceFilterChain.doFilter(ResourceFilterChain.java:64)
    at oracle.apps.jtf.base.session.ReleaseResFilter.doFilter(ReleaseResFilter.java:26)
    at com.evermind.server.http.EvermindFilterChain.doFilter(EvermindFilterChain.java:15)
    at oracle.apps.fnd.security.AppsServletFilter.doFilter(AppsServletFilter.java:318)
    at com.evermind.server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:621)
    at com.evermind.server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:370)
    at com.evermind.server.http.HttpRequestHandler.doProcessRequest(HttpRequestHandler.java:871)
    at com.evermind.server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:453)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:313)
    at com.evermind.server.http.AJPRequestHandler.run(AJPRequestHandler.java:199)
    at oracle.oc4j.network.ServerSocketReadHandler$SafeRunnable.run(ServerSocketReadHandler.java:260)
    at com.evermind.util.ReleasableResourcePooledExecutor$MyWorker.run(ReleasableResourcePooledExecutor.java:303)
    at java.lang.Thread.run(Thread.java:619)
    Edited by: Bhavesh J Shah on Feb 22, 2010 1:58 AM

    Hi Rama,
    Parameter being passted to LeadHeaderDetailsVO is not right. Check the parameter values that are being passed,wether there are right or not
    Thanks
    Sandeep

  • Column exist but ResultSet.getString(String) return invalid column name

    With oracle 7 db the ResultSet.getString(String) works fine but after the upgrade to oracle 8 db it return invalid column name. ResultSet.getString(int) method works fine.
    Is this a bug in the driver?
    Thanks
    -Reda

    Yes I'm 100 % sure that the columns exist.
    -RedaWell then maybe it's a bug in the Oracle driver. Lord knows it wouldn't be the first time that's happened.

  • [Oracle JDBC Driver]Invalid parameter binding(s).

    Hi there
    I am using the OracleCachedRowSet, and it works fine until I tries to update a resultset with a null value. When I call rs.acceptChanges(connection); it results in the following exception.
    Please help if anyone has found a workaround to this problem.
    java.sql.SQLException: [BEA][Oracle JDBC Driver]Invalid parameter binding(s).
    at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
    at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
    at weblogic.jdbc.base.BaseParameters.getParameter(Unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.setObjectInternal(Unknown Source)
    at weblogic.jdbc.base.BasePreparedStatement.setObject(Unknown Source)
    at weblogic.jdbc.wrapper.PreparedStatement.setObject(PreparedStatement.java:268)
    at oracle.jdbc.rowset.OracleCachedRowSetWriter.updateRow(OracleCachedRowSetWriter.java:429)
    at oracle.jdbc.rowset.OracleCachedRowSetWriter.writeData(OracleCachedRowSetWriter.java:534)
    at oracle.jdbc.rowset.OracleCachedRowSet.acceptChanges(OracleCachedRowSet.java:2926)
    at eurostat.Items.updateRS(Items.java:192)
    at eurostat.DBConnectionBean.updateRS(DBConnectionBean.java:94)
    at jsp_servlet.__mainpage._jspService(MainPage.jsp:248)
    at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
    at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1006)
    at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:419)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:28)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at com.bea.wlw.netui.pageflow.PageFlowJspFilter.doFilter(PageFlowJspFilter.java:246)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:27)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6724)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3764)
    at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2644)
    at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:219)
    at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:178)

    Hi Avi
    Thanks for the suggestion, but I don't thint that is the problem. In other forums I have found people describing the same problem(both with Oracle and Sun's implementation of CachedRowSet). See this link for an example http://bugs.mysql.com/bug.php?id=9831. So I figured that those other people needed to have a solution to the problem, but I can't find it.
    /Thomas

  • Call to Java Method to Zip directory fails with error Invalid parameter 1

    Hi all,
    I try to translate the following Java Code to PeopleCode and I do not succeed in it.
    Can somebody please help me out ?
    On that website http://www3.ntu.edu.sg/home/ehchua/programming/java/J5b_IO.html I extracted the Java Code:
    import java.io.File;
    public class ListDirectoryRecusive {
    public static void main(String[] args) {
    File dir = new File("d:\\myproject\\test"); // Escape sequence needed for '\'
    listRecursive(dir);
    public static void listRecursive(File dir) {
    if (dir.isDirectory()) {
    File[] items = dir.listFiles();
    for (File item : items) {
    System.out.println(item.getAbsoluteFile());
    if (item.isDirectory()) listRecursive(item); // Recursive call
    PeopleCode
    I want to get all the files included in the directory
    Local string &SourceDirPath = S1_FS_RDCFG_AET.S1_CHMN_TODO;
    Local JavaObject &Javadir = CreateJavaObject("java.io.File", &SourceDirPath);
    Local array of any &StrArray;
    &ArrayOfAny = CreateArrayAny();
    Local JavaObject &JavaFilesArray = CreateJavaArray("java.lang.Object[]", 1024);
    &JavaFilesArray = &Javadir.listFiles();
    CopyFromJavaArray(&JavaFilesArray, &ArrayOfAny);
    ==> I alway get the error
    Message:
    Invalid parameter 1 for function CopyFromJavaArray. (2,116) S1_DSITE_ZIP.MAIN.GBL.default.1900-01-01 .DIRECTOR.OnExecute PCPC:511 Statement:9
    I thank you in avance
    Edited by: Meapri on Jan 23, 2013 9:33 AM

    The Pcode I wrote to Zip Directories
    Function AddFileToZip(&sDirSeparator, &zipInternalPath, &fileNameToZip, &zipFileName, &outFileStream, &zipStreamOut)
       Local JavaObject &file = CreateJavaObject("java.io.File", &fileNameToZip);
       Local JavaObject &inFileStream = CreateJavaObject("java.io.FileInputStream", &fileNameToZip);
       Local JavaObject &zipEntry = CreateJavaObject("java.util.zip.ZipEntry", &fileNameToZip);
       REM **  Créer le flux de sortie de données pour le fichier ZIP final;
       REM ** We will read &fileNameToZip into a buffer and write it out to &zip;
       Local string &ZippedfileName = &zipInternalPath | &sDirSeparator | &zipFileName;
       REM ** Make sure zip entry retains original modified date;
       &zipEntry.setTime(&file.lastModified());
       &zipStreamOut.putNextEntry(&zipEntry);
       Local JavaObject &buf = CreateJavaArray("byte[]", 1024);
       Local number &byteCount;
       &byteCount = &inFileStream.read(&buf);
       While &byteCount > 0
          &zipStreamOut.write(&buf, 0, &byteCount);
          &byteCount = &inFileStream.read(&buf);
       End-While;
       &inFileStream.close();
       MessageBox(0, "", 99000, 0, "Zipped File : " | &fileNameToZip);
    End-Function;
    Function getDirContent(&sDirSeparator, &parentFolder, &zipFileName, &outFileStream, &zipStreamOut)
       MessageBox(0, "", 99000, 0, "Directory to scan : " | &parentFolder);
       Local JavaObject &Folder = CreateJavaObject("java.io.File", &parentFolder);
       Local JavaObject &jItems = &Folder.list();
       /* Transformation en Array Pcode*/
       Local array of any &items = CreateArrayAny();
       Local number &idx = 1;
       &items [&jItems.length] = Null;
       CopyFromJavaArray(&jItems, &items);
       For &idx = 1 To &jItems.length
          Local string &Entry = &parentFolder | &sDirSeparator | &items [&idx];
          Local JavaObject &FileOrFolder = CreateJavaObject("java.io.File", &Entry);
          If &FileOrFolder.isDirectory() Then
             getDirContent(&sDirSeparator, &Entry, &zipFileName, &outFileStream, &zipStreamOut);
          Else
             AddFileToZip(&sDirSeparator, &parentFolder, &Entry, &zipFileName, &outFileStream, &zipStreamOut);
          End-If;
       End-For;
    End-Function;
    Local string &RootName = "C:\TEMP\TEST";
    Local string &sDirSeparator = "\";
    REM ** Create Output Zip File ;
    Local string &ZipFileName = &RootName | &sDirSeparator | "Temp2_Zip.zip";
    Local JavaObject &OutFileStream = CreateJavaObject("java.io.FileOutputStream", &ZipFileName, True);
    Local JavaObject &zipStreamOut = CreateJavaObject("java.util.zip.ZipOutputStream", &OutFileStream);
    REM ** Create Zip File Entries found in the directory;
    getDirContent(&sDirSeparator, &RootName, &ZipFileName, &OutFileStream, &zipStreamOut);
    REM Close Output Zip File ;
    &zipStreamOut.close();Edited by: Meapri on Feb 2, 2013 10:54 AM : copy and paste code that works!
    Edited by: Meapri on Feb 2, 2013 10:56 AM
    Edited by: Meapri on Feb 2, 2013 11:02 AM

  • ORA-07202 sltln: invalid parameter to sltln.using

    OS:Red Hat Linux 5
    DB :11.2.0.2
    i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create

    Please check this thread (response from PavanG):
    ORA-07202 while creating DB
    Even though your DB version is 11g but this thread may help solve your problem.

  • ORA-07202 sltln: invalid parameter to sltln.using dbca to create 11g

    OS:Red Hat Linux 5
    DB :11.2.0.2
    i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create

    user13549752 wrote:
    OS:Red Hat Linux 5
    DB :11.2.0.2
    i am getting this error while creating 11g DB using DBCA ORA-07202 sltln: invalid parameter to sltln.using dbca to create
    07202, 00000, "sltln: invalid parameter to sltln."
    // *Cause:  The sltln name translation routine was called with invalid
    //          arguments. The input, or output stings were either NULL or 0 length.
    // *Action: Probable internal oracle error. Contact customer support.I suspect you failed to Read The Fine Manual, Installation Guide

Maybe you are looking for

  • Error when Refresh Planning after adding attribute V9.2.1

    Has anyone encountered this and what is the solution: Added new attribute dimension in planning web and added attribute members. When I try to do incremental or full refresh, receive error message: Errors detected (AssocAttrDimension, 1060057) Could

  • Career in Oracle Apps ? Please Help

    Hello Everyone There is a question which is troubling me a lot, I will be very happy if I can get any valuable feedback on it. Let me describe my self, I am a software Engg with a work exp of 3.5 yrs in PL/SQL (Banking Domain) and currently I have sw

  • RoboHelp 8 numbers not appearing as in WYSIWYG

    Since updating to RoboHelp 8.02, the fonts of the numbers in numbered steps are not appearing correctly in the generated CHM. I am attaching 2 images - 1 is of how the numbering appears in the WYSIWYG and 1 of how it appears in the generated CHM. The

  • Portege R500-11K with UMTS/HSDPA/EDGE/GPRS module XP drivers

    Hi everyone, I have some pre-sales question about nice R500-11K notebook. I would like to install XP pro on this machine. Device is shipped withou XP recovery CD. (model 11C has it) There is nice collection of XP drivers for R500, so I can install XP

  • Elements 6 Download Info.

    Where can I download elements 6?  My computer crash and I can't find a download that will work.