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

henryho

Members
  • Posts

    16
  • 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 henryho

  1. Hi, I use web service to trigger to run a report in jasperserver and then out stream back the report to my application. But i get the following error back sometimes. Not offen, but sometimes it occurs. Any modification i need to change or is it normal? ------------------- Caused by:java.lang.Exception: Attachment not present! at com.jaspererserver.irplugin.wsclient.WSClient.runReport(WSClient:java:434) ------------------- i use the following code to generate report. Jserver.getWSClient().runReport(resourceDescriptor, parameters); Thanks
  2. Hi, I have the same problem that date column is minus one day and i also change the time zone in JasperSever but make no difference. How can u solve this problem ? Many Thanks
  3. Hi, I do not use Orion as the application sever, i deploy JasperServer into Oracle Application Server. Everything is ok except the scheduler cannot get the JNDI connection. Sometimes after the deployment, the scheduler can find the JNDI only at the first "run" of the report. But if i use JDBC from the JasperServer repository to schedule a report, it is ok. Any other things i am missing to set on quatz? Thanks
  4. Hi, I deploy the jasperserver 3.1 in order to use the MSSQL database as the jasperserver database. I have created a JNDI for report connection and also set the JNDI in the application server, I can retrieve the report correctly by using Jasperserver interface. However, when i run the "scheduled job", some strange thing happen. Sometimes, the scheduler cannot generate the report and the log said it cannot find the JNDI connection, but sometimes it works. The error message is listed below. I have added the jndiURL in the "js.quartz.properties" as below. ---------------------------------------------------------------------------------------------- org.quartz.jobStore.dataSource=myDs org.quartz.dataSource.myDs.jndiURL=jdbc/database-db-ds ---------------------------------------------------------------------------------------------- Is there anything i need to setting in jasper server also? Thanks for your help Code:18:38:37,936 ERROR ReportExecutionJob,JasperServerScheduler_Worker-1:259 - An error occurred while executing the report.com.jaspersoft.jasperserver.api.JSExceptionWrapper: javax.naming.NameNotFoundException: java:comp/env/jdbc/database-db-ds not found (not inside a J2EE module, for instance a Web-App, EJB, or Application-Client) at com.evermind.server.ApplicationContext.newEnvironmentContextMissingException(ApplicationContext.java:373) at com.evermind.server.ApplicationContext.getEnvironmentContext(ApplicationContext.java:359) at com.evermind.server.ApplicationContext.lookupInJavaContext(ApplicationContext.java:306) at com.evermind.server.ApplicationContext.unprivileged_lookup(ApplicationContext.java:232) at com.evermind.server.ApplicationContext.lookup(ApplicationContext.java:197) at javax.naming.InitialContext.lookup(InitialContext.java:351) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.JndiJdbcReportDataSourceServiceFactory.createService(JndiJdbcReportDataSourceServiceFactory.java:77) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.createDataSourceService(EngineServiceImpl.java:710) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:655) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.fillReport(EngineServiceImpl.java:356) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.executeReport(EngineServiceImpl.java:788) at com.jaspersoft.jasperserver.api.engine.jasperreports.domain.impl.ReportUnitRequest.execute(ReportUnitRequest.java:60) at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.execute(EngineServiceImpl.java:288) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeReport(ReportExecutionJob.java:445) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.executeAndSendReport(ReportExecutionJob.java:373) at com.jaspersoft.jasperserver.api.engine.scheduling.quartz.ReportExecutionJob.execute(ReportExecutionJob.java:192) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
  5. Hi, Can u give me some idea which web service to use in order to get the repository? Actually, i am using the method listed in the JasperServer sample file "ContentResourceDataServlet.java" to get the file saved in the JasperServer repository. But also using the HTTP to get the report export file (PDF, XLS, ..) on the network. Many Thanks.
  6. Hi Sherman, I want to know more information to view TXT report or scheduling TXT report. After i create another bean, for example, TxtExportersBean, any other sources also need to amend? Actually, i use "ReportSchedulerFacade.scheduleJob(job)" to trigger the scheduled report through web services. After adding the TxtExportersBean, may i set the scheduled output file format to 'txt' in order to generate a TXT report and save it into the JS repository? Thank you for your help! Regards, Henry Code:package com.jaspersoft.jasperserver.api.engine.jasperreports.common;import java.io.Serializable;import java.util.Map;public class TxtExportParametersBean extends AbstractExportParameters { private Integer pageHeight; private Integer pageWidth; private Integer characterWidth; private Integer characterHeight; private String lineSeparator; public Integer getPageHeight() { return pageHeight; } public Integer getPageWidth() { return pageWidth; } public Integer getCharacterHeight() { return characterHeight; } public Integer getCharacterWidth() { return characterWidht; } public String getLineSeparator() { return lineSeparator; } public void setPageHeight(Integer pageHeight) { this.pageHeight = pageHeight; } public void getPageWidth(Integer pageWidth) { this.pageWidth = pageWidth; } public void getCharacterHeight(Integer characterHeight) { this.characterHeight = characterHeight; } public void getCharacterWidth(Integer characterWidht) { this.characterWidht = characterWidht; } public void getLineSeparator(String lineSeparator) { this.lineSeparator = lineSeparator; } public Object getObject(){ return this; } public void setPropertyValues(Object object){ if(object instanceof TxtExportParametersBean){ TxtExportParametersBean bean =(TxtExportParametersBean)object; this.setPageHeight(bean.getPageHeight()); this.setPageWidth(bean.getPageWidth()); this.setCharacterHeight(bean.getCharacterHeight()); this.setCharacterWidht(bean.getCharacterWidht()); this.setLineSeparator(bean.getLineSeparator()); } } }
  7. Dears, i have developed a function to run the jasper report and save it in the JasperServer repository using webservice API (ReportSchedulerFacade.scheduleJob). I want to ask can i get the schedule job result? Since some errors may be occured during report generation and report cannot be saved in the repository (such as no access right to write the report into the output URI). I can't verify that the report can be run successfully. Thanks, Henry Ho
  8. Hi, I need to schedule a report and export the report with the filename included "Space" (abc cde_filename) , but when i set the "base output file name" fields with this filename, it shows an error message that it is an invalid filename. Is there any other method in Jasper Server I can use to set this filename? Thank you, Henry
  9. Hi, Can I use jasper report to create a fix length text report? For example : ======================= abc.txt =========================== Name: XXX < 3 Spaces> Age: XX Address: XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX Education Level : XX < 4 Spaces> Working Years : XX . . Thanks.
  10. Hi, I guess that JS use streaming to write the PDF content to the browser when viewing inline PDF file, may i change the title bar message to the "report name" instead of the URL on browser? Or any configuration i can set on JS? Thanks, Henry Ho
  11. Thank you, Lucian, i can run the report as same as the "run now" method using web service!
  12. Hi, Is there any web service method used to execute the report and save it into the repository? ( like the "run now" function in the Jasper Server Scheduler). P.S. I found that there is a class "ReportSchedulerFacade" in the Jasper API, and it is used to schedule a report. Thanks, Henry
  13. Hi, I want to get the scheduled report automatically and sync the content file to other unix file server . I can use the sample ResourceDataServlet to export the content file from jasper server. But other than using servlet to get the content file, is there any command or class to extract the content data from jasper server and form the content file? Or is there any method to execute in Unix server to get the content file in jasper server ? Many Thanks.
×
×
  • Create New...