Skip to main content



      Home
Home » Archived » BIRT » BIRT 2.2: IllegalArgumentException for an image (byte[]) in a scripted data set column of type "
BIRT 2.2: IllegalArgumentException for an image (byte[]) in a scripted data set column of type " [message #264755] Thu, 17 January 2008 07:33 Go to next message
Eclipse UserFriend
Hi,

for the display of an image created dynamically by an own java class I use a
table and a scripted data set with one column of type "any".
A ScriptedDataSetEventAdapter sets the column value with a byte[] (as
described in a BIRT example).

For very large images we cut the image into slices and each call of the
method fetch() of the ScriptedDataSetEventAdapter provides a byte[]
representing one image slice.

Using BIRT 2.1 this works fine and all slices are displayed within the
table. The user has the impression that it's only one image.
Using BIRT 2.2 only the first table row (= first image slice) is displayed
and an exception is written into the log file:

WARNING: An error happen during population of data. This might be caused by
including data of mixed type in a column of "ANY" type.
java.lang.IllegalArgumentException: An error happen during population of
data. This might be caused by including data of mixed type in a column of
"ANY" type.
at
org.eclipse.birt.data.engine.script.DataRow.setColumnValue(D ataRow.java:153)
at
org.eclipse.birt.report.engine.script.internal.UpdatableData SetRow.setColumn
Value(UpdatableDataSetRow.java:44)
at
de.visualrules.docgenerator.html.internal.adapter.FlowImageS licesScriptedDat
aSetEventAdapter.fetch(FlowImageSlicesScriptedDataSetEventAd apter.java:97)
at
org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.h
andleFetch(ScriptDataSetScriptExecutor.java:114)
at
org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch (ScriptDataSetRu
ntime.java:102)
at
org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
r$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)
at
org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch (OdiAdapter.java
:150)
at
org.eclipse.birt.data.engine.executor.cache.RowResultSet.nex t(RowResultSet.j
ava:91)
at
org.eclipse.birt.data.engine.executor.cache.ExpandableRowRes ultSet.next(Expa
ndableRowResultSet.java:62)
at
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .populateData(Sm
artCacheHelper.java:288)
at
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .initInstance(Sm
artCacheHelper.java:261)
at
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .getResultSetCac
he(SmartCacheHelper.java:224)
at
org.eclipse.birt.data.engine.executor.cache.SmartCache.<init >(SmartCache.jav
a:68)
at
org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.populateOdiRes
ultSet(PassUtil.java:108)
at
org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.pass(PassUtil.
java:61)
at
org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.doSinglePas
s(PassManager.java:185)
at
org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.pass(PassMa
nager.java:90)
at
org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.populateRes
ultSet(PassManager.java:72)
at
org.eclipse.birt.data.engine.executor.transform.ResultSetPop ulator.populateR
esultSet(ResultSetPopulator.java:208)
at
org.eclipse.birt.data.engine.executor.transform.CachedResult Set. <init>(Cache
dResultSet.java:132)
at
org.eclipse.birt.data.engine.executor.CandidateQuery.execute (CandidateQuery.
java:106)
at
org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
r.executeOdiQuery(PreparedScriptDSQuery.java:223)
at
org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:7
67)
at
org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(Servic
eForQueryResults.java:217)
at
org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResult
s.java:157)
at
org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init >(QueryResultSet
..java:83)
at
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
Engine.java:157)
at
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
Engine.java:117)
at
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractD
ataEngine.java:182)
at
org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(Execut
ionContext.java:1683)
at
org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(Query
ItemExecutor.java:76)
at
org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemE
xecutor.java:61)
at
org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemEx
ecutor.execute(SuppressDuplicateItemExecutor.java:42)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecu
tor.execute(WrappedReportItemExecutor.java:45)
at
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExe
cutor.execute(LocalizedReportItemExecutor.java:33)
at
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(H
TMLBlockStackingLM.java:63)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java
:85)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTM
LReportLayoutEngine.java:106)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderT
ask.java:140)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTas
k.java:68)

**********

