安装程序与JRE 8挂起

时间:2014-12-09 07:18:09

标签: install4j

我们最近移动了我们的install4j项目以使用JRE 8.但是安装程序在特定对话框中挂起,我们在error.log中看到以下内容。你知道造成这种情况的原因吗?

Exception in thread "AWT-EventQueue-0" java.lang.InternalError: java.io.IOException: Stream closed
    at java.text.BreakIterator.createBreakInstance(Unknown Source)
    at java.text.BreakIterator.getBreakInstance(Unknown Source)
    at java.text.BreakIterator.getLineInstance(Unknown Source)
    at javax.swing.text.GlyphView.getBreakSpotUseBreakIterator(Unknown Source)
    at javax.swing.text.GlyphView.getBreakSpot(Unknown Source)
    at javax.swing.text.GlyphView.getBreakWeight(Unknown Source)
    at javax.swing.text.FlowView$LogicalView.getPreferredSpan(Unknown Source)
    at javax.swing.text.FlowView.calculateMinorAxisRequirements(Unknown Source)
    at javax.swing.text.BoxView.checkRequests(Unknown Source)
    at javax.swing.text.BoxView.getMinimumSpan(Unknown Source)
    at javax.swing.text.BoxView.calculateMinorAxisRequirements(Unknown Source)
    at javax.swing.text.BoxView.checkRequests(Unknown Source)
    at javax.swing.text.BoxView.setSpanOnAxis(Unknown Source)
    at javax.swing.text.BoxView.layout(Unknown Source)
    at javax.swing.text.BoxView.setSize(Unknown Source)
    at javax.swing.plaf.basic.BasicTextUI$RootView.setSize(Unknown Source)
    at javax.swing.plaf.basic.BasicTextUI.getPreferredSize(Unknown Source)
    at javax.swing.JComponent.getPreferredSize(Unknown Source)
    at javax.swing.JEditorPane.getPreferredSize(Unknown Source)
    at javax.swing.ScrollPaneLayout.layoutContainer(Unknown Source)
    at java.awt.Container.layout(Unknown Source)
    at java.awt.Container.doLayout(Unknown Source)
    at java.awt.Container.validateTree(Unknown Source)
    at java.awt.Container.validate(Unknown Source)
    at javax.swing.JViewport.validateView(Unknown Source)
    at javax.swing.JViewport.scrollRectToVisible(Unknown Source)
    at javax.swing.JComponent.scrollRectToVisible(Unknown Source)
    at com.install4j.runtime.beans.screens.InfoScreen.updateText(Unknown Source)
    at com.install4j.runtime.beans.screens.InfoScreen.willActivate(Unknown Source)
    at com.install4j.runtime.installer.frontend.ScreenEnvelope.activate(Unknown Source)
    at com.install4j.runtime.wizard.WizardBase.setScreen(Unknown Source)
    at com.install4j.runtime.installer.frontend.WizardScreenExecutor.execute(Unknown Source)
    at com.install4j.runtime.installer.controller.Controller$1.run(Unknown Source)
    at java.awt.event.InvocationEvent.dispatch(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)

感谢

1 个答案:

答案 0 :(得分:1)

这是Java 8中热点编译器中的错误,请参阅

http://kingsfleet.blogspot.co.il/2014/11/but-thats-impossible-or-finding-out.html

根据上述博客文章,解决方法是添加以下VM参数

-XX:CompileCommand=exclude,javax/swing/text/GlyphView,getBreakSpot