Modify

Opened 3 years ago

Last modified 3 years ago

#22061 new defect

error when saving matsim layer

Reported by: anonymous Owned by: double-m
Priority: normal Milestone:
Component: Plugin matsim Version:
Keywords: template_report Cc:

Description

What steps will reproduce the problem?

  1. download a network from overpass api
  2. convert to matsim layer
  3. save matsim layer as xml

What is the expected result?

A xml file.

What happens instead?

Exception.

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

Revision:18427
Build-Date:2022-04-05 19:28:31

Identification: JOSM/1.5 (18427 en) Mac OS X 11.5.2
OS Build number: macOS 11.5.2 (20G95)
Memory Usage: 656 MB / 2048 MB (92 MB allocated, but free)
Java version: 17.0.2+8-LTS, Azul Systems, Inc., OpenJDK 64-Bit Server VM
Look and Feel: com.apple.laf.AquaLookAndFeel
Screen: Display 1 1440×900 (scaling 2.00×2.00)
Maximum Screen Size: 1440×900
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_SG
Numbers with default locale: 1234567890 -> 1234567890
VM arguments: [-Djpackage.app-version=18427, --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.apple.eawt=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=/private/var/folders/y5/fgbf9rt16pv2sy91fx77q51m0000gn/T/AppTranslocation/FA6C9965-78EE-45E1-9978-D8FCA21EB3A2/d/JOSM.app/Contents/MacOS/JOSM]
Dataset consistency test: No problems found

Plugins:
+ apache-commons (35924)
+ ejml (35924)
+ geotools (35959)
+ jackson (35958)
+ javafx (35807)
+ jaxb (35952)
+ jts (35924)
+ matsim (d70ae5a)

Last errors/warnings:
- 00022.382 E: Failed to locate image 'open.png'
- 00022.395 E: Failed to locate image 'new.png'
- 00022.528 E: Failed to locate image 'matsim-scenario.png'
- 00022.531 W:  null: Could not get presets icon matsim-scenario.png
- 00022.534 E: Failed to locate image 'images/dialogs/logo.png'
- 00022.536 W:  Link: Could not get presets icon images/dialogs/logo.png
- 00971.375 E: Failed to locate image '[[Image(pond.png)]]'
- 00971.405 E: Failed to locate image '[[Image(oil-palm.png)]]'
- 01071.579 E: Handled by bug report queue: org.matsim.core.utils.io.UncheckedIOException: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: /Matsim test.xml (Read-only file system). Cause: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: /Matsim test.xml (Read-only file system). Cause: java.io.FileNotFoundException: /Matsim test.xml (Read-only file system)
- 01130.324 E: Handled by bug report queue: org.matsim.core.utils.io.UncheckedIOException: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: /test.xml (Read-only file system). Cause: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: /test.xml (Read-only file system). Cause: java.io.FileNotFoundException: /test.xml (Read-only file system)



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

Warning issued by: BugReportExceptionHandler#handleException

=== STACK TRACE ===
Thread: AWT-EventQueue-0 (24) of main
org.matsim.core.utils.io.UncheckedIOException: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: /test.xml (Read-only file system)
	at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:258)
	at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:221)
	at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:191)
	at org.matsim.core.utils.io.AbstractMatsimWriter.openFile(AbstractMatsimWriter.java:70)
	at org.matsim.core.network.io.NetworkWriter.writeFile(NetworkWriter.java:106)
	at org.matsim.core.network.io.NetworkWriter.writeFileV2(NetworkWriter.java:88)
	at org.matsim.core.network.io.NetworkWriter.write(NetworkWriter.java:71)
	at org.matsim.contrib.josm.actions.NetworkExporter.exportData(NetworkExporter.java:123)
	at org.openstreetmap.josm.actions.SaveActionBase.doInternalSave(SaveActionBase.java:146)
	at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:113)
	at org.openstreetmap.josm.actions.SaveActionBase.doSave(SaveActionBase.java:100)
	at org.openstreetmap.josm.gui.layer.Layer$LayerSaveAsAction.actionPerformed(Layer.java:555)
	at java.desktop/javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
	at java.desktop/javax.swing.DefaultButtonModel.setPressed(Unknown Source)
	at java.desktop/javax.swing.AbstractButton.doClick(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI.doClick(Unknown Source)
	at java.desktop/com.apple.laf.AquaMenuItemUI.doClick(Unknown Source)
	at java.desktop/javax.swing.plaf.basic.BasicMenuItemUI$Handler.mouseReleased(Unknown Source)
	at java.desktop/java.awt.AWTEventMulticaster.mouseReleased(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: org.matsim.core.utils.io.UncheckedIOException: java.io.FileNotFoundException: /test.xml (Read-only file system)
	at org.matsim.core.utils.io.IOUtils.getOutputStream(IOUtils.java:410)
	at org.matsim.core.utils.io.IOUtils.getBufferedWriter(IOUtils.java:256)
	... 50 more
Caused by: java.io.FileNotFoundException: /test.xml (Read-only file system)
	at java.base/java.io.FileOutputStream.open0(Native Method)
	at java.base/java.io.FileOutputStream.open(Unknown Source)
	at java.base/java.io.FileOutputStream.<init>(Unknown Source)
	at java.base/java.io.FileOutputStream.<init>(Unknown Source)
	at org.matsim.core.utils.io.IOUtils.getOutputStream(IOUtils.java:407)
	... 51 more

Attachments (0)

Change History (1)

comment:1 by GerdP, 3 years ago

Component: CorePlugin matsim
Owner: changed from team to double-m

The plugin matsim is not maintained by the JOSM team. See https://github.com/matsim-org/josm-matsim-plugin

Modify Ticket

Change Properties
Set your email in Preferences
Action
as new The owner will remain double-m.
as The resolution will be set. Next status will be 'closed'.
to The owner will be changed from double-m to the specified user.
Next status will be 'needinfo'. The owner will be changed from double-m to anonymous.
as duplicate The resolution will be set to duplicate. Next status will be 'closed'. The specified ticket will be cross-referenced with this ticket.
The owner will be changed from double-m to anonymous. Next status will be 'assigned'.

Add Comment


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