Modify

Opened 4 years ago

Closed 4 years ago

#3428 closed defect (worksforme)

Uploading from new layer gives "Expected states are IN_TASK but current state is INIT" exception

Reported by: avar Owned by: team
Priority: blocker Component: Core
Version: latest Keywords:
Cc:

Description

  1. Open JOSM
  2. Create new layer
  3. Create new data & upload:
org.openstreetmap.josm.gui.progress.ProgressException: Expected states are [IN_TASK] but current state is INIT
        at org.openstreetmap.josm.gui.progress.AbstractProgressMonitor.checkState(AbstractProgressMonitor.java:66)
        at org.openstreetmap.josm.gui.progress.AbstractProgressMonitor.finishTask(AbstractProgressMonitor.java:92)
        at org.openstreetmap.josm.io.OsmServerWriter.uploadOsm(OsmServerWriter.java:201)
        at org.openstreetmap.josm.actions.UploadAction$UploadDiffTask.realRun(UploadAction.java:539)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.doRealRun(PleaseWaitRunnable.java:62)
        at org.openstreetmap.josm.gui.PleaseWaitRunnable.run(PleaseWaitRunnable.java:116)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:619)

By contrast downloading from the server first and then uploading works.

Attachments (0)

Change History (2)

comment:1 Changed 4 years ago by stoecker

  • Summary changed from Uploading from new layer gives "Expected states are [IN_TASK] but current state is INIT" exception to Uploading from new layer gives "Expected states are IN_TASK but current state is INIT" exception

comment:2 Changed 4 years ago by Gubaer

  • Resolution set to worksforme
  • Status changed from new to closed

Not anymore in my environment, probably because I recently fixed the nesting of progress monitor in the upload code.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed .
as The resolution will be set. Next status will be 'closed'.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.