powered by Jive Software

Spark suddenly refuses to stay connected... going crazy


#1

I’m at my wit’s end here so hopefully someone can help me…

I’ve been testing OpenFire with my company for months now; we’re currently running OpenFire 3.4.5 and I’ve been running Spark 2.5.8. All of this has been working up until today with no problems.

Today I go to log into Spark and within 5 seconds of successfully logging in (I do see my contact list pop up for a few seconds) I get an error “Your connection was closed due to an error.” and I’m barred from use. I’ve tried everything: Repair installation, Uninstall/Reinstall, deleting the Spark folders (in Program Files and in my user directory), deleting most mentions of Spark in the registry, clearing my java cache, upgrading my version of java, installing again… many reboots-- Nothing works! Nothing has changed on my PC since Friday yet I can NOT get back on with Spark. I finally gave up and am using Miranda for now to get to the OpenFire server but it is far from the better solution and we’ll only be supporting access with Spark later. Friday is also the same time my company started putting production users onto the OpenFire server, but no one else is reporting this issue.

Help --> View Logs shows nothing… but in Program Files/Spark/logs I have this in the error.log:

"java.lang.reflect.InvocationTargetException

Exception on commit = java.io.IOException: Can’t find registry file

Exception on commit = java.io.IOException: Can’t find registry file

Exception on commit = java.io.IOException: Can’t find registry file

Exception on commit = java.io.IOException: Can’t find registry file

Exception in thread “AWT-EventQueue-0” java.lang.IllegalStateException: Not connected to server.

at org.jivesoftware.smack.XMPPConnection.addPacketListener(XMPPConnection.java:683 )

at org.jivesoftware.sparkimpl.preference.notifications.NotificationPlugin.register Listener(NotificationPlugin.java:78)

at org.jivesoftware.sparkimpl.preference.notifications.NotificationPlugin.access$0 00(NotificationPlugin.java:42)

at org.jivesoftware.sparkimpl.preference.notifications.NotificationPlugin$1.doRun( NotificationPlugin.java:56)

at org.jivesoftware.spark.util.SwingTimerTask.run(SwingTimerTask.java:26)

at java.awt.event.InvocationEvent.dispatch(Unknown Source)

at java.awt.EventQueue.dispatchEvent(Unknown Source)

at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)

at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.pumpEvents(Unknown Source)

at java.awt.EventDispatchThread.run(Unknown Source)

Sounds like it claims it’s missing files… but what files? How would reinstalling Spark NOT fix any registry dependencies? I’ll even try reinstalling Java at this point but I’m really at my end here… nothing changed between Friday and Monday; I turned off my laptop and didn’t turn it back on till this morning.

Help?


#2

did you ever resolve this issue as I am having the same problem?

regards,

mcfield


#3

have you tried to restart the server?


#4

Thank you for your advice. Yes, i did try to restart the server.but it failed in the same way.

The problem is that the server works well,however,when i log in with Spark successfully, after a few second, the Spark shut down and disappear.

Looking forward to your further help ?


#5

Hard to say what is causing this. Check errors log in C:\Documents and Settings\Username\Spark\logs and paste it here.


#6

Here is the logs :

2009-5-15 17:04:50 org.jivesoftware.spark.util.log.Log warning
警告: Exception in Login:
XMPPError connecting to 192.168.179.238:5222.: remote-server-error(502) XMPPError connecting to 192.168.179.238:5222.
– caused by: java.net.ConnectException: Connection refused: connect
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:830)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:815)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
2009-5-15 17:05:13 org.jivesoftware.spark.util.log.Log warning
警告: Exception in Login:
XMPPError connecting to 192.168.179.238:5222.: remote-server-error(502) XMPPError connecting to 192.168.179.238:5222.
– caused by: java.net.ConnectException: Connection refused: connect
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:830)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:815)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
2009-5-15 17:05:33 org.jivesoftware.spark.util.log.Log warning
警告: Exception in Login:
XMPPError connecting to 192.168.179.238:5222.: remote-server-error(502) XMPPError connecting to 192.168.179.238:5222.
– caused by: java.net.ConnectException: Connection refused: connect
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:830)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:815)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
2009-5-15 17:05:57 org.jivesoftware.spark.util.log.Log warning
警告: Exception in Login:
XMPPError connecting to 192.168.179.238:5222.: remote-server-error(502) XMPPError connecting to 192.168.179.238:5222.
– caused by: java.net.ConnectException: Connection refused: connect
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:830)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
Nested Exception:
java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
at java.net.PlainSocketImpl.connectToAddress(Unknown Source)
at java.net.PlainSocketImpl.connect(Unknown Source)
at java.net.SocksSocketImpl.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.connect(Unknown Source)
at java.net.Socket.(Unknown Source)
at java.net.Socket.(Unknown Source)
at org.jivesoftware.smack.XMPPConnection.connectUsingConfiguration(XMPPConnection. java:815)
at org.jivesoftware.smack.XMPPConnection.connect(XMPPConnection.java:1276)
at org.jivesoftware.LoginDialog$LoginPanel.login(LoginDialog.java:822)
at org.jivesoftware.LoginDialog$LoginPanel.access$400(LoginDialog.java:196)
at org.jivesoftware.LoginDialog$LoginPanel$1.construct(LoginDialog.java:594)
at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:129)
at java.lang.Thread.run(Unknown Source)
java.lang.reflect.InvocationTargetException
Exception on commit = java.io.IOException: Can’t find registry file
Exception on commit = java.io.IOException: Can’t find registry file

