Error: Pointer not set for location referenced using QykmExportKeyStore

415 pts.
Tags:
QykmExportKeyStore
Source code
Source Code Analysis
Source code management
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.
ASKED: September 8, 2011  3:21 PM
UPDATED: March 31, 2012  4:58 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

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>

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • GraceP
    I changed the ccsid to 0 (Get the ccsid of the job) and it works :)
     
    int ccsid;
    ccsid = 850;
    
    
    415 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following