<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: NULL pointer exception ( importRefId ) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NULL-pointer-exception-importRefId/m-p/50377#M25835</link>
    <description>&lt;P&gt;Run debug and see which one is nul&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-java/blob/94bf1efc998a9e50084f193e2a34f739e110a37e/src/main/java/net/authorize/cim/Result.java" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-java/blob/94bf1efc998a9e50084f193e2a34f739e110a37e/src/main/java/net/authorize/cim/Result.java&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 21 Apr 2015 12:00:03 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2015-04-21T12:00:03Z</dc:date>
    <item>
      <title>NULL pointer exception ( importRefId )</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NULL-pointer-exception-importRefId/m-p/50375#M25834</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Code snippet&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;		Merchant merchant = createMerchant("**LOGINID**", "**transactionKey**");
		net.authorize.cim.Transaction txn = merchant.createCIMTransaction(TransactionType.CREATE_CUSTOMER_PROFILE_TRANSACTION);
		txn.setRefId("**REFID**");
		txn.setCustomerPaymentProfileId(*******);
		txn.setCustomerProfileId(********);

		PaymentTransaction paymentTransaction = PaymentTransaction.createPaymentTransaction();
		//creating order -txn amount details
		net.authorize.data.Order order = net.authorize.data.Order.createOrder();
		order.setInvoiceNumber(******);
		order.setTotalAmount(****);
		order.setDescription(******);
		paymentTransaction.setOrder(order);
		paymentTransaction.setTransactionType(net.authorize.TransactionType.AUTH_CAPTURE);
		txn.setPaymentTransaction(paymentTransaction);

		Result&amp;lt;net.authorize.cim.Transaction&amp;gt; result = (Result&amp;lt;net.authorize.cim.Transaction&amp;gt;) merchant.postTransaction(txn)&lt;/PRE&gt;&lt;P&gt;Error&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;java.lang.NullPointerException
	at net.authorize.cim.Result.importRefId(Result.java:109)
	at net.authorize.cim.Result.createResult(Result.java:47)
	at net.authorize.Merchant.postTransaction(Merchant.java:296)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 06:59:05 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/NULL-pointer-exception-importRefId/m-p/50375#M25834</guid>
      <dc:creator>naveenkumar</dc:creator>
      <dc:date>2015-04-21T06:59:05Z</dc:date>
    </item>
    <item>
      <title>Re: NULL pointer exception ( importRefId )</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/NULL-pointer-exception-importRefId/m-p/50377#M25835</link>
      <description>&lt;P&gt;Run debug and see which one is nul&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/AuthorizeNet/sdk-java/blob/94bf1efc998a9e50084f193e2a34f739e110a37e/src/main/java/net/authorize/cim/Result.java" target="_blank"&gt;https://github.com/AuthorizeNet/sdk-java/blob/94bf1efc998a9e50084f193e2a34f739e110a37e/src/main/java/net/authorize/cim/Result.java&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2015 12:00:03 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/NULL-pointer-exception-importRefId/m-p/50377#M25835</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2015-04-21T12:00:03Z</dc:date>
    </item>
  </channel>
</rss>

