Opened 10 years ago

Closed 10 years ago

#9990 closed defect (fixed)

Saving session results in IO Error

Reported by: ijsb Owned by: Don-vip
Priority: normal Milestone: 14.05
Component: Core Version:
Keywords: Cc:


Saving a session no longer works in the latest JOSMs, versions 7054 and today's 7068. It's still working for me in version 7028.

How to reproduce:

  1. (Empty profile directory)
  2. Start JOSM, enable Expert mode and create the advanced preference "session=true"
  3. Create a new data layer and add a single node, just to have some data
  4. File > Session > Save Session As...
  5. In the dialog box, include Data Layer 1 (default setting) and select Save As
  6. Enter a file name and select Save

Expected results:
-A correctly saved session file.

Actual results:
-An error dialog box "IO Error", "Could not save session file 'test.joz'. Error is: Stream closed".
-A stack trace (below).
-The created "test.joz" only contains "layers/01/data.osm". There is no "session.jos" and test.joz cannot be opened by JOSM.

Status report:

Repository Root:
Build-Date: 2014-05-06 01:36:32
Last Changed Author: Don-vip
Revision: 7068
Repository UUID: 0c6e7542-c601-0410-84e7-c038aed88b3b
Last Changed Date: 2014-05-06 01:24:41 +0200 (Tue, 06 May 2014)
Last Changed Rev: 7068

Identification: JOSM/1.5 (7068 en) Linux Fedora release 20 (Heisenbug)
Memory Usage: 103 MB / 832 MB (66 MB allocated, but free)
Java version: 1.7.0_55, Oracle Corporation, OpenJDK 64-Bit Server VM

Stack trace:

ERROR: Stream closed Stream closed
        at org.openstreetmap.josm.actions.SessionSaveAsAction.actionPerformed(
        at javax.swing.AbstractButton.fireActionPerformed(
        at javax.swing.AbstractButton$Handler.actionPerformed(
        at javax.swing.DefaultButtonModel.fireActionPerformed(
        at javax.swing.DefaultButtonModel.setPressed(
        at javax.swing.AbstractButton.doClick(

Attachments (0)

Change History (5)

comment:1 by Don-vip, 10 years ago

Milestone: 14.05
Owner: changed from team to Don-vip
Status: newassigned

comment:2 by Don-vip, 10 years ago

In 7070/josm:

see #9990 - show problem with unit tests

comment:4 by Don-vip, 10 years ago

Yes I have seen :) I preferred to focus on non regression test before fixing it :)

comment:5 by Don-vip, 10 years ago

Resolution: fixed
Status: assignedclosed

In 7071/josm:

fix #9990 - Fix session writing regression

Modify Ticket

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