Jump to content
  • On designer : Freezing and errors when <image-expression> is not a string


    sebycarta
    Assigned User morlandin
    CategoryBug report
    Component: 35126
    PriorityNormal
    ReproducibilityAlways
    ResolutionFixed
    SeverityMajor
    StatusResolved
    Versionv6.3

    I have to pass some images in java.awt,Image format, then pass them as parameter to component.

    The problem is that, with this image component , the report designer is terrible slow on load report and on every action ( like modify, save, ecc...ecc...), and eclipse freeze for 10 / 15 seconds, is impossible to work in this conditions!

     

    After every freeze, my terminal show this:

     

    ---------------------------------------------------

    Start ClassPath Mapping

    Mapping: Directory /home/seby/Eclipse-WorkSpaces/Artico/Projects/ArticoEJBs/build/classes

    Mapping: Directory /home/seby/Eclipse-WorkSpaces/Artico/Projects/ArticoEJBsClient/build/classes

    Mapping: Archive: file:/home/seby/Eclipse-WorkSpaces/Artico/Library/ckeditor/ckez.jar

    Mapping: Archive: file:/home/seby/Eclipse-WorkSpaces/Artico/Library/image plugin/common-lang-3.2.1.jar

    Mapping: Archive: file:/home/seby/Eclipse-WorkSpaces/Artico/Library/image plugin/common-io-3.2.1.jar

    Mapping: Archive: file:/home/seby/Eclipse-WorkSpaces/Artico/Library/image plugin/servlet-3.0.2.jar

    Mapping: Archive: file:/home/seby/Eclipse-WorkSpaces/Artico/Library/image plugin/imageio-core-3.2.1.jar

    Mapping: Archive: file:/home/seby/Eclipse-WorkSpaces/Artico/Library/image plugin/common-image-3.2.1.jar

     

    ..............

    ............. with every jar of my projects ....

     

    End ClassPath Mapping

    java.lang.NullPointerException

    at net.sf.jasperreports.eclipse.util.KeyValue.hashCode(KeyValue.java:41)

    at java.util.HashMap.hash(HashMap.java:338)

    at java.util.HashMap.get(HashMap.java:556)

    at com.jaspersoft.studio.jasper.LazyImageConverter.getImageInfo(LazyImageConverter.java:250)

    at com.jaspersoft.studio.jasper.LazyImageConverter.getRenderable(LazyImageConverter.java:233)

    at com.jaspersoft.studio.jasper.LazyImageConverter.convertImage(LazyImageConverter.java:196)

    at com.jaspersoft.studio.editor.gef.figures.ImageFigure.visitElement(ImageFigure.java:45)

    at com.jaspersoft.studio.editor.gef.figures.ImageFigure.draw(ImageFigure.java:66)

    at com.jaspersoft.studio.editor.gef.figures.ComponentFigure.paint(ComponentFigure.java:87)

    at com.jaspersoft.studio.editor.gef.figures.ReportPageFigure.paintChildren(ReportPageFigure.java:173)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1209)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientArea(ScalableFreeformLayeredPane.java:60)

    at com.jaspersoft.studio.editor.java2d.J2DScalableFreeformLayeredPane.paintClientArea(J2DScalableFreeformLayeredPane.java:51)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1200)

    at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:160)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at com.jaspersoft.studio.editor.java2d.J2DUpdateManager.paintAll(J2DUpdateManager.java:125)

    at com.jaspersoft.studio.editor.java2d.J2DLightweightSystem.paint(J2DLightweightSystem.java:66)

    at org.eclipse.draw2d.LightweightSystem$2.handleEvent(LightweightSystem.java:110)

    at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84)

    at org.eclipse.swt.widgets.Display.sendEvent(Display.java:5219)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1340)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1366)

    at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1349)

    at org.eclipse.swt.widgets.Control.gtk_expose_event(Control.java:3382)

    at org.eclipse.swt.widgets.Composite.gtk_expose_event(Composite.java:771)

    at org.eclipse.swt.widgets.Canvas.gtk_expose_event(Canvas.java:182)

    at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1993)

    at org.eclipse.swt.widgets.Control.windowProc(Control.java:5819)

    at org.eclipse.swt.widgets.Display.windowProc(Display.java:5490)

    at org.eclipse.swt.internal.gtk.OS._gtk_main_do_event(Native Method)

    at org.eclipse.swt.internal.gtk.OS.gtk_main_do_event(OS.java:9555)

    at org.eclipse.swt.widgets.Display.eventProc(Display.java:1275)

    at org.eclipse.swt.internal.gtk.OS._gdk_window_process_all_updates(Native Method)

    at org.eclipse.swt.internal.gtk.OS.gdk_window_process_all_updates(OS.java:6110)

    at org.eclipse.swt.widgets.Display.update(Display.java:5442)

    at org.eclipse.swt.widgets.Display.runDeferredLayouts(Display.java:4579)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4130)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)

    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)

    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

    java.lang.NullPointerException

    at net.sf.jasperreports.eclipse.util.KeyValue.hashCode(KeyValue.java:41)

    at java.util.HashMap.hash(HashMap.java:338)

    at java.util.HashMap.get(HashMap.java:556)

    at com.jaspersoft.studio.jasper.LazyImageConverter.getImageInfo(LazyImageConverter.java:250)

    at com.jaspersoft.studio.jasper.LazyImageConverter.getRenderable(LazyImageConverter.java:233)

    at com.jaspersoft.studio.jasper.LazyImageConverter.convertImage(LazyImageConverter.java:196)

    at com.jaspersoft.studio.editor.gef.figures.ImageFigure.visitElement(ImageFigure.java:45)

    at com.jaspersoft.studio.editor.gef.figures.ImageFigure.draw(ImageFigure.java:66)

    at com.jaspersoft.studio.editor.gef.figures.ComponentFigure.paint(ComponentFigure.java:87)

    at com.jaspersoft.studio.editor.gef.figures.ReportPageFigure.paintChildren(ReportPageFigure.java:173)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1209)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.ScalableFreeformLayeredPane.paintClientArea(ScalableFreeformLayeredPane.java:60)

    at com.jaspersoft.studio.editor.java2d.J2DScalableFreeformLayeredPane.paintClientArea(J2DScalableFreeformLayeredPane.java:51)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1200)

    at org.eclipse.draw2d.Viewport.paintClientArea(Viewport.java:160)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.Figure.paintChildren(Figure.java:1170)

    at org.eclipse.draw2d.Figure.paintClientArea(Figure.java:1205)

    at org.eclipse.draw2d.Figure.paint(Figure.java:1120)

    at org.eclipse.draw2d.DeferredUpdateManager.repairDamage(DeferredUpdateManager.java:315)

    at com.jaspersoft.studio.editor.java2d.J2DUpdateManager.performUpdate(J2DUpdateManager.java:201)

    at org.eclipse.draw2d.DeferredUpdateManager$UpdateRequest.run(DeferredUpdateManager.java:44)

    at org.eclipse.swt.widgets.RunnableLock.run(RunnableLock.java:35)

    at org.eclipse.swt.widgets.Synchronizer.runAsyncMessages(Synchronizer.java:182)

    at org.eclipse.swt.widgets.Display.runAsyncMessages(Display.java:4528)

    at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:4146)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine$4.run(PartRenderingEngine.java:1121)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

    at org.eclipse.e4.ui.internal.workbench.swt.PartRenderingEngine.run(PartRenderingEngine.java:1022)

    at org.eclipse.e4.ui.internal.workbench.E4Workbench.createAndRunUI(E4Workbench.java:150)

    at org.eclipse.ui.internal.Workbench$5.run(Workbench.java:687)

    at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:336)

    at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:604)

    at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:148)

    at org.eclipse.ui.internal.ide.application.IDEApplication.start(IDEApplication.java:138)

    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:134)

    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:104)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:388)

    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:243)

    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

    at java.lang.reflect.Method.invoke(Method.java:498)

    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:673)

    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:610)

    at org.eclipse.equinox.launcher.Main.run(Main.java:1519)

    at org.eclipse.equinox.launcher.Main.main(Main.java:1492)

     

    ...........................

    ...........................

    .........................

    null pointer error repeated some times........

    ---------------------------------------------------

     

    There is no option to not display/preview images on jasper designer ?

     

     

     

     

     



    User Feedback

    Recommended Comments


×
×
  • Create New...