本文主要是介绍dbvisualizer报错,NullPointerException,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
由于电脑装了两个JDK,启动dbvisualizer的时候突然报错。说是空指针异常。
查了网站也有解决方法,从同志们从官网上抄的也不够全面,索性就贴这。
就是指定jre的版本。
是jre,jre,jre,重要的事情说三遍。
首先,错误是这样的:
An internal error occurred:Exception: java.lang.NullPointerException
java.lang.NullPointerExceptionThe error may have affected the application state.
Please notify vendor.Stack Trace:java.lang.NullPointerExceptionat java.awt.EventQueue.getCurrentEventImpl(EventQueue.java:836)at java.awt.EventQueue.getCurrentEvent(EventQueue.java:831)at javax.swing.JComboBox.fireActionEvent(JComboBox.java:1245)at javax.swing.JComboBox.contentsChanged(JComboBox.java:1331)at javax.swing.JComboBox.intervalRemoved(JComboBox.java:1351)at javax.swing.AbstractListModel.fireIntervalRemoved(AbstractListModel.java:179)at javax.swing.DefaultComboBoxModel.removeAllElements(DefaultComboBoxModel.java:174)at javax.swing.JComboBox.removeAllItems(JComboBox.java:773)at com.onseven.dbvis.G.N.ij(Z:2774)at com.onseven.dbvis.G.N.sessionEvent(Z:999)at com.onseven.dbvis.U.K.ā(Z:507)at com.onseven.dbvis.U.M.ā(Z:2031)at com.onseven.dbvis.U.K.ā(Z:2641)at com.onseven.dbvis.L.F.ć(Z:1275)at com.onseven.dbvis.DbVisualizer.Ѧ(Z:310)at com.onseven.dbvis.DbVisualizer.Ć(Z:3286)at com.onseven.dbvis.DbVisualizer$A.finished(Z:1811)at se.pureit.swing.util.SwingWorker$1.run(Z:3429)at java.awt.event.InvocationEvent.dispatch(InvocationEvent.java:312)at java.awt.EventQueue.dispatchEventImpl(EventQueue.java:745)at java.awt.EventQueue.access$300(EventQueue.java:103)at java.awt.EventQueue$3.run(EventQueue.java:706)at java.awt.EventQueue$3.run(EventQueue.java:704)at java.security.AccessController.doPrivileged(Native Method)at java.security.ProtectionDomain$1.doIntersectionPrivilege(ProtectionDomain.java:76)at java.awt.EventQueue.dispatchEvent(EventQueue.java:715)at java.awt.EventDispatchThread.pumpOneEventForFilters(EventDispatchThread.java:242)at java.awt.EventDispatchThread.pumpEventsForFilter(EventDispatchThread.java:161)at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:150)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:146)at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:138)at java.awt.EventDispatchThread.run(EventDispatchThread.java:91)
然后,
官网当然有解决此问题的最佳答案, 请戳这
如果还报错,错误请看图
是因为你的版本低了,换个高版本就行了
这篇关于dbvisualizer报错,NullPointerException的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!