Modify

Opened 3 years ago

Closed 3 years ago

#21551 closed defect (fixed)

NPE in org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest

Reported by: anonymous Owned by: taylor.smock
Priority: normal Milestone:
Component: Plugin mapwithai Version: tested
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

What is the expected result?

What happens instead?

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

URL:https://josm.openstreetmap.de/svn/trunk
Repository:UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last:Changed Date: 2021-11-01 23:05:46 +0100 (Mon, 01 Nov 2021)
Build-Date:2021-11-01 22:25:18
Revision:18303
Relative:URL: ^/trunk

Identification: JOSM/1.5 (18303 en) Mac OS X 10.16
OS Build number: macOS 12.0.1 (21A559)
Memory Usage: 1687 MB / 7282 MB (512 MB allocated, but free)
Java version: 1.8.0_311-b11, Oracle Corporation, Java HotSpot(TM) 64-Bit Server VM
Look and Feel: com.formdev.flatlaf.FlatDarkLaf
Screen: Display 188945231 1920×1080 (scaling 1.00×1.00) Display 69734662 1792×1120 (scaling 1.00×1.00)
Maximum Screen Size: 1920×1120
Best cursor sizes: 16×16→16×16, 32×32→32×32
System property file.encoding: UTF-8
System property sun.jnu.encoding: UTF-8
Locale info: en_US
Numbers with default locale: 1234567890 -> 1234567890
Dataset consistency test: No problems found

Plugins:
+ Mapillary (2.0.0-alpha.43)
+ apache-commons (35524)
+ apache-http (35589)
+ buildings_tools (35823)
+ ejml (35458)
+ flatlaf (35862)
+ geotools (35458)
+ jaxb (35543)
+ jna (35662)
+ jts (35458)
+ log4j (35852)
+ mapwithai (1.8.7)
+ measurement (35640)
+ opendata (35803)
+ reverter (35846)
+ utilsplugin2 (35856)

Tagging presets:
+ ${HOME}/Downloads/FB_presets.xml

Map paint styles:
+ ${HOME}/Downloads/FB_style.mapcss

Last errors/warnings:
- 00019.924 E: ${HOME}/Downloads/FB_presets.xml
- 00021.646 E: Failed to locate image 'MapWithAI'
- 00040.042 E: java.nio.file.FileSystemException: ${HOME}/Downloads/SeattleSidewalks.gpx: Operation not permitted
- 00040.081 E: Error - <html>Could not read file 'SeattleSidewalks.gpx'.<br>Error is:<br>${HOME}/Downloads/SeattleSidewalks.gpx: Operation not permitted</html>
- 00121.786 W: Failed to load Mappaint styles from '${HOME}/Downloads/FB_style.mapcss'. Exception was: java.nio.file.FileSystemException: ${HOME}/Downloads/FB_style.mapcss: Operation not permitted
- 00121.787 E: java.nio.file.FileSystemException: ${HOME}/Downloads/FB_style.mapcss: Operation not permitted
- 00243.012 E: Handled by bug report queue: java.lang.NullPointerException. Cause: java.lang.NullPointerException
- 00264.300 E: java.nio.file.FileSystemException: ${HOME}/Downloads: Operation not permitted
- 00312.049 E: Handled by bug report queue: java.lang.NullPointerException. Cause: java.lang.NullPointerException
- 00322.119 E: Handled by bug report queue: java.lang.NullPointerException. Cause: java.lang.NullPointerException



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (27) of main
java.lang.NullPointerException
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
	at java.util.concurrent.ForkJoinTask.getThrowableException(ForkJoinTask.java:598)
	at java.util.concurrent.ForkJoinTask.reportException(ForkJoinTask.java:677)
	at java.util.concurrent.ForkJoinTask.invoke(ForkJoinTask.java:735)
	at java.util.stream.ForEachOps$ForEachOp.evaluateParallel(ForEachOps.java:160)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateParallel(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:233)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at java.util.stream.ReferencePipeline$Head.forEach(ReferencePipeline.java:583)
	at org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest.endTest(RoutingIslandsTest.java:83)
	at org.openstreetmap.josm.data.validation.ValidationTask.realRun(ValidationTask.java:95)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:94)
	at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:142)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.NullPointerException
	at org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest.lambda$findConnectedWays$12(RoutingIslandsTest.java:206)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
	at java.util.HashMap$KeySpliterator.forEachRemaining(HashMap.java:1584)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:472)
	at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
	at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
	at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
	at org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest.findConnectedWays(RoutingIslandsTest.java:196)
	at org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest.runTest(RoutingIslandsTest.java:123)
	at org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest.lambda$endTest$0(RoutingIslandsTest.java:84)
	at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
	at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1384)
	at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:482)
	at java.util.stream.ForEachOps$ForEachTask.compute(ForEachOps.java:291)
	at java.util.concurrent.CountedCompleter.exec(CountedCompleter.java:731)
	at java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:289)
	at java.util.concurrent.ForkJoinPool$WorkQueue.execLocalTasks(ForkJoinPool.java:1051)
	at java.util.concurrent.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1069)
	at java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1703)
	at java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:172)

Attachments (0)

Change History (2)

comment:1 by GerdP, 3 years ago

Component: CorePlugin mapwithai
Owner: changed from team to taylor.smock

comment:2 by taylor.smock, 3 years ago

Resolution: fixed
Status: newclosed
Summary: Validator isn't working, as well as the bug page continuously popping up.NPE in org.openstreetmap.josm.plugins.mapwithai.data.validation.tests.RoutingIslandsTest

Fixed in https://gitlab.com/gokaart/JOSM_MapWithAI/-/merge_requests/284

@anonymous: You should be able to update plugins in an hour or so, and get the fix.

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain taylor.smock.
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.