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

BinaryMan

Members
  • Posts

    11
  • Joined

  • Last visited

BinaryMan's Achievements

  1. I'm trying to create a report in JasperSoft Studio, based on the CollectionsJavaBeans. In eclipse, I have created two projects, the first project lat's say it's called "Server", it's a simple server that provide a service ... The second project let's say it's called 'Client', this client will ask the server for the service, using the RMI, and the Spring framework ... I have created a simple client.java class to simply test my projects. The client.java: import java.rmi.RemoteException;import org.springframework.context.ApplicationContext;import org.springframework.context.support.FileSystemXmlApplicationContext;import com.inter.test.TestRemote;public class Client { public static void main(String[] args) throws RemoteException { String file = "D:\myworkspacepath...\src\client-beans.xml"; ApplicationContext context = new FileSystemXmlApplicationContext(file); TheService remote = (TheService )context.getBean("TheService Bean"); System.out.println(remote.isLoginValid("ak")); System.out.println(remote.isLoginValid("test")); }}[/code]I have launched the server, than I have launched the Client.java, and results is as shown below: This result ensures that all worked successfully and no error has detected. Well, after exporting for the 'Client' project, in JasperSoft Studio, I have created a new report and I have assigned data source to be the 'Client' project, be sure that I know very much how to create and use that kind of data source, since I have created a lot of projects based on same kind of data source ... And after designed my report, and when I have launched my report, I got this mistake error: net.sf.jasperreports.engine.JRException: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:482) at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$18(ReportControler.java:457) at com.jaspersoft.studio.editor.preview.view.control.ReportControler$4.run(ReportControler.java:347) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:54)Caused by: java.lang.NoClassDefFoundError: org/springframework/context/ApplicationContext at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Unknown Source) at net.sf.jasperreports.engine.util.JRClassLoader.loadClassForRealName(JRClassLoader.java:157) at net.sf.jasperreports.data.bean.BeanDataAdapterService.contributeParameters(BeanDataAdapterService.java:82) at net.sf.jasperreports.engine.fill.JRFillDataset.contributeParameters(JRFillDataset.java:1017) at net.sf.jasperreports.engine.fill.JRFillDataset.setParameterValues(JRFillDataset.java:627) at net.sf.jasperreports.engine.fill.JRBaseFiller.setParameters(JRBaseFiller.java:1280) at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:900) at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFiller.run(BaseFillHandle.java:120) at java.lang.Thread.run(Unknown Source)Caused by: java.lang.ClassNotFoundException: org.springframework.context.ApplicationContext at java.net.URLClassLoader$1.run(Unknown Source) at java.net.URLClassLoader$1.run(Unknown Source) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) at java.lang.ClassLoader.loadClass(Unknown Source) ... 10 more[/code]I googled a lot, I found much of posts here and in other forums such as (community.jasper), but I don't found any solutions to resolve this error, I hope someone can help me here and sorry if my english isn't good. Best regards.
  2. I know, but i didn't found any element which has the y=5 and his height = 330 and located under a band of height=25 !!!!!
  3. hi, there is two methodes to importing reports in Jasper Reports Server. First method is to publish your report directly from the Jaspersoft Studio, to publishing report: Open the report and click the button with a blue arrow in the upper-right corner of the designer. In the opened window you can browse the server directory structure to choose where to place the report. Select the Reports folder as in the image above. Name the report unit you are creating to contain all the files for the report we are uploading (for this example we can use "ColumnsSample"). Then click Next. In the next step we have to handle the data source. Exporting a report is quite simple, but exporting the data source used to fill the report it isn't so trivial. For exporting the data source we have three options: Data source from repository: the server will use a data source already there it to fill the report, so we will only need to browse the server until we find the wanted data source.Local data sourceDon't use any data source: only the report is exported without any data source connectionWe will use the third option, which is the default one, and click Finish. The report is uploaded to the server and, if there are no errors, an appropriate message will be shown. Second method is to directly import a jasper report into the JasperReports Server, to know how to do it: Login as a admin Right click on the Data Sources under Repository->Reports Select Add Resource->JasperReport I hope it help you, regards.
  4. Hello all, Im trying to create a Jasper Report on JAsperReport Server based on a Report template that i have created in JasperSoft Studio. In jasperSoft Studio i have created a Jasper Report Template, all passed fine and i got the gratulations wizard from JAsperSoft Studio which indicate that my report template has been created successfully. Well, I have uploaded the .JRXML file for my report template under /public/Templates, then i hit 'create report', then i choose to create my report based on a report template and i choose my template, in the final step, i got the following error (as shown in the below picture): The server has encountered an error. Please excuse the inconvenience. Error Message Report design not valid : 1. Warning : Element bottom reaches outside band area : y=5 height=330 band-height=25 Maybe someone will say to refine the design of my report in jasperSoft Studio, but be sure that I've tried all the possibilities ... Can anyone here help me please ... Thanks in advance, Regards.
  5. Hi, try to convert your field to a measure, as shown in the picture below, to Right click on the field , then hit " use as Measure " ... I hope it help you .. best regards
  6. sorry, but are you sure that : "http://{serverIp}:{serverPort}/jasperserver" or its "http://{serverIp}:{serverPort}/jasperserver-pro" ??!!!! maybe here is the error ...
  7. The Jasper file does not contain extraneous resources such as images; the resources must be provided by the host application and located at runtime. Jaspersoft Studio does not save or store an image anywhere, it just uses the file location, translating the absolute path of the image into an expression to locate the file when the report is executed. Thus, i sugest you to create a simple report in JasperSoft Studio which connects to simple JDBC, with column of data from the database and with an image from a specific URL, upload this image icon via a website (gulfup.com) and then got its URL, then simply assign the URL to your image icon in the report. Note that in this case, you need the internet connection, if no internet connection is established so your report won't work, an error will be appear. I hop that help you, best regards
  8. Hello, to solve your problem, try to place in the Column Header a Label element with the text "Label" (without the double quote), and make the same procedure with the second band. Notes: 1) Give the Label element the text "Label" (nothing other than "Label" keyword). 2) you can export your report template and all it's resources by clicking finish. But if they are any errors so maybe your template could not work well when it is used to generate the report. Remember that if you edit the report you must save it before to start the export as template wizard. Otherwise any unsaved change will not be taken from the wizard because it read the report file from your disk, not the one in your editor. I hope this help you, best regards
  9. After a hard work, i got the solution finally, There is two methods to do this: Method 1: Create two domains and in each domain have the same name to the Date column. Method 2: Create a join between the two derived tables, then you can add the two derived table to the Ad hoc editor, and finally put the same field (Date) in the row .... but this method is just to appear the Date in the Multiple Reports Controls and it may execute a wrong Query (join between to tables) to give a wrong data and finally to generate an Untrusted report !!! So be careful when you try to do this method !!! I suggest you to use the first method ... Thanks @ernestoo for your efforts, I don't understand what you mean ! but i think that is the same idea between us !
  10. Dear @mryzhikova, hello I have created two Jasper Reports, Report_1 and Report_2, Report_1 has the control named Date between (filter on date) and Report_2 has also the same control (Date between), but when i try to create a Dashboard which contain the two reports, I click on the "Multiple Report Controls" tab under "Special Content" but no futures appears in it !!! The common Control "Date Between" appears successfully under the "Single Report Controls" tab.... So what is the mistake that i have done ? And how to resolve it ??? In other words, how to make the "Date between' control appear under the "Multiplie Report Controls" ? Thanks in advance.
  11. Hello, Dears,Im newbie in JasperReports Server, I have created two Jasper Reports, Report_1 and Report_2, Report_1 has the control named Date between (filter on date) and Report_2 has also the same control (Date between), but when i try to create a Dashboard which contain the two reports, I click on the "Multiple Report Controls" tab under "Special Content" but no futures appears in it !!! The common Control "Date Between" appears successfully under the "Single Report Controls" tab.... So what is the mistake that i have done ? And how to resolve it ??? In other words, how to make the "Date between' control appear under the "Multiplie Report Controls" ? I googled a lot, but either I used the wrong keywords or there are no simple solutions on the internet. I hope somebody here can help me. Best regards and thanks in advance.
×
×
  • Create New...