Home
Analytics
Problem while generating Birt Reports on Unix Server
Jochen
Hi,<br />
<br />
I want to create Birt Reports on a Unix Server by using the Birt Report-Engine.<br />
<br />
Iam getting the I/O Exception "org.eclipse.datatools.connectivity.oda.OdaException: <span style='color: red'>An I/O Exception occurred when reading the file./doc1p/reporting/BIRT/WebViewerExample/report/NEC-20110614-PackageKATI.csv"</span><br />
To see the full I/O Exception, check out the file attachments.<br />
<br />
I changed the Flat File Path at the Data Source Options in the Report but it didn't work. (the selected flat file type was not a problem when I generated the reports on my local computer).<br />
<br />
Iam not sure if this problems affects the selected folder at the Data Source Options or if it is somewhere else.<br />
<br />
The file attachments include a screenshot of the I/O Exception, the Config-File which is used by the Generation-File and a screenshot of my current Data Source Options.<br />
<br />
I would be glad about every kind of help.<br />
Thank you<br />
<br />
Jochen<br />
<br />
PS: Attaching the configUnix.ini and gen[...]Report_Unix.sh as .txt, because Iam not permitted to upload this kind of files.
Find more posts tagged with
Comments
Megha Nidhi Dahal
Hi Jochen,
It can be a permission problem. Such things normally comes up in Unix. I suggest you to try by creating the source directory somewhere inside the user's home.
Though it can be a different issue altogether, but it's something worth trying.
Regards
Arpan
Jochen
Hi Arpan,
thank you for your advice. We solved the problem but it wasn't a permission issue.
Yesterday I had help by another guy. The Charset in the report is UTF-8 and the source files weren't, but this wasn't causing any problem under windows. We changed the source files to UTF-8 and didn't have the I/O Exception but another Error saying that the reports require a X11 Windows Server. We searched the Error-Message via google and were directed to the Birt FAQ Charts 2.2. There we found a solution for our problem:
Charts not rendering on Unix systems
Problem: If your chart or report engine runs on a Unix server, there is a chance that no display server is available, and you will get this error when generating a chart:
java.lang.InternalError: Can't connect to X11 window server using ':0.0' as the value of the DISPLAY variable.
Resolution: You can fix this by running your application in headless AWT graphics mode. To specify this, a "-Djava.awt.headless=true" option should be added to the JVM argument list or other server configuration script. Note the headless option is only available since JDK1.4. More information about headless mode can be found here:
http://java.sun.com/developer/technicalArticles/J2SE/Desktop/headless/
Source:
http://wiki.eclipse.org/BIRT/FAQ/Charts2.2
So we "fixed" the genReport.sh and solved the problem.
I hope other people who might have the same problem in the future may find this topic to solve their issue.
Thanks,
Jochen
Megha Nidhi Dahal
Hi Jochen,<br />
<br />
It's a wonderful analysis that you have done and have posted it equally well. I suggest/request you to post it in the Dev-Share which is the knowledge base for such tips/tricks/learning that we accidentally come across <a class='bbc_url' href='
http://www.birt-exchange.org/org/forum/public/style_emoticons/'>http://www.birt-exchange.org/org/forum/public/style_emoticons/</a><#EMO_DIR#>/tongue.gif<br
/>
<br />
regards<br />
Arpan