Write error to file.

Description

Is there anyway that the errors can be written to a file somewhere?

I am using JasperPHP, so that I can use JasperStarter in a PHP application. When I run my command at the command line I get:
```
Parameter 'report_type_id' of type 'java.lang.Integer caused java.lang.NumberFormatException For input string: "terwt".
```

I need some way of getting this error to my application. I thought that if there was an option to write this to a file, I could read the file and display the error?

Thanks,

Mick

Environment

Linux (Centos)

Activity

Show:
Shaheed Haque
November 13, 2018, 12:51 PM

I’ve just finished coding support for JAS‌-97. As part of that, all messages from jasperstarter’s “process” command now goes to stderr, including errors and the output of the -v option (if used). stderr can of course be redirected toa file if needed. Does that help?

Note that if the -v option is NOT used, most output seems to consist of errors and warnings. For example, on my system, I see this:

Volker Voßkämper
November 13, 2018, 8:00 PM

With OpenJDK8 there are no warnings. See JAS‌-124

Shaheed Haque
November 27, 2018, 1:15 PM

Since is merged, can this be closed?

Volker Voßkämper
November 27, 2018, 11:29 PM

Can now be achieved by redirecting stderr to file.

Assignee

Volker Voßkämper

Reporter

Mick Byrne

Labels

None

Components

Priority

Minor
Configure