<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:blogger='http://schemas.google.com/blogger/2008' xmlns:georss='http://www.georss.org/georss' xmlns:gd="http://schemas.google.com/g/2005" xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-6872443420951429545</id><updated>2024-09-24T14:56:16.627-07:00</updated><title type='text'>Java Is My Passion</title><subtitle type='html'>Be as a Java Professional.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default?alt=atom'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-6713811519171352747</id><published>2013-04-03T04:26:00.002-07:00</published><updated>2013-04-03T04:31:11.652-07:00</updated><title type='text'>Java experienced professionals interview experiences</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;strong&gt;&lt;u&gt;&lt;span style=&quot;color: #990000;&quot;&gt;Society General Interview Experience&lt;/span&gt;&lt;/u&gt;&lt;/strong&gt;&lt;br /&gt;
&amp;nbsp;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/6713811519171352747/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2013/04/java-experienced-professionals.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/6713811519171352747'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/6713811519171352747'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2013/04/java-experienced-professionals.html' title='Java experienced professionals interview experiences'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-7055722090791145602</id><published>2012-12-20T01:22:00.001-08:00</published><updated>2012-12-20T01:56:42.090-08:00</updated><title type='text'>Spring AOP</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;
&lt;h2 style=&quot;color: red; text-align: left;&quot;&gt;
&lt;b&gt;Why spring aop advice is not triggering(invoking) for setter methods&amp;nbsp; invoked&amp;nbsp; by spring container ?&lt;/b&gt;&lt;/h2&gt;
&lt;br /&gt;
&lt;h4 style=&quot;color: blue; text-align: left;&quot;&gt;
&lt;u&gt;&lt;b&gt;Problem :&amp;nbsp;&lt;/b&gt;&lt;/u&gt;&lt;b&gt;&amp;nbsp; &lt;/b&gt;&lt;span style=&quot;color: black;&quot;&gt;The actual problem is explained by using below example.&lt;/span&gt;&lt;/h4&gt;
&amp;nbsp;&lt;i&gt;&lt;b&gt;Bean class:&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;div style=&quot;background-color: #9fc5e8;&quot;&gt;
package org.example;&lt;br /&gt;
&lt;br /&gt;
public class Triangle {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;private String name;&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;public String getName() {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;return name;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;public void setName(String name) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;System.out.println(&quot;In setter&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;this.name = name;&lt;br /&gt;
&amp;nbsp;&amp;nbsp; &amp;nbsp;}&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;i&gt;B&lt;b&gt;ean configuration&amp;nbsp; in spring.xml&lt;/b&gt;&lt;/i&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #9fc5e8;&quot;&gt;
&amp;lt;aop:aspectj-autoproxy /&amp;gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&lt;br /&gt;
&amp;lt;bean id=&quot;triangle&quot; class=&quot;org.example.Triangle&quot; &amp;gt;&lt;br /&gt;
&amp;lt;property name=&quot;name&quot; value=&quot;Right Angle Triangle&quot;/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/bean&amp;gt;&lt;br /&gt;
&amp;lt;bean id=&quot;firstaspect&quot; class=&quot;org.example.aspects.SampleAspect&quot;/&amp;gt;&lt;/div&gt;
&lt;div style=&quot;background-color: #9fc5e8;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;span style=&quot;font-size: small;&quot;&gt;&lt;i&gt;&lt;b&gt;Aspect class:&lt;/b&gt;&lt;/i&gt;&lt;/span&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: #9fc5e8;&quot;&gt;
package org.example.aspects;&lt;br /&gt;
&lt;br /&gt;
import org.aspectj.lang.JoinPoint;&lt;br /&gt;
import org.aspectj.lang.annotation.Aspect;&lt;br /&gt;
import org.aspectj.lang.annotation.Before;&lt;br /&gt;
&lt;br /&gt;
@Aspect&lt;br /&gt;
public class SampleAspect {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; @Before(&quot;execution(public void setName(..))&quot;)&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public void testAdvice(JoinPoint joinPoint){&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;System.out.println(&quot;Aspect Signature &quot;+joinPoint.getSignature());&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;
&lt;br /&gt;
&lt;h3 style=&quot;text-align: left;&quot;&gt;
&lt;i&gt;&lt;b&gt;spring client program:&lt;/b&gt;&lt;/i&gt;&lt;/h3&gt;
&lt;div style=&quot;background-color: #9fc5e8;&quot;&gt;
import org.springframework.context.ApplicationContext;&lt;br /&gt;
import org.springframework.context.support.ClassPathXmlApplicationContext;&lt;br /&gt;
&lt;br /&gt;
public class AOPClient {&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; /**&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;* @param args&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;*/&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; public static void main(String[] args) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;ApplicationContext ctx = new ClassPathXmlApplicationContext(&quot;spring.xml&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;Triangle triangle=ctx.getBean(&quot;triangle&quot;,Triangle.class);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;nbsp;System.out.println(&quot;Triangle name: &quot;+triangle.getName());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;
&lt;br /&gt;
}&lt;/div&gt;
&lt;div style=&quot;background-color: #9fc5e8;&quot;&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
output : &lt;br /&gt;
In setter&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Triangle name: Right Angle Triangle&lt;/div&gt;
&lt;br /&gt;
As per the spring aop concept the adviser&amp;nbsp; testAdvice must be called&amp;nbsp; before executing the setter method setName(String name) but&amp;nbsp; the adviser is not triggering.&lt;br /&gt;
because AOP Proxy works only after the bean complete initialization i.e after setting all the properties through DependecnyInjection.&lt;br /&gt;
after succesful initialization of bean if you invoke the setter method again from your client program then it&#39;ll trigger the advisor.&lt;br /&gt;
&lt;br /&gt;
public static void main(String[] args) {&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ApplicationContext ctx = new ClassPathXmlApplicationContext(&quot;spring.xml&quot;);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Triangle triangle=ctx.getBean(&quot;triangle&quot;,Triangle.class);&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; triangle.setName(&quot;Equilateral Triangle&quot;);&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; System.out.println(&quot;Triangle name: &quot;+triangle.getName());&lt;br /&gt;
&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp; } &lt;br /&gt;
&lt;br /&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
output:&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
In setter //This output line is called through spring container&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Aspect Signature String org.example.Triangle.getName()&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
In setter //This output line is called through AOPClient Class&lt;/div&gt;
&lt;div style=&quot;background-color: #cccccc;&quot;&gt;
Triangle name:Equilateral Triangle&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/7055722090791145602/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2012/12/spring-aop.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/7055722090791145602'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/7055722090791145602'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2012/12/spring-aop.html' title='Spring AOP'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-4316987788481627777</id><published>2011-06-01T23:55:00.001-07:00</published><updated>2011-06-01T23:55:42.384-07:00</updated><title type='text'>Spring - WebServices</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Coming soon...&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/4316987788481627777/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2011/06/spring-webservices.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/4316987788481627777'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/4316987788481627777'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2011/06/spring-webservices.html' title='Spring - WebServices'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-5679260211659935612</id><published>2011-02-07T04:25:00.000-08:00</published><updated>2011-02-07T04:30:29.557-08:00</updated><title type='text'>java.lang.UnsatisfiedLinkError</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;br /&gt;
&lt;div style=&quot;font-family: &amp;quot;Courier New&amp;quot;,Courier,monospace;&quot;&gt;&lt;span style=&quot;font-size: small;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;border-collapse: separate; color: black; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot;&gt;&lt;pre style=&quot;color: green;&quot;&gt;Exception in thread &quot;main&quot; java.lang.UnsatisfiedLinkError:&lt;/pre&gt;&lt;pre style=&quot;color: green;&quot;&gt;&lt;b&gt;&lt;span style=&quot;color: #660000;&quot;&gt;no cb in java.library.path&lt;/span&gt;&lt;/b&gt;&lt;/pre&gt;&lt;pre style=&quot;color: green;&quot;&gt;&lt;span style=&quot;color: #660000;&quot;&gt;
&lt;/span&gt;at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1413)
at java.lang.Runtime.loadLibrary0(Runtime.java:775)
at java.lang.System.loadLibrary(System.java:835)
at codebase.Code4jni.&amp;lt;init&amp;gt;(Code4jni.java:61)
at test.main(read.java:10)&lt;/pre&gt;This exception occurs when creating a new&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;CB&quot; style=&quot;color: #000077; font-variant: normal; font-weight: bold; white-space: nowrap;&quot;&gt;Code4jni&lt;/span&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;object with CodeBase for the Java Programming Language. The exception occurs because the CodeBase native library (DLL on Windows) cannot be found. On UNIX and other systems, it can also be caused by a version difference between the run-time libraries on the system and the run-time libraries associated with with pre-built CodeBase native libraries. In addition, the -Xbootclasspath option will cause this.&lt;br /&gt;
&lt;h3&gt;Solution (Windows)&lt;/h3&gt;Locate the DLL32 folder. This folder should contain one or more DLLs. Each of these DLLs represents an index file format (FoxPro, dBASE, Clipper). Select the DLL that corresponds to your preferred index format. Rename that DLL to&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;cb.dll&lt;/b&gt;&lt;span class=&quot;Apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;and place it in your the library path. To determine your library path, you can run this piece of code:&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=6872443420951429545&amp;amp;postID=5679260211659935612&quot; name=&quot;libpathcode&quot; style=&quot;text-decoration: none;&quot;&gt;&lt;pre style=&quot;color: green;&quot;&gt;class getLibraryPath
{
   public static void main(String[] args)
   {
      String path = System.getProperty(&quot;java.library.path&quot;);
      System.out.println(path);
   }
}&lt;/pre&gt;&lt;/a&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/5679260211659935612/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2011/02/javalangunsatisfiedlinkerror.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/5679260211659935612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/5679260211659935612'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2011/02/javalangunsatisfiedlinkerror.html' title='java.lang.UnsatisfiedLinkError'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-4361085146167713878</id><published>2011-02-07T01:26:00.001-08:00</published><updated>2011-02-07T01:26:40.635-08:00</updated><title type='text'>Explaining java.lang.OutOfMemoryError: PermGen space</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;If  you get the exception java.lang.OutOfMemoryError: PermGen space&lt;br /&gt;
&lt;br /&gt;
we need to set the following environment variable as follows.&lt;br /&gt;
Goto MyComputer - RightClick-&amp;gt;Advanced tab- RightClick-&amp;gt;EnvironmentVariables -RightClick-&amp;gt;&lt;br /&gt;
SystemVariable-&amp;gt; Click on New button&lt;br /&gt;
and add the below.&lt;br /&gt;
Variable name is     &lt;span style=&quot;color: red; font-size: 100%;&quot;&gt;&lt;span style=&quot;font-weight: bold;&quot;&gt;JAVA_OPTS and&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
Variable Value is&lt;b&gt;     &lt;span style=&quot;color: red;&quot;&gt;-Xms1024m -Xmx1024m -XX:MaxPermSize=128m&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/4361085146167713878/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2011/02/explaining-javalangoutofmemoryerror.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/4361085146167713878'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/4361085146167713878'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2011/02/explaining-javalangoutofmemoryerror.html' title='Explaining java.lang.OutOfMemoryError: PermGen space'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-849944029735443313</id><published>2011-01-27T02:14:00.001-08:00</published><updated>2011-01-27T02:14:55.944-08:00</updated><title type='text'>Weblogic Application Server Issues.</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;Coming soon.....&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/849944029735443313/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2011/01/weblogic-application-server-issues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/849944029735443313'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/849944029735443313'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2011/01/weblogic-application-server-issues.html' title='Weblogic Application Server Issues.'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-2313739571976909543</id><published>2011-01-25T07:39:00.000-08:00</published><updated>2011-01-25T22:15:43.221-08:00</updated><title type='text'>Top 10 Exceptions In Real Time</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;There are 10 Exceptions that come freequently in real time usuage.&lt;/span&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #990000;&quot;&gt;1.NullPointerEexception.&lt;/span&gt;&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;-If we are trying to access a members(data variables or methods) of a class by using an object of the class,which has null reference.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;Eg: public class NPETest{&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;public static void main(String[] args){&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;NPETest reference = null;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &lt;/span&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;reference.display(); &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; // this statement will throw NullPointerException.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;public static void display(){&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;&amp;nbsp;&amp;nbsp; // some code goes here... &amp;nbsp;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;}&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;2.ClassCastException.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;3.NumberFormateException.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #674ea7;&quot;&gt;4.ArrayIndexOutOfBoundsException&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/2313739571976909543/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2011/01/top-10-exceptions-in-real-time.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/2313739571976909543'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/2313739571976909543'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2011/01/top-10-exceptions-in-real-time.html' title='Top 10 Exceptions In Real Time'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-6872443420951429545.post-1100470016134518118</id><published>2011-01-25T06:11:00.000-08:00</published><updated>2011-01-27T02:13:07.805-08:00</updated><title type='text'>Tomcat web Server Issues</title><content type='html'>&lt;div dir=&quot;ltr&quot; style=&quot;text-align: left;&quot; trbidi=&quot;on&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 14px;&quot;&gt;&lt;strong&gt;&lt;u&gt;Issue 1.&lt;/u&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace; line-height: 14px;&quot;&gt;Sometimes we need to find out what is our&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;klink&quot;&gt;Tomcat&lt;/span&gt; version installed in our&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;span class=&quot;klink&quot;&gt;server&lt;/span&gt;. We can check Tomcat version with following command&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;&lt;/span&gt;&lt;b&gt;version.bat&lt;/b&gt;, this version.bat is located at tomcat bin folder&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;margin: 0in;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;line-height: 14px;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;C:\tomcat\bin&amp;gt;version.bat&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Using CATALINA_BASE: &amp;nbsp; &quot;C:\tomcat&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Using CATALINA_HOME: &amp;nbsp; &quot;C:\tomcat&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Using CATALINA_TMPDIR: &quot;C:\tomcat\temp&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Using JRE_HOME: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&quot;C:\java&quot;&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Using CLASSPATH: &amp;nbsp; &amp;nbsp; &amp;nbsp; &quot;C:\tomcat\bin\bootstrap.jar&quot;&lt;/span&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;color: #cc0000;&quot;&gt;Server version: Apache Tomcat/6.0.26&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Server built: &amp;nbsp; March 9 2010 1805&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Server number: &amp;nbsp;6.0.26.0&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;OS Name: &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Windows XP&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;OS Version: &amp;nbsp; &amp;nbsp; 5.1&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;Architecture: &amp;nbsp; x86&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;JVM Version: &amp;nbsp; &amp;nbsp;1.6.0_18-b07&lt;/span&gt;&lt;/div&gt;&lt;div style=&quot;color: #674ea7;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;JVM Vendor: &amp;nbsp; &amp;nbsp; Sun Microsystems Inc.&lt;/span&gt;&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;u&gt;Issue 2.&lt;/u&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Courier New;&quot;&gt;Some times we may forget the port number of&amp;nbsp;&lt;span class=&quot;klink&quot;&gt;Tomcat&lt;/span&gt;&lt;span class=&quot;apple-converted-space&quot;&gt;&amp;nbsp;server &lt;/span&gt;installed.In such a case you can do the check for tomcat port by following below steps.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Courier New;&quot;&gt;a. Go to directory where you installed the Tomcat Server&amp;nbsp;and find the &#39;conf&#39; directory.&lt;/span&gt;&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Courier New;&quot;&gt;&amp;nbsp;Eg: C:\tomcat5.5\conf&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;color: black; font-family: Courier New;&quot;&gt;b. Inside the conf folder you can find the &lt;strong&gt;server.xml&lt;/strong&gt; file, you just open it and search for the value of Connector Port which is nothing but your tomcat server port.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;Note&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #d8e4f1; line-height: 7.9pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;b&gt;&lt;br /&gt;
&lt;/b&gt;Please feel free to share your personal opinion.&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: Arial; font-size: 5.5pt;&quot;&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;div class=&quot;MsoNormal&quot; style=&quot;background: #d8e4f1; line-height: 7.9pt;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;font-family: &#39;Courier New&#39;, Courier, monospace;&quot;&gt;&lt;span style=&quot;color: black;&quot;&gt;&lt;br /&gt;
&lt;/span&gt;&lt;/span&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://myjavablog.blogspot.com/feeds/1100470016134518118/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://myjavablog.blogspot.com/2011/01/tomcat-web-server-issues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/1100470016134518118'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/6872443420951429545/posts/default/1100470016134518118'/><link rel='alternate' type='text/html' href='http://myjavablog.blogspot.com/2011/01/tomcat-web-server-issues.html' title='Tomcat web Server Issues'/><author><name>Unknown</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>