Insufficient data for an image [message #645231] |
Thu, 16 December 2010 06:47 |
Mika Tapanainen Messages: 55 Registered: July 2010 |
Member |
|
|
Hello,
I have run successfully my custom BIRT servlet several months, but with real production build script the servlet is not anymore working. There are not exceptions, but when the PDF opens to the browser, I got the "Insufficient data for an image" error message.
Yesterday I used google and find out that this is something about figure formats. If figures are missing the servlet responds pdf correctly (but naturally without figures).
This is somehow strange: I changed partially to the test build script and nothing worked. Then I changed jpg figures to the png figures. The PDF was correct! Then I used the production ant script and png figures didn't work. I changed partially back to the test ant script and png figures are not working.
The system:
Firefox 3.6.12 and ie 7.0.
Os: Microsoft XP
The Acrobat reader 9
WebSphere 6.1
Please help! Thanks,
Mika
[Updated on: Thu, 16 December 2010 07:54] Report message to a moderator
|
|
|
Re: Insufficient data for an image [message #645368 is a reply to message #645231] |
Thu, 16 December 2010 18:42 |
|
Mika,
What log level do you have set? Can you open a bug for this?
Jason
On 12/16/2010 1:47 AM, Mika wrote:
> Hello,
>
> I have run successfully my custom BIRT servlet several months, but with
> real production build script the servlet is not anymore working. There
> are not exceptions, but when the PDF opens to the browser, I got the
> "Insufficient data for an image" error message.
> Yesterday I used google and find out that this is something about figure
> formats. If figures are missing the servlet responds pdf correctly (but
> naturally without figures).
>
> This is somehow strange: I changed partially to the test build script
> and nothing worked. Then I changed jpg figures to the png figures. The
> PDF was correct! Then I used the production ant script and png figures
> didn't work. I changed partially back to the test ant script and png
> figures are not working.
> Please help! Thanks,
>
> Mika
|
|
|
Re: Insufficient data for an image [message #645370 is a reply to message #645368] |
Thu, 16 December 2010 18:45 |
|
BTW do you have this line in your servlet?
options.setSupportedImageFormats("JPG;PNG;BMP;SVG");
On 12/16/2010 1:42 PM, Jason Weathersby wrote:
> Mika,
>
> What log level do you have set? Can you open a bug for this?
>
> Jason
>
> On 12/16/2010 1:47 AM, Mika wrote:
>> Hello,
>>
>> I have run successfully my custom BIRT servlet several months, but with
>> real production build script the servlet is not anymore working. There
>> are not exceptions, but when the PDF opens to the browser, I got the
>> "Insufficient data for an image" error message.
>> Yesterday I used google and find out that this is something about figure
>> formats. If figures are missing the servlet responds pdf correctly (but
>> naturally without figures).
>>
>> This is somehow strange: I changed partially to the test build script
>> and nothing worked. Then I changed jpg figures to the png figures. The
>> PDF was correct! Then I used the production ant script and png figures
>> didn't work. I changed partially back to the test ant script and png
>> figures are not working.
>> Please help! Thanks,
>>
>> Mika
>
|
|
|
|
Re: Insufficient data for an image [message #645487 is a reply to message #645411] |
Fri, 17 December 2010 12:44 |
Mika Tapanainen Messages: 55 Registered: July 2010 |
Member |
|
|
Hello,
With log level Level.FINEST there were not any new log messages. Only messages I got are the INFO messages from the font loading.
I also saved and compared application server profiles in test (which is working) and production environment (which is not working). Only thing what could mean something is that ReportEngine/configuration directories are different. But maybe they are because there are timestamps etc. inside binary files. Also I compared class paths and they are identical.
So the situation seems a little bit difficult. When I used google I found that someone has had same problem at year 2006 and there was no answer that time. See:
http://dev.eclipse.org/newslists/news.eclipse.birt/msg08156. html
So if you find something I should test it would be great.
BR,
Mika
[Updated on: Fri, 17 December 2010 12:57] Report message to a moderator
|
|
|
Re: Insufficient data for an image [message #645512 is a reply to message #645487] |
Fri, 17 December 2010 14:55 |
|
Are you using the same browser to test both?
The error is a PDF error message I believe and not a BIRT message.
Can you post your servlet code?
Jason
On 12/17/2010 7:44 AM, Mika wrote:
> Hello,
>
> With log level Level.FINEST there were not any new log messages. Only
> messages I got are the INFO messages from the font loading.
> I also saved and compared application server profiles in test (which is
> working) and production environment (which is not working). I didn't
> find anything important from the profile comparison. Also I compared
> class paths and they are identical.
>
> So the situation seems a little bit difficult. When I used google I
> found that someone has had same problem at year 2006 and there was no
> answer that time. See:
>
> http://dev.eclipse.org/newslists/news.eclipse.birt/msg08156. html
> So if you find something I should test it would be great.
> BR,
>
> Mika
|
|
|
|
|
Re: Insufficient data for an image [message #645806 is a reply to message #645715] |
Mon, 20 December 2010 16:20 |
|
Mika,
Glad to hear you got it working.
Jason
On 12/20/2010 2:38 AM, Mika wrote:
> Hello,
>
> The problem was with the pictures! The production build script copied
> the pictures so that they was corrupted. :)
> This took about 3 days find out and I didn't compared or tried to open
> the figure files. I was comparing loaded classes etc. :) :)
> BR,
>
> Mika
|
|
|
Powered by
FUDForum. Page generated in 0.04127 seconds