× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



I have a java app that I am running from the iSeries to validate credit card
information. When I run the app, I get the following message:

 

"[INFO] HttpMethodDirector - I/O exception (javax.net.ssl.SSLException)
caught when processing request: The certificate container  *SYSTEM could not
be accessed."

 

 

When I run this code from my PC it works fine.

 

Thanks for the suggestions and help.

 

Tim

 

Some info:

Version 5.3 of OS.

SDK from CyberSource (
http://apps.cybersource.com/cgi-bin/pages/dev_kits.cgi?kit=Java/All_Platform
s )  to transmit information

Java code:

import java.util.*;

import com.cybersource.ws.client.*;

 

public class CCAuthorization {

   

    public static void main( String[] args ) {

 

            System.out.println("Setting props\n");

        Properties props = new Properties();

        props.setProperty("merchantID","v2311754");

        props.setProperty("keysDirectory","keys");

        props.setProperty("targetAPIVersion","1.2");

        props.setProperty("sendToProduction","FALSE");

        props.setProperty("enableLog","TRUE");

        props.setProperty("logDirectory","logs");

        props.setProperty("logMaximumSize","10");

 

        String requestID = runAuth( props, args );

 

        System.out.println("Ending\n");

    }

    

    public static String runAuth( Properties props, String[] args ) {

 

            System.out.println("Authorizing...setting parms\n");

        String requestID = null;

        String billTo_firstName_60 = args[0];

        String billTo_lastName_60 = args[1];

        String billTo_street1_60 = args[2];

        String billTo_city_50 = args[3];

        String billTo_state_2 = args[4];

        String billTo_postalCode_10 = args[5];

        String billTo_country_2 = args[6];

        String billTo_customerID_50 = args[7];

        String billTo_email_255 = args[8];

        String billTo_phoneNumber_15 = args[9];

        String card_accountNumber_20 = args[10];

        String card_expirationMonth_2 = args[11];

        String card_expirationYear_4 = args[12];

        String merchantReferenceCode_50 = args[13];

        String item_0_unitPrice_15 = args[14];

        String comments_255 = args[15];

        String purchaseTotals_currency_5 = "USD";

        

        HashMap request = new HashMap();

               

        request.put( "ccAuthService_run", "true" );

        request.put( "merchantReferenceCode", merchantReferenceCode_50 );

        request.put( "billTo_firstName", billTo_firstName_60);

        request.put( "billTo_lastName", billTo_lastName_60);

        request.put( "billTo_street1", billTo_street1_60);

        request.put( "billTo_city", billTo_city_50 );

        request.put( "billTo_state", billTo_state_2 );

        request.put( "billTo_postalCode", billTo_postalCode_10 );

        request.put( "billTo_country", billTo_country_2 );

        request.put( "billTo_email", billTo_email_255 );

        request.put( "billTo_phoneNumber", billTo_phoneNumber_15 );

        request.put( "card_accountNumber", card_accountNumber_20 );

        request.put( "card_expirationMonth", card_expirationMonth_2 );

        request.put( "card_expirationYear", card_expirationYear_4 );

        request.put( "purchaseTotals_currency", purchaseTotals_currency_5 );

        request.put( "item_0_unitPrice", item_0_unitPrice_15);

        request.put( "comments", comments_255);

        

        try {

 

                  System.out.println("Authorizing...Sending request\n");

            HashMap reply = Client.runTransaction( request, props );

            System.out.println("Authorizing...Sent request\n");

 

        } catch (ClientException e) {

            System.out.println( e.getMessage() );

 

        } catch (FaultException e) {

            System.out.println( e.getMessage() );

        }

        return( requestID );

    }

}

 

 

 


As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.