Hi, may be this link will be helpful to u.. http://androidsnips.blogspot.com/2011_03_01_archive.html
On Fri, Apr 8, 2011 at 11:36 AM, snehalal gangadharam <snehala...@gmail.com>wrote: > > hi, > > y i didnt get any reply? i have tested this application from real device. i > am getting IO Exception. i have posted the errror log below: > kindly guide me to solve this problem. > > /kernel ( 115): [ 508.395324] device rmnet0 entered promiscuous mode > W/System.err( 1281): java.io.IOException: Unable to connect to server: > Unable to retrieve file: 550 > W/System.err( 1281): at > org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:203) > W/System.err( 1281): at > org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:339) > W/System.err( 1281): at > com.example.android.uplaod.MyFileupload.upload(MyFileupload.java:102) > W/System.err( 1281): at > com.example.android.uplaod.MyFileupload$1.onClick(MyFileupload.java:37) > W/System.err( 1281): at android.view.View.performClick(View.java:2534) > W/System.err( 1281): at android.view.View$PerformClick.run(View.java:9210) > W/System.err( 1281): at > android.os.Handler.handleCallback(Handler.java:587) > W/System.err( 1281): at > android.os.Handler.dispatchMessage(Handler.java:92) > W/System.err( 1281): at android.os.Looper.loop(Looper.java:123) > W/System.err( 1281): at > android.app.ActivityThread.main(ActivityThread.java:3701) > W/System.err( 1281): at java.lang.reflect.Method.invokeNative(Native > Method) > W/System.err( 1281): at java.lang.reflect.Method.invoke(Method.java:507) > W/System.err( 1281): at > com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:862) > W/System.err( 1281): at > com.android.internal.os.ZygoteInit.main(ZygoteInit.java:620) > W/System.err( 1281): at dalvik.system.NativeStart.main(Native Method) > I/System.out( 1281): connection opened > W/System.err( 1281): java.io.IOException: Unable to connect to server: > Unable to retrieve file: 550 > W/System.err( 1281): at > org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.connect(FtpURLConnection.java:203) > W/System.err( 1281): at > org.apache.harmony.luni.internal.net.www.protocol.ftp.FtpURLConnection.getOutputStream(FtpURLConnection.java:339) > W/System.err( 1281): at > com.example.android.uplaod.MyFileupload.upload(MyFileupload.java:102) > W/System.err( 1281): at > com.example.android.uplaod.MyFileupload$1.onClick(MyFileupload.java:37) > W/System.err( 1281): at android.view.View.performClick(View.java:2534) > W/System.err( 1281): at android.view.View$PerformClick.run(View.java:9210) > W/System.err( 1281): at > android.os.Handler.handleCallback(Handler.java:587) > W/System.err( 1281): at > android.os.Handler.dispatchMessage(Handler.java:92) > W/System.err( 1281): at android.os.Looper.loop(Looper.java:123) > W/System.err( 1281): at > android.app.ActivityThread.main(ActivityThread.java:3701) > W/System.err( 1281): at java.lang.reflect.Method.invokeNative(Native > Method) > > Thanks & Regards > Sneha > > > On Thu, Mar 31, 2011 at 11:37 AM, snehalal gangadharam < > snehala...@gmail.com> wrote: > >> 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 < >> metthejohn...@gmail.com> 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 android-developers@googlegroups.com >>> To unsubscribe from this group, send email to >>> android-developers+unsubscr...@googlegroups.com >>> 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 android-developers@googlegroups.com > To unsubscribe from this group, send email to > android-developers+unsubscr...@googlegroups.com > 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 android-developers@googlegroups.com To unsubscribe from this group, send email to android-developers+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/android-developers?hl=en