Modify

Opened 3 weeks ago

Closed 13 days ago

Last modified 13 days ago

#14905 closed defect (othersoftware)

NoClassDefFoundError when starting up (overpass turbo & opening_hours javascript initialization)

Reported by: anonymous Owned by: team
Priority: normal Milestone:
Component: Core Version:
Keywords: template_report nashorn overpass turbo opening_hours javascript javabug race condition thread Cc:

Description

What steps will reproduce the problem?

Starting up JOSM

What is the expected result?

JOSM opens and I start mapping like crazy!

What happens instead?

JOSM gives me a bunch of errors but still works when I suppress the errors for the session.A bit slower than usual maybe. Everything I need still functions as expected.

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

URL:http://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2017-05-29 16:19:58 +0200 (Mon, 29 May 2017)
Build-Date:2017-05-29 14:25:03
Revision:12275
Relative:URL: ^/trunk

Identification: JOSM/1.5 (12275 en) Windows 7 64-Bit
OS Build number: Windows 7 Ultimate null (7601)
Memory Usage: 199 MB / 989 MB (85 MB allocated, but free)
Java version: 1.8.0_131-b11, Oracle Corporation, Java HotSpot(TM) Client VM
Screen: \Display0 1600x900, \Display1 1440x900
Maximum Screen Size: 1600x900

Plugins:
+ BuildingGeneralization (1010)
+ ImproveWay (12)
+ Mapillary (v1.5.3)
+ OpenStreetCam (75)
+ OpeningHoursEditor (33185)
+ alignways (33182)
+ apache-commons (32994)
+ apache-http (32699)
+ colorscheme (32699)
+ gson (32680)
+ imagery_offset_db (33316)
+ turnrestrictions (33088)
+ utilsplugin2 (33328)

Map paint styles:
+ https://josm.openstreetmap.de/josmfile?page=Styles/Lane_and_Road_Attributes&zip=1
- https://josm.openstreetmap.de/josmfile?page=Styles/Coloured_buildings&zip=1
- https://github.com/bastik/mapcss-tools/raw/osm/mapnik2mapcss/osm-results/mapnik.zip

Validator rules:
+ https://josm.openstreetmap.de/josmfile?page=Rules/GermanySpecific&zip=1

Last errors/warnings:
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function
- E: Handled by bug report queue: java.lang.NoClassDefFoundError: java/uti|/function/Function


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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: Nashorn AST Serializer (36)
java.lang.NoClassDefFoundError: java/uti|/function/Function
	at java.lang.Class.getDeclaredMethods0(Native Method)
	at java.lang.Class.privateGetDeclaredMethods(Unknown Source)
	at java.lang.Class.getDeclaredMethod(Unknown Source)
	at java.io.ObjectStreamClass.getPrivateMethod(Unknown Source)
	at java.io.ObjectStreamClass.access$1700(Unknown Source)
	at java.io.ObjectStreamClass$2.run(Unknown Source)
	at java.io.ObjectStreamClass$2.run(Unknown Source)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.io.ObjectStreamClass.<init>(Unknown Source)
	at java.io.ObjectStreamClass.lookup(Unknown Source)
	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
	at java.io.ObjectOutputStream.defaultWriteFields(Unknown Source)
	at java.io.ObjectOutputStream.writeSerialData(Unknown Source)
	at java.io.ObjectOutputStream.writeOrdinaryObject(Unknown Source)
	at java.io.ObjectOutputStream.writeObject0(Unknown Source)
	at java.io.ObjectOutputStream.writeObject(Unknown Source)
	at jdk.nashorn.internal.runtime.AstSerializer.serialize(AstSerializer.java:47)
	at jdk.nashorn.internal.runtime.RecompilableScriptFunctionData$SerializedAst.<init>(RecompilableScriptFunctionData.java:504)
	at jdk.nashorn.internal.runtime.RecompilableScriptFunctionData$1.run(RecompilableScriptFunctionData.java:461)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
	at java.lang.Thread.run(Unknown Source)

=== RUNNING THREADS ===
Thread: Nashorn AST Serializer (35)
org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler.handleException(BugReportExceptionHandler.java:22)
org.openstreetmap.josm.tools.bugreport.BugReportExceptionHandler.uncaughtException(BugReportExceptionHandler.java:14)
java.lang.ThreadGroup.uncaughtException(Unknown Source)
java.lang.ThreadGroup.uncaughtException(Unknown Source)
java.lang.Thread.dispatchUncaughtException(Unknown Source)