Thank you in advance.


#7

Well, i cant say much. It’s a weird line that connection has been refused. What do you see in the Openfire error log in the Admin Console? Also are you running Spark with limited rights user or does it have admin rights?


#8

Hi, i hava looked over the Openfire error log after the Spark disappears , but i can’t find any relational records in it .however there is some strange records for an early moment. here is it :

2009.05.14 20:50:40 [org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.jav a:507)
] Error loading plugin: E:\Openfire\plugins\search
java.lang.NullPointerException: No ComponentManager implementation available.
at org.xmpp.component.ComponentManagerFactory.getComponentManager(ComponentManager Factory.java:53)
at org.jivesoftware.openfire.plugin.SearchPlugin.initializePlugin(SearchPlugin.jav a:137)
at org.jivesoftware.openfire.container.PluginManager.loadPlugin(PluginManager.java :448)
at org.jivesoftware.openfire.container.PluginManager.access$300(PluginManager.java :47)
at org.jivesoftware.openfire.container.PluginManager$PluginMonitor.run(PluginManag er.java:1032)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101 (Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodi c(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknow n Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
2009.05.14 21:33:55 [org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.jav a:88)
] Line=19 The content of element type “dwr” must match “(init?,allow?,signatures?)”.
2009.05.15 01:13:46 [org.jivesoftware.util.log.util.CommonsLogFactory$1.error(CommonsLogFactory.jav a:88)
] Line=19 The content of element type “dwr” must match “(init?,allow?,signatures?)”.

Also i found these in the warn.log:

2009.05.14 23:52:47 No ACK was received when sending stanza to: org.jivesoftware.openfire.nio.NIOConnection@1ee1775 MINA Session: (SOCKET, R: /192.168.179.238:1067, L: /192.168.179.238:5223, S: 0.0.0.0/0.0.0.0:5223)

Since i can log in Spark with the accounts which have limited or admin rights, but it shuts down a few seconds later .

i doubt if it has anything to do with the Java VM; besides, i find that the buffer memory of User is only 0.5MB in the Openfire Admin Console. is it too low?

thank you for your kindly help!


#9

User cache size is ok i think.

Interesting line is:

2009.05.14 23:52:47 No ACK was received when sending stanza to: org.jivesoftware.openfire.nio.NIOConnection@1ee1775 MINA Session: (SOCKET, R: /192.168.179.238:1067, L: /192.168.179.238:5223, S: 0.0.0.0/0.0.0.0:5223)

I suppose this is your server’s IP. What settings do you have in http://localhost:9090/ssl-settings.jsp

Also, can you try to login on that PC with some other client? (Exodus, Psi, Pidgin)


#10

yes,it is my server ip above.

The settings in the http://127.0.0.1:9090/ssl-settings.jsp are as default.

client security link is "not have to " and the server security link is “options”

besides, i can use Spark to create an account in the server.

when i try to log in with Exodus,there comes a security warning: SSL Security Warning

The SSL certificate received from the server has errors.
Certificate does not match host: /CN=www-1f074a93e89
Certificate fingerprint: 4C:A0:FA:B8:95:73:AA:47:8F:EF:50:ED:2B:51:A8:A8

Options are as follow:
1 Reject SSL certificate.Disconnect jabber session

2 Allow this SSL certifficate for this jabber session

3 Always allow this SSL certificate

i try all of options above,but none can connect successfully. At the same time , an error comes from Openfire console :

An unexpected error has been detected by Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10006715, pid=2052, tid=2352

Java VM: Java HotSpot™ Server VM (1.6.0_03-b05 mixed mode)

Problematic frame:

C [TcpIpDog1.dll+0x6715]

An error report file with more information is saved as hs_err_pid2052.log

When i try to register an account with Psi, there is a Server Authentication that :The 192.168.179.238 certificate failed the authenticity test.Reason:Certificate is self-signed

regards,

Mcfield


#11

Now i find a solution for one of the problems,because i misused the domain name. so i can log in with the Psi and Exodus.

However,there is another problem that i even can’t open the Spark, i have tried to reinstall Spark and the JRE,but it doesn’t work.

here is the error logs in the Spark :

An unexpected error has been detected by Java Runtime Environment:

EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x10006715, pid=4068, tid=1324

Java VM: Java HotSpot™ Client VM (11.3-b02 mixed mode, sharing windows-x86)

Problematic frame:

C [TcpIpDog1.dll+0x6715]

If you would like to submit a bug report, please visit:

http://java.sun.com/webapps/bugreport/crash.jsp

The crash happened outside the Java Virtual Machine in native code.

See problematic frame for where to report the bug.

sorry to trouble you again.


#12

Can’t say much about the last error. But the main problem was probably that you have figured it yourself. Your certificate wasnt matching the domain it was issued for. The simple way to test the connection would be to delete self-signed certificates and set Security settings to Optional (for client). Then you can step by step try to enable SSL with certificates. Though maybe it was just the problem that in login screen you were specifiying different server name, not what you have in you Server name and xmpp.domain system property.