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

edilmar

Members
  • Posts

    31
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

edilmar's Achievements

Contributor

Contributor (5/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Collaborator Rare

Recent Badges

0

Reputation

  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?
×
×
  • Create New...