Thread: main-init-1 (27)
java.util.zip.ZipFile.read(Native Method)
java.util.zip.ZipFile.access$1400(Unknown Source)
java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
java.util.zip.InflaterInputStream.read(Unknown Source)
sun.misc.Resource.getBytes(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$100(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
jdk.nashorn.internal.codegen.CodeGenerator.emitObjectToNumberComparisonConversion(CodeGenerator.java:721)
jdk.nashorn.internal.codegen.CodeGenerator.loadComparisonOperands(CodeGenerator.java:700)
jdk.nashorn.internal.codegen.BranchOptimizer.branchOptimizer(BranchOptimizer.java:125)
jdk.nashorn.internal.codegen.BranchOptimizer.branchOptimizer(BranchOptimizer.java:153)
jdk.nashorn.internal.codegen.BranchOptimizer.execute(BranchOptimizer.java:57)
jdk.nashorn.internal.codegen.CodeGenerator.emitBranch(CodeGenerator.java:2206)
jdk.nashorn.internal.codegen.CodeGenerator.enterForOrWhile(CodeGenerator.java:3425)
jdk.nashorn.internal.codegen.CodeGenerator.enterForNode(CodeGenerator.java:1751)
jdk.nashorn.internal.ir.ForNode.accept(ForNode.java:93)
jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
jdk.nashorn.internal.ir.LexicalContextStatement.accept(LexicalContextStatement.java:55)
jdk.nashorn.internal.ir.LoopNode.accept(LoopNode.java:36)
jdk.nashorn.internal.ir.Node.accept(Node.java:271)
jdk.nashorn.internal.ir.Block.accept(Block.java:185)
jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
jdk.nashorn.internal.ir.Block.accept(Block.java:439)
jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:336)
jdk.nashorn.internal.ir.LexicalContextNode$Acceptor.accept(LexicalContextNode.java:57)
jdk.nashorn.internal.ir.LexicalContextExpression.accept(LexicalContextExpression.java:47)
jdk.nashorn.internal.ir.FunctionNode.accept(FunctionNode.java:55)
jdk.nashorn.internal.codegen.CompilationPhase.transformFunction(CompilationPhase.java:628)
jdk.nashorn.internal.codegen.CompilationPhase.access$100(CompilationPhase.java:55)
jdk.nashorn.internal.codegen.CompilationPhase$BytecodeGenerationPhase.transform(CompilationPhase.java:418)
jdk.nashorn.internal.codegen.CompilationPhase.apply(CompilationPhase.java:624)
jdk.nashorn.internal.codegen.Compiler.compile(Compiler.java:655)
jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.compileTypeSpecialization(RecompilableScriptFunctionData.java:725)
jdk.nashorn.internal.runtime.RecompilableScriptFunctionData.getBest(RecompilableScriptFunctionData.java:905)
jdk.nashorn.internal.runtime.ScriptFunctionData.getBest(ScriptFunctionData.java:375)
jdk.nashorn.internal.runtime.ScriptFunctionData.getBestInvoker(ScriptFunctionData.java:237)
jdk.nashorn.internal.runtime.ScriptFunction.findCallMethod(ScriptFunction.java:871)
jdk.nashorn.internal.runtime.ScriptObject.lookup(ScriptObject.java:1825)
jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:104)
jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:98)
jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:176)
jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:154)
jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:253)
java.lang.invoke.LambdaForm$DMH/28215853.invokeSpecial_LLIL_L(LambdaForm$DMH)
java.lang.invoke.LambdaForm$BMH/16067693.reinvoke(LambdaForm$BMH)
java.lang.invoke.LambdaForm$MH/14173807.exactInvoker(LambdaForm$MH)
java.lang.invoke.LambdaForm$MH/16450363.linkToCallSite(LambdaForm$MH)
jdk.nashorn.internal.scripts.Script$1$\^eval\_.:program(<eval>:1)
java.lang.invoke.LambdaForm$DMH/7468253.invokeStatic_LL_L(LambdaForm$DMH)
java.lang.invoke.LambdaForm$MH/30350019.invokeExact_MT(LambdaForm$MH)
jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:150)
javax.script.AbstractScriptEngine.eval(Unknown Source)
org.openstreetmap.josm.data.validation.tests.OpeningHourTest.initialize(OpeningHourTest.java:54)
org.openstreetmap.josm.data.validation.tests.ConditionalKeys.initialize(ConditionalKeys.java:50)
org.openstreetmap.josm.data.validation.OsmValidator.initializeTests(OsmValidator.java:353)
org.openstreetmap.josm.data.validation.OsmValidator.initializeTests(OsmValidator.java:336)
org.openstreetmap.josm.Main$$Lambda$135/24382894.run(Unknown Source)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: AWT-Shutdown (18) of system
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Unknown Source)
sun.awt.AWTAutoShutdown.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Attach Listener (5) of system

