<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>
<channel>
	<title>Here I Go Again... &#187; WebObjects</title>
	<atom:link href="http://www.lilback.com/category/webobjects/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lilback.com</link>
	<description>The Musings &#38; Ramblings of Mark Lilback</description>
	<lastBuildDate>Mon, 16 Jan 2012 22:08:00 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Integrating Google Checkout With WebObjects</title>
		<link>http://www.lilback.com/2007/02/08/integrating-google-checkout-with-webobjects/</link>
		<comments>http://www.lilback.com/2007/02/08/integrating-google-checkout-with-webobjects/#comments</comments>
		<pubDate>Thu, 08 Feb 2007 23:04:45 +0000</pubDate>
		<dc:creator>mark</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[WebObjects]]></category>
		<guid isPermaLink="false">http://blogs.rtlabs.com/mark/2007/02/08/integrating-google-checkout-with-webobjects/</guid>
		<description><![CDATA[shareShare this on:I&#8217;ve been spending days on this. I kept getting messages that the socket to the app was being closed, and I couldn&#8217;t find out why. [2007-02-08 14:13:40 PST] &#60;workerthread7&#62; &#60;wohttpio&#62;: Unable to set socket timeout:Socket is closed &#60;/wohttpio&#62;&#60;/workerthread7&#62; Turns out that by calling com.google.checkout.sample.protocol.CallBackParser.getInstance().parseToJAXB(new InputSource(aRequest.contentInputStream())) either jaxb, the xml parser, or the google]]></description>
			<content:encoded><![CDATA[<div class="rpxsocial rpx_tooltip" onclick="rpxWPsocial('Share:','I\&#8217;ve been spending days on this. I kept ...','http://www.lilback.com/2007/02/08/integrating-google-checkout-with-webobjects/','Integrating Google Checkout With WebObjects','Shared Integrating Google Checkout With WebObjects');"><span class="rpxsharebutton">share</span><div class="rpx_share_tip">Share this on:<br /><div class="rpx_social_icons"><div class="rpx_icon_small rpx_facebook_small" title="Facebook"></div><div class="rpx_icon_small rpx_twitter_small" title="Twitter"></div></div></div></div><p>I&#8217;ve been spending days on this. I kept getting messages that the socket to the app was being closed, and I couldn&#8217;t find out why. </p>
<blockquote><p>[2007-02-08 14:13:40 PST] &lt;workerthread7&gt; &lt;wohttpio&gt;: Unable to set socket timeout:Socket is closed<br />
&lt;/wohttpio&gt;&lt;/workerthread7&gt;</p>
</blockquote>
<p>Turns out that by calling</p>
<blockquote><p>com.google.checkout.sample.protocol.CallBackParser.getInstance().parseToJAXB(new InputSource(aRequest.contentInputStream()))
</p>
</blockquote>
<p>either jaxb, the xml parser, or the google code was closing the input stream returned by the request, which was closing the socket to the web server. Instead, I changed the code to</p>
<blockquote><p>com.google.checkout.sample.protocol.CallBackParser.getInstance().parseToJAXB(new InputSource(new java.io.StringReader(aRequest.contentString())))</p>
</blockquote>
<p>and it works fine.</p>
<p>I figured I&#8217;d post this note so that if someone else runs into this problem, they&#8217;d hopefully find a solution via a Google search.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lilback.com/2007/02/08/integrating-google-checkout-with-webobjects/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

