论坛首页 Java企业应用论坛

局域网桌面共享软件(优化版)

浏览 9446 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2009-07-12   最后修改:2009-07-29
   之前的局域网桌面共享软件存在一些性能方面的问题。。。感谢各位网友提出的问题。

今对程序运行时CPU使用过高的问题进行了一些优化,不敢保证是最好的优化效果。

    呵呵,如果你发现有什么问题可以提出来共同研究,相互学习。

    如果你对该程序感兴趣的话,请下载优化版使用。

界面预览:
   发表时间:2010-07-02  
运行后报错

ConfigFile loading......
ConfigFile loading......
loadConfigFile Success
serverURL : //192.168.1.105:9999/REMOTECONTROLLER
RMI Server starting......
RMI Server Started
java.net.SocketException: Not a multicast address
        at java.net.MulticastSocket.joinGroup(MulticastSocket.java:273)
        at com.topking.sd.util.Broadcast.<init>(Broadcast.java:37)
        at com.topking.sd.ui.MainFrame.update(MainFrame.java:260)
        at java.util.Observable.notifyObservers(Observable.java:142)
        at com.topking.sd.ui.ConnectFrame.actionPerformed(ConnectFrame.java:120)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6216)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5981)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4583)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4413)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2475)
        at java.awt.Component.dispatchEvent(Component.java:4413)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
java.lang.NullPointerException
        at com.topking.sd.util.Broadcast.sendIP(Broadcast.java:111)
        at com.topking.sd.ui.MainFrame.update(MainFrame.java:266)
        at java.util.Observable.notifyObservers(Observable.java:142)
        at com.topking.sd.ui.ConnectFrame.actionPerformed(ConnectFrame.java:120)
        at javax.swing.AbstractButton.fireActionPerformed(AbstractButton.java:1995)
        at javax.swing.AbstractButton$Handler.actionPerformed(AbstractButton.java:2318)
        at javax.swing.DefaultButtonModel.fireActionPerformed(DefaultButtonModel.java:387)
        at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java:242)
        at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(BasicButtonListener.java:236)
        at java.awt.Component.processMouseEvent(Component.java:6216)
        at javax.swing.JComponent.processMouseEvent(JComponent.java:3265)
        at java.awt.Component.processEvent(Component.java:5981)
        at java.awt.Container.processEvent(Container.java:2041)
        at java.awt.Component.dispatchEventImpl(Component.java:4583)
        at java.awt.Container.dispatchEventImpl(Container.java:2099)
        at java.awt.Component.dispatchEvent(Component.java:4413)
        at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4556)
        at java.awt.LightweightDispatcher.processMouseEvent(Container.java:4220)
        at java.awt.LightweightDispatcher.dispatchEvent(Container.java:4150)
        at java.awt.Container.dispatchEventImpl(Container.java:2085)
        at java.awt.Window.dispatchEventImpl(Window.java:2475)
        at java.awt.Component.dispatchEvent(Component.java:4413)
        at java.awt.EventQueue.dispatchEvent(EventQueue.java:599)
        at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:269)
        at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:184)
        at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:174)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:169)
        at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:161)
        at java.awt.EventDispatchThread.run(EventDispatchThread.java:122)
reciveMsg()
java.lang.NullPointerException
        at com.topking.sd.util.Broadcast.sendIP(Broadcast.java:111)
        at com.topking.sd.ui.MainFrame$UserListenerThread.run(MainFrame.java:543)
        at java.lang.Thread.run(Thread.java:619)
Exception in thread "Thread-4" java.lang.NullPointerException
        at com.topking.sd.util.Broadcast.reciveIP(Broadcast.java:128)
        at com.topking.sd.ui.MainFrame$UserListenerThread.run(MainFrame.java:544)
        at java.lang.Thread.run(Thread.java:619)
0 请登录后投票
   发表时间:2010-07-02   最后修改:2010-07-02
Not a multicast address


原因很明显的啊,很多router都会关闭multicast。
0 请登录后投票
   发表时间:2010-07-06  
1.6编译的?
0 请登录后投票
论坛首页 Java企业应用版

跳转论坛:
Global site tag (gtag.js) - Google Analytics