Modify

Opened 3 years ago

Closed 3 years ago

Last modified 3 years ago

#22506 closed defect (duplicate)

Unable to change engine for scripting

Reported by: anonymous Owned by: Gubaer
Priority: normal Milestone:
Component: Plugin scripting Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. Executing scripts with the built-in scripting engine for language JavaScript based on Mozilla Rhino. Change...

What is the expected result?

What happens instead?

Please provide any additional information below. Attach a screenshot if possible.

Revision:18583
Build-Date:2022-11-01 14:35:40

Identification: JOSM/1.5 (18583 en) Windows 11 64-Bit
OS Build number: Windows 10 Pro 2009 (22000)
Memory Usage: 352 MB / 8132 MB (71 MB allocated, but free)
Java version: 17.0.5+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.sun.java.swing.plaf.windows.WindowsLookAndFeel
Screen: \Display0 1920×1080 (scaling 1.25×1.25)
Maximum Screen Size: 1920×1080
Best cursor sizes: 16×16→32×32, 32×32→32×32
System property file.encoding: Cp1252
System property sun.jnu.encoding: Cp1252
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=1.5.18583, --add-modules=java.scripting,java.sql,javafx.controls,javafx.media,javafx.swing,javafx.web, --add-exports=java.base/sun.security.action=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.plugins.jpeg=ALL-UNNAMED, --add-exports=java.desktop/com.sun.imageio.spi=ALL-UNNAMED, --add-opens=java.base/java.lang=ALL-UNNAMED, --add-opens=java.base/java.nio=ALL-UNNAMED, --add-opens=java.base/jdk.internal.loader=ALL-UNNAMED, --add-opens=java.base/jdk.internal.ref=ALL-UNNAMED, --add-opens=java.desktop/javax.imageio.spi=ALL-UNNAMED, --add-opens=java.desktop/javax.swing.text.html=ALL-UNNAMED, --add-opens=java.prefs/java.util.prefs=ALL-UNNAMED, -Djpackage.app-path=%UserProfile%\AppData\Local\JOSM\JOSM.exe]

Plugins:
+ reverter (36011)
+ scripting (v0.2.7)

Last errors/warnings:
- 00000.646 E: java.security.KeyStoreException: Windows-ROOT not found. Cause: java.security.NoSuchAlgorithmException: Windows-ROOT KeyStore not available
- 00007.045 W: Cannot lock cache directory. Will not use disk cache
- 00016.856 E: Handled by bug report queue: java.lang.NoClassDefFoundError: org/graalvm/polyglot/Engine. Cause: java.lang.ClassNotFoundException: org.graalvm.polyglot.Engine
- 00035.301 E: Handled by bug report queue: java.lang.NoClassDefFoundError: org/graalvm/polyglot/Engine. Cause: java.lang.ClassNotFoundException: org.graalvm.polyglot.Engine
- 00067.642 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.plugins.scripting.preferences.ScriptEnginesConfigurationPanel.persistToPreferences()" because "this.pnlScriptEngineConfiguration" is null
- 00103.813 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.plugins.scripting.preferences.ScriptEnginesConfigurationPanel.persistToPreferences()" because "this.pnlScriptEngineConfiguration" is null
- 00151.645 E: Handled by bug report queue: java.lang.NullPointerException: Cannot invoke "org.openstreetmap.josm.plugins.scripting.preferences.ScriptEnginesConfigurationPanel.persistToPreferences()" because "this.pnlScriptEngineConfiguration" is null
- 00158.987 E: Handled by bug report queue: java.lang.NoClassDefFoundError: org/graalvm/polyglot/Engine. Cause: java.lang.ClassNotFoundException: org.graalvm.polyglot.Engine
- 00165.159 E: Handled by bug report queue: java.lang.NoClassDefFoundError: org/graalvm/polyglot/Engine. Cause: java.lang.ClassNotFoundException: org.graalvm.polyglot.Engine
- 00174.236 E: Handled by bug report queue: java.lang.NoClassDefFoundError: org/graalvm/polyglot/Engine. Cause: java.lang.ClassNotFoundException: org.graalvm.polyglot.Engine



