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

edilmar

Members
  • Posts

    31
  • Joined

  • Last visited

 Content Type 

Profiles

Forum

Events

Featured Visualizations

Knowledge Base

Documentation (PDF Downloads)

Blog

Documentation (Test Area)

Documentation

Dr. Jaspersoft Webinar Series

Downloads

Everything posted by edilmar

  1. For example, create a file jasperstudio.sh like this: export SWT_GTK3=0 /pathtojasperstudio/Jaspersoft Studio &
  2. Hi, I have more than 500 reports made in JasperReports + JasperStudio 6.0.3. I would like to maintain the compatibilty using JasperStudio 6.5.1, but in the path Window => Preferences => Jaspersoft Studio => Compatibility => Source .jrxml Version, appears 6.0.2, 6.1.1, ..., 6.5.1, no 6.0.3. And If I compile using 6.0.2, when I try to run any report in my web application that uses jasperreports.jar 6.0.3, it arises this exception: java.lang.NullPointerException at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:139) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:539) at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:393) at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:715) at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:58) at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:202) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745)]]
  3. Hi, My version is TIB_js-studiocomm_6.5.1.final_linux_x86_64.tgz. Config for ini file is: -startup plugins/org.eclipse.equinox.launcher_1.3.201.v20161025-1711.jar --launcher.library plugins/org.eclipse.equinox.launcher.gtk.linux.x86_64_1.1.401.v20161122-1740 -data @noDefault --launcher.defaultAction openFile -vm features/jre.linux.gtk.x86_64.feature_1.8.0.u144/jre/bin -vmargs -Xms1024m -Xmx2048m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Dfile.encoding=UTF-8 -Djava.net.preferIPv4Stack=true When I select any visual component JS doesn't select anyone with the rectangle, but the properties are updated. The shell becomes echoing many errors like this: (Jaspersoft Studio:9145): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
  4. My enviroment is: CentOS7 (updated) + XFCE + JasperStudio 6.5.1 with 8 Gb RAM, 8 Gb Swap (not used normally), file system is using about 30%. And I also use NetBeans 8.2 that runs fine. Before I had Fedora22 + KDE + JasperStudio 6.0.3 that run fine in the same hardware machine with the same reports. When I open any report, many errors occur in the shell console, any action in the interface is very slow, visualization is poor, I don't get to zoom the report, etc. And if I change to another program and then return to JasperStudio, the "window information" from other program becomes freezed in the report visualization area and I have to close and open the report to continue the work. Below some of the messages echoed in the console: (Jaspersoft Studio:18152): Gtk-WARNING **: Negative content width -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar) (Jaspersoft Studio:18152): Gtk-WARNING **: Negative content width -6 (allocation 1, extents 4x3) while allocating gadget (node toolbar, owner GtkToolbar) (Jaspersoft Studio:18152): Gtk-WARNING **: Allocating size to GtkBox 0x7f401859da10 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? (Jaspersoft Studio:18152): Gtk-WARNING **: Allocating size to GtkBox 0x7f3f54505490 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? (Jaspersoft Studio:18152): Gtk-WARNING **: Allocating size to GtkScrolledWindow 0x7f401ae83570 without calling gtk_widget_get_preferred_width/height(). How does the code know the size to allocate? (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-WARNING **: Negative content height -6 (allocation 1, extents 3x4) while allocating gadget (node button, owner GtkToggleButton) (Jaspersoft Studio:18152): Gtk-WARNING **: Negative content width -12 (allocation 1, extents 6x7) while allocating gadget (node separator, owner GtkSeparatorToolItem) (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar (Jaspersoft Studio:18152): Gtk-CRITICAL **: gtk_box_gadget_distribute: assertion 'size >= 0' failed in GtkScrollbar
  5. Hi, I have two machines: 1st) Fedora19 + Java8 + JasperStudio6.0.3 running fine 2nd) Fedora22 (it was 20, then 21, then 22) + Java8 + JasperStudio6.0.3 (and 6.0.4, and 6.1.0) crashing when opening application. Kernel Linux 4.0.8-300.fc22.x86_64 #1 SMP Fri Jul 10 21:04:56 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux. To solve the problem, I searched the web about to configure this in Jasper Studio.ini or config.ini: org.eclipse.swt.browser.DefaultType=mozilla. It doesn't solve. I look links like: http://community.jaspersoft.com/jaspersoft-studio/issues/3343 http://askubuntu.com/questions/457506/eclipse-adt-crash-failed-to-write-core-dump-core-dumps-have-been-disabled http://community.jaspersoft.com/wiki/crash-when-running-gnome-3 without success. Tried to uninstall Java, install new Java8.0.51 version and change the JVM option in Jasper Studio.ini, same problem. Returned to default internal JVM in Jasper Studio.ini, tried to run the application with root and with normal user, same problem. Many people said this is a problem with some native code from Eclipse SWT, but all attempts to solve didn't work. The JVM echoes always this: # # A fatal error has been detected by the Java Runtime Environment: # # SIGSEGV (0xb) at pc=0x0000003046e339fd, pid=17046, tid=139664876959488 # # JRE version: Java SE Runtime Environment (8.0_51-b16) (build 1.8.0_51-b16) # Java VM: Java HotSpot 64-Bit Server VM (25.51-b03 mixed mode linux-amd64 compressed oops) # Problematic frame: # C [libgobject-2.0.so.0+0x339fd] g_type_check_instance_is_fundamentally_a+0xd # # Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again # # An error report file with more information is saved as: # /opt/lp/TIBCOJaspersoftStudio-6.1.0.final/hs_err_pid17046.log Compiled method (nm) 9539 5204 n 0 org.eclipse.swt.internal.gtk.OS::_g_object_get_qdata (native) total in heap [0x00007f062d123410,0x00007f062d123770] = 864 relocation [0x00007f062d123538,0x00007f062d123580] = 72 main code [0x00007f062d123580,0x00007f062d123768] = 488 oops [0x00007f062d123768,0x00007f062d123770] = 8 # # If you would like to submit a bug report, please visit: # http://bugreport.java.com/bugreport/crash.jsp # The crash happened outside the Java Virtual Machine in native code. # See problematic frame for where to report the bug. #
  6. Hi, I use iReport since first version and I always liked it very much, an easy and clean interface. Now, I downloaded and started using Jaspersoft Studio but its interface is very confused. 1) iReport uses a, unique place for all properties in a JTable view with two columns: property name + value. Studio has many buttons and other components to represent all the properties, becomes very bad to locate some properties. Is there a way to configure it to use the same JTable view layout? The JTable layout is clean, direct and uses much less space in the interface. Look below two layouts: 2) I configured a Source directory path for my reports that are in another place, not the default for the project. But Studio shows both .jrxml and .jasper files causing some confusion. I would like to see just the .jrxml files, and I configured "Inclusion and Exclusion Patterns" but it didn't work.
  7. For a while I use the following "plan B": subreport with normal SQL, pass parameters from main report, including the Connection extracted from EntityManager/Session Hibernate. Then, my report is more and less OO and SQL.
  8. Hi, Environment: Jasper+iReport 4.0.1 + NB7.0.1 + Hibernate3 + JSF2 project. For example, I have a simple report with customers. But each client have many accounts to pay, opened, and I need to show only the accounts respecting many filters (like init/final dates, status, type, etc). If I did using only JDBC, I configured the accounts subreport to use the same Connection from main report and wrote a SQL to process the data, passing all filter options with parameters. But now that I use Hibernate/JSF, I need to pass a list of objects to the report. For main report, it is easy to call a DAO to process the customers need and to return a list of customers. But for subreport I have some doubts: 1) I can't share a Connection, there isn't a Connection. And I don't know if in this case it is possible to create a Data Source Expression. 2) I don't know how to filter the list of "objects accounts to pay", using the parameters. I didn't find in internet a complex sample for subreports. I find only sample reports like "customers + phones", without filtering the subreport. Thanks for any help.
  9. After massive compiler, I tested some of them and they worked fine. The only doubt was that my jasper files became a bit greater than iReports compiled jaspers. Why this? iReports uses something different that my code, more optimized?
  10. Hi friends, Today I updated my jasper files for 3.7.2 version. Then, I had the same problem of recompilling all jrxml files for new jasper. But, now I made the class below to do a massive compiler. I think this may help you... Code:import java.io.File;import java.io.FilenameFilter;import net.sf.jasperreports.engine.JasperCompileManager;public class compileJaspers { static final String EXTJRXML = ".jrxml"; static final String EXTJASPER = ".jasper"; private static class JasperFilter implements FilenameFilter { public JasperFilter() {} @Override public boolean accept(File dir, String name) { return name.endsWith(EXTJRXML); } } public static void main(String[] args) { final String DIRJASPER = "/sistemas/gestor/gestor/princ/view/swing/jasper/"; // args[0] => might be a argument with the subdir to make massive compiler int i; File file = new File(DIRJASPER); String[] jrxmls = file.list(new JasperFilter()); String jasperName; for (i = 0; i < jrxmls.length; i++) { jasperName = jrxmls[i].replaceFirst(EXTJRXML,EXTJASPER); System.out.println("Compiling " + jrxmls[i]); try { JasperCompileManager.compileReportToFile(DIRJASPER+jrxmls[i],DIRJASPER+jasperName); } catch (Exception e) { e.printStackTrace(); System.exit(-1); } } }}
  11. Hi, I have a Swing desktop app with JasperReports + iReports 3.6.1 + NB6.8 + Firebird 2.1.3 + JDK 1.6.17. There is a report that calls a scriptlet with a method beforeDetailEval implemented. My development machine is a Linux Fedora 12, and the production system runs on Windows clients. At my machine, beforeDetailEval is called 2 times for each iteration of the report detail. But at Windows machines in production this method is called only 1 time. Then, I had to create a logic like this "if Linux check double call"... What's the problem here?
  12. Hi friends, Like you did, "massive compile" was a plugin in Jasper older than 3.x. I used it. And I think it would be helpful also to maintain "jasper files" up to date. And, in my case where jasper files have increased in the last years, this would be great! If is there some way to help develop and test this kind of plugin, I'm here to help.
  13. Hi, I had used 3.0.0 for many mounths. Then, today I download 3.6.1 and started using. However, I think it is slower than my previous version to open files. Is this right? Is there some way to optimize this?
  14. Hi, I have a Swing system with JasperReports 3.6.1 and more than 400 report files. Recently I had used 3.0.0. Then, I opened all reports, clicked in "Compile" button from iReports 3.6.1, to generate a new jasper file for this newest version. I would like to know if there is some plugin to recompile all report files with just one command, or a command-line to do this using Jasper Compiler. Other doubt is: when I start using a new Jasper/iReport version, is it needed to recompile all files? Or, if I don't use new resources, Jasper is fully compatible with "old" reports...
  15. Hi, Today I downloaded iReports 3.5.3. However, in previous versions, I had used to save the report files like .xml, not .jrxml. Now, I have more than 300 reports with this extesion. When I open the .xml files in 3.0.0, all works fine, preview/design/etc. But 3.5.3 doesn't understand that the .xml files are normal report files. Is there some way to configure 3.5.3 for this?
  16. But I think there is not only this time increase. I think there is some kind of image process also with size=0, because the behaviour in remote access is bad, VNC-like. When running the same report in a LAN, it is very faster than. The users don't see so much difference in performance when call a normal Swing frame or a JasperViewer report.
  17. Hi friend, I thought "size" property was to define some cache for components, not using images. But if you say "size=0" means no image is used, only pure Swing components to display the report, then I don't know why reports with JasperViewer are so much slower than normal Java Swing frames/dialogs when using WTS clients. I have many normal Swing frames/dialogs with JTextFields, JComboBox, JTables, etc, and WTS renderizes great for remote users. But when the users call reports, JasperViewer frame is very slow, and property size=0 in source code. If you say JasperViewer uses Labels, Lines, Retangules, etc components to create the report viewer, it would renderize like normal Swing windows, faster for users.
  18. Hi friends, I have used JasperReports 1.3.0. Then, I look into JRViewer.java and found in line 124: Code: /** * Maximum size (in pixels) of a buffered image that would be used by {@link JRViewer JRViewer} to render a report page. * <p> * If rendering a report page would require an image larger than this threshold * (i.e. image width x image height > maximum size), the report page will be rendered directly on the viewer component. * </p> * <p> * If this property is zero or negative, buffered images will never be user to render a report page. * By default, this property is set to 0. * </p> */ public static final String VIEWER_RENDER_BUFFER_MAX_SIZE = JRProperties.PROPERTY_PREFIX + "viewer.render.buffer.max.size"; I'll try to change this value to test. But my doubt now is: what's the real meaning of changing this field to a big value, in terms of RAM using? I didn't understand the comments above. And what about better remote WTS clients access?
  19. Hi friend, I know Java is slower than Delphi because byte-code x native code. But my doubt was about a JasperViewer problem, not really Java problem. I look at JRViewer.java code and it renders all the report like a image. This is the problem when running built into Windows TS clients. Because WTS has some tricks to send not "a image" (like VNC) but "system calls to internal API", there is a better performance to remote users. However, JRViewer image generated must be sent without this trick, all image information goes to remote user, much slower than Delphi's QuickReport, that renderizes labels (and other components) in a white background dialog or frame.
  20. Hi, I use JasperReports in my JDK6 Swing app, with JasperViewer, and there are many remote users with WTS clients. I have also a Delphi7 + QuickReport app with WTS clients. When users display JasperViewer, I think it generates an image, not like QuickReport, that creates Windows labels for any component. Problem: users think Java app is slower than Delphi app, because the behaviour of the frame display is like a remote VNC access. Is there some way to solve this? Other way to display Jasper?
  21. Hi, I using Jasper1.3.0 and iReport1.3.0. I have a column which value is calculated by a scriptlet method. Then, I put in "Text Field Expression" the following: Code: $P{REPORT_SCRIPTLET}.calcSaldoReal() But, when the value calculated is < 0, I have to put red color. I don't know how to do this in scriptlet, before returning the value calculated. In scriptlet, I would like to make a test like this: Code:[code] if (saldoReal < 0) { // change color to red } return saldoReal
  22. Thanks for your help. If I put something like this in the subreport SQL: select ... from ... where $P{filters} then iReport 1.3.0 says that the SQL is wrong. Does this work in running time?
×
×
  • Create New...