powered by Jive Software

Invalid Username and Password

Before you ask,yes i spent the last 3 days down her trying to find a solution to no avail

Some users get the problem “Invalid username or password”, others don’t. The password are proven to be correct, and it is not user linked because it works on other computers. What could cause this?

http://red5guide.com/install_openfire_on_windows_server.html#openfirepassword

to answer your question, “a lot of things”.

We need to see your Openfire logs to see if the clients are even talking to it and/or what the problem could be. You can post them in the forum by clicking the “undefined” button in the top right corner.

Logs would work best…but, a few questions…

  1. Is it integrated with AD?

  2. When you say it’s not “user specific”, does this mean that the same user, using the same username/password/server location cannot connect from one spark client on the first machine, but can connect from another spark client on another machine? Your wording there confused me a tad.

Which leads to this…

  1. Can ANY user log in on the offending spark client? Or does everyone who tries get the same error?

Hello again, thanks all and sorry for bad wording, i’m french

  1. Nope, i’ve hand created all the user

  2. Exactly. For example, whatever user i use on my computer it does not work even if the password has been checked. But when i use the same user on a “working” computer, it works. So, the error appears on some computer and it is not related to the user

  3. I can use ANY user on the computers where it works

Here are the logs guys! I copyied them here because for some reason ignite transforme my .log into a zip

log2.txt (66.1 KB)
error.log.zip (3288 Bytes)

I doubt this is an issue with Openfire then (though, thanks for posting the logs), because if it were, you would be seeing the issue on more than one or two clients (I would suspect you should see the issue on ALL clients). In addition, it’s probably not a corrupted user entry or something like that, because then the user credentials wouldn’t work on ANY client.

Therefore, I suspect it’s an issue with your Spark Client itself.

Can you post the logs from your Spark Client? You can it in Program Files (x86)/Spark/logs .

That is strange. On my computer, it worked fine but then one day poof it stopped. Then the same with a coworker, but now it works as of this morning. Mine still doesn’t work. And another coworker stopped working this morning. It’s very random and annoying. Here

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)

at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)

at sun.nio.cs.StreamEncoder.flush(Unknown Source)

at java.io.OutputStreamWriter.flush(Unknown Source)

at java.io.BufferedWriter.flush(Unknown Source)

at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258)

at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186)

at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)

Mar 19, 2014 8:44:10 AM org.jivesoftware.spark.util.log.Log warning

WARNING: Exception in Login:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:527)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)

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

at org.jivesoftware.LoginDialog$LoginPanel.access$1200(LoginDialog.java:219)

at org.jivesoftware.LoginDialog$LoginPanel$4.construct(LoginDialog.java:730)

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

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

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.BufferedReader.read1(Unknown Source)

at java.io.BufferedReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.BufferedReader.read1(Unknown Source)

at java.io.BufferedReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)

Mar 19, 2014 8:45:28 AM org.jivesoftware.spark.util.log.Log warning

WARNING: Exception in Login:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:527)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)

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

at org.jivesoftware.LoginDialog$LoginPanel.access$1200(LoginDialog.java:219)

at org.jivesoftware.LoginDialog$LoginPanel$4.construct(LoginDialog.java:730)

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

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

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)

at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)

at sun.nio.cs.StreamEncoder.flush(Unknown Source)

at java.io.OutputStreamWriter.flush(Unknown Source)

at java.io.BufferedWriter.flush(Unknown Source)

at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258)

at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186)

at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)

Mar 19, 2014 8:49:10 AM org.jivesoftware.spark.util.log.Log warning

WARNING: Exception in Login:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:527)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)

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

at org.jivesoftware.LoginDialog$LoginPanel.access$1200(LoginDialog.java:219)

at org.jivesoftware.LoginDialog$LoginPanel$4.construct(LoginDialog.java:730)

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

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

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)

at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)

at sun.nio.cs.StreamEncoder.flush(Unknown Source)

at java.io.OutputStreamWriter.flush(Unknown Source)

at java.io.BufferedWriter.flush(Unknown Source)

at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258)

at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186)

at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)

Mar 19, 2014 8:52:13 AM org.jivesoftware.spark.util.log.Log warning

WARNING: Exception in Login:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:527)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)

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

at org.jivesoftware.LoginDialog$LoginPanel.access$1200(LoginDialog.java:219)

at org.jivesoftware.LoginDialog$LoginPanel$4.construct(LoginDialog.java:730)

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

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

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.writeRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppOutputStream.write(Unknown Source)

at sun.nio.cs.StreamEncoder.writeBytes(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlushBuffer(Unknown Source)

at sun.nio.cs.StreamEncoder.implFlush(Unknown Source)

at sun.nio.cs.StreamEncoder.flush(Unknown Source)

at java.io.OutputStreamWriter.flush(Unknown Source)

at java.io.BufferedWriter.flush(Unknown Source)

at org.jivesoftware.smack.PacketWriter.openStream(PacketWriter.java:258)

at org.jivesoftware.smack.PacketWriter.writePackets(PacketWriter.java:186)

at org.jivesoftware.smack.PacketWriter.access$000(PacketWriter.java:40)

at org.jivesoftware.smack.PacketWriter$1.run(PacketWriter.java:76)

Mar 19, 2014 8:52:55 AM org.jivesoftware.spark.util.log.Log warning

WARNING: Exception in Login:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:527)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)

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

at org.jivesoftware.LoginDialog$LoginPanel.access$1200(LoginDialog.java:219)

at org.jivesoftware.LoginDialog$LoginPanel$4.construct(LoginDialog.java:730)

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

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

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.BufferedReader.read1(Unknown Source)

at java.io.BufferedReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)

javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?