Is there already a bugzilla bug report for this behavior?
Does anybody know a workaround for this problem using BIRT 2.2?
Does anybody know an alternative way to integrate large images dynamically
into a BIRT report? It has to be a "dynamic component" within our rptdesign
because we don't know the number of image slices before.

Thanks in advance!
Gerald.
Re: BIRT 2.2: IllegalArgumentException for an image (byte[]) in a scripted data set column of type & [message #264785 is a reply to message #264755] Thu, 17 January 2008 15:16 Go to previous messageGo to next message
Eclipse UserFriend
See http://dev.eclipse.org/newslists/news.eclipse.birt/msg25352. html

Snjeza

Gerald Ploner wrote:
> Hi,
>
> for the display of an image created dynamically by an own java class I use a
> table and a scripted data set with one column of type "any".
> A ScriptedDataSetEventAdapter sets the column value with a byte[] (as
> described in a BIRT example).
>
> For very large images we cut the image into slices and each call of the
> method fetch() of the ScriptedDataSetEventAdapter provides a byte[]
> representing one image slice.
>
> Using BIRT 2.1 this works fine and all slices are displayed within the
> table. The user has the impression that it's only one image.
> Using BIRT 2.2 only the first table row (= first image slice) is displayed
> and an exception is written into the log file:
>
> WARNING: An error happen during population of data. This might be caused by
> including data of mixed type in a column of "ANY" type.
> java.lang.IllegalArgumentException: An error happen during population of
> data. This might be caused by including data of mixed type in a column of
> "ANY" type.
> at
> org.eclipse.birt.data.engine.script.DataRow.setColumnValue(D ataRow.java:153)
> at
> org.eclipse.birt.report.engine.script.internal.UpdatableData SetRow.setColumn
> Value(UpdatableDataSetRow.java:44)
> at
> de.visualrules.docgenerator.html.internal.adapter.FlowImageS licesScriptedDat
> aSetEventAdapter.fetch(FlowImageSlicesScriptedDataSetEventAd apter.java:97)
> at
> org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.h
> andleFetch(ScriptDataSetScriptExecutor.java:114)
> at
> org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch (ScriptDataSetRu
> ntime.java:102)
> at
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
> r$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)
> at
> org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch (OdiAdapter.java
> :150)
> at
> org.eclipse.birt.data.engine.executor.cache.RowResultSet.nex t(RowResultSet.j
> ava:91)
> at
> org.eclipse.birt.data.engine.executor.cache.ExpandableRowRes ultSet.next(Expa
> ndableRowResultSet.java:62)
> at
> org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .populateData(Sm
> artCacheHelper.java:288)
> at
> org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .initInstance(Sm
> artCacheHelper.java:261)
> at
> org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .getResultSetCac
> he(SmartCacheHelper.java:224)
> at
> org.eclipse.birt.data.engine.executor.cache.SmartCache.<init >(SmartCache.jav
> a:68)
> at
> org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.populateOdiRes
> ultSet(PassUtil.java:108)
> at
> org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.pass(PassUtil.
> java:61)
> at
> org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.doSinglePas
> s(PassManager.java:185)
> at
> org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.pass(PassMa
> nager.java:90)
> at
> org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.populateRes
> ultSet(PassManager.java:72)
> at
> org.eclipse.birt.data.engine.executor.transform.ResultSetPop ulator.populateR
> esultSet(ResultSetPopulator.java:208)
> at
> org.eclipse.birt.data.engine.executor.transform.CachedResult Set. <init>(Cache
> dResultSet.java:132)
> at
> org.eclipse.birt.data.engine.executor.CandidateQuery.execute (CandidateQuery.
> java:106)
> at
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
> r.executeOdiQuery(PreparedScriptDSQuery.java:223)
> at
> org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:7
> 67)
> at
> org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(Servic
> eForQueryResults.java:217)
> at
> org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResult
> s.java:157)
> at
> org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init >(QueryResultSet
> .java:83)
> at
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
> Engine.java:157)
> at
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
> Engine.java:117)
> at
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractD
> ataEngine.java:182)
> at
> org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(Execut
> ionContext.java:1683)
> at
> org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(Query
> ItemExecutor.java:76)
> at
> org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemE
> xecutor.java:61)
> at
> org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemEx
> ecutor.execute(SuppressDuplicateItemExecutor.java:42)
> at
> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecu
> tor.execute(WrappedReportItemExecutor.java:45)
> at
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExe
> cutor.execute(LocalizedReportItemExecutor.java:33)
> at
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(H
> TMLBlockStackingLM.java:63)
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java
> :85)
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTM
> LReportLayoutEngine.java:106)
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderT
> ask.java:140)
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTas
> k.java:68)
>
> **********
>
> Is there already a bugzilla bug report for this behavior?
> Does anybody know a workaround for this problem using BIRT 2.2?
> Does anybody know an alternative way to integrate large images dynamically
> into a BIRT report? It has to be a "dynamic component" within our rptdesign
> because we don't know the number of image slices before.
>
> Thanks in advance!
> Gerald.
>
>
Re: BIRT 2.2: IllegalArgumentException for an image (byte[]) in a scripted data set column of type & [message #264867 is a reply to message #264785] Mon, 21 January 2008 03:41 Go to previous messageGo to next message
Eclipse UserFriend
Snjeza,
thank you for the "workaround plugin". Using this plugin the problem doesn't
occur.

Do you know the bugzilla bug report ID for this problem? You wrote that it
is fixed in BIRT 2.3 but I couldn't find it in the bug list.

Gerald.


"Snjezana Peco" <snjeza.peco@gmail.com> schrieb im Newsbeitrag
news:fmod2j$r4f$1@build.eclipse.org...
> See http://dev.eclipse.org/newslists/news.eclipse.birt/msg25352. html
>
> Snjeza
>
> Gerald Ploner wrote:
> > Hi,
> >
> > for the display of an image created dynamically by an own java class I
use a
> > table and a scripted data set with one column of type "any".
> > A ScriptedDataSetEventAdapter sets the column value with a byte[] (as
> > described in a BIRT example).
> >
> > For very large images we cut the image into slices and each call of the
> > method fetch() of the ScriptedDataSetEventAdapter provides a byte[]
> > representing one image slice.
> >
> > Using BIRT 2.1 this works fine and all slices are displayed within the
> > table. The user has the impression that it's only one image.
> > Using BIRT 2.2 only the first table row (= first image slice) is
displayed
> > and an exception is written into the log file:
> >
> > WARNING: An error happen during population of data. This might be caused
by
> > including data of mixed type in a column of "ANY" type.
> > java.lang.IllegalArgumentException: An error happen during population of
> > data. This might be caused by including data of mixed type in a column
of
> > "ANY" type.
> > at
> >
org.eclipse.birt.data.engine.script.DataRow.setColumnValue(D ataRow.java:153)
> > at
> >
org.eclipse.birt.report.engine.script.internal.UpdatableData SetRow.setColumn
> > Value(UpdatableDataSetRow.java:44)
> > at
> >
de.visualrules.docgenerator.html.internal.adapter.FlowImageS licesScriptedDat
> >
aSetEventAdapter.fetch(FlowImageSlicesScriptedDataSetEventAd apter.java:97)
> > at
> >
org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.h
> > andleFetch(ScriptDataSetScriptExecutor.java:114)
> > at
> >
org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch (ScriptDataSetRu
> > ntime.java:102)
> > at
> >
org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
> > r$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch (OdiAdapter.java
> > :150)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.RowResultSet.nex t(RowResultSet.j
> > ava:91)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.ExpandableRowRes ultSet.next(Expa
> > ndableRowResultSet.java:62)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .populateData(Sm
> > artCacheHelper.java:288)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .initInstance(Sm
> > artCacheHelper.java:261)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .getResultSetCac
> > he(SmartCacheHelper.java:224)
> > at
> >
org.eclipse.birt.data.engine.executor.cache.SmartCache.<init >(SmartCache.jav
> > a:68)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.populateOdiRes
> > ultSet(PassUtil.java:108)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.pass(PassUtil.
> > java:61)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.doSinglePas
> > s(PassManager.java:185)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.pass(PassMa
> > nager.java:90)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.populateRes
> > ultSet(PassManager.java:72)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.ResultSetPop ulator.populateR
> > esultSet(ResultSetPopulator.java:208)
> > at
> >
org.eclipse.birt.data.engine.executor.transform.CachedResult Set. <init>(Cache
> > dResultSet.java:132)
> > at
> >
org.eclipse.birt.data.engine.executor.CandidateQuery.execute (CandidateQuery.
> > java:106)
> > at
> >
org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
> > r.executeOdiQuery(PreparedScriptDSQuery.java:223)
> > at
> >
org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:7
> > 67)
> > at
> >
org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(Servic
> > eForQueryResults.java:217)
> > at
> >
org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResult
> > s.java:157)
> > at
> >
org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init >(QueryResultSet
> > .java:83)
> > at
> >
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
> > Engine.java:157)
> > at
> >
org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
> > Engine.java:117)
> > at
> >
org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractD
> > ataEngine.java:182)
> > at
> >
org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(Execut
> > ionContext.java:1683)
> > at
> >
org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(Query
> > ItemExecutor.java:76)
> > at
> >
org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemE
> > xecutor.java:61)
> > at
> >
org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemEx
> > ecutor.execute(SuppressDuplicateItemExecutor.java:42)
> > at
> >
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecu
> > tor.execute(WrappedReportItemExecutor.java:45)
> > at
> >
org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExe
> > cutor.execute(LocalizedReportItemExecutor.java:33)
> > at
> >
org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(H
> > TMLBlockStackingLM.java:63)
> > at
> >
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java
> > :85)
> > at
> >
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTM
> > LReportLayoutEngine.java:106)
> > at
> >
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderT
> > ask.java:140)
> > at
> >
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTas
> > k.java:68)
> >
> > **********
> >
> > Is there already a bugzilla bug report for this behavior?
> > Does anybody know a workaround for this problem using BIRT 2.2?
> > Does anybody know an alternative way to integrate large images
dynamically
> > into a BIRT report? It has to be a "dynamic component" within our
rptdesign
> > because we don't know the number of image slices before.
> >
> > Thanks in advance!
> > Gerald.
> >
> >
Re: BIRT 2.2: IllegalArgumentException for an image (byte[]) in a scripted data set column of type & [message #264917 is a reply to message #264867] Tue, 22 January 2008 09:15 Go to previous messageGo to next message
Eclipse UserFriend
You can take a look at this link
http://dev.eclipse.org/newslists/news.eclipse.birt/msg24548. html
I haven't checked this. I have fixed the issue in BIRT 2.2 for my own needs.

Snjeza

Gerald Ploner wrote:
> Snjeza,
> thank you for the "workaround plugin". Using this plugin the problem doesn't
> occur.
>
> Do you know the bugzilla bug report ID for this problem? You wrote that it
> is fixed in BIRT 2.3 but I couldn't find it in the bug list.
>
> Gerald.
>
>
> "Snjezana Peco" <snjeza.peco@gmail.com> schrieb im Newsbeitrag
> news:fmod2j$r4f$1@build.eclipse.org...
>> See http://dev.eclipse.org/newslists/news.eclipse.birt/msg25352. html
>>
>> Snjeza
>>
>> Gerald Ploner wrote:
>>> Hi,
>>>
>>> for the display of an image created dynamically by an own java class I
> use a
>>> table and a scripted data set with one column of type "any".
>>> A ScriptedDataSetEventAdapter sets the column value with a byte[] (as
>>> described in a BIRT example).
>>>
>>> For very large images we cut the image into slices and each call of the
>>> method fetch() of the ScriptedDataSetEventAdapter provides a byte[]
>>> representing one image slice.
>>>
>>> Using BIRT 2.1 this works fine and all slices are displayed within the
>>> table. The user has the impression that it's only one image.
>>> Using BIRT 2.2 only the first table row (= first image slice) is
> displayed
>>> and an exception is written into the log file:
>>>
>>> WARNING: An error happen during population of data. This might be caused
> by
>>> including data of mixed type in a column of "ANY" type.
>>> java.lang.IllegalArgumentException: An error happen during population of
>>> data. This might be caused by including data of mixed type in a column
> of
>>> "ANY" type.
>>> at
>>>
> org.eclipse.birt.data.engine.script.DataRow.setColumnValue(D ataRow.java:153)
>>> at
>>>
> org.eclipse.birt.report.engine.script.internal.UpdatableData SetRow.setColumn
>>> Value(UpdatableDataSetRow.java:44)
>>> at
>>>
> de.visualrules.docgenerator.html.internal.adapter.FlowImageS licesScriptedDat
> aSetEventAdapter.fetch(FlowImageSlicesScriptedDataSetEventAd apter.java:97)
>>> at
>>>
> org.eclipse.birt.report.engine.script.internal.ScriptDataSet ScriptExecutor.h
>>> andleFetch(ScriptDataSetScriptExecutor.java:114)
>>> at
>>>
> org.eclipse.birt.data.engine.impl.ScriptDataSetRuntime.fetch (ScriptDataSetRu
>>> ntime.java:102)
>>> at
>>>
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
>>> r$CustomDataSet.fetch(PreparedScriptDSQuery.java:257)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.OdiAdapter.fetch (OdiAdapter.java
>>> :150)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.RowResultSet.nex t(RowResultSet.j
>>> ava:91)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.ExpandableRowRes ultSet.next(Expa
>>> ndableRowResultSet.java:62)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .populateData(Sm
>>> artCacheHelper.java:288)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .initInstance(Sm
>>> artCacheHelper.java:261)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.SmartCacheHelper .getResultSetCac
>>> he(SmartCacheHelper.java:224)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.cache.SmartCache.<init >(SmartCache.jav
>>> a:68)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.populateOdiRes
>>> ultSet(PassUtil.java:108)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.pass.PassUti l.pass(PassUtil.
>>> java:61)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.doSinglePas
>>> s(PassManager.java:185)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.pass(PassMa
>>> nager.java:90)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.pass.PassMan ager.populateRes
>>> ultSet(PassManager.java:72)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.ResultSetPop ulator.populateR
>>> esultSet(ResultSetPopulator.java:208)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.transform.CachedResult Set. <init>(Cache
>>> dResultSet.java:132)
>>> at
>>>
> org.eclipse.birt.data.engine.executor.CandidateQuery.execute (CandidateQuery.
>>> java:106)
>>> at
>>>
> org.eclipse.birt.data.engine.impl.PreparedScriptDSQuery$Scri ptDSQueryExecuto
>>> r.executeOdiQuery(PreparedScriptDSQuery.java:223)
>>> at
>>>
> org.eclipse.birt.data.engine.impl.QueryExecutor.execute(Quer yExecutor.java:7
>>> 67)
>>> at
>>>
> org.eclipse.birt.data.engine.impl.ServiceForQueryResults.exe cuteQuery(Servic
>>> eForQueryResults.java:217)
>>> at
>>>
> org.eclipse.birt.data.engine.impl.QueryResults.getResultIter ator(QueryResult
>>> s.java:157)
>>> at
>>>
> org.eclipse.birt.report.engine.data.dte.QueryResultSet.<init >(QueryResultSet
>>> .java:83)
>>> at
>>>
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
>>> Engine.java:157)
>>> at
>>>
> org.eclipse.birt.report.engine.data.dte.DteDataEngine.doExec uteQuery(DteData
>>> Engine.java:117)
>>> at
>>>
> org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.e xecute(AbstractD
>>> ataEngine.java:182)
>>> at
>>>
> org.eclipse.birt.report.engine.executor.ExecutionContext.exe cuteQuery(Execut
>>> ionContext.java:1683)
>>> at
>>>
> org.eclipse.birt.report.engine.executor.QueryItemExecutor.ex ecuteQuery(Query
>>> ItemExecutor.java:76)
>>> at
>>>
> org.eclipse.birt.report.engine.executor.TableItemExecutor.ex ecute(TableItemE
>>> xecutor.java:61)
>>> at
>>>
> org.eclipse.birt.report.engine.internal.executor.dup.Suppres sDuplicateItemEx
>>> ecutor.execute(SuppressDuplicateItemExecutor.java:42)
>>> at
>>>
> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportItemExecu
>>> tor.execute(WrappedReportItemExecutor.java:45)
>>> at
>>>
> org.eclipse.birt.report.engine.internal.executor.l18n.Locali zedReportItemExe
>>> cutor.execute(LocalizedReportItemExecutor.java:33)
>>> at
>>>
> org.eclipse.birt.report.engine.layout.html.HTMLBlockStacking LM.layoutNodes(H
>>> TMLBlockStackingLM.java:63)
>>> at
>>>
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java
>>> :85)
>>> at
>>>
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTM
>>> LReportLayoutEngine.java:106)
>>> at
>>>
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderT
>>> ask.java:140)
>>> at
>>>
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTas
>>> k.java:68)
>>>
>>> **********
>>>
>>> Is there already a bugzilla bug report for this behavior?
>>> Does anybody know a workaround for this problem using BIRT 2.2?
>>> Does anybody know an alternative way to integrate large images
> dynamically
>>> into a BIRT report? It has to be a "dynamic component" within our
> rptdesign
>>> because we don't know the number of image slices before.
>>>
>>> Thanks in advance!
>>> Gerald.
>>>
>>>
>
>
Re: BIRT 2.2: IllegalArgumentException for an image (byte[]) in a scripted data set column of type & [message #361437 is a reply to message #264917] Mon, 31 March 2008 09:42 Go to previous message
Eclipse UserFriend
Originally posted by: crognon.gmail.com

Hello Snjeza,


can I use the modified 2.2.1 plugin with Birt 2.2.2 without problem or
can you tell me what to modify in the data plugin to create an updated
plugin for 2.2.2 release ?

thanks
Cyril

Snjezana Peco wrote:
> You can take a look at this link
> http://dev.eclipse.org/newslists/news.eclipse.birt/msg24548. html
> I haven't checked this. I have fixed the issue in BIRT 2.2 for my own
> needs.
>
> Snjeza
>
> Gerald Ploner wrote:
>> Snjeza,
>> thank you for the "workaround plugin". Using this plugin the problem
>> doesn't
>> occur.
>>
>> Do you know the bugzilla bug report ID for this problem? You wrote
>> that it
>> is fixed in BIRT 2.3 but I couldn't find it in the bug list.
>>
>> Gerald.
>>
>>
>> "Snjezana Peco" <snjeza.peco@gmail.com> schrieb im Newsbeitrag
>> news:fmod2j$r4f$1@build.eclipse.org...
>>> See http://dev.eclipse.org/newslists/news.eclipse.birt/msg25352. html
>>>
>>> Snjeza
>>>
>>> Gerald Ploner wrote:
>>>> Hi,
>>>>
>>>> for the display of an image created dynamically by an own java class I
>> use a
>>>> table and a scripted data set with one column of type "any".
>>>> A ScriptedDataSetEventAdapter sets the column value with a byte[] (as
>>>> described in a BIRT example).
>>>>
>>>> For very large images we cut the image into slices and each call of the
>>>> method fetch() of the ScriptedDataSetEventAdapter provides a byte[]
>>>> representing one image slice.
>>>>
>>>> Using BIRT 2.1 this works fine and all slices are displayed within the
>>>> table. The user has the impression that it's only one image.
>>>> Using BIRT 2.2 only the first table row (= first image slice) is
>> displayed
>>>> and an exception is written into the log file:
>>>>
>>>> WARNING: An error happen during population of data. This might be
>>>> caused
>> by
>>>> including data of mixed type in a column of "ANY" type.
>>>> java.lang.IllegalArgumentException: An error happen during
>>>> population of
>>>> data. This might be caused by including data of mixed type in a column
>> of
>>>> "ANY" type.
>>>> at
>>>>
>> org.eclipse.birt.data.engine.script.DataRow.setColumnValue(D ataRow.java:153)
>>
>>>> ...
Previous Topic:Viewer.war for JBoss
Next Topic:Dynamic Font Color with Scripted Crosstab
Goto Forum:
  


Current Time: Wed Jul 16 10:46:39 EDT 2025

Powered by FUDForum. Page generated in 0.10019 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top