Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

service-unavailable(503) #72

Closed
silke opened this issue Mar 30, 2012 · 9 comments
Closed

service-unavailable(503) #72

silke opened this issue Mar 30, 2012 · 9 comments

Comments

@silke
Copy link

silke commented Mar 30, 2012

Hello! I get the above error when trying to connect to my jabber server with yaxim. It tries to reconnect but the error stays the same. Meanwhile my server logs the following:

=INFO REPORT==== 2012-03-30 15:20:45 ===
I(<0.416.0>:ejabberd_listener:232) : (#Port<0.40988>) Accepted connection {{93,xxx,yy,zzz},48088} -> {{62,aa,bbb,cc},5222}

I don't understand all that aLogcat is telling me, but here is the log:

--------- beginning of /dev/log/main
D/alogcat (21738): stopped
D/alogcat (21738): starting ...
--------- beginning of /dev/log/system
W/InputManagerService(  210): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@408e1f50
W/InputManagerService(  210): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40541d30
D/dalvikvm(  210): GC_EXTERNAL_ALLOC freed 567K, 46% free 6405K/11719K, external 6224K/6229K, paused 57ms
I/ActivityManager(  210): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 pkg=org.yaxim.androidclient cmp=org.yaxim.androidclient/.MainWindow } from pid 210
I/yaxim.Service(21728): called onCreate()
D/YaximBroadcastReceiver(21728): Init: ACTIVE NetworkInfo: NetworkInfo: type: WIFI[], state: CONNECTED/CONNECTED, reason: (unspecified), extra: (none), roaming: false, failover: false, isAvailable: true
I/yaxim.Service(21728): called onBind()
I/yaxim.MainWindow(21728): called onServiceConnected()
I/yaxim.XMPPRSAdapter(21728): New XMPPRosterServiceAdapter construced
I/yaxim.MainWindow(21728): getConnectionState(): 0
D/dalvikvm(21738): GC_CONCURRENT freed 674K, 56% free 2716K/6087K, external 788K/1109K, paused 2ms+8ms
D/alogcat (21738): stopping ...
D/alogcat (21738): stopped
I/yaxim.Configuration(21728): onSharedPreferenceChanged(): connstartup
I/yaxim.Configuration(21728): onSharedPreferenceChanged(): connstartup
I/yaxim.Configuration(21728): onSharedPreferenceChanged(): connstartup
I/yaxim.Configuration(21728): onSharedPreferenceChanged(): connstartup
I/yaxim.Service(21728): called onStart()
I/yaxim.Service(21728): disconnect/reconnect: false false
D/EclairAndBeyond(21728): showNotification 1 Notification(vibrate=null,sound=null,defaults=0x0,flags=0x22)
D/dalvikvm(  277): GC_CONCURRENT freed 475K, 54% free 2960K/6343K, external 1393K/1542K, paused 1ms+22ms
W/InputManagerService(  210): Window already focused, ignoring focus gain of: com.android.internal.view.IInputMethodClient$Stub$Proxy@40824320
D/dalvikvm(21728): GC_CONCURRENT freed 269K, 47% free 3468K/6471K, external 1439K/1758K, paused 2ms+21ms
D/MemorizingTrustManager(21728): checkCertTrusted([Ljava.security.cert.X509Certificate;@4056f928, RSA, true)
D/MemorizingTrustManager(21728): checkCertTrusted: trying appTrustManager
W/System.err(21728): java.security.cert.CertificateException: java.security.InvalidAlgorithmParameterException: trustAnchors.isEmpty()
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:144)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.checkCertTrusted(MemorizingTrustManager.java:270)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.checkServerTrusted(MemorizingTrustManager.java:306)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:664)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.(OpenSSLSocketImpl.java:750)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:692)
W/System.err(21728):    at org.jivesoftware.smack.XMPPConnection.initReaderAndWriter(XMPPConnection.java:666)
W/System.err(21728):    at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:835)
W/System.err(21728):    at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:267)
W/System.err(21728):    at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
W/System.err(21728): Caused by: java.security.InvalidAlgorithmParameterException: trustAnchors.isEmpty()
W/System.err(21728):    at java.security.cert.PKIXParameters.checkTrustAnchors(PKIXParameters.java:607)
W/System.err(21728):    at java.security.cert.PKIXParameters.(PKIXParameters.java:84)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.(TrustManagerImpl.java:75)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.TrustManagerFactoryImpl.engineGetTrustManagers(TrustManagerFactoryImpl.java:132)
W/System.err(21728):    at javax.net.ssl.TrustManagerFactory.getTrustManagers(TrustManagerFactory.java:225)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.getTrustManager(MemorizingTrustManager.java:189)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.(MemorizingTrustManager.java:119)
W/System.err(21728):    at org.yaxim.androidclient.YaximApplication.onCreate(YaximApplication.java:24)
W/System.err(21728):    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
W/System.err(21728):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3424)
W/System.err(21728):    at android.app.ActivityThread.access$2200(ActivityThread.java:123)
W/System.err(21728):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:977)
W/System.err(21728):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(21728):    at android.os.Looper.loop(Looper.java:130)
W/System.err(21728):    at android.app.ActivityThread.main(ActivityThread.java:3835)
W/System.err(21728):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(21728):    at java.lang.reflect.Method.invoke(Method.java:507)
W/System.err(21728):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
W/System.err(21728):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
W/System.err(21728):    at dalvik.system.NativeStart.main(Native Method)
D/MemorizingTrustManager(21728): checkCertTrusted: trying defaultTrustManager
D/dalvikvm(21728): GC_CONCURRENT freed 889K, 51% free 3430K/6983K, external 829K/1341K, paused 4ms+2ms
D/dalvikvm(21728): GC_CONCURRENT freed 578K, 51% free 3451K/6983K, external 829K/1341K, paused 2ms+2ms
W/System.err(21728): java.lang.NoSuchMethodException: SASLDigestMD5Mechanism(SASLAuthentication)
W/System.err(21728):    at java.lang.Class.getMatchingConstructor(Class.java:643)
W/System.err(21728):    at java.lang.Class.getConstructor(Class.java:472)
W/System.err(21728):    at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:314)
W/System.err(21728):    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:204)
W/System.err(21728):    at org.yaxim.androidclient.service.SmackableImp.doConnect(SmackableImp.java:124)
W/System.err(21728):    at org.yaxim.androidclient.service.XMPPService$3.run(XMPPService.java:325)
E/yaxim.Service(21728): YaximXMPPException in doConnect():
W/System.err(21728): org.yaxim.androidclient.exceptions.YaximXMPPException: service-unavailable(503)
W/System.err(21728):    at org.yaxim.androidclient.service.SmackableImp.doConnect(SmackableImp.java:124)
W/System.err(21728):    at org.yaxim.androidclient.service.XMPPService$3.run(XMPPService.java:325)
I/yaxim.Service(21728): connectionFailed: service-unavailable(503)
D/EclairAndBeyond(21728): showNotification 1 Notification(vibrate=null,sound=null,defaults=0x0,flags=0x22)
I/yaxim.Service(21728): connectionFailed(): registering reconnect in 5s
D/yaxim.MainWindow(21728): connectionStatusChanged: false/true
I/yaxim.Service(21728): Alarm received.
D/EclairAndBeyond(21728): showNotification 1 Notification(vibrate=null,sound=null,defaults=0x0,flags=0x22)
D/yaxim.SmackableImp(21728): unRegisterCallback()
D/yaxim.RosterProvider(21728): notifying change
D/yaxim.SmackableImp(21728): shutDown thread started
D/yaxim.RosterProvider(21728): insert group null = 1
D/yaxim.RosterProvider(21728): notifying group change for null
D/yaxim.MainWindow(21728): RosterObserver.onChange: false
D/dalvikvm(21728): GC_CONCURRENT freed 474K, 50% free 3549K/6983K, external 829K/1341K, paused 2ms+2ms
D/yaxim.SmackableImp(21728): shutDown thread finished
D/MemorizingTrustManager(21728): checkCertTrusted([Ljava.security.cert.X509Certificate;@405d6aa0, RSA, true)
D/MemorizingTrustManager(21728): checkCertTrusted: trying appTrustManager
W/System.err(21728): java.security.cert.CertificateException: java.security.InvalidAlgorithmParameterException: trustAnchors.isEmpty()
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.checkServerTrusted(TrustManagerImpl.java:144)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.checkCertTrusted(MemorizingTrustManager.java:270)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.checkServerTrusted(MemorizingTrustManager.java:306)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:664)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.NativeCrypto.SSL_do_handshake(Native Method)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:474)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl$SSLInputStream.(OpenSSLSocketImpl.java:750)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.OpenSSLSocketImpl.getInputStream(OpenSSLSocketImpl.java:692)
W/System.err(21728):    at org.jivesoftware.smack.XMPPConnection.initReaderAndWriter(XMPPConnection.java:666)
W/System.err(21728):    at org.jivesoftware.smack.XMPPConnection.proceedTLSReceived(XMPPConnection.java:835)
W/System.err(21728):    at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:267)
W/System.err(21728):    at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)
W/System.err(21728): Caused by: java.security.InvalidAlgorithmParameterException: trustAnchors.isEmpty()
W/System.err(21728):    at java.security.cert.PKIXParameters.checkTrustAnchors(PKIXParameters.java:607)
W/System.err(21728):    at java.security.cert.PKIXParameters.(PKIXParameters.java:84)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.TrustManagerImpl.(TrustManagerImpl.java:75)
W/System.err(21728):    at org.apache.harmony.xnet.provider.jsse.TrustManagerFactoryImpl.engineGetTrustManagers(TrustManagerFactoryImpl.java:132)
W/System.err(21728):    at javax.net.ssl.TrustManagerFactory.getTrustManagers(TrustManagerFactory.java:225)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.getTrustManager(MemorizingTrustManager.java:189)
W/System.err(21728):    at de.duenndns.ssl.MemorizingTrustManager.(MemorizingTrustManager.java:119)
W/System.err(21728):    at org.yaxim.androidclient.YaximApplication.onCreate(YaximApplication.java:24)
W/System.err(21728):    at android.app.Instrumentation.callApplicationOnCreate(Instrumentation.java:969)
W/System.err(21728):    at android.app.ActivityThread.handleBindApplication(ActivityThread.java:3424)
W/System.err(21728):    at android.app.ActivityThread.access$2200(ActivityThread.java:123)
W/System.err(21728):    at android.app.ActivityThread$H.handleMessage(ActivityThread.java:977)
W/System.err(21728):    at android.os.Handler.dispatchMessage(Handler.java:99)
W/System.err(21728):    at android.os.Looper.loop(Looper.java:130)
W/System.err(21728):    at android.app.ActivityThread.main(ActivityThread.java:3835)
W/System.err(21728):    at java.lang.reflect.Method.invokeNative(Native Method)
W/System.err(21728):    at java.lang.reflect.Method.invoke(Method.java:507)
W/System.err(21728):    at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:864)
W/System.err(21728):    at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:622)
W/System.err(21728):    at dalvik.system.NativeStart.main(Native Method)
D/MemorizingTrustManager(21728): checkCertTrusted: trying defaultTrustManager
D/dalvikvm(21728): GC_CONCURRENT freed 570K, 49% free 3591K/6983K, external 829K/1341K, paused 2ms+3ms
W/System.err(21728): java.lang.NoSuchMethodException: SASLDigestMD5Mechanism(SASLAuthentication)
W/System.err(21728):    at java.lang.Class.getMatchingConstructor(Class.java:643)
W/System.err(21728):    at java.lang.Class.getConstructor(Class.java:472)
W/System.err(21728):    at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:314)
W/System.err(21728):    at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:204)
W/System.err(21728):    at org.yaxim.androidclient.service.SmackableImp.doConnect(SmackableImp.java:124)
W/System.err(21728):    at org.yaxim.androidclient.service.XMPPService$3.run(XMPPService.java:325)
I/yaxim.Service(21728): connectionFailed: service-unavailable(503)
D/EclairAndBeyond(21728): showNotification 1 Notification(vibrate=null,sound=null,defaults=0x0,flags=0x22)
I/yaxim.Service(21728): connectionFailed(): registering reconnect in 10s
D/yaxim.MainWindow(21728): connectionStatusChanged: false/true
E/yaxim.Service(21728): YaximXMPPException in doConnect():
W/System.err(21728): org.yaxim.androidclient.exceptions.YaximXMPPException: service-unavailable(503)
W/System.err(21728):    at org.yaxim.androidclient.service.SmackableImp.doConnect(SmackableImp.java:124)
W/System.err(21728):    at org.yaxim.androidclient.service.XMPPService$3.run(XMPPService.java:325)
I/ActivityManager(  210): Starting: Intent { act=android.intent.action.MAIN cat=[android.intent.category.LAUNCHER] flg=0x10100000 cmp=org.jtb.alogcat/.LogActivity } from pid 210
I/alogcat (21738): new intent: android.intent.action.MAIN
D/alogcat (21738): stopping ...
D/alogcat (21738): canceling periodic saves
D/alogcat (21738): starting ...
@ge0rg
Copy link
Collaborator

