Jump to content
We've recently updated our Privacy Statement, available here ×

markusin77

Members
  • Posts

    5
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Security Advisories

Downloads

Everything posted by markusin77

  1. Hi all, I need to customize the colors in a XYBarChart depending on the content of the series. This content in additional needs to be translated into the destination language. I created a customized Java class with the following code: public void customize(JFreeChart chart, JRChart jasperChart) { final XYPlot plot = (XYPlot) chart.getPlot(); XYBarRenderer r = (XYBarRenderer) plot.getRenderer(); final XYDataset ds = plot.getDataset(); CategoryTableXYDataset[] dss = new CategoryTableXYDataset[plot .getSeriesCount()]; Color[] colors = new Color[plot.getSeriesCount()]; ResourceBundle rb = (ResourceBundle) getParameterValue("REPORT_RESOURCE_BUNDLE"); for (int i = 0; i < plot.getSeriesCount(); i++) { CategoryTableXYDataset dsNew = new CategoryTableXYDataset(); // key determines the color String key = ds.getSeriesKey(i).toString().replaceAll("#", ""); String value = rb.getString(key); colors[i] = colorMap.get(key); for (int j = 0; j < ds.getItemCount(i); j++) { Number x = ds.getX(i, j); Number y = ds.getY(i, j); // translated value will be added in dataset dsNew.add(x, y, value, false); } dss[i] = dsNew; } for (int s = 0; s < dss.length; s++) { plot.setDataset(s, dss[s]); //overriding dataset r.setSeriesFillPaint(s, colors[s]); r.setSeriesItemLabelPaint(s, colors[s]); r.setSeriesOutlinePaint(s, colors[s]); r.setSeriesPaint(s, colors[s]); }}[/code] From the result I see the content is translated correctly in the output chart, but all the series have the same colors. Any idea what steps in the code I missed. thanks for your help Markus
  2. Hello, I am trying to run the jasperreports libraries inside the servlet container (Jetty). The steps I implemented is first compiling the reports and second filling the reports with data from a JDBC connection. The first step is elaborated without exceptions, where calling JasperCompileManager, but in the second step a got a NoClassDefFoundError: net/sf/jasperreports/engine/JasperFillManager. I ensured the jar file is in the classpath (I am using jetty:run maven plugin). my code here: public void createReportFile(PostgresConnector destConnector, Integer inspectionId) { try { File jrxmlFile = new File(Thread.currentThread().getContextClassLoader().getResource("jasper/jrxml/main.jrxml").toURI()); File jasperFile = new File(Thread.currentThread().getContextClassLoader().getResource("jasper/jrxml/main.jasper").toURI()); // Compiling jasper report logger.info("Compiling report file " + jasperFile.getAbsolutePath()); JasperCompileManager.compileReportToFile(jrxmlFile.getAbsolutePath(), jasperFile.getAbsolutePath()); // Create arguments Map<String,Object> params = new HashMap<String,Object>(); params.put("id_inspection", inspectionId); params.put("userLocale", "it_IT"); params.put("use_signature", Boolean.FALSE); params.put("headquarter", "Bolzano, il"); // Filling data into jasper file logger.info("Filling data into report file " + jasperFile.getAbsolutePath()); JasperPrint jprint = (JasperPrint) JasperFillManager.fillReport(jasperFile.getAbsolutePath(), params, destConnector.getConnection()); // Export pdf file String reportPath = config.getProperty("server.reportDirectory"); Inspection inspection = model.getInspection(inspectionId); String pdfFileName = reportPath + inspection.getReportFilename(); logger.info("Creating pdf report file " + pdfFileName); JasperExportManager.exportReportToPdfFile(jprint, pdfFileName); } catch (Exception e) { logger.warn("Error when generating jasper report", e); } }[/code]and this is the stack trace: [WARNING] Error for /inspector/configjava.lang.NoClassDefFoundError: net/sf/jasperreports/engine/JasperFillManager at com.hydrosafety.inspector.manager.controller.Controller.createReportFile(Controller.java:1329) at com.hydrosafety.inspector.manager.servlets.ConfigServlet.processGenerateReportRequest(ConfigServlet.java:225) at com.hydrosafety.inspector.manager.servlets.ConfigServlet.processRequest(ConfigServlet.java:166) at com.hydrosafety.inspector.manager.servlets.ConfigServlet.doGet(ConfigServlet.java:112) at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:835) at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:583) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1158) at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:511) at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1090) at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:213) at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:109) at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:119) at org.eclipse.jetty.server.Server.handle(Server.java:517) at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:308) at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:242) at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:75) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceAndRun(ExecuteProduceConsume.java:213) at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:147) at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:654) at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:572) at java.lang.Thread.run(Thread.java:745)Caused by: java.lang.ClassNotFoundException: net.sf.jasperreports.engine.JasperFillManager at org.codehaus.plexus.classworlds.strategy.SelfFirstStrategy.loadClass(SelfFirstStrategy.java:50) at org.codehaus.plexus.classworlds.realm.ClassRealm.unsynchronizedLoadClass(ClassRealm.java:271) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:247) at org.codehaus.plexus.classworlds.realm.ClassRealm.loadClass(ClassRealm.java:239) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:487) at org.eclipse.jetty.webapp.WebAppClassLoader.loadClass(WebAppClassLoader.java:428) ... 30 more[/code]thanks for any suggestion Markus
  3. Hello, Is it possible to set the Locale through a String parameter e.g. "de_DE" passed by the user? For me it is not clear, if setting it in a Scriptlet is the correct way. Right now I implemented a Scriptlet class that extends net.sf.jasperreports.engine.JRDefaultScriptlet. I wanted to do this in the method: beforeReportInit(). There I see two setter methods. The method setData() and setVariableValue. Otherwise there is the property parametersMap. In that case the value is a JRFillParameter object, but without constructor. So I am stucked at that point. any suggestion would be appreciated thanks regards Markus
  4. Every time I run Jaspersoft Studio Version (5.6.2) after opening a jrxml file it is not responding anymore. This happens after I did an update of the jdk My Environment is: Arch-linux 64 bit Java version: openjdk version "1.8.0_31", also tried with Oracle jdk 7 Any idea what is going wrong. Thanks for your suggestion Markus Below there is displayed the output from the shell groovy.lang.MissingMethodException: No signature of method: Script8.$F()is applicable for argument types: (Script8$_run_closure1) values:[script8$_run_closure1@41f0b044]Possible solutions: is(java.lang.Object), run(), run(), any(), any(groovy.lang.Closure), use([Ljava.lang.Object;) at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:55) at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.callCurrent(PogoMetaClassSite.java:78) at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:49) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:133) at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:141) at Script8.run(Script8.groovy:1) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:518) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:556) at groovy.lang.GroovyShell.evaluate(GroovyShell.java:527) at com.jaspersoft.studio.utils.expr.GroovyInterpretter.eval(GroovyInterpretter.java:74) at com.jaspersoft.studio.utils.expr.AInterpreter.interpretExpression(AInterpreter.java:83) at com.jaspersoft.studio.utils.expr.GroovyInterpretter.interpretExpression(GroovyInterpretter.java:69) at com.jaspersoft.studio.utils.ExpressionInterpreter.interpretExpression(ExpressionInterpreter.java:70) at com.jaspersoft.studio.utils.ExpressionUtil.cachedExpressionEvaluation(ExpressionUtil.java:146) at com.jaspersoft.studio.jasper.LazyImageConverter.evaluatedExpression(LazyImageConverter.java:259) at com.jaspersoft.studio.jasper.LazyImageConverter.access$0(LazyImageConverter.java:257) at com.jaspersoft.studio.jasper.LazyImageConverter$1.run(LazyImageConverter.java:278) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)[/code] And in the log file I found the following Stack trace: !ENTRY com.jaspersoft.studio 1 0 2015-03-13 20:27:10.299!MESSAGE Starting JaspersoftStudio bundle - Version: 5.6.2.final!SESSION 2015-03-13 20:28:35.746 -----------------------------------------------eclipse.buildId=unknownjava.version=1.8.0_31java.vendor=Oracle CorporationBootLoader constants: OS=linux, ARCH=x86_64, WS=gtk, NL=en_USFramework arguments: -dataCommand-line arguments: -os linux -ws gtk -arch x86_64 -data!ENTRY org.eclipse.core.resources 2 10035 2015-03-13 20:28:38.885!MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.!ENTRY com.jaspersoft.studio 1 0 2015-03-13 20:28:39.936!MESSAGE Starting JaspersoftStudio bundle - Version: 5.6.2.final!ENTRY org.eclipse.ui.workbench 4 0 2015-03-13 20:32:18.373!MESSAGE WARNING: Prevented recursive attempt to activate part org.eclipse.ui.navigator.ProjectExplorer while still in the middle of activating part com.jaspersoft.studio.editor.JrxmlEditor!STACK 0java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.navigator.ProjectExplorer while still in the middle of activating part com.jaspersoft.studio.editor.JrxmlEditor at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3599) at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3172) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:281) at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:239) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1281) at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1582) at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2855) at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2791) at org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:689) at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:1821) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1761) at org.eclipse.swt.widgets.Control.windowProc(Control.java:5116) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3476) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4377) 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:8317) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1193) at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(OS.java:9242) at org.eclipse.swt.printing.Printer.getPrinterList(Printer.java:100) at org.eclipse.gef.ui.actions.PrintAction.calculateEnabled(PrintAction.java:45) at org.eclipse.gef.ui.actions.WorkbenchPartAction.isEnabled(WorkbenchPartAction.java:123) at org.eclipse.jface.commands.ActionHandler.isEnabled(ActionHandler.java:141) at org.eclipse.core.commands.Command.isEnabled(Command.java:862) at org.eclipse.core.commands.Command.setHandler(Command.java:1025) at org.eclipse.ui.internal.handlers.HandlerAuthority.updateCommand(HandlerAuthority.java:459) at org.eclipse.ui.internal.handlers.HandlerAuthority.processChangedCommands(HandlerAuthority.java:638) at org.eclipse.ui.internal.handlers.HandlerAuthority.access$1(HandlerAuthority.java:610) at org.eclipse.ui.internal.handlers.HandlerAuthority$1.propertyChange(HandlerAuthority.java:175) at org.eclipse.ui.internal.services.EvaluationAuthority$1.run(EvaluationAuthority.java:252) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.services.EvaluationAuthority.fireServiceChange(EvaluationAuthority.java:246) at org.eclipse.ui.internal.services.EvaluationAuthority.endSourceChange(EvaluationAuthority.java:197) at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:135) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:311) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290) at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99) at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:401) at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:300) at org.eclipse.ui.internal.services.WorkbenchSourceProvider$1.partDeactivated(WorkbenchSourceProvider.java:247) at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57) at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115) at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300) at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:134) at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125) at org.eclipse.ui.internal.WWinPartService$WWinListener.partDeactivated(WWinPartService.java:50) at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:115) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55) at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:113) at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:242) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300) at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57) at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136) at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3649) at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:700) at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:672) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2970) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2863) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2855) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2806) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2802) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2786) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2777) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251) at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152) at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:94) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:483) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)!ENTRY org.eclipse.ui.workbench 4 0 2015-03-13 20:45:49.325!MESSAGE WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.ContentOutline while still in the middle of activating part com.jaspersoft.studio.editor.JrxmlEditor!STACK 0java.lang.RuntimeException: WARNING: Prevented recursive attempt to activate part org.eclipse.ui.views.ContentOutline while still in the middle of activating part com.jaspersoft.studio.editor.JrxmlEditor at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3599) at org.eclipse.ui.internal.WorkbenchPage.requestActivation(WorkbenchPage.java:3172) at org.eclipse.ui.internal.PartPane.requestActivation(PartPane.java:281) at org.eclipse.ui.internal.PartPane.handleEvent(PartPane.java:239) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1281) at org.eclipse.swt.widgets.Shell.setActiveControl(Shell.java:1582) at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2855) at org.eclipse.swt.widgets.Control.gtk_button_press_event(Control.java:2791) at org.eclipse.swt.widgets.Composite.gtk_button_press_event(Composite.java:689) at org.eclipse.swt.widgets.Tree.gtk_button_press_event(Tree.java:1821) at org.eclipse.swt.widgets.Widget.windowProc(Widget.java:1761) at org.eclipse.swt.widgets.Control.windowProc(Control.java:5116) at org.eclipse.swt.widgets.Tree.windowProc(Tree.java:3476) at org.eclipse.swt.widgets.Display.windowProc(Display.java:4377) 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:8317) at org.eclipse.swt.widgets.Display.eventProc(Display.java:1193) at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(OS.java:9242) at org.eclipse.swt.printing.Printer.getPrinterList(Printer.java:100) at org.eclipse.gef.ui.actions.PrintAction.calculateEnabled(PrintAction.java:45) at org.eclipse.gef.ui.actions.WorkbenchPartAction.isEnabled(WorkbenchPartAction.java:123) at org.eclipse.jface.commands.ActionHandler.isEnabled(ActionHandler.java:141) at org.eclipse.core.commands.Command.isEnabled(Command.java:862) at org.eclipse.ui.menus.CommandContributionItem.isEnabled(CommandContributionItem.java:986) at org.eclipse.ui.menus.CommandContributionItem.updateMenuItem(CommandContributionItem.java:628) at org.eclipse.ui.menus.CommandContributionItem.update(CommandContributionItem.java:580) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:880) at org.eclipse.jface.action.MenuManager.update(MenuManager.java:880) at org.eclipse.ui.internal.Workbench.updateActiveWorkbenchWindowMenuManager(Workbench.java:3342) at org.eclipse.ui.internal.Workbench.access$0(Workbench.java:3304) at org.eclipse.ui.internal.Workbench$1.windowActivated(Workbench.java:3269) at org.eclipse.ui.internal.Workbench$14.run(Workbench.java:1007) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.Workbench.fireWindowActivated(Workbench.java:1005) at org.eclipse.ui.internal.WorkbenchWindow$29.shellActivated(WorkbenchWindow.java:3148) at org.eclipse.swt.widgets.TypedListener.handleEvent(TypedListener.java:88) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1300) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1281) at org.eclipse.swt.widgets.Shell.filterProc(Shell.java:731) at org.eclipse.swt.widgets.Display.filterProc(Display.java:1496) at org.eclipse.swt.internal.gtk.OS._gtk_enumerate_printers(Native Method) at org.eclipse.swt.internal.gtk.OS.gtk_enumerate_printers(OS.java:9242) at org.eclipse.swt.printing.Printer.getPrinterList(Printer.java:100) at org.eclipse.gef.ui.actions.PrintAction.calculateEnabled(PrintAction.java:45) at org.eclipse.gef.ui.actions.WorkbenchPartAction.isEnabled(WorkbenchPartAction.java:123) at org.eclipse.jface.commands.ActionHandler.isEnabled(ActionHandler.java:141) at org.eclipse.core.commands.Command.isEnabled(Command.java:862) at org.eclipse.core.commands.Command.setHandler(Command.java:1025) at org.eclipse.ui.internal.handlers.HandlerAuthority.updateCommand(HandlerAuthority.java:459) at org.eclipse.ui.internal.handlers.HandlerAuthority.processChangedCommands(HandlerAuthority.java:638) at org.eclipse.ui.internal.handlers.HandlerAuthority.access$1(HandlerAuthority.java:610) at org.eclipse.ui.internal.handlers.HandlerAuthority$1.propertyChange(HandlerAuthority.java:175) at org.eclipse.ui.internal.services.EvaluationAuthority$1.run(EvaluationAuthority.java:252) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.services.EvaluationAuthority.fireServiceChange(EvaluationAuthority.java:246) at org.eclipse.ui.internal.services.EvaluationAuthority.endSourceChange(EvaluationAuthority.java:197) at org.eclipse.ui.internal.services.EvaluationAuthority.sourceChanged(EvaluationAuthority.java:135) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:311) at org.eclipse.ui.internal.services.ExpressionAuthority.sourceChanged(ExpressionAuthority.java:290) at org.eclipse.ui.AbstractSourceProvider.fireSourceChanged(AbstractSourceProvider.java:99) at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:401) at org.eclipse.ui.internal.services.WorkbenchSourceProvider.checkActivePart(WorkbenchSourceProvider.java:300) at org.eclipse.ui.internal.services.WorkbenchSourceProvider$1.partDeactivated(WorkbenchSourceProvider.java:247) at org.eclipse.ui.internal.PartListenerList$4.run(PartListenerList.java:117) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList.fireEvent(PartListenerList.java:57) at org.eclipse.ui.internal.PartListenerList.firePartDeactivated(PartListenerList.java:115) at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:238) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300) at org.eclipse.ui.internal.WWinPartService.updateActivePart(WWinPartService.java:134) at org.eclipse.ui.internal.WWinPartService.access$0(WWinPartService.java:125) at org.eclipse.ui.internal.WWinPartService$WWinListener.partDeactivated(WWinPartService.java:50) at org.eclipse.ui.internal.PartListenerList2$4.run(PartListenerList2.java:115) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.PartListenerList2.fireEvent(PartListenerList2.java:55) at org.eclipse.ui.internal.PartListenerList2.firePartDeactivated(PartListenerList2.java:113) at org.eclipse.ui.internal.PartService.firePartDeactivated(PartService.java:242) at org.eclipse.ui.internal.PartService.setActivePart(PartService.java:300) at org.eclipse.ui.internal.WorkbenchPagePartList.fireActivePartChanged(WorkbenchPagePartList.java:57) at org.eclipse.ui.internal.PartList.setActivePart(PartList.java:136) at org.eclipse.ui.internal.WorkbenchPage.setActivePart(WorkbenchPage.java:3649) at org.eclipse.ui.internal.WorkbenchPage.internalActivate(WorkbenchPage.java:700) at org.eclipse.ui.internal.WorkbenchPage.activate(WorkbenchPage.java:672) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditorBatched(WorkbenchPage.java:2970) at org.eclipse.ui.internal.WorkbenchPage.busyOpenEditor(WorkbenchPage.java:2863) at org.eclipse.ui.internal.WorkbenchPage.access$11(WorkbenchPage.java:2855) at org.eclipse.ui.internal.WorkbenchPage$10.run(WorkbenchPage.java:2806) at org.eclipse.swt.custom.BusyIndicator.showWhile(BusyIndicator.java:70) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2802) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2786) at org.eclipse.ui.internal.WorkbenchPage.openEditor(WorkbenchPage.java:2777) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:655) at org.eclipse.ui.ide.IDE.openEditor(IDE.java:614) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:360) at org.eclipse.jdt.internal.ui.javaeditor.EditorUtility.openInEditor(EditorUtility.java:167) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:249) at org.eclipse.jdt.ui.actions.OpenAction.run(OpenAction.java:228) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.dispatchRun(SelectionDispatchAction.java:275) at org.eclipse.jdt.ui.actions.SelectionDispatchAction.run(SelectionDispatchAction.java:251) at org.eclipse.jdt.internal.ui.navigator.OpenAndExpand.run(OpenAndExpand.java:50) at org.eclipse.ui.actions.RetargetAction.run(RetargetAction.java:221) at org.eclipse.ui.navigator.CommonNavigatorManager$3.open(CommonNavigatorManager.java:185) at org.eclipse.ui.OpenAndLinkWithEditorHelper$InternalListener.open(OpenAndLinkWithEditorHelper.java:48) at org.eclipse.jface.viewers.StructuredViewer$2.run(StructuredViewer.java:866) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:42) at org.eclipse.ui.internal.JFaceUtil$1.run(JFaceUtil.java:49) at org.eclipse.jface.util.SafeRunnable.run(SafeRunnable.java:175) at org.eclipse.jface.viewers.StructuredViewer.fireOpen(StructuredViewer.java:864) at org.eclipse.jface.viewers.StructuredViewer.handleOpen(StructuredViewer.java:1152) at org.eclipse.ui.navigator.CommonViewer.handleOpen(CommonViewer.java:462) at org.eclipse.jface.viewers.StructuredViewer$6.handleOpen(StructuredViewer.java:1256) at org.eclipse.jface.util.OpenStrategy.fireOpenEvent(OpenStrategy.java:275) at org.eclipse.jface.util.OpenStrategy.access$2(OpenStrategy.java:269) at org.eclipse.jface.util.OpenStrategy$1.handleEvent(OpenStrategy.java:309) at org.eclipse.swt.widgets.EventTable.sendEvent(EventTable.java:84) at org.eclipse.swt.widgets.Widget.sendEvent(Widget.java:1276) at org.eclipse.swt.widgets.Display.runDeferredEvents(Display.java:3562) at org.eclipse.swt.widgets.Display.readAndDispatch(Display.java:3186) at org.eclipse.ui.internal.Workbench.runEventLoop(Workbench.java:2701) at org.eclipse.ui.internal.Workbench.runUI(Workbench.java:2665) at org.eclipse.ui.internal.Workbench.access$4(Workbench.java:2499) at org.eclipse.ui.internal.Workbench$7.run(Workbench.java:679) at org.eclipse.core.databinding.observable.Realm.runWithDefault(Realm.java:332) at org.eclipse.ui.internal.Workbench.createAndRunWorkbench(Workbench.java:668) at org.eclipse.ui.PlatformUI.createAndRunWorkbench(PlatformUI.java:149) at com.jaspersoft.studio.rcp.intro.Application.start(Application.java:94) at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:196) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLauncher.java:110) at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.java:79) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:353) at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:180) 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:483) at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:629) at org.eclipse.equinox.launcher.Main.basicRun(Main.java:584) at org.eclipse.equinox.launcher.Main.run(Main.java:1438) at org.eclipse.equinox.launcher.Main.main(Main.java:1414)[/code]
×
×
  • Create New...