hi , i have debuged the code, i am getting IO Exception, 03-31 10:47:17.001: WARN/System.err(278): java.io.IOException: Unable to connect to server: <null> 03-31 10:47:17.061: WARN/System.err(278): at org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:204) 03-31 10:47:17.061: WARN/System.err(278): at org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:344) 03-31 10:47:17.061: WARN/System.err(278): at com.example.android.uplaod.MyFileupload.upload(MyFileupload.java:103) 03-31 10:47:17.072: WARN/System.err(278): at com.example.android.uplaod.MyFileupload$1.onClick(MyFileupload.java:37) 03-31 10:47:17.092: WARN/System.err(278): at android.view.View.performClick(View.java:2408) 03-31 10:47:17.092: WARN/System.err(278): at android.view.View$PerformClick.run(View.java:8816) 03-31 10:47:17.102: WARN/System.err(278): at android.os.Handler.handleCallback(Handler.java:587) 03-31 10:47:17.102: WARN/System.err(278): at android.os.Handler.dispatchMessage(Handler.java:92) 03-31 10:47:17.111: WARN/System.err(278): at android.os.Looper.loop(Looper.java:123) 03-31 10:47:17.111: WARN/System.err(278): at android.app.ActivityThread.main(ActivityThread.java:4627) 03-31 10:47:17.121: WARN/System.err(278): at java.lang.reflect.Method.invokeNative(Native Method) 03-31 10:47:17.121: WARN/System.err(278): at java.lang.reflect.Method.invoke(Method.java:521) 03-31 10:47:17.131: WARN/System.err(278): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:868) 03-31 10:47:17.141: WARN/System.err(278): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:626) 03-31 10:47:17.141: WARN/System.err(278): at dalvik.system.NativeStart.main(Native Method)
Android not able to recognize the FTP server, Thanks & Regards Aswini On Sat, Mar 26, 2011 at 5:17 AM, Nicholas Johnson <[email protected]>wrote: > I believe the first error that is causing your program to crash is located > here: > > 03-25 10:33:36.980: ERROR/AndroidRuntime(301): java.lang.NullPointerException > 03-25 10:33:36.980: ERROR/AndroidRuntime(301): at > com.example.uplaod.MyUpload$1.upload(MyUpload.java:146) > > > Check out line 146 in MyUpload. Set a breakpoint just before it, run your > program in Debug mode, and figure out why you're trying to access a Null > pointer. > > --Nick > > -- > You received this message because you are subscribed to the Google > Groups "Android Developers" group. > To post to this group, send email to [email protected] > To unsubscribe from this group, send email to > [email protected] > For more options, visit this group at > http://groups.google.com/group/android-developers?hl=en > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