=== REPORTED CRASH DATA ===
BugReportExceptionHandler#handleException:
No data collected.

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (23) of main
java.lang.NoClassDefFoundError: org/graalvm/polyglot/Engine
	at com.oracle.truffle.js.scriptengine.GraalJSEngineFactory.createDefaultEngine(GraalJSEngineFactory.java:122)
	at com.oracle.truffle.js.scriptengine.GraalJSEngineFactory.getPolyglotEngine(GraalJSEngineFactory.java:134)
	at com.oracle.truffle.js.scriptengine.GraalJSEngineFactory.getEngineVersion(GraalJSEngineFactory.java:148)
	at org.openstreetmap.josm.plugins.scripting.model.ScriptEngineDescriptor.initParametersForJSR223Engine(ScriptEngineDescriptor.java:255)
	at org.openstreetmap.josm.plugins.scripting.model.ScriptEngineDescriptor.<init>(ScriptEngineDescriptor.java:361)
	at java.base/java.util.stream.ReferencePipeline$3$1.accept(Unknown Source)
	at java.base/java.util.ArrayList$ArrayListSpliterator.forEachRemaining(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source)
	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source)
	at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source)
	at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source)
	at org.openstreetmap.josm.plugins.scripting.model.JSR223ScriptEngineProvider.loadScriptEngineFactories(JSR223ScriptEngineProvider.java:167)
	at org.openstreetmap.josm.plugins.scripting.model.JSR223ScriptEngineProvider.<init>(JSR223ScriptEngineProvider.java:172)
	at org.openstreetmap.josm.plugins.scripting.model.JSR223ScriptEngineProvider.getInstance(JSR223ScriptEngineProvider.java:60)
	at org.openstreetmap.josm.plugins.scripting.ui.ScriptEngineSelectionDialog.build(ScriptEngineSelectionDialog.java:347)
	at org.openstreetmap.josm.plugins.scripting.ui.ScriptEngineSelectionDialog.<init>(ScriptEngineSelectionDialog.java:105)
	at org.openstreetmap.josm.plugins.scripting.ui.ScriptEngineSelectionDialog.select(ScriptEngineSelectionDialog.java:77)
	at org.openstreetmap.josm.plugins.scripting.ui.console.ScriptEngineInfoPanel.promptForScriptEngine(ScriptEngineInfoPanel.java:132)
	at org.openstreetmap.josm.plugins.scripting.ui.console.ScriptEngineInfoPanel.hyperlinkUpdate(ScriptEngineInfoPanel.java:165)
	at java.desktop/javax.swing.JEditorPane.fireHyperlinkUpdate(Unknown Source)
	at java.desktop/javax.swing.text.html.HTMLEditorKit$LinkController.activateLink(Unknown Source)
	at java.desktop/javax.swing.text.html.HTMLEditorKit$LinkController.mouseClicked(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseClicked(Unknown Source)
	at java.desktop/java.awt.Component.processMouseEvent(Unknown Source)
	at java.desktop/javax.swing.JComponent.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.Component.processEvent(Unknown Source)
	at java.desktop/java.awt.Container.processEvent(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
	at java.desktop/java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.Container.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Window.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.Component.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEventImpl(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$4.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.desktop/java.awt.EventQueue$5.run(Unknown Source)
	at java.base/java.security.AccessController.doPrivileged(Unknown Source)
	at java.base/java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
	at java.desktop/java.awt.EventQueue.dispatchEvent(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.pumpEvents(Unknown Source)
	at java.desktop/java.awt.EventDispatchThread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: org.graalvm.polyglot.Engine
	at java.base/java.net.URLClassLoader.findClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	at java.base/java.lang.ClassLoader.loadClass(Unknown Source)
	... 54 more

Attachments (0)

Change History (4)

comment:1 by taylor.smock, 3 years ago

Component: CorePlugin scripting
Owner: changed from team to Gubaer

comment:2 by taylor.smock, 3 years ago

Resolution: duplicate
Status: newclosed

Closed as duplicate of #22506.

comment:3 by taylor.smock, 3 years ago

Ticket #22506 has been marked as a duplicate of this ticket.

comment:4 by taylor.smock, 3 years ago

Marked as duplicate of #22505.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain Gubaer.
as The resolution will be set.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences .
 
Note: See TracTickets for help on using tickets.