<?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>Waldron Digital&#039;s Tech Blog &#187; BES express</title>
	<atom:link href="http://blog.waldrondigital.com/tag/bes-express/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.waldrondigital.com</link>
	<description></description>
	<lastBuildDate>Sat, 17 Mar 2012 18:32:35 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Blackberry Application Server Service Terminated Unexpectedly with BES Express</title>
		<link>http://blog.waldrondigital.com/2010/05/17/blackberry-application-server-service-terminated-unexpectedly-bes-express/</link>
		<comments>http://blog.waldrondigital.com/2010/05/17/blackberry-application-server-service-terminated-unexpectedly-bes-express/#comments</comments>
		<pubDate>Tue, 18 May 2010 03:05:06 +0000</pubDate>
		<dc:creator>Mike Waldron</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[BES express]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[BlackBerry Administration Service - Application Server service terminated unexpectedly]]></category>
		<category><![CDATA[failed to start protocol stack]]></category>
		<category><![CDATA[jboss error]]></category>
		<category><![CDATA[ReservedPorts]]></category>

		<guid isPermaLink="false">http://www.waldrondigital.com/?p=865</guid>
		<description><![CDATA[After a recent reboot I found that my BES Express server was no longer communicating with devices. My first dilemma was the Blackberry Controller Service wouldn&#8217;t start.  I got this in my controller log file: [20000] (05/16 01:22:56.500):{0x147C} LogReceiver: Failed to bind a socket That told me that there was a conflict with whatever port [...]]]></description>
			<content:encoded><![CDATA[<p>After a recent reboot I found that my BES Express server was no longer communicating with devices.</p>
<p>My first dilemma was the Blackberry Controller Service wouldn&#8217;t start.  I got this in my controller log file:</p>
<blockquote><p><em>[20000] (05/16 01:22:56.500):{0x147C} LogReceiver: Failed to bind a socket</em></p></blockquote>
<p>That told me that there was a conflict with whatever port the controller was trying to grab.  After a little Googling I found that adding port 4070-4071 to the ReservedPorts TCP/IP registry key would fix this.  The Microsoft DNS service fights with BES for control of ephemeral  ports which <a href="http://www.blackberry.com/btsc/search.do?cmd=displayKC&amp;docType=kc&amp;externalId=KB16001" target="_blank">is a known situation</a>.  Rebooted the computer and found that my devices were updating and the controller service started successfully.  However, my Application Server service kept shutting down every time I would attempt to access it, and could not enter the web administration interface.  I would ultimately get a connection timed out message.  I observed this in my system log:</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-870" src="http://blog.waldrondigital.com/wp-content/uploads/2010/05/Picture-2.png" alt="" width="404" height="446" /><em>Error: The BlackBerry Administration Service &#8211; Application Server service terminated unexpectedly.<br />
It has done this 1 time(s).  The following corrective action will be taken in 60000 milliseconds: Restart the service.</em></p>
<p>And this in my BBAS logs:</p>
<blockquote>
<p style="text-align: left;">(05/17 19:34:43:369):{main} [org.jboss.system.ServiceController] [WARN] Problem starting service jboss.cache:service=BASObjectVersioningCache<br />
org.jgroups.ChannelException: failed to start protocol stack</p>
</blockquote>
<p>I eventually found the fix <a href="http://supportforums.blackberry.com/t5/BlackBerry-Professional-Software/Application-Server-service-terminated-unexpectedly/m-p/472201" target="_blank">here</a> at the Blackberry support forums, which is to add an additional range of reserved ports for the Application Service:</p>
<blockquote><p>Click Start, click Run, type <strong>regedit</strong>, and then click OK.<br />
Locate and then click the following subkey:<br />
<strong>HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters</strong><br />
Right-click <strong>ReservedPorts</strong>, and then click <strong>Modify</strong>.<br />
Paste the following at the bottom.<br />
<strong>48855-48858<br />
45588-45588<br />
49955-49955<br />
45599-45599</strong></p>
<p><strong>Restart the server.<br />
</strong><br />
Once you go to the web admin, you will think its not going to work but hang tight, give it a few seconds and you will be surprised!!</p></blockquote>
<p>Here&#8217;s what my ReservedPorts looks like after my two fixes (ignore the first three lines which were already there in my environment):</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-868" title="ReservedPorts" src="http://blog.waldrondigital.com/wp-content/uploads/2010/05/Picture-1.png" alt="" width="354" height="311" /></p>
<p>I don&#8217;t know how this person picked these ports (maybe spoke with support?)&#8230; <em><strong>but it DID indeed fix the problem for me.</strong></em></p>
<p><em>My environment: Windows 2003 Server / Domain Controller / Exchange Server 2003 Standard</em><strong><br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waldrondigital.com/2010/05/17/blackberry-application-server-service-terminated-unexpectedly-bes-express/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>Cannot activate user in Blackberry BES Express, IEMSTest.exe fails with Send As account operator error, Provision User Failed</title>
		<link>http://blog.waldrondigital.com/2010/03/04/cannot-activate-user-in-bes-express-iemstest-exe-fails-with-send-as-account-operator-error/</link>
		<comments>http://blog.waldrondigital.com/2010/03/04/cannot-activate-user-in-bes-express-iemstest-exe-fails-with-send-as-account-operator-error/#comments</comments>
		<pubDate>Thu, 04 Mar 2010 22:44:31 +0000</pubDate>
		<dc:creator>Mike Waldron</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[BES express]]></category>
		<category><![CDATA[iemstest.exe]]></category>
		<category><![CDATA[permissions]]></category>
		<category><![CDATA[Receive As]]></category>
		<category><![CDATA[Send As]]></category>

		<guid isPermaLink="false">http://www.waldrondigital.com/?p=762</guid>
		<description><![CDATA[After installing BES Express last night, I went to activate my first user and could not get it working.  I tried a &#8220;wired&#8221; activation using the user web console as well as an &#8220;OTA&#8221; activation.  The ETA.DAT Blackberry activation e-mail would just sit there in the user&#8217;s box and not get picked up.  Also, the OTA [...]]]></description>
			<content:encoded><![CDATA[<p>After installing BES Express last night, I went to activate my first user and could not get it working.  I tried a &#8220;wired&#8221; activation using the user web console as well as an &#8220;OTA&#8221; activation.  The ETA.DAT Blackberry activation e-mail would just sit there in the user&#8217;s box and not get picked up.  Also, the OTA activation would just hang at &#8220;Activating&#8221;.  The wired activation would return a &#8220;contact your administrator&#8221; text in red when you try to activate that way.</p>
<p>After researching a bit, I ran IEMSTest.exe from the \RIM\BB\Utility\ folder.</p>
<p>It failed with:</p>
<blockquote><p><em>BESAdmin: No Send As permission for the {DOMAIN\besadmin} account operator.</em></p></blockquote>
<p>Also I received this error in my BBAS-AS Logfile in RIM\BB\Logs after trying to activate a user:</p>
<blockquote><p><em>com.rim.bes.bas.besutilityaccess.DeviceActivationJNIException: JBeginActivation::ProvisionUser Provision user failed [sourcefile = c:\ec_build\besxp_5.0.1\6280\bx_adminservice\source\enterprise\bas \server\nativeutil\src\core\main\cpp\basbesutil\src\jbeginactivation.cpp line=286]</em></p></blockquote>
<p>I fixed the IEMSTest issue by doing the following:</p>
<ol>
<li><strong>Implement the <a href="http://support.microsoft.com/kb/907434" target="_blank">Microsoft KB 907434</a> by applying <a href="http://blog.waldrondigital.com/wp-content/uploads/2010/03/fix_sendas.txt">this script (click to download)</a> to your BES server.</strong> Replace YOURDOMAIN with your AD domain (don&#8217;t forget to change the extension if you are .net, .local) and replace BESAdminAccountNameHere with your BESAdmin account.  You may need to remove the domain\ from the last line if you are not using a domain account for your BES server as I am.  <em>You have to perform this step as Windows server will reset the permissions you are setting in the following steps automatically without this fix.</em></li>
<li><strong>Open Active Directory Users &amp; Computers </strong><strong></strong></li>
<li><strong>Enable Advanced Features in AD (View, Advanced Features) </strong><strong></strong></li>
<li><strong>Double-click (open) your BESAdmin user </strong><strong></strong></li>
<li><strong>Security tab </strong><strong></strong></li>
<li><strong>Add the BESAdmin user to the Security tab giving Send As, Receive As &#8211; this is in addition to the defaults that were in there.</strong></li>
</ol>
<p>My IEMSTest.exe works now and I was able to get my users activated over the air.</p>
<p><strong><em>My environment: Exchange 2003 Standard running on Windows 2003 Server Domain Controller</em></strong></p>
<p style="text-align: left;">If this article helped you, please consider donating any amount (even $1 helps!):</p>
<form action="https://www.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick" />
<input type="hidden" name="hosted_button_id" value="PA5AVU8TSF3G2" />
<input type="image" name="submit" src="https://www.paypalobjects.com/en_US/i/btn/btn_donate_LG.gif" alt="PayPal - The safer, easier way to pay online!" /></form>
<p style="text-align: left;">
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.waldrondigital.com/2010/03/04/cannot-activate-user-in-bes-express-iemstest-exe-fails-with-send-as-account-operator-error/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

