Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » BIRT » Insufficient data for an image
Insufficient data for an image [message #645231] Thu, 16 December 2010 01:47 Go to next message
Missing name Missing name is currently offline Missing name Missing name
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 02:54]

Report message to a moderator

Re: Insufficient data for an image [message #645368 is a reply to message #645231] Thu, 16 December 2010 13:42 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 13:45 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 #645411 is a reply to message #645370] Fri, 17 December 2010 02:50 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
Hello,

options.setSupportedImageFormats("JPG;PNG;BMP;SVG");


didn't help. I will increase logging with the Level.FINEST. If there is a bug I will open the bug report (if it is not too time consuming).

BR,

Mika
Re: Insufficient data for an image [message #645487 is a reply to message #645411] Fri, 17 December 2010 07:44 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
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 07:57]

Report message to a moderator

Re: Insufficient data for an image [message #645512 is a reply to message #645487] Fri, 17 December 2010 09:55 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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 #645712 is a reply to message #645512] Mon, 20 December 2010 02:05 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
Hello,

My servlet is based on the servlet:

http://wiki.eclipse.org/Servlet_Example_%28BIRT%29_2.1


-> BIRT 2.5 example project Media:WebReport2.5.zip

At this moment I think I can't post the actual code, because it is our customer code.

I think the problem is with the Servlet code or/and BIRT libraries/plugins. When I run the report with the JUnit test in test and production environments I got two different pdf:s (when I compare them in the binary level). The test pdf is working and production pdf is not working with the Adobe reader.

So if you could suggest some new things to test it would be nice.

BR,

Mika
Re: Insufficient data for an image [message #645715 is a reply to message #645512] Mon, 20 December 2010 02:38 Go to previous messageGo to next message
Missing name Missing name is currently offline Missing name Missing name
Messages: 55
Registered: July 2010
Member
Hello,

The problem was with the pictures! The production build script copied the pictures so that they was corrupted. Smile

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. Smile Smile

BR,

Mika
Re: Insufficient data for an image [message #645806 is a reply to message #645715] Mon, 20 December 2010 11:20 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
Messages: 9167
Registered: July 2009
Senior Member

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
Previous Topic:grid visibility using deapi
Next Topic:Iportal
Goto Forum:
  


Current Time: Tue Jul 29 13:00:16 EDT 2014

Powered by FUDForum. Page generated in 0.02294 seconds