2 Replies Latest reply on Jan 14, 2013 6:38 PM by stanley1q84

    GOOGLE TALK BOT example with error caused by: SASL authentication failed:

    stanley1q84

      Hi all

       

      I have just finished the HELLO WORLD job and got the JAINSLEE environment propertly set up. And I am not move on to some other examples, the GOOGLE TALK BOT.

       

      After deploy the XMPP RA and GOOGLE TALK BOT, I got the below error.

       

      I have also change the USR/PWD of google server to the new one I have just applied from google, but still I got the below errors. Anyone can help for this, thanks

       

      *************************************************************************************************************************************************************************************

      07:12:58,359 INFO  [DeploymentMBeanImpl] (HDScanner) Installing DeployableUnitID[url=file:/E:/other/study/masterstudy/studyprogram/Mobicents/slee/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-slee-example-google-talk-bot-DU-2.4.0.FINAL.jar/]
      07:12:58,734 INFO  [DeploymentMBeanImpl] (HDScanner) Installed SbbID[name=GoogleTalkBotSbb,vendor=mobicents,version=0.1]
      07:12:58,734 INFO  [DeploymentMBeanImpl] (HDScanner) Installed ServiceID[name=GoogleTalkBotService,vendor=mobicents,version=0.1]. Root sbb is SbbID[name=GoogleTalkBotSbb,vendor=mobicents,version=0.1]
      07:12:58,734 INFO  [DeploymentMBeanImpl] (HDScanner) Installed DeployableUnitID[url=file:/E:/other/study/masterstudy/studyprogram/Mobicents/slee/mobicents-jainslee-2.7.0.FINAL-jboss-5.1.0.GA/jboss-5.1.0.GA/server/default/deploy/mobicents-slee-example-google-talk-bot-DU-2.4.0.FINAL.jar/]
      07:12:58,984 INFO  [ServiceManagementImpl] (HDScanner) Activated ServiceID[name=GoogleTalkBotService,vendor=mobicents,version=0.1]
      07:12:58,984 INFO  [GoogleTalkBotSbbImpl] (pool-19-thread-1) setSbbContext() Retrieved uid[XXXX@gmail.com], passwd[XXXX]
      07:12:58,984 INFO  [XmppResourceAdaptor] (pool-19-thread-1) Connecting to service gmail.com at talk.google.com:5222
      07:12:59,468 INFO  [XmppResourceAdaptor] (pool-19-thread-1) Can't connect to service.
      07:12:59,468 INFO  [XmppResourceAdaptor] (Smack Packet Reader) Got notification that connection with id=org.mobicents.examples.googletalk.GoogleTalkBotSbb closed. Requesting ActivityEndEvent.
      07:12:59,468 ERROR [GoogleTalkBotSbbImpl] (pool-19-thread-1) Connection to server failed!

        -- caused by: SASL authentication failed:
      at org.mobicents.slee.resource.xmpp.XmppResourceAdaptorSbbInterfaceImpl.connectClient(XmppResourceAdaptorSbbInterfaceImpl.java:107)
      at org.mobicents.examples.googletalk.GoogleTalkBotSbb.onStartServiceEvent(GoogleTalkBotSbb.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
      at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
      at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
      at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      Nested Exception:
      SASL authentication failed:
      at org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java:207)
      at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:428)
      at org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:391)
      at org.mobicents.slee.resource.xmpp.XmppResourceAdaptorSbbInterfaceImpl.connectClient(XmppResourceAdaptorSbbInterfaceImpl.java:102)
      at org.mobicents.examples.googletalk.GoogleTalkBotSbb.onStartServiceEvent(GoogleTalkBotSbb.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.mobicents.slee.runtime.sbbentity.SbbEntityImpl.invokeEventHandler(SbbEntityImpl.java:481)
      at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.routeQueuedEvent(EventRoutingTaskImpl.java:379)
      at org.mobicents.slee.runtime.eventrouter.routingtask.EventRoutingTaskImpl.run(EventRoutingTaskImpl.java:126)
      at org.mobicents.slee.runtime.eventrouter.EventRouterExecutorImpl$EventRoutingTaskStatsCollector.run(EventRouterExecutorImpl.java:73)
      at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
      at java.lang.Thread.run(Thread.java:662)
      07:12:59,468 ERROR [XmppResourceAdaptor] (Smack Packet Reader) Failed to end activity.
      javax.slee.resource.UnrecognizedActivityHandleException: org.mobicents.examples.googletalk.GoogleTalkBotSbb
      at org.mobicents.slee.resource.SleeEndpointImpl._endActivity(SleeEndpointImpl.java:456)
      at org.mobicents.slee.resource.SleeEndpointEndActivityNotTransactedExecutor.execute(SleeEndpointEndActivityNotTransactedExecutor.java:60)
      at org.mobicents.slee.resource.SleeEndpointImpl.endActivity(SleeEndpointImpl.java:372)
      at org.mobicents.slee.resource.SleeEndpointImpl.endActivity(SleeEndpointImpl.java:342)
      at org.mobicents.slee.resource.xmpp.XmppResourceAdaptor.endActivity(XmppResourceAdaptor.java:310)
      at org.mobicents.slee.resource.xmpp.XmppConnectionListener.connectionClosed(XmppConnectionListener.java:69)
      at org.jivesoftware.smack.PacketReader.shutdown(PacketReader.java:189)
      at org.jivesoftware.smack.XMPPConnection.close(XMPPConnection.java:662)
      at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:398)
      at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:46)
      at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:67)
      07:17:58,750 INFO  [GoogleTalkBotSbbImpl] (Timer-1) setSbbContext() Retrieved uid[XXXX@gmail.com], passwd[XXXX]
      07:20:11,296 INFO  [ServiceManagementImpl] (pool-28-thread-1) Deactivated ServiceID[name=GoogleTalkBotService,vendor=mobicents,version=0.1]

       

      *********************************************************************************************************************************************************************************