无法预览BIRT报告

时间:2015-03-21 06:41:24

标签: eclipse birt eclipse-luna

我是BIRT的新手,今天我已经下载了Eclipse IDE for Java and Report Developer

在完成教程后,当我准备好预览报告时,我点击了"在Web Viewer上查看报告"和许多其他选项,但它总是为我启动记事本+。

我的IDE有问题吗?

我试图检查是否有任何设置来配置运行模式,但我在项目属性中看到了这一点: http://s22.postimg.org/rs01foxzz/rundebug.jpg

请指教。谢谢你的时间。

注意到错误日志中存在一些错误,不确定这是否会影响报告的预览:

  

显示java.lang.NullPointerException

     
    

at org.eclipse.ui.internal.ide.handlers.EditorInputPropertyTester.test(EditorInputPropertyTester.java:48)       在org.eclipse.core.internal.expressions.Property.test(Property.java:58)       在org.eclipse.core.internal.expressions.TestExpression.evaluate(TestExpression.java:99)       在org.eclipse.core.internal.expressions.CompositeExpression.evaluateAnd(CompositeExpression.java:53)       在org.eclipse.core.internal.expressions.WithExpression.evaluate(WithExpression.java:72)       在org.eclipse.core.internal.expressions.CompositeExpression.evaluateOr(CompositeExpression.java:68)       在org.eclipse.core.internal.expressions.OrExpression.evaluate(OrExpression.java:21)       在org.eclipse.core.internal.expressions.ReferenceExpression.evaluate(ReferenceExpression.java:70)       在org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:98)       在org.eclipse.ui.internal.services.EvaluationReference.evaluate(EvaluationReference.java:137)       在org.eclipse.ui.internal.services.EvaluationReference.changed(EvaluationReference.java:131)       at org.eclipse.e4.core.internal.contexts.TrackableComputationExt.update(TrackableComputationExt.java:110)       at org.eclipse.e4.core.internal.contexts.EclipseContext.processScheduled(EclipseContext.java:338)       at org.eclipse.e4.core.internal.contexts.EclipseContext.set(EclipseContext.java:352)       在org.eclipse.e4.core.internal.contexts.EclipseContext.deactivate(EclipseContext.java:650)       在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.clearContext(PartRenderingEngine.java:970)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:954)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access $ 3(PartRenderingEngine.java:862)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 8.run(PartRenderingEngine.java:857)       在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:841)       在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:894)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access $ 3(PartRenderingEngine.java:862)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 8.run(PartRenderingEngine.java:857)       在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:841)       在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:894)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access $ 3(PartRenderingEngine.java:862)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 8.run(PartRenderingEngine.java:857)       在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:841)       在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.safeRemoveGui(PartRenderingEngine.java:894)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.access $ 3(PartRenderingEngine.java:862)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 8.run(PartRenderingEngine.java:857)       在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)       at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.removeGui(PartRenderingEngine.java:841)       在org.eclipse.ui.internal.WorkbenchWindow.hardClose(WorkbenchWindow.java:1937)       在org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:1560)       在org.eclipse.ui.internal.WorkbenchWindow.access $ 15(WorkbenchWindow.java:1527)       在org.eclipse.ui.internal.WorkbenchWindow $ 10.run(WorkbenchWindow.java:1592)       在org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:70)       在org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1589)       在org.eclipse.ui.internal.Workbench $ 14.run(Workbench.java:1155)       在org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42)       在org.eclipse.ui.internal.Workbench.busyClose(Workbench.java:1137)       在org.eclipse.ui.internal.Workbench.access $ 21(Workbench.java:1079)       在org.eclipse.ui.internal.Workbench $ 19.run(Workbench.java:1410)       在org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:70)       在org.eclipse.ui.internal.Workbench.close(Workbench.java:1407)       在org.eclipse.ui.internal.Workbench.close(Workbench.java:1380)       在org.eclipse.ui.internal.WorkbenchWindow.busyClose(WorkbenchWindow.java:1556)       在org.eclipse.ui.internal.WorkbenchWindow.access $ 15(WorkbenchWindow.java:1527)       在org.eclipse.ui.internal.WorkbenchWindow $ 10.run(WorkbenchWindow.java:1592)       在org.eclipse.swt.custom.BusyIndi​​cator.showWhile(BusyIndi​​cator.java:70)       在org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1589)       在org.eclipse.ui.internal.WorkbenchWindow.close(WorkbenchWindow.java:1603)       在org.eclipse.ui.internal.WorkbenchWindow $ 6.close(WorkbenchWindow.java:521)       at org.eclipse.e4.ui.workbench.renderers.swt.WBWRenderer $ 11.shellClosed(WBWRenderer.java:563)       at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:98)       在org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)       在org.eclipse.swt.widgets.Display.sendEvent(Display.java:4353)       在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1061)       在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1085)       在org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1070)       在org.eclipse.swt.widgets.Decorations.closeWidget(Decorations.java:308)       在org.eclipse.swt.widgets.Decorations.WM_CLOSE(Decorations.java:1696)       在org.eclipse.swt.widgets.Control.windowProc(Control.java:4612)       在org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)       在org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)       在org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)       在org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)       在org.eclipse.swt.internal.win32.OS.DefWindowProcW(本机方法)       在org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)       在org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:498)       在org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)       在org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)       在org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)       在org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)       在org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)       在org.eclipse.swt.internal.win32.OS.DefWindowProcW(本机方法)       在org.eclipse.swt.internal.win32.OS.DefWindowProc(OS.java:2544)       在org.eclipse.swt.widgets.Shell.callWindowProc(Shell.java:498)       在org.eclipse.swt.widgets.Control.windowProc(Control.java:4705)       在org.eclipse.swt.widgets.Canvas.windowProc(Canvas.java:339)       在org.eclipse.swt.widgets.Decorations.windowProc(Decorations.java:1626)       在org.eclipse.swt.widgets.Shell.windowProc(Shell.java:2075)       在org.eclipse.swt.widgets.Display.windowProc(Display.java:5023)       at org.eclipse.swt.internal.win32.OS.DispatchMessageW(Native Method)       在org.eclipse.swt.internal.win32.OS.DispatchMessage(OS.java:2549)       在org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3759)       在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine $ 9.run(PartRenderingEngine.java:1151)       在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)       在org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1032)       在org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:148)       在org.eclipse.ui.internal.Workbench $ 5.run(Workbench.java:636)       在org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332)       在org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:579)       在org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:150)       在org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:135)       在org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)       在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)       在org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)       在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:380)       在org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:235)       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)       at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)       at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)       at java.lang.reflect.Method.invoke(Unknown Source)       在org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:648)       在org.eclipse.equinox.launcher.Main.basicRun(Main.java:603)       在org.eclipse.equinox.launcher.Main.run(Main.java:1465)

  

2 个答案:

答案 0 :(得分:1)

我刚刚下载了该版本,制作了一份报告并选择了RUN>查看报告>在Web Viewer中,它在我的Windows 7计算机上的Chrome中打开。

您可以使用以下步骤选择要用于报告预览的浏览器:

  1. 在窗口中>偏好>报告设计>预览确认已启用始终使用外部浏览器。
  2. 在窗口中>偏好>一般> Web浏览器选择使用外部浏览器。
  3. 在外部网络浏览器中,选择浏览器或创建指向您要使用的浏览器的链接。
  4. 如果你使用旧的项目文件夹,你可能还想尝试创建一个新项目,因为那里有一些可能设置不正确的默认设置。

答案 1 :(得分:1)

请从https://download.eclipse.org/birt/downloads/build.php?build=R-R1-4.8.0-201806261756下载文件birt-report-designer-all-in-one-4.8.0-20180626-win32.win32.x86_64.zip 解压缩zip文件 从文件夹插件复制所有org.eclipse.jetty。*文件到Eclipse文件夹中。 重新启动Eclipse。 它对我有用(Eclipse 2019-09),尽管预览中仍然有一些问题