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

sergey.vishnevetskiy

Members
  • Posts

    23
  • 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

Posts posted by sergey.vishnevetskiy

  1. When you cancel report execution you'll get server error message, but really no error occured and it's confusing for end user. The question is - how to disable error message after report cancelling?

    Error log

    2018-03-12 09:20:46,735 ERROR ErrorPageHandlerAction,http-bio-8080-exec-5:118 - Error UID 0b946252-bbfe-48cc-82f9-a2131ceb720b
    java.lang.NullPointerException
        at com.jaspersoft.webservice.data.query.WebServiceQueryExecuter.getInternalQE(WebServiceQueryExecuter.java:243)
        at com.jaspersoft.webservice.data.query.WebServiceQueryExecuter.cancelQuery(WebServiceQueryExecuter.java:215)
        at net.sf.jasperreports.engine.fill.JRFillContext.cancelRunningQuery(JRFillContext.java:352)
        at net.sf.jasperreports.engine.fill.BaseReportFiller.cancelFill(BaseReportFiller.java:735)
        at net.sf.jasperreports.engine.fill.BaseFillHandle.cancellFill(BaseFillHandle.java:185)
        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$FillHandleCancelable.cancel(EngineServiceImpl.java:1176)
        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl$ReportExecutionStatus.cancel(EngineServiceImpl.java:1257)
        at com.jaspersoft.jasperserver.api.engine.jasperreports.service.impl.EngineServiceImpl.cancelExecution(EngineServiceImpl.java:1354)
        at com.jaspersoft.jasperserver.war.action.ReportExecutionController.viewReportCancel(ReportExecutionController.java:144)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)

    UPD: Data Source - WebServiceQuery

    UPD 1: Definetly have something to do with data source. If change it from WebServiceQuery - works fine.

    UPD2: Even more interesting - cancel really doesn't work. Because if you'll wait enough for execution time after pressing cancel you'll see the report undeneath the error message. And you'll have the opportunity to work with it as normal...

  2. In a similar situation I had to make scriptlet with this

    public String toDateFormat (String dateInput, String desiredFormat, String existingFormat ){    SimpleDateFormat sdfOld = new SimpleDateFormat(existingFormat);    Date date = null;    try {        date = sdfOld.parse(dateInput);    } catch (ParseException e) {        e.printStackTrace();    }    SimpleDateFormat sdfNew = new SimpleDateFormat(desiredFormat);    return String.valueOf(sdfNew.format(date));}[/code]

    to be able affectively manage it. Surely it's reloaded with default formats that I use, to make it simplier, but approach still the same.

  3. Report can be generated with /rest_v2/reportExecutions. After that it can be downloaded with /rest_v2/reportExecutions/<requestId>/exports/<id>/outputResource, and after that it becames unavailable. My question is - where it is stored between creating and downloading? And follow ups - how lond it'll be stored, do I have to worry about cleaning procedures if API will be revealed to enduser, and downloading not guaranted?

    UPD: Experimentally proved that this reports stored roughly for an hour. So no cleaning procedures required. But question persists - where they stored and how storage time regulated?

×
×
  • Create New...