Pivot
  1. Pivot
  2. PIVOT-858

Some examples in the web site show the error "Script engine for 'javascript' not found"

    Details

      Description

      Some examples in the web site show this dialog:

      Error
      org.apache.pivot.serialization.SerializationException
      Script engine for "javascript" not found.

        Activity

        Hide
        Sandro Martini added a comment -

        I'm sorry but the problem is due to IcedTea plugin implementation.

        Be free to reopen it in case someone has more info, so maybe we could enable even the IcedTeam Plugin to work with Pivot.

        Show
        Sandro Martini added a comment - I'm sorry but the problem is due to IcedTea plugin implementation. Be free to reopen it in case someone has more info, so maybe we could enable even the IcedTeam Plugin to work with Pivot.
        Hide
        Aaron Digulla added a comment -

        After installing Java 7u5 and installing the plugin in the browser (see http://superuser.com/a/80631/6813), the error went away.

        Thanks a lot!

        Show
        Aaron Digulla added a comment - After installing Java 7u5 and installing the plugin in the browser (see http://superuser.com/a/80631/6813 ), the error went away. Thanks a lot!
        Hide
        Sandro Martini added a comment -

        Hi,
        I think that's something related to IcedTea, sorry (we have some open issue dependent on it, but we can't do so much) ... so I think that the best option for now is that in your environment if you could try even with an updated Oracle JRE 6 or 7 .

        > Cleaning the cache doesn't help, still the same error on http://pivot.apache.org/tutorials/link-buttons.html
        I'm saying the Java Cache, not Browser cache (at least on Windows there is a related config panel). But even this could not help here ...

        > When I said "I just clicked next", I mean "this is how I found all the broken pages". There might be more pages which are broken.
        Ah Ok, now I understand ... yes, all Applets that uses Javascript inside the JVM, and yes, could be others.
        This should be the first to have problems (the Scripting Tutorial):
        http://pivot.apache.org/tutorials/scripting.html

        Maybe in IcedTea there is a trick to enable rhino support inside the plugin (but it needs to be available in the jsr-223 way), if you find a way, tell us, so we can write an info somewhere. As a sample take a look here:
        http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/
        try to run some demo from there and tell us what happens ... maybe there is something we can do to make all them work.
        When I have some time, I'll try to setup a simple/minimal sample (without Pivot) under our tests subproject (under trunk).

        General note:
        if someone with more expertise than us on IcedTead has some info and wants to help us fixing this (and other IcedTea-related things), please tell to us.

        > Maybe this would be a good time to enhance the error dialog with a way to display the full stack trace plus a way to copy it to the clipboard?
        Yes, it's a good idea that sometimes arise ... could you add a jira issue for this ?

        Thanks for now.

        Show
        Sandro Martini added a comment - Hi, I think that's something related to IcedTea, sorry (we have some open issue dependent on it, but we can't do so much) ... so I think that the best option for now is that in your environment if you could try even with an updated Oracle JRE 6 or 7 . > Cleaning the cache doesn't help, still the same error on http://pivot.apache.org/tutorials/link-buttons.html I'm saying the Java Cache, not Browser cache (at least on Windows there is a related config panel). But even this could not help here ... > When I said "I just clicked next", I mean "this is how I found all the broken pages". There might be more pages which are broken. Ah Ok, now I understand ... yes, all Applets that uses Javascript inside the JVM, and yes, could be others. This should be the first to have problems (the Scripting Tutorial): http://pivot.apache.org/tutorials/scripting.html Maybe in IcedTea there is a trick to enable rhino support inside the plugin (but it needs to be available in the jsr-223 way), if you find a way, tell us, so we can write an info somewhere. As a sample take a look here: http://java.sun.com/developer/technicalArticles/J2SE/Desktop/scripting/ try to run some demo from there and tell us what happens ... maybe there is something we can do to make all them work. When I have some time, I'll try to setup a simple/minimal sample (without Pivot) under our tests subproject (under trunk). General note: if someone with more expertise than us on IcedTead has some info and wants to help us fixing this (and other IcedTea-related things), please tell to us. > Maybe this would be a good time to enhance the error dialog with a way to display the full stack trace plus a way to copy it to the clipboard? Yes, it's a good idea that sometimes arise ... could you add a jira issue for this ? Thanks for now.
        Hide
        Aaron Digulla added a comment -

        Further information:

        • I'm on openSUSE Linux 12.1, IcedTea-Web Plugin (using IcedTea-Web 1.2 (suse-3.1-x86_64)), Java 1.6.0_24, Chromium 21.0.1145.0
        • All the demos on http://pivot.apache.org/demos/ work.
        • Cleaning the cache doesn't help, still the same error on http://pivot.apache.org/tutorials/link-buttons.html
        • When I said "I just clicked next", I mean "this is how I found all the broken pages". There might be more pages which are broken.

        It might be a bug in IcedTea but I'm wondering about the "javascript" error. I checked my installation of IcedTea and there is a rhino.jar, so javascript should be available on my side.

        Maybe this would be a good time to enhance the error dialog with a way to display the full stack trace plus a way to copy it to the clipboard?

        Show
        Aaron Digulla added a comment - Further information: I'm on openSUSE Linux 12.1, IcedTea-Web Plugin (using IcedTea-Web 1.2 (suse-3.1-x86_64)), Java 1.6.0_24, Chromium 21.0.1145.0 All the demos on http://pivot.apache.org/demos/ work. Cleaning the cache doesn't help, still the same error on http://pivot.apache.org/tutorials/link-buttons.html When I said "I just clicked next", I mean "this is how I found all the broken pages". There might be more pages which are broken. It might be a bug in IcedTea but I'm wondering about the "javascript" error. I checked my installation of IcedTea and there is a rhino.jar, so javascript should be available on my side. Maybe this would be a good time to enhance the error dialog with a way to display the full stack trace plus a way to copy it to the clipboard?
        Hide
        Sandro Martini added a comment -

        Hi, thanks for the report.

        I'm sorry but I'm not able to reproduce the error.
        Can you try cleaning your browser cache, and maybe even the Java cache, and then reload the pages ?
        For example browsing to this:
        http://pivot.apache.org/tutorials/link-buttons.html
        to me all works, and pressing the next link (bottom in the page) has nothing with the javascript engine in tutorials applets ... so I think it's a question of caching.

        Keep us updated.

        Note: in the Demos page there is this at the top (but not in the Tutorials up to now, sorry):
        >
        > Note: all demos require Java 6 or greater.
        >

        If after this you still have the problem, can you post here more details on your environment (O.S., JVM, Browser) ? Thanks.

        Bye,
        Sandro

        Show
        Sandro Martini added a comment - Hi, thanks for the report. I'm sorry but I'm not able to reproduce the error. Can you try cleaning your browser cache, and maybe even the Java cache, and then reload the pages ? For example browsing to this: http://pivot.apache.org/tutorials/link-buttons.html to me all works, and pressing the next link (bottom in the page) has nothing with the javascript engine in tutorials applets ... so I think it's a question of caching. Keep us updated. Note: in the Demos page there is this at the top (but not in the Tutorials up to now, sorry): > > Note: all demos require Java 6 or greater. > If after this you still have the problem, can you post here more details on your environment (O.S., JVM, Browser) ? Thanks. Bye, Sandro
        Show
        Aaron Digulla added a comment - - edited Here is an list of all the broken examples I could find (I just clicked "next"): http://pivot.apache.org/tutorials/link-buttons.html http://pivot.apache.org/tutorials/split-panes.html http://pivot.apache.org/tutorials/accordions.html http://pivot.apache.org/tutorials/scroll-bars.html http://pivot.apache.org/tutorials/calendars.html http://pivot.apache.org/tutorials/color-choosers.html http://pivot.apache.org/tutorials/table-views.json.html http://pivot.apache.org/tutorials/table-views.custom.html http://pivot.apache.org/tutorials/windows.html http://pivot.apache.org/tutorials/effects.html http://pivot.apache.org/tutorials/property-binding.html http://pivot.apache.org/tutorials/localization.html http://pivot.apache.org/tutorials/scripting.html http://pivot.apache.org/tutorials/table-panes.html

          People

          • Assignee:
            Sandro Martini
            Reporter:
            Aaron Digulla
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development