Login error with compiled Smack's

Hi all,

I am having trouble to have a modified Spark running over a modified Smack.

I haven’t been able to perform together:

 1) checkout a full revision  from Smack SVN --> ok

 2) checkout a full revision  from Spark SVN  --> ok

 3) compile Smack with ant -->  ok

 4) get the 4 generated jar  files: __smack*.jar__, and put it into  <spark-project-root>/build/lib/dist

 5) compile Spark with ant --> ok

 6) then authenticate properly --> problems  always

Account errors or server errors are discarded.

I have a modified Spark, with a released Smack working ok with a released Openfire.

But modified Smack and modified Spark don’t run together for me.

My compiled Smack also makes to crash a released Spark, if I just replace jar files.

What I pretend is to have Proxy support in my modified Spark.

For sure in next Smack release, 3.0.5, this feature will be included,

but it is more than a year from last release, 3.0.4.

Smack revisions I chose to test:

  - Smack revision 10407 (19 may  2008): Updated Jingle implementation

  - Smack revision 10429 (22 may  2008): Fixed SASL authentication that required a realm like  DIGEST-MD5.

  - Smack revision 10674 (14  july 2008): Added proxy support à the feature I was  pretending to have in my Spark.

My tests:

 - Spark revision 10595 (26 june  2008) + Smack revision 10407 (downloaded from Spark SVN) --> ok: compile, run and  connect

 - Spark revision 10595 (26 june 2008) + Smack revision 10407  (built by me from SRC) --> compile, run, but  crashes: SASLAuthentication failed

 - Spark revision 10595 (26 june  2008) + Smack revision 10429 (built by me from SRC) --> compile, run, but  crashes: SASLAuthentication failed
  • Spark revision 10595 (26 june 2008) + Smack revision 10674 (built by me from SRC) --> compile, run, but crashes: SASLAuthentication failed

    • Spark revision 10832 (17 may 2008) + Smack revision 10407 (downloaded from Spark SVN) --> compile, run, but crashes: SASLAuthentication failed

    • Spark revision 10832 (17 may 2008) + Smack revision 10407 (built by me from SRC) --> compile, run, but crashes: SASLAuthentication failed

    • Spark revision 10832 (17 may 2008) + Smack revision 10429 (built by me from SRC) --> compile, run, but crashes: SASLAuthentication failed

    • Spark revision 10832 (17 may 2008) + Smack revision 10674 (built by me from SRC) --> compile, run, but crashes: SASLAuthentication failed

My error, every time:

14-oct-2008 13:12:06 org.jivesoftware.spark.util.log.Log warning

ADVERTENCIA: Exception in Login:

SASL authentication failed:

    at  org.jivesoftware.smack.SASLAuthentication.authenticate(SASLAuthentication.java: 327)

    at  org.jivesoftware.smack.XMPPConnection.login(XMPPConnection.java:438)

    at  org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:860)

    at  org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:200)

    at  org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:606)

    at  org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:131)

    at  java.lang.Thread.run(Unknown Source)

I feel confused about this. I have searched into forums, and read Smack and Spark documentation, but nothing found.

Any help would be very appreciate.

Thanks in advance.

Diego

Hi Diego,

if you didnt notice before, your problem was my problem,

and my “partial” solution was explained here,

**to update Smack and to have Proxy Support **in Spark:

regards

pellex