Why does JasperStudio declare an image as an object?

0

I ask, because that causes a rather obscure failure when you attempt to run the report on the Jasper Reports Server. 

The error states that the report may have been moved etc.

What actually happens is that Jasper Server doesn't know what to do with (in particular) how to render an "object" which is what Studio "just does."

The solution/workaround I found is to change the field definition thusly:

FROM:     <field name="labslip" class="java.lang.Object">

TO: <field name="labslip" class="java.awt.Image">

So, my question comes down to this...

Why, when you use Studio to put an image on the report page does it declare it as an Object?

This seems really sketchy behaviour. Either that, or I'm not doing it the "right way" whatever that is.

andrew_50's picture
Joined: Jan 25 2018 - 8:33am
Last seen: 2 weeks 2 days ago

1 Answer:

0

That's just a default setting because an image can be specified in several different ways.

hozawa's picture
41974
Joined: Apr 24 2010 - 4:31pm
Last seen: 4 hours 11 min ago
Feedback
randomness