Skip to main content



      Home
Home » Archived » BIRT » RHINO USAGE WARNING: Missed Context.javaToJS()
RHINO USAGE WARNING: Missed Context.javaToJS() [message #1148516] Mon, 21 October 2013 11:07 Go to next message
Eclipse UserFriend
I have a Date element and the following binding:
if (row["element"] != null) {
    row["element"].getTocText(reportContext.getLocale())
}

In my dataset the column 'element' is of Data type 'Java Object'. getTocText is a method on that java class. I'm setting that value using scripted dataset handler.

When I render the report I get this message:
RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
Rhino runtime detected object cz.tigra.spl.reports.birt.sumGraf.SumarniGrafHandlerToReportElement@181de5 of class cz.tigra.spl.reports.birt.sumGraf.SumarniGrafHandlerToReportElement where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call.


Any hints what is wrong here?
Re: RHINO USAGE WARNING: Missed Context.javaToJS() [message #1162174 is a reply to message #1148516] Wed, 30 October 2013 03:48 Go to previous messageGo to next message
Eclipse UserFriend
ping
Re: RHINO USAGE WARNING: Missed Context.javaToJS() [message #1164038 is a reply to message #1162174] Thu, 31 October 2013 07:44 Go to previous messageGo to next message
Eclipse UserFriend
I don't know this getTocText method and can't find any relevant doc about it. You could try like this:

if (row["element"] != null) {
    row["element"].getTocText(reportContext.getLocale().toString())
}

[Updated on: Thu, 31 October 2013 07:59] by Moderator

Re: RHINO USAGE WARNING: Missed Context.javaToJS() [message #1165342 is a reply to message #1164038] Fri, 01 November 2013 04:02 Go to previous message
Eclipse UserFriend
Hi donino,

row["element"] is a java object obtained from dataset handler. It's just a bean with the method getTocText(Locale locale) returning String.
So your advice can't work since the method assumes a Locale object as its parameter.

Note that when I use Text element instead of Date element, the warning message doesn't show any more.
Previous Topic:can't suppress page breaks
Next Topic:can't create PDF output
Goto Forum:
  


Current Time: Mon May 12 11:13:33 EDT 2025

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

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

Back to the top