Thread: Nashorn AST Serializer (36)
Stacktrace see above.

Thread: AWT-Windows (15) of system
sun.awt.windows.WToolkit.eventLoop(Native Method)
sun.awt.windows.WToolkit.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Java2D Disposer (12) of system
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
sun.java2d.Disposer.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Nashorn AST Serializer (38)

Thread: File Watcher (10) of main
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.util.concurrent.LinkedBlockingDeque.takeFirst(Unknown Source)
java.util.concurrent.LinkedBlockingDeque.take(Unknown Source)
sun.nio.fs.AbstractWatchService.take(Unknown Source)
org.openstreetmap.josm.io.FileWatcher.processEvents(FileWatcher.java:114)
org.openstreetmap.josm.io.FileWatcher$$Lambda$4/1025491.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Timer-0 (32) of main
java.lang.Object.wait(Native Method)
java.util.TimerThread.mainLoop(Unknown Source)
java.util.TimerThread.run(Unknown Source)

Thread: AWT-EventQueue-0 (17) of main
sun.java2d.d3d.D3DRenderQueue.flushBuffer(Native Method)
sun.java2d.d3d.D3DRenderQueue.flushBuffer(Unknown Source)
sun.java2d.d3d.D3DRenderQueue.flushAndInvokeNow(Unknown Source)
sun.java2d.d3d.D3DSurfaceData.initSurface(Unknown Source)
sun.java2d.d3d.D3DSurfaceData.<init>(Unknown Source)
sun.java2d.d3d.D3DSurfaceData.createData(Unknown Source)
sun.java2d.d3d.D3DGraphicsConfig.createManagedSurface(Unknown Source)
sun.java2d.d3d.D3DSurfaceDataProxy.validateSurfaceData(Unknown Source)
sun.java2d.SurfaceDataProxy.replaceData(Unknown Source)
sun.java2d.SurfaceData.getSourceSurfaceData(Unknown Source)
sun.java2d.pipe.DrawImage.renderImageCopy(Unknown Source)
sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
sun.java2d.SunGraphics2D.copyImage(Unknown Source)
sun.java2d.SunGraphics2D.drawImage(Unknown Source)
sun.awt.image.ImageRepresentation.drawToBufImage(Unknown Source)
sun.java2d.pipe.DrawImage.copyImage(Unknown Source)
sun.java2d.pipe.ValidatePipe.copyImage(Unknown Source)
sun.java2d.SunGraphics2D.copyImage(Unknown Source)
sun.java2d.SunGraphics2D.drawImage(Unknown Source)
sun.java2d.SunGraphics2D.drawImage(Unknown Source)
javax.swing.text.html.ImageView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.ParagraphView.paint(Unknown Source)
javax.swing.text.html.ParagraphView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.html.BlockView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.html.ListView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.html.BlockView.paint(Unknown Source)
javax.swing.text.html.ListView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.html.BlockView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.html.BlockView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.html.BlockView.paint(Unknown Source)
javax.swing.text.BoxView.paintChild(Unknown Source)
javax.swing.text.BoxView.paint(Unknown Source)
javax.swing.text.html.BlockView.paint(Unknown Source)
javax.swing.plaf.basic.BasicTextUI$RootView.paint(Unknown Source)
javax.swing.plaf.basic.BasicTextUI.paintSafely(Unknown Source)
javax.swing.plaf.basic.BasicTextUI.paint(Unknown Source)
javax.swing.plaf.basic.BasicTextUI.update(Unknown Source)
javax.swing.JComponent.paintComponent(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JViewport.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
javax.swing.JLayeredPane.paint(Unknown Source)
javax.swing.JComponent.paintChildren(Unknown Source)
javax.swing.JComponent.paintToOffscreen(Unknown Source)
javax.swing.BufferStrategyPaintManager.paint(Unknown Source)
javax.swing.RepaintManager.paint(Unknown Source)
javax.swing.JComponent.paint(Unknown Source)
java.awt.GraphicsCallback$PaintCallback.run(Unknown Source)
sun.awt.SunGraphicsCallback.runOneComponent(Unknown Source)
sun.awt.SunGraphicsCallback.runComponents(Unknown Source)
java.awt.Container.paint(Unknown Source)
java.awt.Window.paint(Unknown Source)
javax.swing.RepaintManager$4.run(Unknown Source)
javax.swing.RepaintManager$4.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
javax.swing.RepaintManager.paintDirtyRegions(Unknown Source)
javax.swing.RepaintManager.prePaintDirtyRegions(Unknown Source)
javax.swing.RepaintManager.access$1200(Unknown Source)
javax.swing.RepaintManager$ProcessingRunnable.run(Unknown Source)
java.awt.event.InvocationEvent.dispatch(Unknown Source)
java.awt.EventQueue.dispatchEventImpl(Unknown Source)
java.awt.EventQueue.access$500(Unknown Source)
java.awt.EventQueue$3.run(Unknown Source)
java.awt.EventQueue$3.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.security.ProtectionDomain$JavaSecurityAccessImpl.doIntersectionPrivilege(Unknown Source)
java.awt.EventQueue.dispatchEvent(Unknown Source)
java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.pumpEvents(Unknown Source)
java.awt.EventDispatchThread.run(Unknown Source)

Thread: Nashorn AST Serializer (37)

Thread: main-init-2 (28)
java.io.FileInputStream.readBytes(Native Method)
java.io.FileInputStream.read(Unknown Source)
java.io.BufferedInputStream.fill(Unknown Source)
java.io.BufferedInputStream.read1(Unknown Source)
java.io.BufferedInputStream.read(Unknown Source)
java.io.ObjectInputStream$PeekInputStream.read(Unknown Source)
java.io.ObjectInputStream$PeekInputStream.readFully(Unknown Source)
java.io.ObjectInputStream$BlockDataInputStream.readInt(Unknown Source)
java.io.ObjectInputStream.readHandle(Unknown Source)
java.io.ObjectInputStream.readClassDesc(Unknown Source)
java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
java.io.ObjectInputStream.readObject0(Unknown Source)
java.io.ObjectInputStream.readObject(Unknown Source)
org.apache.commons.jcs.auxiliary.disk.block.BlockDiskKeyStore.loadKeys(BlockDiskKeyStore.java:274)
org.apache.commons.jcs.auxiliary.disk.block.BlockDiskKeyStore.<init>(BlockDiskKeyStore.java:120)
org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCache.<init>(BlockDiskCache.java:143)
org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheFactory.createCache(BlockDiskCacheFactory.java:60)
org.apache.commons.jcs.auxiliary.disk.block.BlockDiskCacheFactory.createCache(BlockDiskCacheFactory.java:33)
org.openstreetmap.josm.data.cache.JCSCacheManager.getCacheInner(JCSCacheManager.java:179)
org.openstreetmap.josm.data.cache.JCSCacheManager.getCache(JCSCacheManager.java:166)
org.openstreetmap.josm.gui.layer.AbstractCachedTileSourceLayer.getCache(AbstractCachedTileSourceLayer.java:128)
org.openstreetmap.josm.gui.layer.TMSLayer.getCache(TMSLayer.java:140)
org.openstreetmap.josm.Main$$Lambda$134/18401272.run(Unknown Source)
java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: main (1)
java.util.zip.ZipFile.read(Native Method)
java.util.zip.ZipFile.access$1400(Unknown Source)
java.util.zip.ZipFile$ZipFileInputStream.read(Unknown Source)
java.util.zip.ZipFile$ZipFileInflaterInputStream.fill(Unknown Source)
java.util.zip.InflaterInputStream.read(Unknown Source)
java.util.jar.JarVerifier$VerifierStream.read(Unknown Source)
sun.misc.Resource.getBytes(Unknown Source)
java.net.URLClassLoader.defineClass(Unknown Source)
java.net.URLClassLoader.access$100(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
oauth.signpost.OAuth.<clinit>(OAuth.java:76)
oauth.signpost.AbstractOAuthConsumer.collectHeaderParameters(AbstractOAuthConsumer.java:236)
oauth.signpost.AbstractOAuthConsumer.sign(AbstractOAuthConsumer.java:101)
oauth.signpost.AbstractOAuthConsumer.sign(AbstractOAuthConsumer.java:126)
org.openstreetmap.josm.io.OsmConnection.addOAuthAuthorizationHeader(OsmConnection.java:104)
org.openstreetmap.josm.io.OsmConnection.addAuth(OsmConnection.java:147)
org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:151)
org.openstreetmap.josm.io.OsmServerReader.getInputStreamRaw(OsmServerReader.java:110)
org.openstreetmap.josm.io.OsmServerReader.getInputStream(OsmServerReader.java:74)
org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:176)
org.openstreetmap.josm.io.OsmServerUserInfoReader.fetchUserInfo(OsmServerUserInfoReader.java:161)
org.openstreetmap.josm.gui.JosmUserIdentityManager.initFromOAuth(JosmUserIdentityManager.java:230)
org.openstreetmap.josm.gui.JosmUserIdentityManager.getInstance(JosmUserIdentityManager.java:68)
org.openstreetmap.josm.io.MessageNotifier.isUserEnoughIdentified(MessageNotifier.java:131)
org.openstreetmap.josm.io.MessageNotifier.start(MessageNotifier.java:100)
org.openstreetmap.josm.gui.MainApplication.main(MainApplication.java:398)

