当我尝试通过可执行jar文件运行我的JavaFX项目时遇到麻烦:“运行Application时出现异常”。通过jnpl文件运行给了我更多信息:关于java.lang.NullPointerException和T2KFontFactory的巨大错误消息(如“at com.sun.t2k.T2KFontFactory.resolveFontFiles(Unknown Source)”等)。
使用WebView时我也收到了相同的异常(但它有效)。
我在互联网上看到很多关于这个问题的帖子,但没有人知道解决方案。我正在使用最新的JavaFX 2.0.3,JRE版本1.7.0_03-b05 Java HotSpot(TM)客户端VM,Windows 7.谢谢!
编辑: 我测试了一些JavaFX示例,它们运行良好。
“正文限制为30000个字符;您输入了58302”所以我会做一些消息:
Java Plug-in 10.4.1.99
Using JRE version 1.7.0_03-b05 Java HotSpot(TM) Client VM
User home directory = C:\Users\user
----------------------------------------------------
c: clear console window
f: finalize objects on finalization queue
g: garbage collect
h: display this help message
l: dump classloader list
m: print memory usage
o: trigger logging
q: hide console
r: reload policy configuration
s: dump system and deployment properties
t: dump thread list
v: dump thread stack
x: clear classloader cache
0-5: set trace level to <n>
----------------------------------------------------
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.resolveFontFiles(Unknown Source)
at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFontResource(Unknown Source)
at com.sun.t2k.T2KFontFactory.createFont(Unknown Source)
at com.sun.javafx.font.PrismFontLoader.font(Unknown Source)
at javafx.scene.text.Font.font(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.ParsedValue.convert(Unknown Source)
at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
at javafx.scene.Node.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Scene.doCSSPass(Unknown Source)
at javafx.scene.Scene.preferredSize(Unknown Source)
at javafx.scene.Scene.impl_initPeer(Unknown Source)
at javafx.stage.Window$13.invalidated(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
at javafx.stage.Window.setShowing(Unknown Source)
at javafx.stage.Window.show(Unknown Source)
at javafx.stage.Stage.show(Unknown Source)
at javafx.stage.Stage.impl_showAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.event.Event.fireEvent(Unknown Source)
at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
at javafx.scene.Scene$ClickGenerator.access$6200(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.notifyMouse(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.resolveFontFiles(Unknown Source)
at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFontResource(Unknown Source)
at com.sun.t2k.T2KFontFactory.createFont(Unknown Source)
at com.sun.javafx.font.PrismFontLoader.font(Unknown Source)
at javafx.scene.text.Font.font(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.ParsedValue.convert(Unknown Source)
at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
at javafx.scene.Node.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Scene.doCSSPass(Unknown Source)
at javafx.scene.Scene.preferredSize(Unknown Source)
at javafx.scene.Scene.impl_initPeer(Unknown Source)
at javafx.stage.Window$13.invalidated(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
at javafx.stage.Window.setShowing(Unknown Source)
at javafx.stage.Window.show(Unknown Source)
at javafx.stage.Stage.show(Unknown Source)
at javafx.stage.Stage.impl_showAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.event.Event.fireEvent(Unknown Source)
at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
at javafx.scene.Scene$ClickGenerator.access$6200(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.notifyMouse(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.resolveFontFiles(Unknown Source)
at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFontResource(Unknown Source)
at com.sun.t2k.T2KFontFactory.createFont(Unknown Source)
at com.sun.javafx.font.PrismFontLoader.font(Unknown Source)
at javafx.scene.text.Font.font(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.ParsedValue.convert(Unknown Source)
at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
at javafx.scene.Node.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Scene.doCSSPass(Unknown Source)
at javafx.scene.Scene.preferredSize(Unknown Source)
at javafx.scene.Scene.impl_initPeer(Unknown Source)
at javafx.stage.Window$13.invalidated(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
at javafx.stage.Window.setShowing(Unknown Source)
at javafx.stage.Window.show(Unknown Source)
at javafx.stage.Stage.show(Unknown Source)
at javafx.stage.Stage.impl_showAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.event.Event.fireEvent(Unknown Source)
at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
at javafx.scene.Scene$ClickGenerator.access$6200(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.notifyMouse(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.resolveFontFiles(Unknown Source)
at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFontResource(Unknown Source)
at com.sun.t2k.T2KFontFactory.createFont(Unknown Source)
at com.sun.javafx.font.PrismFontLoader.font(Unknown Source)
at javafx.scene.text.Font.font(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.ParsedValue.convert(Unknown Source)
at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
at javafx.scene.Node.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Scene.doCSSPass(Unknown Source)
at javafx.scene.Scene.preferredSize(Unknown Source)
at javafx.scene.Scene.impl_initPeer(Unknown Source)
at javafx.stage.Window$13.invalidated(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
at javafx.stage.Window.setShowing(Unknown Source)
at javafx.stage.Window.show(Unknown Source)
at javafx.stage.Stage.show(Unknown Source)
at javafx.stage.Stage.impl_showAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.event.Event.fireEvent(Unknown Source)
at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
at javafx.scene.Scene$ClickGenerator.access$6200(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.notifyMouse(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
java.lang.NullPointerException
at com.sun.t2k.T2KFontFactory.resolveFontFiles(Unknown Source)
at com.sun.t2k.T2KFontFactory.resolveWindowsFonts(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFullNameToFileMap(Unknown Source)
at com.sun.t2k.T2KFontFactory.getFontResource(Unknown Source)
at com.sun.t2k.T2KFontFactory.createFont(Unknown Source)
at com.sun.javafx.font.PrismFontLoader.font(Unknown Source)
at javafx.scene.text.Font.font(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.converters.FontConverter.convert(Unknown Source)
at com.sun.javafx.css.ParsedValue.convert(Unknown Source)
at com.sun.javafx.css.StyleHelper.lookup(Unknown Source)
at com.sun.javafx.css.StyleHelper.transitionToState(Unknown Source)
at javafx.scene.Node.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.control.Control.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Parent.impl_processCSS(Unknown Source)
at javafx.scene.Node.processCSS(Unknown Source)
at javafx.scene.Scene.doCSSPass(Unknown Source)
at javafx.scene.Scene.preferredSize(Unknown Source)
at javafx.scene.Scene.impl_initPeer(Unknown Source)
at javafx.stage.Window$13.invalidated(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.markInvalid(Unknown Source)
at javafx.beans.property.BooleanPropertyBase.set(Unknown Source)
at javafx.stage.Window.setShowing(Unknown Source)
at javafx.stage.Window.show(Unknown Source)
at javafx.stage.Stage.show(Unknown Source)
at javafx.stage.Stage.impl_showAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate$8.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.DialogTemplate.setVisible(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory$3.call(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit$Caller.run(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.FXPluginToolkit.callAndWait(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showErrorDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.FXUIFactory.showMessageDialog(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.deploy.uitoolkit.impl.fx.ui.ErrorPane$1.handle(Unknown Source)
at com.sun.javafx.event.CompositeEventHandler.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.EventHandlerManager.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.CompositeEventDispatcher.dispatchBubblingEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.BasicEventDispatcher.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventDispatchChainImpl.dispatchEvent(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEventImpl(Unknown Source)
at com.sun.javafx.event.EventUtil.fireEvent(Unknown Source)
at javafx.event.Event.fireEvent(Unknown Source)
at javafx.scene.Scene$ClickGenerator.postProcess(Unknown Source)
at javafx.scene.Scene$ClickGenerator.access$6200(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.process(Unknown Source)
at javafx.scene.Scene$MouseHandler.access$1300(Unknown Source)
at javafx.scene.Scene.impl_processMouseEvent(Unknown Source)
at javafx.scene.Scene$ScenePeerListener.mouseEvent(Unknown Source)
at com.sun.javafx.tk.quantum.GlassViewEventHandler.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.handleMouseEvent(Unknown Source)
at com.sun.glass.ui.View.notifyMouse(Unknown Source)
at com.sun.glass.ui.win.WinApplication._runLoop(Native Method)
at com.sun.glass.ui.win.WinApplication.access$100(Unknown Source)
at com.sun.glass.ui.win.WinApplication$2$1.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
再次编辑: 是的,我的操作系统是俄语)我试过2.1版本,但它没有帮助。之后我下载了FX 2.2(开发者预览版)并收到了新的错误消息:
CacheEntry[file:/D:/Labs/Javal/JavafxApp/dist/lib/eclipselink-2.3.0.jar]: updateAvailable=false,lastModified=Mon Apr 09 18:26:17 EEST 2012,length=6732665
CacheEntry[file:/D:/Labs/Javal/JavafxApp/dist/lib/javax.persistence-2.0.jar]: updateAvailable=false,lastModified=Mon Apr 09 18:26:20 EEST 2012,length=143658
CacheEntry[file:/D:/Labs/Javal/JavafxApp/dist/lib/mysql-connector-java-5.1.19-bin.jar]: updateAvailable=false,lastModified=Mon Apr 09 18:26:23 EEST 2012,length=831026
CacheEntry[file:/D:/Labs/Javal/JavafxApp/dist/JavafxApp.jar]: updateAvailable=false,lastModified=Mon Apr 09 18:26:09 EEST 2012,length=9616796
我试图修复它,但是,我认为我误解了这个问题:我有mysql-connector-java-5.1.18,并将其更改为最新版本:mysql-connector-java-5.1.19,但是关于这一点的消息没有消失......
答案 0 :(得分:1)
你有本地化的操作系统吗?它看起来像http://javafx-jira.kenai.com/browse/RT-18767
此问题已在FX 2.1中修复,您可以在此处获取:http://www.oracle.com/technetwork/java/javafx/downloads/devpreview-1429449.html