Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
NullPointerException in CategoryWrapper$1.getCollator
Yaytay
Hi,
I'm working on a plugin that uses three ScriptFunctionExtensions.
The report uses two of the functions in it's beforeFactory method and those two functions modify the report design by adding in a new scripted dataset which calls the third function.
The first two functions are both working, but the third causes a NullPointerException in BIRT before my code even runs.
In BIRT 4.2.2 the NPE is at:
CategoryWrapper$1.getCollator(Scriptable) line: 107
Object obj = scope.getPrototype( ).get( "compare_locale", scope.getPrototype( ) );
The issue being that the scope object for my function has no prototype.
Does anyone know what could cause that?
Thanks.
Jim
Find more posts tagged with
Comments
Yaytay
For posterity:<br />
I got around this by changing to use a ScriptedDataSetEventAdapter instead.<br />
<br />
It took me a while to get my unit tests working, because the event handler class could not be found, adding this to the engine config seems to be the most dynamic solution to that problem:<br />
<pre class='_prettyXprint _lang-auto _linenums:0'>
config.getAppContext().put(EngineConstants.WEBAPP_CLASSPATH_KEY
, "..\\Main Project\\bin");
</pre>
<br />
Jim