NOTICE! This is a static HTML version of a legacy Fiji BugZilla bug.

The Fiji project now uses GitHub Issues for issue tracking.

Please file all new issues there.

Bug 550 - Uploading to update-site via SSH results in error
Uploading to update-site via SSH results in error
Status: RESOLVED FIXED
Product: Fiji
Classification: Unclassified
Component: ImageJ1
unspecified
All Linux
: P5 normal
Assigned To: ImageJ Bugs Mailing List
Depends on:
Blocks:
 
Reported: 2013-01-22 13:08 CST by Stefan Helfrich
Modified: 2013-04-23 11:56 CDT
3 users (show)

See Also:


Attachments
Call Stack for Exception (3.16 KB, text/plain)
2013-01-22 13:08 CST, Stefan Helfrich

Description Stefan Helfrich 2013-01-22 13:08:11 CST
Created attachment 91
Call Stack for Exception

Adding a new update-site for uploading via SSH results in an uncaught exception:

[ERROR] java.lang.IllegalArgumentException: No uploader found for protocol ssh

The complete call stack is attached.

Built from latest commit in repository (2013-01-22)  

Ubuntu 12.04 (64-bit)
Comment 1 Stefan Helfrich 2013-01-22 17:20:52 CST
There seems to be no problem when using a pre-packaged (continuous) version.

However, I have updated the ij-core component before adding the update-site.
Comment 2 Johannes Schindelin 2013-01-22 17:31:44 CST
The full stacktrace would be a bit more helpful, I think.

The idea is that the 'ssh' protocol is a special case (since Fiji itself uses it) and will be auto-installed. However, it seems to have failed in your case. It is quite possible, though, that the ij-updater-ssh.jar was installed correctly, but not used quite yet (but would be used after a restart of Fiji).

It is also possible that a recent change I made in fiji-compat (meant to help ImageJ2 plugins to run in ImageJ1) broke things...

I'll try to reproduce in a fresh clone.
Comment 3 Stefan Helfrich 2013-01-22 17:59:19 CST
The stracktrace is attached as file.

I have tried the same procedure on a fresh clone and was able to add the site this time. However, when trying to upload a plugin to the site the ?same? error is produced:

java.lang.IllegalArgumentException: No uploader found for protocol ssh
	at imagej.updater.core.DefaultUploaderService.getUploader(DefaultUploaderService.java:80)
	at imagej.updater.core.FilesUploader.<init>(FilesUploader.java:97)
	at imagej.updater.core.FilesUploader.<init>(FilesUploader.java:86)
	at imagej.updater.gui.UpdaterFrame.upload(UpdaterFrame.java:824)
	at imagej.updater.gui.UpdaterFrame$7$1.run(UpdaterFrame.java:343)
Comment 4 Johannes Schindelin 2013-01-22 18:28:08 CST
Ah, I see now. The problem occurs indeed while initializing the update site, but I put special ssh protocol handling in only when individual files are marked for upload (which makes sense only if somebody else initialized the update site).

Will work on this later this week.
Comment 5 Gerrit 2013-01-30 14:16:45 CST
It turned out that the problem I reported on [ImageJ-devel] on Januari 29 is the result of exactly this bug.
Comment 6 Johannes Schindelin 2013-04-23 11:56:15 CDT
I declare this bug finally fixed with https://github.com/imagej/imagej/commit/4267b0fd4ae180c0e068ca0f7e347d365607311a.

Thanks for your patience!