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: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 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to