at com.sun.net.ssl.internal.ssl.InputRecord.handleUnknownRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.InputRecord.read(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.performInitialHandshake(Unknown Source)

at com.sun.net.ssl.internal.ssl.SSLSocketImpl.readDataRecord(Unknown Source)

at com.sun.net.ssl.internal.ssl.AppInputStream.read(Unknown Source)

at sun.nio.cs.StreamDecoder.readBytes(Unknown Source)

at sun.nio.cs.StreamDecoder.implRead(Unknown Source)

at sun.nio.cs.StreamDecoder.read(Unknown Source)

at java.io.InputStreamReader.read(Unknown Source)

at java.io.BufferedReader.read1(Unknown Source)

at java.io.BufferedReader.read(Unknown Source)

at org.xmlpull.mxp1.MXParser.fillBuf(MXParser.java:2992)

at org.xmlpull.mxp1.MXParser.more(MXParser.java:3046)

at org.xmlpull.mxp1.MXParser.parseProlog(MXParser.java:1410)

at org.xmlpull.mxp1.MXParser.nextImpl(MXParser.java:1395)

at org.xmlpull.mxp1.MXParser.next(MXParser.java:1093)

at org.jivesoftware.smack.PacketReader.parsePackets(PacketReader.java:325)

at org.jivesoftware.smack.PacketReader.access$000(PacketReader.java:43)

at org.jivesoftware.smack.PacketReader$1.run(PacketReader.java:70)

Mar 19, 2014 9:10:57 AM org.jivesoftware.spark.util.log.Log warning

WARNING: Exception in Login:

Connection failed. No response from server.:

at org.jivesoftware.smack.PacketReader.startup(PacketReader.java:119)

at org.jivesoftware.smack.XMPPConnection.initConnection(XMPPConnection.java:568)

at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:527)

at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:953)

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

at org.jivesoftware.LoginDialog$LoginPanel.access$1200(LoginDialog.java:219)

at org.jivesoftware.LoginDialog$LoginPanel$4.construct(LoginDialog.java:730)

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

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

Someone who knows the logs better then I do may pop in with an easy answer, but for now, lets keep troubleshooting. I really am just shooting in the dark here, but I don’t mind helping out!

First, lets isolate network issues…ok?

  1. Are you on the same LAN as the Openfire server? Or do you host Openfire on a different network (like, say, a datacenter or different LAN?

  2. Are you connecting to a DNS name, Hostname or IP (the entry in the “server” box in Spark)?

  1. It is a business network. As for my computer, it is NOT in the same network BUT it is bridged. Server is on 128.1.x.x and mine is on 192.168.x.x
    We have 5 different network at my work place (i’m the IT here) they are all bridged together and can communicate fine (i can ping the server no problem wherever i am and i have a TS session running on it no problem). Also, it worked before, so i doubt the fact that it is not exactly in the same network would be the root of the problem, as some users are in the same network as me and work perfectly

2)Tryied the hostname and the ip, doesn’t work

Yeah, I didn’t think it was network related, but wanted to isolate that so we could set those questions aside.

Hrm…I have something else we could try…check your PMs.

The start of the Openfire log shows that you did start Openfire two times (Le processus ne peut pas accéder au fichier car un autre processus en a verrouillé une partie : C:\Program Files (x86)\Openfire\embedded-db\openfire.lck) So the log is quite useless. Please stop Openfire and make sure that it is really stopped (no java processes in Task manager).

Do you run the Openfire service or do you start it in foreground?

@“javax.net.ssl.SSLException: Unrecognized SSL message, plaintext connection?”

Do you use the normal 5222 port or the old SSL port 5223?

It would be nice if you could disable port 5223 in Openfire to make sure that all clients connect to port 5222.

Do you have this problem also with ASCII only accounts and password (e.g. “test” and “test”)? Actually UTF-8 user names and passwords should work.

PS: It really helps to get the Openfire logs (debug+info+warn+error) and the Spark log of only one failed login - the more log lines you provide the less likely it is that one will find the problem.

Please ignore that part of the log, it was stupidity on my side. I tryied starting the service AND the program at the same time while the program do start the service so yeah. Plus the server had some troubles so we restarted the machine and all went fine!

So, the issue is now resolved?

Nein i’m talking about the first part of the log wich were something else completly

you have some strange logs from Openfire. Maybe it’s from when you accidentally had two running?

Logs that are saying the database is already in use and cannot connect, others are saying unable to create a socket on the loopback, etc.

Can you clear out all your Openfire logs, then try connecting, then post the error logs from Openfire again? A healthy Openfire should have very few, if any, error logs.

Also, since you are getting this error below, it may be worth to make sure Spark does not have the port set to 5223 and the “Use old SSL port method” is not checked from the login window --> Advanced. I also leave the “Automatically discover host and port” checkmarked on that page.

Unrecognized SSL message, plaintext connection?

You are in fact right, my error log is completly empty. I’ve deleted it completly, shut down open fire, openned it again and tryied to connect with spark, now it’s empty. The problem is still there tough

YOU DA MAN.

I’ve unchecked “Use old SSL port method” and now it works. I feel god damn stupid, thank you for your help! I’ll post if anything else don’t work

“problem is still there” as in Spark on some machines won’t connect randomly? When this occurs, does that generate error logs on Openfire, or nothing? What about warning logs?

If nothing at all, then I would look in your Info logs and see if there’s anything in there indicating Spark is even trying to communicate with Openifre.

If nothing at all, then I’d say you have some sort of network problem, since Spark’s connection requests wouldn’t be getting to Openfire in this scenario.

Also, clear out your Spark logs from %APPDATA%\Spark\logs

then retry. after it happens, post your error logs and warning logs. Perhaps there is something new in there to indicate why spark fails to connect.