Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Runtime vs ReportDesigner
Runtime vs ReportDesigner [message #684205] Wed, 15 June 2011 07:57 Go to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi,

i am currently working on a chart extension(new chart type), which seems to run fine in ReportDesigner and
in the Birt Example application (org.eclipse.birt.examples.rcpengine.application),
but does not work in the Birt Runtime.

Now having a look on the runtime directories i was wondering, why there is a chartengine.jar in
the lib directory ? Why doesn't it use the chart plugin ? Might that be one of the reasons, why
my chart extension is not working in the runtime ?

First i thought using my extension would lead to somehow wrong rptdesign files, but then the Designer
and the Example Application should't run my report.

Anyone got any ideas ?

Dennis
Re: Runtime vs ReportDesigner [message #684266 is a reply to message #684205] Wed, 15 June 2011 10:02 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

On 15.06.2011 09:57, Dennis Schladebeck wrote:
> Hi,
>
> i am currently working on a chart extension(new chart type), which seems to run fine in ReportDesigner and
> in the Birt Example application (org.eclipse.birt.examples.rcpengine.application),
> but does not work in the Birt Runtime.
>
> Now having a look on the runtime directories i was wondering, why there is a chartengine.jar in
> the lib directory ? Why doesn't it use the chart plugin ? Might that be one of the reasons, why
> my chart extension is not working in the runtime ?
>
> First i thought using my extension would lead to somehow wrong rptdesign files, but then the Designer
> and the Example Application should't run my report.
>
> Anyone got any ideas ?
>
> Dennis

Hmm it seems that my implementation of TypeFactory defined by Extension point is not even called, when
using birt runtime.

Could it be, that the runtime is not even using the whole plugin mechanism when loading rptdesign file ?
Quite a lot of the plugin jars are located in the lib directory and put into classpath when running
with ReportRunner main class.
Re: Runtime vs ReportDesigner [message #684398 is a reply to message #684205] Wed, 15 June 2011 14:11 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Dennis

Those are wrapper classes. I think the issue is that your plugin
depends on a ui plugin this is not available in the runtime. You could
test this by marking your dependencies as optional in the manifest
editor and then exporting your plugin to the runtime again.

Jason

On 6/15/2011 3:57 AM, Dennis Schladebeck wrote:
> Hi,
>
> i am currently working on a chart extension(new chart type), which seems
> to run fine in ReportDesigner and
> in the Birt Example application
> (org.eclipse.birt.examples.rcpengine.application),
> but does not work in the Birt Runtime.
>
> Now having a look on the runtime directories i was wondering, why there
> is a chartengine.jar in
> the lib directory ? Why doesn't it use the chart plugin ? Might that be
> one of the reasons, why
> my chart extension is not working in the runtime ?
>
> First i thought using my extension would lead to somehow wrong rptdesign
> files, but then the Designer
> and the Example Application should't run my report.
>
> Anyone got any ideas ?
>
> Dennis
Re: Runtime vs ReportDesigner [message #684412 is a reply to message #684398] Wed, 15 June 2011 14:30 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi Jason,

all UI dependencies are optional already.

Dennis

On 15.06.2011 16:11, Jason Weathersby wrote:
> Dennis
>
> Those are wrapper classes. I think the issue is that your plugin depends on a ui plugin this is not available in the runtime. You could test this by
> marking your dependencies as optional in the manifest editor and then exporting your plugin to the runtime again.
>
> Jason
>
> On 6/15/2011 3:57 AM, Dennis Schladebeck wrote:
>> Hi,
>>
>> i am currently working on a chart extension(new chart type), which seems
>> to run fine in ReportDesigner and
>> in the Birt Example application
>> (org.eclipse.birt.examples.rcpengine.application),
>> but does not work in the Birt Runtime.
>>
>> Now having a look on the runtime directories i was wondering, why there
>> is a chartengine.jar in
>> the lib directory ? Why doesn't it use the chart plugin ? Might that be
>> one of the reasons, why
>> my chart extension is not working in the runtime ?
>>
>> First i thought using my extension would lead to somehow wrong rptdesign
>> files, but then the Designer
>> and the Example Application should't run my report.
>>
>> Anyone got any ideas ?
>>
>> Dennis
>
Re: Runtime vs ReportDesigner [message #684414 is a reply to message #684412] Wed, 15 June 2011 14:40 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Dennis,

If you want to email me your project I can try to debug it.
jasonweathersby at windstream dot net

Jason

On 6/15/2011 10:30 AM, Dennis Schladebeck wrote:
> Hi Jason,
>
> all UI dependencies are optional already.
>
> Dennis
>
> On 15.06.2011 16:11, Jason Weathersby wrote:
>> Dennis
>>
>> Those are wrapper classes. I think the issue is that your plugin
>> depends on a ui plugin this is not available in the runtime. You could
>> test this by
>> marking your dependencies as optional in the manifest editor and then
>> exporting your plugin to the runtime again.
>>
>> Jason
>>
>> On 6/15/2011 3:57 AM, Dennis Schladebeck wrote:
>>> Hi,
>>>
>>> i am currently working on a chart extension(new chart type), which seems
>>> to run fine in ReportDesigner and
>>> in the Birt Example application
>>> (org.eclipse.birt.examples.rcpengine.application),
>>> but does not work in the Birt Runtime.
>>>
>>> Now having a look on the runtime directories i was wondering, why there
>>> is a chartengine.jar in
>>> the lib directory ? Why doesn't it use the chart plugin ? Might that be
>>> one of the reasons, why
>>> my chart extension is not working in the runtime ?
>>>
>>> First i thought using my extension would lead to somehow wrong rptdesign
>>> files, but then the Designer
>>> and the Example Application should't run my report.
>>>
>>> Anyone got any ideas ?
>>>
>>> Dennis
>>
>
Re: Runtime vs ReportDesigner [message #684440 is a reply to message #684412] Wed, 15 June 2011 14:48 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

Hi,

when remote debugging against the runtime i also noticed, that my
implementation of TypeFactoryImpl.init() does not get called.

I removed all ui classed and ui dependencies from my plugin before exporting it to the runtime.

My plugin.xml now looks like this
<?xml version="1.0" encoding="UTF-8"?>
<?eclipse version="3.4"?>
<plugin>
<extension point="org.eclipse.emf.ecore.generated_package">
<package
uri="http://www.bredex.de/birt/RectangleChartModelType"
class="de.bredex.birt.rectangle.chart.model.type.TypePackage"
genModel="rectanglemodel/RectangleType.genmodel"/>
</extension>

<extension point="org.eclipse.emf.ecore.extension_parser">
<parser
type="type"
class="de.bredex.birt.rectangle.chart.model.type.util.TypeResourceFactoryImpl"/>
</extension>
<extension
point="org.eclipse.birt.chart.engine.datapointdefinitions">
<datapointDefinition
definition="de.bredex.birt.rectangle.chart.datafeed.RectangleDataPointDefinition"
series="de.bredex.birt.rectangle.chart.model.type.impl.RectangleSeriesImpl">
</datapointDefinition>
</extension>
<extension
point="org.eclipse.birt.chart.engine.datasetprocessors">
<datasetProcessor
processor="de.bredex.birt.rectangle.chart.datafeed.RectangleDataSetProcessorImpl"
series="de.bredex.birt.rectangle.chart.model.type.impl.RectangleSeriesImpl">
</datasetProcessor>
</extension>
<extension
point="org.eclipse.birt.chart.engine.modelrenderers">
<modelRenderer
renderer="de.bredex.birt.rectangle.chart.render.Rectangle"
series="de.bredex.birt.rectangle.chart.model.type.impl.RectangleSeriesImpl">
</modelRenderer>
</extension>

</plugin>

The funny thing is, i don't even get any errors in configuration/..*.log files.
I seems like report engine doesn't know about my custom types, series etc.

Dennis



On 15.06.2011 16:30, Dennis Schladebeck wrote:
> Hi Jason,
>
> all UI dependencies are optional already.
>
> Dennis
>
> On 15.06.2011 16:11, Jason Weathersby wrote:
>> Dennis
>>
>> Those are wrapper classes. I think the issue is that your plugin depends on a ui plugin this is not available in the runtime. You could test this by
>> marking your dependencies as optional in the manifest editor and then exporting your plugin to the runtime again.
>>
>> Jason
>>
>> On 6/15/2011 3:57 AM, Dennis Schladebeck wrote:
>>> Hi,
>>>
>>> i am currently working on a chart extension(new chart type), which seems
>>> to run fine in ReportDesigner and
>>> in the Birt Example application
>>> (org.eclipse.birt.examples.rcpengine.application),
>>> but does not work in the Birt Runtime.
>>>
>>> Now having a look on the runtime directories i was wondering, why there
>>> is a chartengine.jar in
>>> the lib directory ? Why doesn't it use the chart plugin ? Might that be
>>> one of the reasons, why
>>> my chart extension is not working in the runtime ?
>>>
>>> First i thought using my extension would lead to somehow wrong rptdesign
>>> files, but then the Designer
>>> and the Example Application should't run my report.
>>>
>>> Anyone got any ideas ?
>>>
>>> Dennis
>>
>
Re: Runtime vs ReportDesigner [message #684441 is a reply to message #684414] Wed, 15 June 2011 14:58 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: Dennis Schladebeck

mail is on it's waY

On 15.06.2011 16:40, Jason Weathersby wrote:
> Dennis,
>
> If you want to email me your project I can try to debug it.
> jasonweathersby at windstream dot net
>
> Jason
>
> On 6/15/2011 10:30 AM, Dennis Schladebeck wrote:
>> Hi Jason,
>>
>> all UI dependencies are optional already.
>>
>> Dennis
>>
>> On 15.06.2011 16:11, Jason Weathersby wrote:
>>> Dennis
>>>
>>> Those are wrapper classes. I think the issue is that your plugin
>>> depends on a ui plugin this is not available in the runtime. You could
>>> test this by
>>> marking your dependencies as optional in the manifest editor and then
>>> exporting your plugin to the runtime again.
>>>
>>> Jason
>>>
>>> On 6/15/2011 3:57 AM, Dennis Schladebeck wrote:
>>>> Hi,
>>>>
>>>> i am currently working on a chart extension(new chart type), which seems
>>>> to run fine in ReportDesigner and
>>>> in the Birt Example application
>>>> (org.eclipse.birt.examples.rcpengine.application),
>>>> but does not work in the Birt Runtime.
>>>>
>>>> Now having a look on the runtime directories i was wondering, why there
>>>> is a chartengine.jar in
>>>> the lib directory ? Why doesn't it use the chart plugin ? Might that be
>>>> one of the reasons, why
>>>> my chart extension is not working in the runtime ?
>>>>
>>>> First i thought using my extension would lead to somehow wrong rptdesign
>>>> files, but then the Designer
>>>> and the Example Application should't run my report.
>>>>
>>>> Anyone got any ideas ?
>>>>
>>>> Dennis
>>>
>>
>
Re: Runtime vs ReportDesigner [message #1742856 is a reply to message #684441] Thu, 08 September 2016 09:02 Go to previous message
Tobias Feldker is currently offline Tobias FeldkerFriend
Messages: 2
Registered: March 2012
Junior Member
Sorry for reactivating this old thread.

Unfortunately I have a very similar problem, while trying to register a new chart type.
In the ReportDesigner the new charttype works flawlessly and just like Dennis said: my TypeFactory defined by Extension point is not even called, when using birt runtime.
Additionally I see a NullPointerException, which has to do with my new charttype, as it only occurs when using the new charttype in a report in the runtime:
impl.EngineTask ERROR An error happened while running the report. Cause:
java.lang.NullPointerException
	at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.addValueSeriesAggregateBindingForGrouping(AbstractChartBaseQueryGenerator.java:165)
	at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.addAggregateBindings(AbstractChartBaseQueryGenerator.java:676)
	at org.eclipse.birt.chart.reportitem.AbstractChartBaseQueryGenerator.generateExtraBindings(AbstractChartBaseQueryGenerator.java:399)
	at org.eclipse.birt.chart.reportitem.ChartBaseQueryHelper.createBaseQuery(ChartBaseQueryHelper.java:107)
	at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createQuery(ChartReportItemQueryImpl.java:176)
	at org.eclipse.birt.chart.reportitem.ChartReportItemQueryImpl.createReportQueries(ChartReportItemQueryImpl.java:108)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder$QueryBuilderVisitor.visitExtendedItem(ReportQueryBuilder.java:689)
	at org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept(ExtendedItemDesign.java:45)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(ReportQueryBuilder.java:256)
	at org.eclipse.birt.report.engine.data.dte.ReportQueryBuilder.build(ReportQueryBuilder.java:237)
	at org.eclipse.birt.report.engine.data.dte.AbstractDataEngine.prepare(AbstractDataEngine.java:180)
	at org.eclipse.birt.report.engine.executor.ReportExecutor.execute(ReportExecutor.java:122)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
	at org.eclipse.birt.report.engine.internal.executor.emitter.ReportEmitterExecutor.execute(ReportEmitterExecutor.java:71)
	at org.eclipse.birt.report.engine.internal.executor.wrap.WrappedReportExecutor.execute(WrappedReportExecutor.java:60)
	at org.eclipse.birt.report.engine.internal.executor.dup.SuppressDuplciateReportExecutor.execute(SuppressDuplciateReportExecutor.java:42)
	at org.eclipse.birt.report.engine.presentation.ReportDocumentBuilder.build(ReportDocumentBuilder.java:234)
	at org.eclipse.birt.report.engine.api.impl.RunTask.doRun(RunTask.java:269)
	at org.eclipse.birt.report.engine.api.impl.RunTask.run(RunTask.java:86)
  // cut away unintresting call stack from my application


I already have removed any UI dependencies from the runtime plugin.

Could anyone of you Dennis or Jason post a short reply on how you solved the issue for Dennis plugin or how to track down the source of the NPE?

[Updated on: Thu, 08 September 2016 09:02]

Report message to a moderator

Previous Topic:How to set inline style in WebViewerExample
Next Topic:only first detail group visible
Goto Forum:
  


Current Time: Fri Mar 29 15:20:14 GMT 2024

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

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

Back to the top