<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="wordpress/2.2.3" -->
<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/"
	>

<channel>
	<title>Techcrony.info</title>
	<link>http://www.techcrony.info</link>
	<description>Your Technical Buddy</description>
	<pubDate>Fri, 20 Aug 2010 07:17:02 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.3</generator>
	<language>en</language>
			<item>
		<title>Debugging Hibernate using Log4J Logs</title>
		<link>http://www.techcrony.info/2010/08/20/debugging-hibernate-using-log4j-logs/</link>
		<comments>http://www.techcrony.info/2010/08/20/debugging-hibernate-using-log4j-logs/#comments</comments>
		<pubDate>Fri, 20 Aug 2010 07:17:02 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
		
		<category><![CDATA[debug]]></category>

		<category><![CDATA[hibernate]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/2010/08/20/debugging-hibernate-using-log4j-logs/</guid>
		<description><![CDATA[People who work with Hibernate often want to see, what SQL it is prepairing behind the seen and how it is mapping in real for debug purpose. We can achieve this by enable log4j for Hibernate classes. This will give a detailed debug info. 
If using log4j.properties, enter the below line at end:
 ### log [...]]]></description>
			<content:encoded><![CDATA[<p>People who work with Hibernate often want to see, what SQL it is prepairing behind the seen and how it is mapping in real for debug purpose. We can achieve this by enable log4j for Hibernate classes. This will give a detailed debug info. </p>
<p><strong>If using log4j.properties, enter the below line at end:</strong></p>
<p> ### log JDBC bind parameters ###<br /> log4j.logger.net.sf.hibernate.type=debug</p>
<p> ### log prepared statement cache activity ###<br /> log4j.logger.net.sf.hibernate.ps.PreparedStatementCache=debug</p>
<p> <strong>If using log4j XML file, enter below line before &lt;root&gt;:</strong></p>
<p> &lt;logger name=&quot;org.hibernate&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;level value=&quot;debug&quot;/&gt;<br /> &lt;/logger&gt;</p>
<p> &lt;logger name=&quot;org.hibernate.SQL&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;level value=&quot;debug&quot;/&gt;<br /> &lt;/logger&gt;</p>
<p> &lt;logger name=&quot;org.hibernate.type&quot;&gt;<br /> &nbsp;&nbsp;&nbsp; &lt;level value=&quot;debug&quot;/&gt;<br /> &lt;/logger&gt;</p>
<p> <strong>Happy Coding</strong> <img src='http://www.techcrony.info/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2010/08/20/debugging-hibernate-using-log4j-logs/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HowTo Get RID of Just-In-Time debugger</title>
		<link>http://www.techcrony.info/2010/01/05/howto-get-rid-of-just-in-time-debugger/</link>
		<comments>http://www.techcrony.info/2010/01/05/howto-get-rid-of-just-in-time-debugger/#comments</comments>
		<pubDate>Tue, 05 Jan 2010 09:30:22 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[HowTo]]></category>

		<category><![CDATA[Troubleshoot]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=59</guid>
		<description><![CDATA[I installed Visual Studio, and with this it installed a Just-In-time script debugger .This Just-In-Time seems to come up all the time when I run Internet Explore and on each page of IE.
&#160;Solution
 Open Start&#62;Control Panels&#62;Internet Options: Advanced and activate (check box)
 * Disable Script Debugging (Internet Explorer) * Disable Script Debuggung (Other)
Open the registry [...]]]></description>
			<content:encoded><![CDATA[<p><span>I installed Visual Studio, and with this it installed a Just-In-time script debugger .This Just-In-Time seems to come up all the time when I run Internet Explore and on each page of IE.</span></p>
<p>&nbsp;<strong>Solution</strong></p>
<p> Open Start&gt;Control Panels&gt;Internet Options: Advanced and activate (check box)</p>
<p> * Disable Script Debugging (Internet Explorer)<br /> * Disable Script Debuggung (Other)</p>
<p>Open the registry (use <strong>regedit</strong>, Click&nbsp;Start, Run, Regedit).</p>
<p>Go to this key:</p>
<p>HKEY_CURRENT_USER\Software\Microsoft\Windows Script\Settings\<strong>JITDebug</strong></p>
<p>And set it to 0.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2010/01/05/howto-get-rid-of-just-in-time-debugger/feed/</wfw:commentRss>
		</item>
		<item>
		<title>java.security.NoSuchAlgorithmException: No implementation for AES/CBC/NoPadding found</title>
		<link>http://www.techcrony.info/2009/12/17/javasecuritynosuchalgorithmexception-no-implementation-for-aescbcnopadding-found/</link>
		<comments>http://www.techcrony.info/2009/12/17/javasecuritynosuchalgorithmexception-no-implementation-for-aescbcnopadding-found/#comments</comments>
		<pubDate>Thu, 17 Dec 2009 09:33:34 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
		
		<category><![CDATA[Troubleshoot]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=58</guid>
		<description><![CDATA[Hi,
 From past few days I and my few team members were getting the following error during LDAP authentication:
 javax.net.ssl.SSLException: Algorithm missing: &#160; &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.f(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275) &#160;&#160; &#160;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275) &#160;&#160; &#160;at com.xx.cat.fndt.auth.impl.ssl.TrustingSSLSocketFactory.getSSLSocket(TrustingSSLSocketFactory.java:147) &#160;&#160; &#160;at [...]]]></description>
			<content:encoded><![CDATA[<p>Hi,</p>
<p> From past few days I and my few team members were getting the following error during LDAP authentication:</p>
<p> javax.net.ssl.SSLException: Algorithm missing: &nbsp;<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.f(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_az.j(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_az.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_ax.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.j(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SSLSocketImpl.startHandshake(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.xx.cat.fndt.auth.impl.ssl.TrustingSSLSocketFactory.getSSLSocket(TrustingSSLSocketFactory.java:147)<br /> &nbsp;&nbsp; &nbsp;at com.xx.cat.fndt.auth.impl.ssl.TrustingSSLSocketFactory.makeSocket(TrustingSSLSocketFactory.java:209)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnSetupMgr.connectServer(LDAPConnSetupMgr.java:411)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnSetupMgr.openSerial(LDAPConnSetupMgr.java:343)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnSetupMgr.connect(LDAPConnSetupMgr.java:237)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnSetupMgr.openConnection(LDAPConnSetupMgr.java:163)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:1033)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:915)<br /> &nbsp;&nbsp; &nbsp;at netscape.ldap.LDAPConnection.connect(LDAPConnection.java:759)<br /> &nbsp;&nbsp; &nbsp;at com.xx.cat.fndt.auth.impl.ldap.LDAPAuthenticationInterface.getConnection(LDAPAuthenticationInterface.java:309)<br /> &nbsp;&nbsp; &nbsp;at com.xx.cat.fndt.auth.impl.ldap.LDAPAuthenticationInterface.getAuthenticatedConnection(LDAPAuthenticationInterface.java:248)<br /> &nbsp;&nbsp; &nbsp;at com.xx.cat.fndt.auth.impl.ldap.LDAPAuthenticationInterface.authenticate(LDAPAuthenticationInterface.java:69)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.svc.qoms.model.service.AdminManagerImpl.authenticateUser(AdminManagerImpl.java:71)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.svc.qoms.controller.QomsLogn010InptController.onSubmit(QomsLogn010InptController.java:208)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.mvc.SimpleFormController.processFormSubmission(SimpleFormController.java:267)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.mvc.AbstractFormController.handleRequestInternal(AbstractFormController.java:250)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.svc.qoms.controller.QomsLogn010InptController.handleRequestInternal(QomsLogn010InptController.java:160)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.mvc.AbstractController.handleRequest(AbstractController.java:153)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.mvc.SimpleControllerHandlerAdapter.handle(SimpleControllerHandlerAdapter.java:48)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:857)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:792)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:475)<br /> &nbsp;&nbsp; &nbsp;at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:440)<br /> &nbsp;&nbsp; &nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:709)<br /> &nbsp;&nbsp; &nbsp;at javax.servlet.http.HttpServlet.service(HttpServlet.java:802)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.fndt.filter.BlackoutFilter.doFilter(BlackoutFilter.java:257)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.fndt.filter.PropertiesFilter.doFilter(PropertiesFilter.java:178)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.fndt.filter.LoggingFilter.doFilter(LoggingFilter.java:152)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.fndt.filter.RequestHeadersFilter.doFilter(RequestHeadersFilter.java:104)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> &nbsp;&nbsp; &nbsp;at com.xx.qoc.fndt.filter.ExceptionHandlerFilter.doFilter(ExceptionHandlerFilter.java:105)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:202)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:178)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:126)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:105)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:107)<br /> &nbsp;&nbsp; &nbsp;at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:148)<br /> &nbsp;&nbsp; &nbsp;at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:869)<br /> &nbsp;&nbsp; &nbsp;at org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:664)<br /> &nbsp;&nbsp; &nbsp;at org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:527)<br /> &nbsp;&nbsp; &nbsp;at org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:80)<br /> &nbsp;&nbsp; &nbsp;at org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:684)<br /> &nbsp;&nbsp; &nbsp;at java.lang.Thread.run(Thread.java:534)<br /> Caused by: java.security.NoSuchAlgorithmException: Could not create cipher AES/128<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.CipherBox$JCECipherBox.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_h.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.CipherSuite$BulkCipher.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_ax.c(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;&#8230; 63 more<br /> Caused by: java.security.NoSuchAlgorithmException: <strong>No implementation for AES/CBC/NoPadding found</strong><br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_i.d(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.SunJSSE_i.a(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;at com.sun.net.ssl.internal.ssl.CipherBox$JCECipherBox.&lt;init&gt;(DashoA12275)<br /> &nbsp;&nbsp; &nbsp;&#8230; 67 more</p>
<p> I checked the java.security and found that all the providers are registered correctly:<br /> security.provider.1=sun.security.provider.Sun<br /> security.provider.2=com.sun.net.ssl.internal.ssl.Provider<br /> security.provider.3=com.sun.rsajca.Provider<br /> <strong>security.provider.4=com.sun.crypto.provider.SunJCE</strong><br /> security.provider.5=sun.security.jgss.SunProvider</p>
<p> I did some analysis, when i run the code from a windows batch file, it works but if i run it within Eclipse, it throws this Algorithm not found exception. i checked the JVM version and classpath and it looks okay.</p>
<p> I make a little program to find out whether all the providers are available during runtime or not<br /> &nbsp;Provider[] provs = Security.getProviders();</p>
<p> In result I get only one privider and all other were missing. The jar was not getting loaded in eclipse tomcat during runtime.</p>
<p> For solution, I added following three jar files in tomcat <u>boot classpath</u> and it worked form me and my team members <img src="http://www.techcrony.info/wp-content/plugins/Wysi-Wordpress/plugins/emotions/images/smiley-smile.gif" border="0" alt="Smile" title="Smile" /></p>
<p>-rt.jar<br /> -jsse.jar<br /> -jce.jar</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/12/17/javasecuritynosuchalgorithmexception-no-implementation-for-aescbcnopadding-found/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Rename log4j.properties</title>
		<link>http://www.techcrony.info/2009/08/07/rename-log4jproperties/</link>
		<comments>http://www.techcrony.info/2009/08/07/rename-log4jproperties/#comments</comments>
		<pubDate>Fri, 07 Aug 2009 06:57:31 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
		
		<category><![CDATA[log4j]]></category>

		<category><![CDATA[HowTo]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=57</guid>
		<description><![CDATA[Some time the need arises to have our log4j.properties with different name. By default, if no other configuration is given, log4j will search your classpath for a &#39;log4j.properties&#39; file.
Now to use your own named log4j property add the following line in your main program:
&#160; PropertyConfigurator.configure(&#34;File&#160; name with path&#34;)
exmaple:
&#160;PropertyConfigurator.configure(&#34;c:\\logs\\my-log4j.properties&#34;)&#160;&#160; this will set this as a default [...]]]></description>
			<content:encoded><![CDATA[<p>Some time the need arises to have our log4j.properties with different name. By default, if no other configuration is given, log4j will search your classpath for a &#39;<strong>log4j.properties&#39;</strong> file.</p>
<p>Now to use your own named log4j property add the following line in your main program:</p>
<p>&nbsp; PropertyConfigurator.configure(&quot;File&nbsp; name with path&quot;)</p>
<p>exmaple:</p>
<p>&nbsp;PropertyConfigurator.configure(&quot;c:\\logs\\my-log4j.properties&quot;)&nbsp;&nbsp; this will set this as a default property name and all done =)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/08/07/rename-log4jproperties/feed/</wfw:commentRss>
		</item>
		<item>
		<title>GURFL data</title>
		<link>http://www.techcrony.info/2009/07/24/gurfl-data/</link>
		<comments>http://www.techcrony.info/2009/07/24/gurfl-data/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 14:28:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[Mobile]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=56</guid>
		<description><![CDATA[GURFL file is a list of operators and their associated IP address ranges. This is a good way to find out from which mobile carrier (ie. which country) does a request come from.
Earlier it was available at:http://www.whirlymobile.com/resources/gurfl/operator.csv&#160;
But now days it is down. So I am attaching the last GURFL updated operators.csv file here.&#160;
]]></description>
			<content:encoded><![CDATA[<p>GURFL file is a list of operators and their associated IP address ranges. This is a good way to find out from which mobile carrier (ie. which country) does a request come from.</p>
<p>Earlier it was available at:http://www.whirlymobile.com/resources/gurfl/operator.csv&nbsp;</p>
<p>But now days it is down. So I am attaching the last GURFL updated operators.csv file <a href="http://www.nitingautam.com/operator.csv" target="_blank">here</a>.&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/07/24/gurfl-data/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Log4j errors : log4j:WARN No appenders could be found for logger, log4j:WARN Please initialize the log4j system properly</title>
		<link>http://www.techcrony.info/2009/07/23/log4j-errors-log4jwarn-no-appenders-could-be-found-for-logger-log4jwarn-please-initialize-the-log4j-system-properly/</link>
		<comments>http://www.techcrony.info/2009/07/23/log4j-errors-log4jwarn-no-appenders-could-be-found-for-logger-log4jwarn-please-initialize-the-log4j-system-properly/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 09:48:17 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[log4j]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=55</guid>
		<description><![CDATA[This is a very common problem, it occurs when log4j.properties not found in classpath.
Create a file called log4j.properties. Place it in the root folder where your java classes are found. When log4j initializes, it will look for a file named EXACTLY log4j.properties (if you are using a properties file). 
Another alternate way is to put [...]]]></description>
			<content:encoded><![CDATA[<p>This is a very common problem, it occurs when <strong>log4j.properties</strong> not found in classpath.</p>
<p><font></font><font>Create a file called <strong>log4j.properties</strong>. Place it in the root folder where your java classes are found. When log4j initializes, it will look for a file named <strong>EXACTLY </strong>log4j.properties (if you are using a properties file). </font></p>
<p><font></font><font>Another alternate way is to put the path to the log4j.properties file in your classpath.</font></p>
<p>Hope this will help you :)&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/07/23/log4j-errors-log4jwarn-no-appenders-could-be-found-for-logger-log4jwarn-please-initialize-the-log4j-system-properly/feed/</wfw:commentRss>
		</item>
		<item>
		<title>org.h2.jdbc.JdbcSQLException: The object is already closed [90007-113]</title>
		<link>http://www.techcrony.info/2009/07/16/orgh2jdbcjdbcsqlexception-the-object-is-already-closed-90007-113/</link>
		<comments>http://www.techcrony.info/2009/07/16/orgh2jdbcjdbcsqlexception-the-object-is-already-closed-90007-113/#comments</comments>
		<pubDate>Thu, 16 Jul 2009 12:11:53 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[h2]]></category>

		<category><![CDATA[hsqldb]]></category>

		<category><![CDATA[Database]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=54</guid>
		<description><![CDATA[While running junit using in memory database H2 I was hitting this error. I was testing my spring DAO classes that are using JDBCTemplate. In a single Junit testing, to test various scenario&#160; I was calling a single DAO method with different parameters . It start giving the error &#34;The object is already closed&#34; as [...]]]></description>
			<content:encoded><![CDATA[<p>While running junit using in memory database H2 I was hitting this error. I was testing my spring DAO classes that are using JDBCTemplate. In a single Junit testing, to test various scenario&nbsp; I was calling a single DAO method with different parameters . It start giving the error &quot;The object is already closed&quot; as it finishes testing the DAO method with first parameter.</p>
<p>Then I investigated in <strong>JDBCTemplate </strong>and found that it closes connection after every execution of query using Finally statement.</p>
<p><strong><font color="#660000">finally</font></strong> <font color="#0000ff">{</font><br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; JdbcUtils.closeStatement(stmt);<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; DataSourceUtils.releaseConnection(con, getDataSource());<br /> &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;<font color="#0000ff"> }</font> </p>
<p>To solve this issue I override the JDBCTemplate and created my own JDBCTemplate in which I have removed the Finally statement.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/07/16/orgh2jdbcjdbcsqlexception-the-object-is-already-closed-90007-113/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Javascript: Make independent copy of array using slice() method</title>
		<link>http://www.techcrony.info/2009/06/04/javascript-make-independent-copy-of-array/</link>
		<comments>http://www.techcrony.info/2009/06/04/javascript-make-independent-copy-of-array/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 17:01:56 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=53</guid>
		<description><![CDATA[Sometime it happens that we need to make copy of an array but in javascript when we assign an array to new it assign it with reference means if you delete anything from new array it will delete it from the main array as well  
 To create a copy of an array that [...]]]></description>
			<content:encoded><![CDATA[<p>Sometime it happens that we need to make copy of an array but in javascript when we assign an array to new it assign it with reference means if you delete anything from new array it will delete it from the main array as well <img src='http://www.techcrony.info/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p> To create a copy of an array that is independent of another array:<br /> Use the Array object&rsquo;s slice() method.</p>
<p> For example, the following statements create an array and then use slice() to make an independent copy of the array. </p>
<p>&nbsp;// JavaScript syntax</p>
<p>var oldArray = [&quot;1&quot;, &quot;b&quot;, &quot;3&quot;];</p>
<p>var newArray = oldArray.slice();</p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/06/04/javascript-make-independent-copy-of-array/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HSQLDB : java.sql.SQLException: Access is denied in statement [SELECT * FROM TBALE]</title>
		<link>http://www.techcrony.info/2009/06/02/hsqldb-javasqlsqlexception-access-is-denied-in-statement-select-from-tbale/</link>
		<comments>http://www.techcrony.info/2009/06/02/hsqldb-javasqlsqlexception-access-is-denied-in-statement-select-from-tbale/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 10:01:16 +0000</pubDate>
		<dc:creator>admin</dc:creator>
		
		<category><![CDATA[hsqldb]]></category>

		<category><![CDATA[Database]]></category>

		<category><![CDATA[Troubleshoot]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=51</guid>
		<description><![CDATA[This error appears when you have not specified required privileges to user in SCRIPT file for running the statements. Use the commands as follows just after user creation grant access as DBA like below: 
CREATE USER SA PASSWORD &#34;&#34; GRANT DBA TO SA
]]></description>
			<content:encoded><![CDATA[<p>This error appears when you have not specified required privileges to user in SCRIPT file for running the statements. Use the commands as follows just after user creation grant access as DBA like below: </p>
<p><font color="#0000ff">CREATE USER SA PASSWORD &quot;&quot;<br /> GRANT DBA TO SA</font></p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/06/02/hsqldb-javasqlsqlexception-access-is-denied-in-statement-select-from-tbale/feed/</wfw:commentRss>
		</item>
		<item>
		<title>HSQLDB : java.sql.SQLException: User not found: SA</title>
		<link>http://www.techcrony.info/2009/06/02/hsqldb-javasqlsqlexception-user-not-found-sa/</link>
		<comments>http://www.techcrony.info/2009/06/02/hsqldb-javasqlsqlexception-user-not-found-sa/#comments</comments>
		<pubDate>Tue, 02 Jun 2009 09:23:49 +0000</pubDate>
		<dc:creator>nitingautam</dc:creator>
		
		<category><![CDATA[hsqldb]]></category>

		<category><![CDATA[Database]]></category>

		<category><![CDATA[Troubleshoot]]></category>

		<category><![CDATA[Java]]></category>

		<guid isPermaLink="false">http://www.techcrony.info/?p=52</guid>
		<description><![CDATA[While running HSQLDB in standalone mode you may face the error
&#160; java.sql.SQLException: User not found: SA
This is because while creating the DB using script file you are not creating the user
CREATE USER SA PASSWORD &#34;&#34; 
The above command you have to include in your db.script file db is your database name) this will creates a [...]]]></description>
			<content:encoded><![CDATA[<p>While running HSQLDB in standalone mode you may face the error</p>
<p><font color="#0000ff">&nbsp; java.sql.SQLException: User not found: SA</font></p>
<p>This is because while creating the DB using script file you are not creating the user</p>
<p><font color="#0000ff">CREATE USER SA PASSWORD &quot;&quot; </font></p>
<p>The above command you have to include in your db.script file db is your database name) this will creates a user by name SA with blank password. </p>
]]></content:encoded>
			<wfw:commentRss>http://www.techcrony.info/2009/06/02/hsqldb-javasqlsqlexception-user-not-found-sa/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