Thread: TimerQueue (20) of system
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.util.concurrent.DelayQueue.take(Unknown Source)
javax.swing.TimerQueue.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Thread-1 (9) of main
sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus0(Native Method)
sun.nio.fs.WindowsNativeDispatcher.GetQueuedCompletionStatus(Unknown Source)
sun.nio.fs.WindowsWatchService$Poller.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Signal Dispatcher (4) of system

Thread: Reference Handler (2) of system
java.lang.Object.wait(Native Method)
java.lang.Object.wait(Unknown Source)
java.lang.ref.Reference.tryHandlePending(Unknown Source)
java.lang.ref.Reference$ReferenceHandler.run(Unknown Source)

Thread: Weak reference cleaner (23) of main
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
org.openstreetmap.josm.tools.ListenableWeakReference.clean(ListenableWeakReference.java:60)
org.openstreetmap.josm.tools.ListenableWeakReference$$Lambda$78/4052331.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Image Fetcher 0 (34)
java.lang.Object.wait(Native Method)
sun.awt.image.ImageFetcher.nextImage(Unknown Source)
sun.awt.image.ImageFetcher.fetchloop(Unknown Source)
sun.awt.image.ImageFetcher.run(Unknown Source)

Thread: D3D Screen Updater (22) of system
java.lang.Object.wait(Native Method)
sun.java2d.d3d.D3DScreenUpdateManager.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: JCS-ElementEventQueue-Thread-8 (33) of main
sun.misc.Unsafe.park(Native Method)
java.util.concurrent.locks.LockSupport.park(Unknown Source)
java.util.concurrent.locks.AbstractQueuedSynchronizer$ConditionObject.await(Unknown Source)
java.util.concurrent.LinkedBlockingQueue.take(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.getTask(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Thread: Finalizer (3) of system
java.lang.Object.wait(Native Method)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.lang.ref.ReferenceQueue.remove(Unknown Source)
java.lang.ref.Finalizer$FinalizerThread.run(Unknown Source)

Thread: main-init-0 (26)
java.util.zip.ZipFile.getEntry(Unknown Source)
java.util.jar.JarFile.getEntry(Unknown Source)
java.util.jar.JarFile.getJarEntry(Unknown Source)
sun.misc.URLClassPath$JarLoader.getResource(Unknown Source)
sun.misc.URLClassPath.getResource(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.net.URLClassLoader$1.run(Unknown Source)
java.security.AccessController.doPrivileged(Native Method)
java.net.URLClassLoader.findClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
java.lang.ClassLoader.loadClass(Unknown Source)
jdk.internal.dynalink.support.ClassMap.get(ClassMap.java:153)
jdk.internal.dynalink.support.TypeConverterFactory.getCacheableTypeConverter(TypeConverterFactory.java:356)
jdk.internal.dynalink.support.TypeConverterFactory.getCacheableTypeConverterNull(TypeConverterFactory.java:343)
jdk.internal.dynalink.support.TypeConverterFactory.getTypeConverterNull(TypeConverterFactory.java:349)
jdk.internal.dynalink.support.TypeConverterFactory.asType(TypeConverterFactory.java:246)
jdk.internal.dynalink.support.LinkerServicesImpl.asType(LinkerServicesImpl.java:131)
jdk.internal.dynalink.linker.LinkerServices$Implementation.asTypeLosslessReturn(LinkerServices.java:206)
jdk.internal.dynalink.support.LinkerServicesImpl.asTypeLosslessReturn(LinkerServicesImpl.java:136)
jdk.internal.dynalink.linker.GuardedInvocation.asTypeSafeReturn(GuardedInvocation.java:339)
jdk.nashorn.internal.runtime.linker.Bootstrap.asTypeSafeReturn(Bootstrap.java:439)
jdk.nashorn.internal.runtime.linker.NashornLinker.getGuardedInvocation(NashornLinker.java:98)
jdk.internal.dynalink.support.CompositeTypeBasedGuardingDynamicLinker.getGuardedInvocation(CompositeTypeBasedGuardingDynamicLinker.java:176)
jdk.internal.dynalink.support.CompositeGuardingDynamicLinker.getGuardedInvocation(CompositeGuardingDynamicLinker.java:124)
jdk.internal.dynalink.support.LinkerServicesImpl.getGuardedInvocation(LinkerServicesImpl.java:154)
jdk.internal.dynalink.DynamicLinker.relink(DynamicLinker.java:253)
java.lang.invoke.LambdaForm$DMH/28215853.invokeSpecial_LLIL_L(LambdaForm$DMH)
java.lang.invoke.LambdaForm$BMH/5346524.reinvoke(LambdaForm$BMH)
java.lang.invoke.LambdaForm$MH/5825900.exactInvoker(LambdaForm$MH)
java.lang.invoke.LambdaForm$MH/8532120.linkToCallSite(LambdaForm$MH)
jdk.nashorn.internal.scripts.Script$3$\^eval\_.:program(<eval>:1)
java.lang.invoke.LambdaForm$DMH/16284740.invokeStatic_LL_I(LambdaForm$DMH)
java.lang.invoke.LambdaForm$BMH/32216253.reinvoke(LambdaForm$BMH)
java.lang.invoke.LambdaForm$MH/30350019.invokeExact_MT(LambdaForm$MH)
jdk.nashorn.internal.runtime.ScriptFunctionData.invoke(ScriptFunctionData.java:637)
jdk.nashorn.internal.runtime.ScriptFunction.invoke(ScriptFunction.java:494)
jdk.nashorn.internal.runtime.ScriptRuntime.apply(ScriptRuntime.java:393)
jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:449)
jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:406)
jdk.nashorn.api.scripting.NashornScriptEngine.evalImpl(NashornScriptEngine.java:402)
jdk.nashorn.api.scripting.NashornScriptEngine.eval(NashornScriptEngine.java:150)
javax.script.AbstractScriptEngine.eval(Unknown Source)
org.openstreetmap.josm.tools.OverpassTurboQueryWizard.<init>(OverpassTurboQueryWizard.java:47)
org.openstreetmap.josm.tools.OverpassTurboQueryWizard.getInstance(OverpassTurboQueryWizard.java:34)
org.openstreetmap.josm.Main$$Lambda$136/6987850.call(Unknown Source)
java.util.concurrent.FutureTask.run(Unknown Source)
java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
java.lang.Thread.run(Unknown Source)

Attachments (1)

javabug.zip (82.9 KB) - added by Don-vip 13 days ago.

Download all attachments as: .zip

Change History (8)

comment:1 Changed 3 weeks ago by Don-vip

Component: CoreCore validator
Keywords: nashorn opening_hours javascript added
Summary: Error when starting upNoClassDefFoundError when starting up (opening_hours javascript test initialization)

comment:2 Changed 3 weeks ago by Don-vip

Keywords: javabug added

comment:3 Changed 3 weeks ago by Don-vip

Initial bug report sent to Oracle: internal review ID : 9049427

comment:4 Changed 2 weeks ago by Don-vip

Component: Core validatorCore
Keywords: overpass turbo added; opening_hours removed
Summary: NoClassDefFoundError when starting up (opening_hours javascript test initialization)NoClassDefFoundError when starting up (overpass turbo javascript initialization)

comment:5 Changed 13 days ago by Don-vip

Oracle asks me a reproducible test case I can't provide for sure, here's my answer:

I can't reproduce it neither but please find attached a test case that *might* reproduce it under unknown conditions.
In fact we initialize two Javascript in parallel with Nashorn.
I think the bug is maybe a race condition between the two threads, so that's difficult to reproduce.

Changed 13 days ago by Don-vip

Attachment: javabug.zip added

comment:6 Changed 13 days ago by Don-vip

Resolution: othersoftware
Status: newclosed

Bug is here: javabug:8181932

comment:7 Changed 13 days ago by Don-vip

Keywords: opening_hours race condition thread added
Summary: NoClassDefFoundError when starting up (overpass turbo javascript initialization)NoClassDefFoundError when starting up (overpass turbo & opening_hours javascript initialization)

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain team.
as The resolution will be set. Next status will be 'closed'.
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.