330 pts.
 Error: Pointer not set for location referenced using QykmExportKeyStore
I have the next source code : 
 int main () 
{
    char * volatile path     = "/QIBM/USERDATA/ICSS/CERT/SERVER/DEFAULT.KDB" ;      
    int  * volatile pathLength   = new int ( strlen ((char* )  path ) ) ;           
    char * volatile format       = "OBJN0200" ;                                     
    char * volatile pwd          = "ff1" ;                                   
    int  * volatile pwdLength    = new int( 3 );                                   
   int  * volatile ccsid        = new int(0);                                
   char * volatile exportPath   = "/usr/me/export.pcks" ;   
   int  * volatile exportLength = new int ( strlen ((char*) exportPath )) ;  
   char * volatile formatExport = "OBJN0200" ;                               
   char * volatile version      ="*PKCS12V3";                                
   char * volatile pwdExport    = "bas1" ;                             
   int  * volatile expLength    = new int (strlen ((char*) pwdExport )) ;    
                                                                             
   errorCode_t * volatile errorCode = new errorCode_t () ;                   
  void * volatile temp = (void *)errorCode ;      
                                                  
                                                  
   QykmExportKeyStore (  path,                    
                           pathLength,            
                           format,                
                           pwd,                   
                           pwdLength,             
                           ccsid ,                
                           exportPath,            
                          exportLength,           
                          formatExport,           
                          version ,               
                          pwdExport ,             
                          expLength,              
                          ccsid,                  
                         errorCode ) ;            
/// delete [...]
return 0 ; 
}
I have this error: 
exception: CPFB729   
and when I put dspjoblog : 
 Pointer not set for location referenced. 
What could be the reason ? 
Thanks in advance.


Software/Hardware used:
ASKED: September 8, 2011  3:21 PM
UPDATED: March 31, 2012  4:58 PM
  Help
 Approved Answer - Chosen by GraceP (Question Asker)

I changed the ccsid to 0 (Get the ccsid of the job) and it works :)

 
int ccsid;
ccsid = 850;

ANSWERED:  Sep 15, 2011  10:58 PM (GMT)  by GraceP

 
Other Answers:

Removing the volatile key from the declarations and using the ‘OBJN0100′ format, updating the version variable to have 10 characters , I have the Error: <b>CPFB006</b> , and the Error code sections returns 16 , how can I read this error meaning ?
<pre>
int main() {
char path [50];
strcpy(path, “/QIBM/USERDATA/ICSS/CERT/SERVER/DEFAULT.KDB”);

int pathLength;
pathLength = strlen(path);
char format [20];
strcpy(format, “OBJN0100″);

char pwd [50];
strcpy(pwd, “fyi”);
int pwdLength;
pwdLength = strlen(pwd);

int ccsid;
ccsid = 850;
char exportPath [50];
strcpy(exportPath, “/home/me/export.pcks”);

int exportLength;
exportLength = strlen(exportPath);

char formatExport[20];
strcpy(formatExport, “OBJN0100″);
char version [20];
strcpy(version, “*PKCS12V3 “);
char pwdExport [20];
strcpy(pwdExport, “ryl”);

int expLength;
expLength = strlen(pwdExport);

void * temp = (void *) &errorCode;

QykmExportKeyStore(path,
&pathLength,
format,
pwd,
&pwdLength,
&ccsid,
exportPath,
&exportLength,
formatExport,
version,
pwdExport,
&expLength,
&ccsid,
&errorCode);

}
</pre>

Last Wiki Answer Submitted:  September 12, 2011  11:11 pm  by  GraceP   330 pts.
Latest Answer Wiki Contributors:  GraceP   330 pts.
To see other answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _