<?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>Ghattu&#039;s Technology Blog &#187; Uncategorized</title>
	<atom:link href="http://ghattus.com/category/uncategorized/feed/" rel="self" type="application/rss+xml" />
	<link>http://ghattus.com</link>
	<description>A blog about technology that I work on in my day to day job</description>
	<lastBuildDate>Thu, 03 Dec 2009 00:56:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>TIBCO acquires DataSynapse</title>
		<link>http://ghattus.com/2009/08/25/tibco-acquires-datasynapse/</link>
		<comments>http://ghattus.com/2009/08/25/tibco-acquires-datasynapse/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:41:47 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=137</guid>
		<description><![CDATA[TIBCO joining the Cloud Band wagon by acquiring DataSynapse. http://www.tibco.com/company/news/releases/2009/press985.jsp]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.tibco.com">TIBCO </a>joining the Cloud Band wagon by acquiring <a href="http://www.datasynapse.com/">DataSynapse</a>.</p>
<p>http://www.tibco.com/company/news/releases/2009/press985.jsp</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/25/tibco-acquires-datasynapse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VMWare to acquire Spring Source</title>
		<link>http://ghattus.com/2009/08/11/vmware-to-acquire-spring-source/</link>
		<comments>http://ghattus.com/2009/08/11/vmware-to-acquire-spring-source/#comments</comments>
		<pubDate>Tue, 11 Aug 2009 15:48:31 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=117</guid>
		<description><![CDATA[This is a pretty interesting move by VMWare. Does this mean VMWare is trying to get into Java App Server space and become the new Under-dog?  Only time will tell. http://blogs.zdnet.com/BTL/?p=22526]]></description>
			<content:encoded><![CDATA[<p>This is a pretty interesting move by VMWare. Does this mean VMWare is trying to get into Java App Server space and become the new Under-dog?  Only time will tell.</p>
<p><a href="http://blogs.zdnet.com/BTL/?p=22526">http://blogs.zdnet.com/BTL/?p=22526</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/11/vmware-to-acquire-spring-source/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>WebLogic EmbeddedLDAP&#039;s MasterFirst Attribute saved my day!</title>
		<link>http://ghattus.com/2009/08/10/weblogic-embeddedldaps-masterfirst-attribute-saved-my-day/</link>
		<comments>http://ghattus.com/2009/08/10/weblogic-embeddedldaps-masterfirst-attribute-saved-my-day/#comments</comments>
		<pubDate>Mon, 10 Aug 2009 16:43:47 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[WebLogic]]></category>
		<category><![CDATA[embeddedLdap]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[boot.properties]]></category>
		<category><![CDATA[MasterFirst]]></category>

		<guid isPermaLink="false">http://ghattus.com/?p=110</guid>
		<description><![CDATA[While provisioning WebLogic environments to a new infrastructure, recently we started experiencing a problem where the Managed Server had problems starting up. It consistently failed with the error shown below.  &#60;Aug 3, 2009 12:38:48 PM EDT&#62; &#60;Notice&#62; &#60;Security&#62; &#60;BEA-090082&#62; &#60;Security initializing using security realm myrealm.&#62; &#60;Aug 3, 2009 12:38:48 PM EDT&#62; &#60;Critical&#62; &#60;Security&#62; &#60;BEA-090402&#62; &#60;Authentication [...]]]></description>
			<content:encoded><![CDATA[<p>While provisioning WebLogic environments to a new infrastructure, recently we started experiencing a problem where the Managed Server had problems starting up. It consistently failed with the error shown below.<span id="more-110"></span></p>
<blockquote><p><em> &lt;Aug 3, 2009 12:38:48 PM EDT&gt; &lt;Notice&gt; &lt;Security&gt; &lt;BEA-090082&gt; &lt;Security initializing using security realm myrealm.&gt;<br />
&lt;Aug 3, 2009 12:38:48 PM EDT&gt; &lt;Critical&gt; &lt;Security&gt; &lt;BEA-090402&gt; &lt;Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.&gt;<br />
&lt;Aug 3, 2009 12:38:48 PM EDT&gt; &lt;Critical&gt; &lt;WebLogicServer&gt; &lt;BEA-000386&gt; &lt;Server subsystem failed. Reason: weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.<br />
weblogic.security.SecurityInitializationException: Authentication denied: Boot identity not valid; The user name and/or password from the boot identity file (boot.properties) is not valid. The boot identity may have been changed since the boot identity file was created. Please edit and update the boot identity file with the proper values of username and password. The first time the updated boot identity file is used to start the server, these new values are encrypted.<br />
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.doBootAuthorization(CommonSecurityServiceManagerDelegateImpl.java:941)<br />
        at weblogic.security.service.CommonSecurityServiceManagerDelegateImpl.initialize(CommonSecurityServiceManagerDelegateImpl.java:1029)<br />
        at weblogic.security.service.SecurityServiceManager.initialize(SecurityServiceManager.java:854)<br />
        at weblogic.security.SecurityService.start(SecurityService.java:141)<br />
        at weblogic.t3.srvr.SubsystemRequest.run(SubsystemRequest.java:64)<br />
        Truncated. see log file for complete stacktrace<br />
&gt;<br />
&lt;Aug 3, 2009 12:38:48 PM EDT&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to FAILED&gt;<br />
&lt;Aug 3, 2009 12:38:48 PM EDT&gt; &lt;Error&gt; &lt;WebLogicServer&gt; &lt;BEA-000383&gt; &lt;A critical service failed. The server will shut itself down&gt;<br />
&lt;Aug 3, 2009 12:38:48 PM EDT&gt; &lt;Notice&gt; &lt;WebLogicServer&gt; &lt;BEA-000365&gt; &lt;Server state changed to FORCE_SHUTTING_DOWN&gt;</em></p></blockquote>
<p>From the error message it looked like the boot.properties on the Managed Server does not have the right username and password, we made sure it was updated. Tried to re-start the server, same issue. We tried to delete the entire LDAP directory on the Managed Server side so that it syncs the latest from Admin Server which should not have any issues, but that didn&#8217;t work either.</p>
<p>Well, now we ran out of options and contacted Oracle Support, they looked at it and asked us to do a couple of other things which did not work either. Finally, before we escalated further Oracle Support Engineer asked us to try one more last thing that is to enable MasterFirst on EmbeddedLDAP. Honestly I never knew such attribute existed and the help for that attribute looks something like this.</p>
<blockquote><p><em>MasterFirst-Specifies whether a Managed Server should always connect to the embedded LDAP server on the Administration Server, instead of connecting to the local replicated LDAP server.</em></p></blockquote>
<p>Miraculously enabling this attribute did seem to work and the Managed Server started up happily without any issues. Now the question is, Why do we need to specifically enable this attribute when we do not have issues in other environments? The answer is we don&#8217;t know &#8220;yet&#8221;. We suspect its Network, but not entirely sure and we will find out very soon. But whatever it is &#8220;MasterFirst&#8221; did save my day and probably days!</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2009/08/10/weblogic-embeddedldaps-masterfirst-attribute-saved-my-day/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>JRockit &#8211; Error Message: Illegal memory access. [54]</title>
		<link>http://ghattus.com/2008/10/02/jrockit-error-message-illegal-memory-access-54/</link>
		<comments>http://ghattus.com/2008/10/02/jrockit-error-message-illegal-memory-access-54/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 21:16:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghattus.com/2008/10/jrockit-error-message-illegal-memory-access-54/</guid>
		<description><![CDATA[Recently we upgraded all our WebLogic domains to use JRockit from Sun JDK 1.4. After we restarted our servers we started seeing a JRockit dump in few of our servers. After some research and advice from Oracle Support team we were able to start our servers without the crash only if we add the JVM [...]]]></description>
			<content:encoded><![CDATA[<p>Recently we upgraded all our WebLogic domains to use JRockit from Sun JDK 1.4. After we restarted our servers we started seeing a JRockit dump in few of our servers. After some research and advice from Oracle Support team we were able to start our servers without the crash only if we add the JVM flag &#8220;<span style="font-size:85%">-Xverify:all&#8221;. In case you run into this issue you can get over this by adding this flag. The crash dump looks as shown below:</p>
<p></span>
<p dir="ltr"><span lang="en-us"><span style="font-family:Arial;font-size:78%">    <br />===== BEGIN DUMP =============================================================<br />JRockit dump produced after 0 days, 00:02:32 on Wed Oct 1 09:25:47 2008</p>
<p>Additional information is available in:<br />/opt/satya/fooDomain/jrockit.30205.dump<br /></span></span><span lang="en-us"><span style="font-family:Arial;font-size:78%">/opt/satya/fooDomain</span></span><span lang="en-us"><span style="font-family:Arial;font-size:78%">/core or core.30205<br />If you see this dump, please open a support case with BEA and<br />supply as much information as you can on your system setup and<br />the program you were running. You can also search for solutions<br />to your problem at</span></span><span lang="en-us"> </span><a href="http://forums.bea.com/" target="_blank"><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><u><span style="font-family:Arial;font-size:78%;color:#0000ff">http://forums.bea.com</span></u></span><span lang="en-us"></span></a><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><span style="font-family:Arial;font-size:78%"> in<br />the forum jrockit.developer.interest.general.</p>
<p>Error Message:</span></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><b> <span style="font-family:Arial;font-size:78%;color:#ff0000">Illegal memory access</span></b></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><span style="font-family:Arial;font-size:78%;color:#ff0000">.</span></span><span lang="en-us"></span><span lang="en-us"></span><span lang="en-us"><span style="font-family:Arial;font-size:78%"> [54]<br />Signal info : si_signo=11, si_code=2 si_addr=(nil)<br />Version : BEA JRockit(R) R27.2.0-131-78843-1.4.2_13-20070320-1511-linux-ia32<br />GC Mode : Garbage collection optimized for throughput<br />GC Strategy : Generational Parallel Mark &amp; Sweep<br />: Current OC phase is: not running. YC is not running.<br />: GC strategy for GC 7 was genparpar<br />: GC strategy for GC 8 was genparpar<br />: GC strategy for GC 9 was singleparpar<br />: GC strategy for GC 10 was genparpar<br />: GC strategy for GC 11 was singleparpar</span></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2008/10/02/jrockit-error-message-illegal-memory-access-54/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Rotating your Standard Out/Err log files</title>
		<link>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/</link>
		<comments>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/#comments</comments>
		<pubDate>Thu, 10 Apr 2008 01:50:00 +0000</pubDate>
		<dc:creator>sghattu</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://ghattus.com/2008/04/rotating-your-standard-outerr-log-files/</guid>
		<description><![CDATA[If you are a WebLogic Developer or an Administrator there is 90 &#8211; 100% chance you have had situations where the WebLogic Server log files are filling up the disk space. Typically, when a WebLogic Server is started you will notice in addition to other files it creates an .out and .log files in your [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a WebLogic Developer or an Administrator there is 90 &#8211; 100% chance you have had situations where the WebLogic Server log files are filling up the disk space. Typically, when a WebLogic Server is started you will notice in addition to other files it creates an .out and .log files in your logs directory. The .log file will contain all the weblogic log messages and the .out file will  contain the Standard out, i.e if you are doing a System.out.println in your Application code that is running inside WebLogic, this .out will contain that print line.<br />WebLogic Server provides a way to configure rotate policies on your .log file depending on the size or a specific time interval. But unfortunately you cannot configure the same on the out files for obvious reasons. This could be a challenge if you are managing a Web Farm that contains a large number of WebLogic domains spitting out messages that are going to standard out. One can argue, why would you be in this situation if applications use Log4J or WebLogic&#8217;s Non Catalog Logger to make sure none of the application code is doing a <span style="font-weight: bold">System.out.println</span>. Yes, that can be possible but unfortunately we do not live in a perfect world. With the plethora of Open source software that is being bundled into application deployments it is very hard to make sure all these are doing the right thing. A simple e.printStackTrace() that is caught in a recursive loop can bring down your system.<br />We tried to solve this issue and the first and obvious solution we came up was to replace the System.out and System.err streams with custom Logging stream&#8217;s that will do the Rotation. This has been explained very well <a href="http://blogs.sun.com/nickstephen/entry/java_redirecting_system_out_and">here.</a>  We configured a StartupClass that did the configuration of custom logging stream while the server is starting up. This solution did work well, but we quickly realized that the rolling logs do not capture the Thread Dump. The second solution (if you are using unix OS&#8217;s) was to use <a href="http://www.linuxcommand.org/man_pages/logrotate8.html">logrotate</a>, you can run this utility as a cron job at regular intervals. We have added a StartupClass that registered a Timer during Server start that ran every hour (this is configurable via a System property) and rotated the out files if the size is greater than 2MB. The logrotate configuration we use is shown below.<br /><span style="font-size:85%"><span style="font-style: italic;font-family:arial">logrotate.conf</span><br /><span style="font-style: italic;font-family:arial">&#8220;logs/*.out&#8221; {</span><br /><span style="font-style: italic;font-family:arial">        copytruncate</span><br /><span style="font-style: italic;font-family:arial">        compress</span><br /><span style="font-style: italic;font-family:arial">        rotate 1</span><br /><span style="font-style: italic;font-family:arial">        size=2M</span><br /><span style="font-style: italic;font-family:arial">        sharedscripts</span><br /><span style="font-style: italic;font-family:arial">        olddir ../old-logs/</span><br /><span style="font-style: italic;font-family:arial">        postrotate</span><br /><span style="font-style: italic;font-family:arial">                time=`date +%s`</span><br /><span style="font-style: italic;font-family:arial">                echo $time</span><br /><span style="font-style: italic;font-family:arial">                mkdir -p /export/weblogic/user_projects/mydomain/servers/myserver/old-logs/$time</span><br /><span style="font-style: italic;font-family:arial">                mv old-logs/*.out.1.gz /export/weblogic/user_projects/mydomain/servers/myserver/old-logs/$time</span><br /><span style="font-style: italic;font-family:arial">                </span><span style="font-style: italic;font-family:arial"></span><br /><span style="font-style: italic;font-family:arial">        endscript</span><br /><span style="font-style: italic;font-family:arial">}<br /></span></span>The logrotate utility uses the configuration above to rotate all .out files in the logs directory if they are above 2MB and after they are rotated they are archived into an old-logs directory. You can also add more custom logic to the postrotate script.<br />Once you have configured this, as a WebLogic or any Middleware product Administrator you do not have to worry about log files filling your disk space and spinning the CPU&#8217;s.</p>
]]></content:encoded>
			<wfw:commentRss>http://ghattus.com/2008/04/09/rotating-your-standard-outerr-log-files/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
