[android-developers] java.net.SocketException: The operation timed out
02-25 10:11:53.839: WARN/System.err(211): java.net.SocketException: The operation timed out 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.platform.OSNetworkSystem.connectSocketImpl (Native Method) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.platform.OSNetworkSystem.connect (OSNetworkSystem.java:119) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:227) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:521) 02-25 10:11:53.940: WARN/System.err(211): at java.net.Socket.connect(Socket.java:945) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket (PlainSocketFactory.java:117) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:129) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.conn.AbstractPoolEntry.open (AbstractPoolEntry.java:164) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open (AbstractPooledConnAdapter.java:119) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java:348) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:555) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:487) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:465) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity.registeraction (RegisterActivity.java:95) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity.checkInput(RegisterActivity.java: 129) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity$1.onClick(RegisterActivity.java: 54) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.performClick(View.java:2109) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.onTouchEvent(View.java:3523) 02-25 10:11:53.950: WARN/System.err(211): at android.widget.TextView.onTouchEvent(TextView.java:4410) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.dispatchTouchEvent(View.java:3178) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561) 02-25 10:11:53.950: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1085) 02-25 10:11:53.950: WARN/System.err(211): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1545) 02-25 10:11:53.960: WARN/System.err(211): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 02-25 10:11:53.960: WARN/System.err(211): at android.os.Handler.dispatchMessage(Handler.java:88) 02-25 10:11:53.960: WARN/System.err(211): at android.os.Looper.loop (Looper.java:123) 02-25 10:11:53.960: WARN/System.err(211): at android.app.ActivityThread.main(ActivityThread.java:3742) 02-25 10:11:53.960: WARN/System.err(211): at java.lang.reflect.Method.invokeNative(Native Method) 02-25 10:11:53.960: WARN/System.err(211): at java.lang.reflect.Method.invoke(Method.java:515) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 02-25 10:11:53.960: WARN/System.err(211): at dalvik.system.NativeStart.main(Native Method) 02-25 10:11:53.960: INFO/System.out(211): Registration failed --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send ema
[android-developers] "java.net.SocketException: The operation timed out"
I developed one android application through we can download file by passing url and i am getting "java.net.SocketException: The operation timed out" only when i use static wifi on android phone to download file. i tried both URLConnection and HttpCclient but i got same result. anyone know the solution for this problem. please help me out. -- 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
[android-developers] java.net.socketException The Operation timed out
Hi All, Im trying to send the data from my HTC Desire to a tomcat server which is installed in my PC through Wi-Fi from my android application.. I can able to send the data from the Emulator. but i can't able to send the data from the Mobile. Im getting an exception when i sent data from the mobile..The exception is java.net.SocketTimeoutException: The operation timed out.. I have included all the permissions in the android manifest file like INTERNET, ACCESS_WIFI.. I saw some of the blogs related to this Exception.. I've tried all the ways that they have suggested.. But no use... Is it related to any firewall protection?? Thanks in advance Uday Kiran Pichika -- 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
[android-developers] java.net.SocketException: The operation timed out............not behind proxy
I'm developing an app which needs to connect to the internet, but when i send a request using DefaultHtpClient.execute() method it takes 2-3 minutes and then the stacktrace says java.net.SocketException:operation timed out does anybody knos how to solve the problem...reply as soon as posible here is the stack trace... 02-25 10:11:53.839: WARN/System.err(211): java.net.SocketException: The operation timed out 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.platform.OSNetworkSystem.connectSocketImpl (Native Method) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.platform.OSNetworkSystem.connect (OSNetworkSystem.java:119) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:227) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.harmony.luni.net.PlainSocketImpl.connect (PlainSocketImpl.java:521) 02-25 10:11:53.940: WARN/System.err(211): at java.net.Socket.connect(Socket.java:945) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.http.conn.scheme.PlainSocketFactory.connectSocket (PlainSocketFactory.java:117) 02-25 10:11:53.940: WARN/System.err(211): at org.apache.http.impl.conn.DefaultClientConnectionOperator.openConnection (DefaultClientConnectionOperator.java:129) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.conn.AbstractPoolEntry.open (AbstractPoolEntry.java:164) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.conn.AbstractPooledConnAdapter.open (AbstractPooledConnAdapter.java:119) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.DefaultRequestDirector.execute (DefaultRequestDirector.java:348) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:555) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:487) 02-25 10:11:53.950: WARN/System.err(211): at org.apache.http.impl.client.AbstractHttpClient.execute (AbstractHttpClient.java:465) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity.registeraction (RegisterActivity.java:95) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity.checkInput(RegisterActivity.java: 129) 02-25 10:11:53.950: WARN/System.err(211): at com.uttara.android.RegisterActivity$1.onClick(RegisterActivity.java: 54) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.performClick(View.java:2109) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.onTouchEvent(View.java:3523) 02-25 10:11:53.950: WARN/System.err(211): at android.widget.TextView.onTouchEvent(TextView.java:4410) 02-25 10:11:53.950: WARN/System.err(211): at android.view.View.dispatchTouchEvent(View.java:3178) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at android.view.ViewGroup.dispatchTouchEvent(ViewGroup.java:857) 02-25 10:11:53.950: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow $DecorView.superDispatchTouchEvent(PhoneWindow.java:1561) 02-25 10:11:53.950: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow.superDispatchTouchEvent (PhoneWindow.java:1085) 02-25 10:11:53.950: WARN/System.err(211): at android.app.Activity.dispatchTouchEvent(Activity.java:1873) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.policy.impl.PhoneWindow $DecorView.dispatchTouchEvent(PhoneWindow.java:1545) 02-25 10:11:53.960: WARN/System.err(211): at android.view.ViewRoot.handleMessage(ViewRoot.java:1140) 02-25 10:11:53.960: WARN/System.err(211): at android.os.Handler.dispatchMessage(Handler.java:88) 02-25 10:11:53.960: WARN/System.err(211): at android.os.Looper.loop (Looper.java:123) 02-25 10:11:53.960: WARN/System.err(211): at android.app.ActivityThread.main(ActivityThread.java:3742) 02-25 10:11:53.960: WARN/System.err(211): at java.lang.reflect.Method.invokeNative(Native Method) 02-25 10:11:53.960: WARN/System.err(211): at java.lang.reflect.Method.invoke(Method.java:515) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run (ZygoteInit.java:739) 02-25 10:11:53.960: WARN/System.err(211): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:497) 02-25 10