|
Re: WebViewer NullPointerException when using global variables [message #539183 is a reply to message #539156] |
Wed, 09 June 2010 21:22 |
|
Laurent,
I just tried to reproduce this with 2.5.2 and it did not fail. I just
used a blank report added the page report variable and added the
variable to the master page. Can you try this as well?
Jason
On 6/9/2010 2:45 PM, Laurent Marchal wrote:
> After creating a Report Variable from the Outline I am getting a
> NullPointerException error when running BIRT with the WebViewer.
>
> It runs fine when viewing as doc, PDF, html, etc., except for the Web
> Viewer.
>
> eclipse Galileo: Build id: 20100218-1602
> BIRT Version: 2.5.2.v20090925-7l9V7YFT0z0-DX3kf8ShK8
> BIRT Build id: v20100210-0630
>
>
> XML Source:
> <property name="pageVariables">
> <variable-element name="rptAUX_Category">
> <expression name="value" type="javascript">BirtStr.trim("")</expression>
> <property name="type">report</property>
> </variable-element>
> </property>
|
|
|
|
Re: WebViewer NullPointerException when using global variables [message #635930 is a reply to message #635913] |
Thu, 28 October 2010 15:33 |
|
Is the library referenced in the report at all?
Do you have a resource folder set in the web.xml?
Jason
On 10/28/2010 11:17 AM, birtdevsatwork@gmail.com wrote:
> We are having the same issue. However, we have been able to narrow it
> down to only files that contain a library. You do not have to be using
> anything from the library on the report, it's just the existence of the
> library.
>
> As Laurent mentions, the error only happens in the webviewer.
>
> Can you retry your blank report scenario using a library and advise as
> to whether or not you can reproduce the issue?
>
> Thanks
|
|
|
|
Re: WebViewer NullPointerException when using global variables [message #635967 is a reply to message #635960] |
Thu, 28 October 2010 18:49 |
|
Is the library in the same folder as the report design?
Jason
On 10/28/2010 2:28 PM, birtdevsatwork@gmail.com wrote:
> The library is not referenced in the report. This is the only code in
> the report for the library:
>
> <list-property name="libraries">
> <structure>
> <property name="fileName">TestLibrary.rptlibrary</property>
> <property name="namespace">TestLibrary</property>
> </structure>
> </list-property>
>
> As far as the web.xml file, there are no hard coded references to the
> library. This file contains all default values of:
>
> <!--
> Report resources directory for preview. Defaults to ${birt home}
> -->
> <context-param>
> <param-name>BIRT_VIEWER_WORKING_FOLDER</param-name>
> <param-value></param-value>
> </context-param>
>
> and
>
> <!-- Resource location directory. Defaults to ${birt home} -->
> <context-param>
> <param-name>BIRT_RESOURCE_PATH</param-name>
> <param-value></param-value>
> </context-param>
>
> As an additional note, the TestLibrary that I have referenced in my
> report is completely empty. I was concerned that our current library,
> which has been carried forward through several upgrades might have been
> the issue, so I created a new "empty" library.
|
|
|
|
|
|
|
Re: WebViewer NullPointerException when using global variables [message #636252 is a reply to message #636230] |
Fri, 29 October 2010 20:08 |
|
I was able to reproduce the issue. This appears to have been a bug.
The issue does not happen in 2.6.1. I tried to come up with a work
around but was not able to.
Jason
On 10/29/2010 2:45 PM, birtdevsatwork@gmail.com wrote:
> I currently have it set as a page variable. But, I have tried report
> variable as well.
>
> Is that what you are asking? Or are you referring to what type of data
> am I assigning to the variable? If that is the case, I am assigning an
> integer to be stored as the page number. But, it was my understanding
> that all variable values are strings???
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04051 seconds