ge0rg commented Mar 30, 2012

Are you using yaxim from the Market, from the official download page or from some other source?

@silke
Copy link
Author

silke commented Mar 30, 2012

I'm using yaxim 0.8.4 from fdroid.org.

@ge0rg
Copy link
Collaborator

ge0rg commented Mar 30, 2012

I have had a number of reports regarding this. You can "fix" it by uninstalling the fdroid version and installing yaxim either from the Market or from the download directory. If you want to be on the bleeding edge of development, you can try the latest nightly APK.

@ge0rg ge0rg closed this as completed Mar 30, 2012
@CiaranG
Copy link

CiaranG commented Mar 30, 2012

I'd like to get to the bottom of whether this is related to the F-Droid build or not - if you could confirm this doesn't happen with an install from the download directory (link above) that would be very useful.

@silke
Copy link
Author

silke commented Mar 31, 2012

Ok, indeed, there is no problem with the version from the download directory! Thanks!

@grote
Copy link

grote commented Apr 6, 2012

I'm using the F-Droid build and can confirm this problem.

@CiaranG
Copy link

CiaranG commented Apr 8, 2012

I've replaced the 0.8.4 apk in the fdroid repo with one built in a different way, which ought to avoid what appears to be a problem caused by the proguard configuration getting messed up. I can't actually confirm this works though, because the original works for me (with sasl) - I think the problem only manifested itself in conjunction with particular xmpp servers.

If anyone is able to confirm that this replaced version resolves the problem, that would be great.

@CiaranG
Copy link

CiaranG commented Apr 13, 2012

This is fixed now, see https://gitorious.org/f-droid/fdroiddata/commit/b3f3328

@silke
Copy link
Author

silke commented Apr 13, 2012

I can confirm, that it works now. The 0.8.4 from fdroid connects! Thx!

ge0rg added a commit to ge0rg/yaxim that referenced this issue Apr 22, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants