Spark 错误日志中看到的一些问题

2014-4-23 18:42:09 org.jivesoftware.spark.util.log.Log error
严重: Unable to contact shared group info.
service-unavailable(-1)
    at org.jivesoftware.smackx.SharedGroupManager.getSharedGroups(SharedGroupManager.java:49)
    at org.jivesoftware.spark.ui.ContactList$25.run(ContactList.java:1780)
    at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
    at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
    at java.util.concurrent.FutureTask.run(Unknown 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)
Exception in thread "Thread-15" java.lang.NullPointerException
    at org.jivesoftware.smackx.bookmark.BookmarkManager.getBookmarkedConferences(BookmarkManager.java:92)
    at org.jivesoftware.spark.ui.conferences.ConferenceServices$3.construct(ConferenceServices.java:154)
    at org.jivesoftware.spark.util.SwingWorker$2.run(SwingWorker.java:141)
    at java.lang.Thread.run(Unknown Source)
2014-4-23 18:42:10 org.jivesoftware.spark.util.log.Log error
严重:
java.lang.NullPointerException
    at org.jivesoftware.smackx.bookmark.BookmarkManager.getBookmarkedConferences(BookmarkManager.java:92)
    at org.jivesoftware.sparkimpl.plugin.bookmarks.BookmarkPlugin$1.setBookmarks(BookmarkPlugin.java:158)
    at org.jivesoftware.sparkimpl.plugin.bookmarks.BookmarkPlugin$1.createMenu(BookmarkPlugin.java:141)
    at org.jivesoftware.sparkimpl.plugin.bookmarks.BookmarkPlugin$1.initialize(BookmarkPlugin.java:81)
    at org.jivesoftware.sparkimpl.plugin.bookmarks.BookmarkPlugin$1.finished(BookmarkPlugin.java:69)
    at org.jivesoftware.spark.util.SwingWorker$2$1.run(SwingWorker.java:148)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$400(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$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)
2014-4-23 18:42:12 org.jivesoftware.spark.util.log.Log error
严重: Dictionary not found
Exception in thread "AWT-EventQueue-0" java.lang.NullPointerException
    at org.jivesoftware.sparkimpl.plugin.scratchpad.TaskNotification$2.run(TaskNotification.java:74)
    at java.awt.event.InvocationEvent.dispatch(Unknown Source)
    at java.awt.EventQueue.dispatchEventImpl(Unknown Source)
    at java.awt.EventQueue.access$400(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.awt.EventQueue$2.run(Unknown Source)
    at java.security.AccessController.doPrivileged(Native Method)
    at java.security.AccessControlContext$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)

 

原因暂时不明,由于Bookmarks引起,这个协议,可能我处理的有点问题,这里先记下。临时的解决办法先去改一下Spark代码。先调完服务器然后再解决这个小问题吧。

package org.jivesoftware.spark.ui.conferences;

class  ConferenceServices

/**
     * Load all bookmarked data.
     */
    public void loadConferenceBookmarks() {
        final TimerTask bookmarkLoader = new TimerTask(){

            @Override
            public void run() {
                // 为了跳过错误,转时先这样,先面的代码就先不执行了
                  bookmarksUI.loadUI();
                 addBookmarksUI();
                 //end
                Collection<BookmarkedConference> bc = null;

//                while (bc == null) {
//                    try {
//                        BookmarkManager manager = BookmarkManager
//                                .getBookmarkManager(SparkManager.getConnection());
//                        bc = manager.getBookmarkedConferences();
//                    } catch (XMPPException error) {
//                        Log.error(error);
//                    }
//                }
//              bookmarksUI.loadUI();
//              addBookmarksUI();
            }
        };
        TaskEngine.getInstance().schedule(bookmarkLoader, 500);
    }

 

 

注掉前:

image

 

注掉后,

image

 

 

//Update : 再看源代码,有个地方可能的原因 ,服务端没有实现 StorageIq ,太晚了,明天再搞了。

 

//另外还有一点:博客园的缓存有点长了,我修改了文章,这么长时间了都没有生效。一直让我误以为Live Writer 有问题呢。

你可能感兴趣的:(spark)