Uploaded image for project: 'Sling'
  1. Sling
  2. SLING-5471

Sightly error in terminal: RHINO USAGE WARNING: Missed Context.javaToJS() conversion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • Scripting Sightly Engine 1.0.10
    • None
    • Scripting
    • None
    • Mac

    Description

      I often see the following error in the terminal:

      RHINO USAGE WARNING: Missed Context.javaToJS() conversion:
      Rhino runtime detected object java.util.GregorianCalendar[time=1434664044399,areFieldsSet=true,areAllFieldsSet=true,lenient=false,zone=sun.util.calendar.ZoneInfo[id="GMT-07:00",offset=-25200000,dstSavings=0,useDaylight=false,transitions=0,lastRule=null],firstDayOfWeek=1,minimalDaysInFirstWeek=1,ERA=1,YEAR=2015,MONTH=5,WEEK_OF_YEAR=25,WEEK_OF_MONTH=3,DAY_OF_MONTH=18,DAY_OF_YEAR=169,DAY_OF_WEEK=5,DAY_OF_WEEK_IN_MONTH=3,AM_PM=1,HOUR=2,HOUR_OF_DAY=14,MINUTE=47,SECOND=24,MILLISECOND=399,ZONE_OFFSET=-25200000,DST_OFFSET=0] of class java.util.GregorianCalendar where it expected String, Number, Boolean or Scriptable instance. Please check your code for missing Context.javaToJS() call.
      

      I think it happens for if statements. Attached is a stack. Please let me know if you need more information.

      Attachments

        Activity

          People

            Unassigned Unassigned
            joelrich Joel Richard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: