<?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: Issues with error handling in Java SDK (net.authorize.util.HttpClient) in Integration and Testing</title>
    <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Issues-with-error-handling-in-Java-SDK-net-authorize-util/m-p/30614#M16007</link>
    <description>&lt;P&gt;Damien,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your input on the Java SDK. &amp;nbsp;I've passed on your suggestion to the development team consideration in a future release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;
&lt;P&gt;Community Manager&lt;/P&gt;</description>
    <pubDate>Mon, 15 Oct 2012 17:26:19 GMT</pubDate>
    <dc:creator>RichardH</dc:creator>
    <dc:date>2012-10-15T17:26:19Z</dc:date>
    <item>
      <title>Issues with error handling in Java SDK (net.authorize.util.HttpClient)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Issues-with-error-handling-in-Java-SDK-net-authorize-util/m-p/30448#M15926</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The class net.authorize.util.HttpClient in the Java SDK which is used to post request to Authorize.NET swallows several exceptions (I/O, etc) which my be created during the post, so outer code doesn't know what happened, or have a chance to recover from the failure.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;In other places it logs the error to System.err (using e.printStackTrace()), which has the same effect. &amp;nbsp;The client doesn't have a chance to know what went wrong, or doesn't know that something went wrong.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;After manually inducing these error conditions, we found that in some cases it results in a RuntimeException because of a NullPointer caused by this poor exception handling.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;SPAN&gt;Examples of these issues may be seen in the methods&amp;nbsp;&lt;SPAN&gt;&lt;SPAN&gt;executeXML and&amp;nbsp;&lt;SPAN&gt;convertStreamToString. &amp;nbsp;I can provide more specifics if necessary. &amp;nbsp;Fixing these problems will help SDK users to write more robust code.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Oct 2012 22:59:53 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Issues-with-error-handling-in-Java-SDK-net-authorize-util/m-p/30448#M15926</guid>
      <dc:creator>damien</dc:creator>
      <dc:date>2012-10-05T22:59:53Z</dc:date>
    </item>
    <item>
      <title>Re: Issues with error handling in Java SDK (net.authorize.util.HttpClient)</title>
      <link>https://community.developer.cybersource.com/t5/Integration-and-Testing/Issues-with-error-handling-in-Java-SDK-net-authorize-util/m-p/30614#M16007</link>
      <description>&lt;P&gt;Damien,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for your input on the Java SDK. &amp;nbsp;I've passed on your suggestion to the development team consideration in a future release.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Richard&lt;/P&gt;
&lt;P&gt;Community Manager&lt;/P&gt;</description>
      <pubDate>Mon, 15 Oct 2012 17:26:19 GMT</pubDate>
      <guid>https://community.developer.cybersource.com/t5/Integration-and-Testing/Issues-with-error-handling-in-Java-SDK-net-authorize-util/m-p/30614#M16007</guid>
      <dc:creator>RichardH</dc:creator>
      <dc:date>2012-10-15T17:26:19Z</dc:date>
    </item>
  </channel>
</rss>

