Spark is closing server connection when I try to open Notes

Hello,

I have an issue that it wasn’t there before and I need my notes back. When I try open the Notes from the Spark Menu, the client is getting disconnected from the server and notes are not opening.

This is the error log from Spark :

Μαρ 02, 2016 11:32:03 ΠΜ org.jivesoftware.spark.util.log.Log error

SEVERE:

No response from the server.:

at org.jivesoftware.smackx.PrivateDataManager.getPrivateData(PrivateDataManager.ja va:209)

at org.jivesoftware.sparkimpl.plugin.scratchpad.PrivateNotes.getPrivateNotes(Priva teNotes.java:143)

at org.jivesoftware.sparkimpl.plugin.scratchpad.ScratchPadPlugin$14.construct(Scra tchPadPlugin.java:430)

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

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

Μαρ 02, 2016 1:01:00 ΜΜ org.jivesoftware.spark.util.log.Log error

SEVERE: Closing Group Chat Room error.

java.lang.IllegalStateException: Not connected to server.

at org.jivesoftware.smack.XMPPConnection.sendPacket(XMPPConnection.java:491)

at org.jivesoftware.smackx.muc.MultiUserChat.leave(MultiUserChat.java:540)

at org.jivesoftware.spark.ui.rooms.GroupChatRoom.leaveChatRoom(GroupChatRoom.java: 561)

at org.jivesoftware.spark.ui.ChatContainer.leaveChatRoom(ChatContainer.java:608)

at org.jivesoftware.spark.Workspace$1.shutdown(Workspace.java:147)

at org.jivesoftware.MainWindow.fireWindowShutdown(MainWindow.java:262)

at org.jivesoftware.MainWindow.shutdown(MainWindow.java:291)

at org.jivesoftware.sparkimpl.plugin.systray.SysTrayPlugin$5.actionPerformed(SysTr ayPlugin.java:193)

at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)

at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)

at javax.swing.DefaultButtonModel.setPressed(Unknown Source)

at javax.swing.AbstractButton.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)

at javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)

at java.awt.Component.processMouseEvent(Unknown Source)

at javax.swing.JComponent.processMouseEvent(Unknown Source)

at java.awt.Component.processEvent(Unknown Source)

at java.awt.Container.processEvent(Unknown Source)

at java.awt.Component.dispatchEventImpl(Unknown Source)

at java.awt.Container.dispatchEventImpl(Unknown Source)

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

at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)

at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)

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

at java.awt.Container.dispatchEventImpl(Unknown Source)

at java.awt.Window.dispatchEventImpl(Unknown Source)

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

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

at java.awt.EventQueue.access$300(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.awt.EventQueue$4.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)

Μαρ 02, 2016 1:06:35 ΜΜ org.jivesoftware.spark.util.log.Log error

SEVERE: Dictionary not found

Μαρ 02, 2016 1:07:40 ΜΜ org.jivesoftware.spark.util.log.Log error

SEVERE:

No response from the server.:

at org.jivesoftware.smackx.PrivateDataManager.getPrivateData(PrivateDataManager.ja va:209)

at org.jivesoftware.sparkimpl.plugin.scratchpad.PrivateNotes.getPrivateNotes(Priva teNotes.java:143)

at org.jivesoftware.sparkimpl.plugin.scratchpad.ScratchPadPlugin$14.construct(Scra tchPadPlugin.java:430)

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

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

Μαρ 02, 2016 1:08:25 ΜΜ org.jivesoftware.spark.util.log.Log error

SEVERE: Error calling constructor for org.jivesoftware.spark.ui.rooms.GroupChatRoom

java.lang.reflect.InvocationTargetException

at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)

at sun.reflect.NativeConstructorAccessorImpl.newInstance(Unknown Source)

at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)

at java.lang.reflect.Constructor.newInstance(Unknown Source)

at org.jivesoftware.spark.util.UIComponentRegistry.instantiate(UIComponentRegistry .java:501)

at org.jivesoftware.spark.util.UIComponentRegistry.createGroupChatRoom(UIComponent Registry.java:444)

at org.jivesoftware.spark.ui.conferences.ConferenceUtils.joinConferenceOnSeperateT hread(ConferenceUtils.java:166)

at org.jivesoftware.spark.ui.conferences.ConferenceUtils.joinConferenceOnSeperateT hread(ConferenceUtils.java:131)

at org.jivesoftware.spark.ui.rooms.GroupChatRoom$7.run(GroupChatRoom.java:1273)

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

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

at java.awt.EventQueue.access$300(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.awt.EventQueue$3.run(Unknown Source)

at java.security.AccessController.doPrivileged(Native Method)

at java.security.ProtectionDomain$1.doIntersectionPrivilege(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)

Caused by: java.lang.IllegalStateException: Not connected to server.

at org.jivesoftware.smack.Connection.addConnectionListener(Connection.java:537)

at org.jivesoftware.spark.ui.ChatRoom.(ChatRoom.java:218)

at org.jivesoftware.spark.ui.rooms.GroupChatRoom.(GroupChatRoom.java:132)

… 23 more

Μαρ 02, 2016 1:08:31 ΜΜ org.jivesoftware.spark.util.log.Log error

SEVERE:

No response from the server.:

at org.jivesoftware.smackx.PrivateDataManager.getPrivateData(PrivateDataManager.ja va:209)

at org.jivesoftware.sparkimpl.plugin.scratchpad.PrivateNotes.getPrivateNotes(Priva teNotes.java:143)

at org.jivesoftware.sparkimpl.plugin.scratchpad.ScratchPadPlugin$14.construct(Scra tchPadPlugin.java:430)

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

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

Any help please?

What Spark version?

Hi,

Thank you for the prompt reply,

Spark version is 2.6.3 at work and 2.7.5 at home. Same issues for both version. This happened only to me, all the other guys work just fine if they connect from the same client but with different account.

I can’t reproduce your exact scenario (unless you can describe what is specific about your notes, links, xml tags, or just plain text?). But when i try to save something with & in it, it disconnects as well (and do not save it). I have filed this as [SPARK-1714] Disconnecting when saving or retrieving Notes - Jive Software Open Source but it might as well be a server’s fault (not accepting something and booting the client). As we don’t have experienced developers working on Spark currently, can’t say when and whether it will be fixed. The notes are stored on the server in the private storage. E.g. if you save a word “MAGIC” it will look like this in the database:

INSERT INTO OFPRIVATE VALUES(‘username’,‘scratchpad’,‘scratchpad:notes’,‘MAGIC’)

OFPRIVATE is the table to look for your notes in. Your Openfire admin should probably be able to pull your notes for you from the database. When Openfire is stopped he should probably be able to delete notes causing a crash from the database (has to know SQL for that). NOT when it is running!

That’s all i can say for now.

One more idea. As there is smackx referenced first in the exception log, this might be Smack’s fault at parsing something (library which Spark is based on). Which could be very possibly fixed in the latest Smack versions. But Spark is using its old version currently, as updating to the latest version is not a trivial task and it brakes a few things. And as i said, we currently have no experienced developers to do this.

Ok Thank you very much for your time.

lol, as always, I can’t reproduce this. what database are you guys using?

I’m with the embedded one.

Alexander198961 · GitHub has provided a fix for this (at least when & is used in the notes). You can try this build and see if it helps in your case http://www.igniterealtime.org/builds/spark/dailybuilds/spark_2_7_5_789.exe