Birt and Vista - Excpetion? [message #253166] |
Tue, 21 August 2007 16:42  |
Eclipse User |
|
|
|
Originally posted by: calmacroi.myrddin.ch
hi
i'm testing our software which uses still birt 2.0.1 on vista
environment with XML data source as inputsream
now on vista it generates following exception:
Aug 21 15:40:14 SEVERE
ch.spf.PS4Gui.Report.ReportGenerator:prepareRendering -->OdaException on
opening input stream:
org.eclipse.datatools.connectivity.oda.OdaException: Access denied@
org.eclipse.birt.report.data.oda.xml.util.XMLDataInputStream . <init>(XMLDataInputStream.java:61)
ch.spf.PS4Gui.Report.ReportGenerator.prepareRendering(null:- 1)
and here the code which generates the exception:
private void prepareRendering(Image aVariantImage, ImageIcon
aProjectImageIcon, IReportRunnable design) {
mTask = mEngine.createRunAndRenderTask(design);
HashMap contextMap = new HashMap();
FileInputStream fis = null;
try {
fis = new FileInputStream(PS4Gui.getPathReports() +
REPORT_DATA_FILE_OUTPUT_NAME);
XMLDataInputStream xmlStream = new XMLDataInputStream(fis);
contextMap.put("org.eclipse.birt.report.data.oda.xml.inputStream ",
xmlStream);
contextMap.put("org.eclipse.birt.report.data.oda.xml.closeInputStream ",
new Boolean(true));
} catch (FileNotFoundException fex) {
sLog.severe("InputStream File not found: " +
Swinger.getStackTraceString(fex));
} catch (OdaException odaEx) {
sLog.severe("OdaException on opening input stream: " +
Swinger.getStackTraceString(odaEx));
}
is that cause of the vista environment, because i'm not sure if birt
supports vista yet?
i'm very grateful on any help
thanks
patrick
|
|
|
|
|
Re: Birt and Vista - Excpetion? [message #254204 is a reply to message #253311] |
Mon, 03 September 2007 06:03  |
Eclipse User |
|
|
|
Please submit a bug in bugzilla to require this support, thanks.
"Patrick" <calmacroi@myrddin.ch> wrote in message
news:fak3qj$tuu$1@build.eclipse.org...
> hi ichen
> thanks for your reply
>
> the problem is, that all has changed in birt 2.1.2 compared to 2.0.1
> (structure etc.) and we use it within a desktop application with update
> possibility, so its a big invest to update birt yet.
>
> probably it is neccessary to update but i do not understand why birt 2.0.1
> should not support vista - because it runs not directly on the os - it
> talks just to the JVM
>
> cheers
> patrick
>
>
> lchen schrieb:
>> From BIRT2.2.0, Vista is supported.
>> Please try latest build.
>>
>>
>> "Patrick" <calmacroi@myrddin.ch> wrote in message
>> news:fafink$emv$1@build.eclipse.org...
>>> hi
>>>
>>> i'm testing our software which uses still birt 2.0.1 on vista
>>> environment with XML data source as inputsream
>>> now on vista it generates following exception:
>>>
>>> Aug 21 15:40:14 SEVERE
>>> ch.spf.PS4Gui.Report.ReportGenerator:prepareRendering -->OdaException on
>>> opening input stream:
>>> org.eclipse.datatools.connectivity.oda.OdaException: Access denied@
>>>
>>> org.eclipse.birt.report.data.oda.xml.util.XMLDataInputStream . <init>(XMLDataInputStream.java:61)
>>>
>>> ch.spf.PS4Gui.Report.ReportGenerator.prepareRendering(null:- 1)
>>>
>>>
>>> and here the code which generates the exception:
>>>
>>> private void prepareRendering(Image aVariantImage, ImageIcon
>>> aProjectImageIcon, IReportRunnable design) {
>>> mTask = mEngine.createRunAndRenderTask(design);
>>> HashMap contextMap = new HashMap();
>>> FileInputStream fis = null;
>>> try {
>>> fis = new FileInputStream(PS4Gui.getPathReports() +
>>> REPORT_DATA_FILE_OUTPUT_NAME);
>>> XMLDataInputStream xmlStream = new XMLDataInputStream(fis);
>>> contextMap.put("org.eclipse.birt.report.data.oda.xml.inputStream ",
>>> xmlStream);
>>>
>>> contextMap.put("org.eclipse.birt.report.data.oda.xml.closeInputStream ",
>>> new Boolean(true));
>>> } catch (FileNotFoundException fex) {
>>> sLog.severe("InputStream File not found: " +
>>> Swinger.getStackTraceString(fex));
>>> } catch (OdaException odaEx) {
>>> sLog.severe("OdaException on opening input stream: " +
>>> Swinger.getStackTraceString(odaEx));
>>> }
>>>
>>>
>>> is that cause of the vista environment, because i'm not sure if birt
>>> supports vista yet?
>>>
>>> i'm very grateful on any help
>>> thanks
>>> patrick
>>
|
|
|
Powered by
FUDForum. Page generated in 0.07199 seconds