Unable to remove InvocationTargetException
<p>I know that this exception is thrown when there are two classes with same name in different packages.</p>

<p>But in this case,I cannot understand how this exception is thrown upon encountering this statement (as seen in LogCat)</p>

<p><code>s=tv2.getText().toString();</code> where s is String, ofcourse. </p>

<p>So,please help me in removing the problem.</p>

<p>These are the imports which I have used -</p>

<pre><code>import android.app.Activity;
import android.content.Context;
import android.content.res.TypedArray;
import android.graphics.Typeface;
import android.os.Bundle;
import android.view.View;
import android.view.ViewGroup;
import android.widget.AdapterView;
import android.widget.AdapterView.OnItemClickListener;
import android.widget.AdapterView.OnItemSelectedListener;
import android.widget.ArrayAdapter;
import android.widget.BaseAdapter;
import android.widget.Button; 
import android.widget.Gallery;
import android.widget.ImageView;
import android.widget.Spinner;
import android.widget.TextView;
</code></pre>

<p>Thanking you in anticipation.</p>

<p>Edit : LogCat Details</p>

<pre><code>04-30 15:46:53.373: D/dalvikvm(608): GC_EXTERNAL_ALLOC freed 26 objects / 816 bytes in 48ms
04-30 15:47:01.871: D/AndroidRuntime(608): Shutting down VM
04-30 15:47:01.871: W/dalvikvm(608): threadid=1: thread exiting with uncaught exception (group=0x4001d800)
04-30 15:47:01.891: E/AndroidRuntime(608): FATAL EXCEPTION: main
04-30 15:47:01.891: E/AndroidRuntime(608): java.lang.IllegalStateException: Could not execute method of the activity
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.view.View$1.onClick(View.java:2072)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.view.View.performClick(View.java:2408)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.view.View$PerformClick.run(View.java:8816)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.os.Handler.handleCallback(Handler.java:587)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.os.Handler.dispatchMessage(Handler.java:92)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.os.Looper.loop(Looper.java:123)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.app.ActivityThread.main(ActivityThread.java:4627)
04-30 15:47:01.891: E/AndroidRuntime(608):  at java.lang.reflect.Method.invokeNative(Native Method)
04-30 15:47:01.891: E/AndroidRuntime(608):  at java.lang.reflect.Method.invoke(Method.java:521)
04-30 15:47:01.891: E/AndroidRuntime(608):  at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868)
04-30 15:47:01.891: E/AndroidRuntime(608):  at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626)
04-30 15:47:01.891: E/AndroidRuntime(608):  at dalvik.system.NativeStart.main(Native Method)
04-30 15:47:01.891: E/AndroidRuntime(608): Caused by: java.lang.reflect.InvocationTargetException
04-30 15:47:01.891: E/AndroidRuntime(608):  at yadav.sanjay.conv.ConvActivity.click(ConvActivity.java:392)
04-30 15:47:01.891: E/AndroidRuntime(608):  at java.lang.reflect.Method.invokeNative(Native Method)
04-30 15:47:01.891: E/AndroidRuntime(608):  at java.lang.reflect.Method.invoke(Method.java:521)
04-30 15:47:01.891: E/AndroidRuntime(608):  at android.view.View$1.onClick(View.java:2067)
04-30 15:47:01.891: E/AndroidRuntime(608):  ... 11 more
04-30 15:47:01.891: E/AndroidRuntime(608): Caused by: java.lang.NullPointerException
04-30 15:47:01.891: E/AndroidRuntime(608):  ... 15 more
</code></pre>

<p>Sorry for not posting the logcat details before.</p>
