<?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: Java: HttpClient execution failed in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33677#M18184</link>
    <description>&lt;P&gt;anet_java_sdk-1.4.6.zip\anet_java_sdk\src\main\java\net\authorize\cim\Transaction.java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;s_clientIpAddress is probably NULL.&lt;/P&gt;</description>
    <pubDate>Mon, 25 Mar 2013 18:13:19 GMT</pubDate>
    <dc:creator>RaynorC1emen7</dc:creator>
    <dc:date>2013-03-25T18:13:19Z</dc:date>
    <item>
      <title>Java: HttpClient execution failed</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33674#M18181</link>
      <description>&lt;P&gt;A couple weeks ago on our production server, we started getting this&amp;nbsp;Java stack trace error&amp;nbsp;out of the blue when trying to post CIM transactions from our web application:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;12:55:55,543 ERROR HttpClient:268 - HttpClient execution failed
java.lang.NullPointerException
	at net.authorize.cim.Transaction.addExtraOptions(Transaction.java:673)
	at net.authorize.cim.Transaction.createCustomerProfileTransaction(Transaction.java:951)
	at net.authorize.cim.Transaction.toXMLString(Transaction.java:719)
	at net.authorize.util.HttpClient.createHttpPost(HttpClient.java:69)
	at net.authorize.util.HttpClient.executeXML(HttpClient.java:200)
	at net.authorize.Merchant.postTransaction(Merchant.java:295)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Does anyone know where I can find the source code for the net.authorize.cim.Transaction class to figure out why this error is occurring? Or does anyone have any insight into why I might be getting a "HttpClient execution failed" message?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 17:37:36 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33674#M18181</guid>
      <dc:creator>BLangB</dc:creator>
      <dc:date>2013-03-25T17:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Java: HttpClient execution failed</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33675#M18182</link>
      <description>&lt;P&gt;source code&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="http://developer.authorize.net/downloads/"&gt;http://developer.authorize.net/downloads/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 17:52:59 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33675#M18182</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-25T17:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Java: HttpClient execution failed</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33676#M18183</link>
      <description>&lt;P&gt;Thanks for the reply. Unfortunately, source code does not seem to be available for Java there -- only the compiled Java classes are in the JAR file that can be downloaded via the link. (C# seems to be the only language that has source code available?)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm still interested in obtaining the source code. However, on a&amp;nbsp;brighter note, posting here caused me to look at an obvious part of the stack trace that I had ignored: specifically, the line related to "extra options". The only extra option I was setting was the client IP address: "ip_address".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;net.authorize.cim.Transaction cimTransaction = merchant.createCIMTransaction(TransactionType.CREATE_CUSTOMER_PROFILE_TRANSACTION);

...

cimTransaction.addExtraOption("ip_address", s_clientIpAddress);

...

Result&amp;lt;net.authorize.Transaction&amp;gt; cimResult = (Result&amp;lt;net.authorize.Transaction&amp;gt;) merchant.postTransaction(cimTransaction);&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;Commenting out the line where I set the IP address information succeeded in solving my issue. I have no idea why, and I have no idea why that code would have suddenly stopped working.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 17:58:29 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33676#M18183</guid>
      <dc:creator>BLangB</dc:creator>
      <dc:date>2013-03-25T17:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Java: HttpClient execution failed</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33677#M18184</link>
      <description>&lt;P&gt;anet_java_sdk-1.4.6.zip\anet_java_sdk\src\main\java\net\authorize\cim\Transaction.java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;s_clientIpAddress is probably NULL.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Mar 2013 18:13:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Java-HttpClient-execution-failed/m-p/33677#M18184</guid>
      <dc:creator>RaynorC1emen7</dc:creator>
      <dc:date>2013-03-25T18:13:19Z</dc:date>
    </item>
  </channel>
</rss>

