Skip to main content



      Home
Home » Archived » BIRT » When rendering report with extended report item visitExtendedItem generates a null in 2.2.
When rendering report with extended report item visitExtendedItem generates a null in 2.2. [message #249736] Wed, 25 July 2007 10:27 Go to next message
Eclipse UserFriend
I have an extended report item that works with Birt 2.1.2. When I try
to use this same report item using the Birt 2.2 runtime to render a
report containing the new report item I get the following error.

java.lang.NullPointerException
at
org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFactory.visitExtendedItem(ExecutorManager.java:274)
at
org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept( ExtendedItemDesign.java:37)
at
org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFactory.createExecutor(ExecutorManager.java:246)
at
org.eclipse.birt.report.engine.executor.ExecutorManager.crea teExecutor(ExecutorManager.java:196)
at
org.eclipse.birt.report.engine.executor.ReportExecutor.getNe xtChild(ReportExecutor.java:114)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.getNextChild(WrappedReportExecutor.java:64)
at
org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.getNextChild(WrappedReportExecutor.java:64)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM$1.getN extChild(HTMLPageLM.java:59)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:125)
at
org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:84)
at
org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:90)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:148)
at
org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:71)

Any ideas. At this point it hasn't even executed any of the code in my
extended report item.

Any help would be appreciated.
Re: When rendering report with extended report item visitExtendedItem generates a null in 2.2. [message #249829 is a reply to message #249736] Wed, 25 July 2007 17:28 Go to previous messageGo to next message
Eclipse UserFriend
I have discovered that the rendering of my extended report item fails at

IReportItemExecutor executor =
ExtensionManager.getInstance().createReportItemExecutor(
ExecutorManager.this, tagName );

in Executormanage.visitExtendedItem()

in turn this is becuase ExtensionManager.createReportItemExecutor calls
IConfigurationElement config =
(IConfigurationElement)generationExtensions.get( itemType );

My extended item which is based off of the RotatedItem example extends
the reportItemPresentation extension point rather than the
reportItemGeneration extension point.

This all used to work with 2.1.2 of course, so know I am wondering how I
should change the code.

1. Should my extended report item also implement the
reportItemGeneration extension point?

2. Should my extended report item only implement the
reportItemGeneration extension point?

3. Is there a way when generating the reportdesign to add the fact that
this extended item is in fact a reportItemPresentation?

So could someone please provide some direction as to what I should do to
correct this and perhaps some examples? Also does anyone know why this
has changed this way?

Thanks,
Lester


Lester Mundt wrote:
> I have an extended report item that works with Birt 2.1.2. When I try
> to use this same report item using the Birt 2.2 runtime to render a
> report containing the new report item I get the following error.
>
> java.lang.NullPointerException
> at
> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFactory.visitExtendedItem(ExecutorManager.java:274)
>
> at
> org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept( ExtendedItemDesign.java:37)
>
> at
> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFactory.createExecutor(ExecutorManager.java:246)
>
> at
> org.eclipse.birt.report.engine.executor.ExecutorManager.crea teExecutor(ExecutorManager.java:196)
>
> at
> org.eclipse.birt.report.engine.executor.ReportExecutor.getNe xtChild(ReportExecutor.java:114)
>
> at
> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.getNextChild(WrappedReportExecutor.java:64)
>
> at
> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.getNextChild(WrappedReportExecutor.java:64)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM$1.getN extChild(HTMLPageLM.java:59)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:125)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:84)
>
> at
> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:90)
>
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:148)
>
> at
> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:71)
>
>
> Any ideas. At this point it hasn't even executed any of the code in my
> extended report item.
>
> Any help would be appreciated.
Re: When rendering report with extended report item visitExtendedItem generates a null in 2.2. [message #250065 is a reply to message #249829] Thu, 26 July 2007 13:44 Go to previous messageGo to next message
Eclipse UserFriend
I fixed it and here is what I discovered.

So the documentation of the org.eclipse.birt.report.engine.extension
package says "Among the three interfaces, only IReportItemPresentation
is required, and the other two are optional" but this doesn't seem to be
the case, as my reportitem that is based off the RotatedLabel example
only implements the extension point for the presention but blows up when
the code tries to create a IReportItemGeneration executor.

To solve I implemented the reportitemGeneration extension point and
pointed it to a class that extends ReportItemGenerationBase which
implements the IReportItemGeneration interface with empty methods and
voila it works.

So the documentation needs to be updated and the RotatedItemExample
needs to be modified.

Lester Mundt wrote:
> I have discovered that the rendering of my extended report item fails at
>
> IReportItemExecutor executor =
> ExtensionManager.getInstance().createReportItemExecutor(
> ExecutorManager.this, tagName );
>
> in Executormanage.visitExtendedItem()
>
> in turn this is becuase ExtensionManager.createReportItemExecutor calls
> IConfigurationElement config =
> (IConfigurationElement)generationExtensions.get( itemType );
>
> My extended item which is based off of the RotatedItem example extends
> the reportItemPresentation extension point rather than the
> reportItemGeneration extension point.
>
> This all used to work with 2.1.2 of course, so know I am wondering how I
> should change the code.
>
> 1. Should my extended report item also implement the
> reportItemGeneration extension point?
>
> 2. Should my extended report item only implement the
> reportItemGeneration extension point?
>
> 3. Is there a way when generating the reportdesign to add the fact that
> this extended item is in fact a reportItemPresentation?
>
> So could someone please provide some direction as to what I should do to
> correct this and perhaps some examples? Also does anyone know why this
> has changed this way?
>
> Thanks,
> Lester
>
>
> Lester Mundt wrote:
>> I have an extended report item that works with Birt 2.1.2. When I try
>> to use this same report item using the Birt 2.2 runtime to render a
>> report containing the new report item I get the following error.
>>
>> java.lang.NullPointerException
>> at
>> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFactory.visitExtendedItem(ExecutorManager.java:274)
>>
>> at
>> org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept( ExtendedItemDesign.java:37)
>>
>> at
>> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFactory.createExecutor(ExecutorManager.java:246)
>>
>> at
>> org.eclipse.birt.report.engine.executor.ExecutorManager.crea teExecutor(ExecutorManager.java:196)
>>
>> at
>> org.eclipse.birt.report.engine.executor.ReportExecutor.getNe xtChild(ReportExecutor.java:114)
>>
>> at
>> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.getNextChild(WrappedReportExecutor.java:64)
>>
>> at
>> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportExecutor.getNextChild(WrappedReportExecutor.java:64)
>>
>> at
>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM$1.getN extChild(HTMLPageLM.java:59)
>>
>> at
>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children(HTMLPageLM.java:125)
>>
>> at
>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPageLM.java:84)
>>
>> at
>> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.layout(HTMLReportLayoutEngine.java:90)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAndRenderTask.java:148)
>>
>> at
>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndRenderTask.java:71)
>>
>>
>> Any ideas. At this point it hasn't even executed any of the code in
>> my extended report item.
>>
>> Any help would be appreciated.
Re: When rendering report with extended report item visitExtendedItemgenerates a null in 2.2. [message #250075 is a reply to message #250065] Thu, 26 July 2007 16:49 Go to previous messageGo to next message
Eclipse UserFriend
Lester,

I believe that the RotatedText has been updated in the most recent builds.

Scott Rosenbaum

> I fixed it and here is what I discovered.
>
> So the documentation of the org.eclipse.birt.report.engine.extension
> package says "Among the three interfaces, only IReportItemPresentation
> is required, and the other two are optional" but this doesn't seem to
> be the case, as my reportitem that is based off the RotatedLabel
> example only implements the extension point for the presention but
> blows up when the code tries to create a IReportItemGeneration
> executor.
>
> To solve I implemented the reportitemGeneration extension point and
> pointed it to a class that extends ReportItemGenerationBase which
> implements the IReportItemGeneration interface with empty methods and
> voila it works.
>
> So the documentation needs to be updated and the RotatedItemExample
> needs to be modified.
>
> Lester Mundt wrote:
>
>> I have discovered that the rendering of my extended report item fails
>> at
>>
>> IReportItemExecutor executor =
>> ExtensionManager.getInstance().createReportItemExecutor(
>> ExecutorManager.this, tagName );
>>
>> in Executormanage.visitExtendedItem()
>>
>> in turn this is becuase ExtensionManager.createReportItemExecutor
>> calls IConfigurationElement config =
>> (IConfigurationElement)generationExtensions.get( itemType );
>>
>> My extended item which is based off of the RotatedItem example
>> extends the reportItemPresentation extension point rather than the
>> reportItemGeneration extension point.
>>
>> This all used to work with 2.1.2 of course, so know I am wondering
>> how I should change the code.
>>
>> 1. Should my extended report item also implement the
>> reportItemGeneration extension point?
>>
>> 2. Should my extended report item only implement the
>> reportItemGeneration extension point?
>>
>> 3. Is there a way when generating the reportdesign to add the fact
>> that this extended item is in fact a reportItemPresentation?
>>
>> So could someone please provide some direction as to what I should do
>> to correct this and perhaps some examples? Also does anyone know why
>> this has changed this way?
>>
>> Thanks,
>> Lester
>> Lester Mundt wrote:
>>
>>> I have an extended report item that works with Birt 2.1.2. When I
>>> try to use this same report item using the Birt 2.2 runtime to
>>> render a report containing the new report item I get the following
>>> error.
>>>
>>> java.lang.NullPointerException
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFact
>>> ory.visitExtendedItem(ExecutorManager.java:274)
>>> at
>>> org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept( Extended
>>> ItemDesign.java:37)
>>>
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFact
>>> ory.createExecutor(ExecutorManager.java:246)
>>>
>>> at
>>> org.eclipse.birt.report.engine.executor.ExecutorManager.crea teExecut
>>> or(ExecutorManager.java:196)
>>>
>>> at
>>> org.eclipse.birt.report.engine.executor.ReportExecutor.getNe xtChild(
>>> ReportExecutor.java:114)
>>>
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportE
>>> xecutor.getNextChild(WrappedReportExecutor.java:64)
>>>
>>> at
>>> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportE
>>> xecutor.getNextChild(WrappedReportExecutor.java:64)
>>>
>>> at
>>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM$1.getN extChild
>>> (HTMLPageLM.java:59)
>>>
>>> at
>>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children
>>> (HTMLPageLM.java:125)
>>>
>>> at
>>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPag
>>> eLM.java:84)
>>>
>>> at
>>> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.la
>>> yout(HTMLReportLayoutEngine.java:90)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAn
>>> dRenderTask.java:148)
>>>
>>> at
>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndR
>>> enderTask.java:71)
>>>
>>> Any ideas. At this point it hasn't even executed any of the code in
>>> my extended report item.
>>>
>>> Any help would be appreciated.
>>>
Re: When rendering report with extended report item visitExtendedItemgenerates a null in 2.2. [message #250818 is a reply to message #250075] Wed, 01 August 2007 15:47 Go to previous message
Eclipse UserFriend
Sorry for the slow reply Scott.

Where would I find the new RotatedLabel example? I went back to
www.actuate.com/birt/contributions and that is still the old one.
Actuate is where I normally grab that example.

I also took a look in birt-sample-plugins-2_2_0.zip but that doesn't
seem to have the rotatedText example either.

Is it one of the other downloads off the Birt site?

Thanks,
Lester

Scott Rosenbaum wrote:
> Lester,
>
> I believe that the RotatedText has been updated in the most recent builds.
>
> Scott Rosenbaum
>
>> I fixed it and here is what I discovered.
>>
>> So the documentation of the org.eclipse.birt.report.engine.extension
>> package says "Among the three interfaces, only IReportItemPresentation
>> is required, and the other two are optional" but this doesn't seem to
>> be the case, as my reportitem that is based off the RotatedLabel
>> example only implements the extension point for the presention but
>> blows up when the code tries to create a IReportItemGeneration
>> executor.
>>
>> To solve I implemented the reportitemGeneration extension point and
>> pointed it to a class that extends ReportItemGenerationBase which
>> implements the IReportItemGeneration interface with empty methods and
>> voila it works.
>>
>> So the documentation needs to be updated and the RotatedItemExample
>> needs to be modified.
>>
>> Lester Mundt wrote:
>>
>>> I have discovered that the rendering of my extended report item fails
>>> at
>>>
>>> IReportItemExecutor executor =
>>> ExtensionManager.getInstance().createReportItemExecutor(
>>> ExecutorManager.this, tagName );
>>>
>>> in Executormanage.visitExtendedItem()
>>>
>>> in turn this is becuase ExtensionManager.createReportItemExecutor
>>> calls IConfigurationElement config =
>>> (IConfigurationElement)generationExtensions.get( itemType );
>>>
>>> My extended item which is based off of the RotatedItem example
>>> extends the reportItemPresentation extension point rather than the
>>> reportItemGeneration extension point.
>>>
>>> This all used to work with 2.1.2 of course, so know I am wondering
>>> how I should change the code.
>>>
>>> 1. Should my extended report item also implement the
>>> reportItemGeneration extension point?
>>>
>>> 2. Should my extended report item only implement the
>>> reportItemGeneration extension point?
>>>
>>> 3. Is there a way when generating the reportdesign to add the fact
>>> that this extended item is in fact a reportItemPresentation?
>>>
>>> So could someone please provide some direction as to what I should do
>>> to correct this and perhaps some examples? Also does anyone know why
>>> this has changed this way?
>>>
>>> Thanks,
>>> Lester
>>> Lester Mundt wrote:
>>>
>>>> I have an extended report item that works with Birt 2.1.2. When I
>>>> try to use this same report item using the Birt 2.2 runtime to
>>>> render a report containing the new report item I get the following
>>>> error.
>>>>
>>>> java.lang.NullPointerException
>>>> at
>>>> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFact
>>>> ory.visitExtendedItem(ExecutorManager.java:274)
>>>> at
>>>> org.eclipse.birt.report.engine.ir.ExtendedItemDesign.accept( Extended
>>>> ItemDesign.java:37)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.executor.ExecutorManager$Exec utorFact
>>>> ory.createExecutor(ExecutorManager.java:246)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.executor.ExecutorManager.crea teExecut
>>>> or(ExecutorManager.java:196)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.executor.ReportExecutor.getNe xtChild(
>>>> ReportExecutor.java:114)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportE
>>>> xecutor.getNextChild(WrappedReportExecutor.java:64)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.internal.executor.wrap.Wrappe dReportE
>>>> xecutor.getNextChild(WrappedReportExecutor.java:64)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM$1.getN extChild
>>>> (HTMLPageLM.java:59)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout Children
>>>> (HTMLPageLM.java:125)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.layout.html.HTMLPageLM.layout (HTMLPag
>>>> eLM.java:84)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.layout.html.HTMLReportLayoutE ngine.la
>>>> yout(HTMLReportLayoutEngine.java:90)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.doR un(RunAn
>>>> dRenderTask.java:148)
>>>>
>>>> at
>>>> org.eclipse.birt.report.engine.api.impl.RunAndRenderTask.run (RunAndR
>>>> enderTask.java:71)
>>>>
>>>> Any ideas. At this point it hasn't even executed any of the code in
>>>> my extended report item.
>>>>
>>>> Any help would be appreciated.
>>>>
>
>
Previous Topic:What is minimized plug-in for pdf creation
Next Topic:Error while deploying BIRT viewer to Jboss
Goto Forum:
  


Current Time: Fri Jun 06 00:25:46 EDT 2025

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

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

Back to the top