BAR update site broken?

Hi @tferr. When updating my Fiji this morning, which included the BAR update site and several others, I received:

java.io.FileNotFoundException: http://sites.imagej.net/Tiago/plugins/Simple_Neurite_Tracer-3.0.3-SNAPSHOT.jar-20160422175932
	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 sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1890)
	at sun.net.www.protocol.http.HttpURLConnection$10.run(HttpURLConnection.java:1885)
	at java.security.AccessController.doPrivileged(Native Method)
	at sun.net.www.protocol.http.HttpURLConnection.getChainedException(HttpURLConnection.java:1884)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1457)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
	at net.imagej.updater.util.Downloader.download(Downloader.java:117)
	at net.imagej.updater.util.Downloader.start(Downloader.java:98)
	at net.imagej.updater.Installer.start(Installer.java:154)
	at net.imagej.ui.swing.updater.UpdaterFrame.install(UpdaterFrame.java:629)
	at net.imagej.ui.swing.updater.UpdaterFrame$13.run(UpdaterFrame.java:566)
Caused by: java.io.FileNotFoundException: http://sites.imagej.net/Tiago/plugins/Simple_Neurite_Tracer-3.0.3-SNAPSHOT.jar-20160422175932
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1836)
	at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1441)
	at sun.net.www.protocol.http.HttpURLConnection.getHeaderField(HttpURLConnection.java:2943)
	at java.net.HttpURLConnection.getHeaderFieldDate(HttpURLConnection.java:552)
	at java.net.URLConnection.getLastModified(URLConnection.java:559)
	at net.imagej.updater.util.Downloader.download(Downloader.java:108)
	... 4 more

This might be a bug in the Updater, but I first wanted to ask if any manual manipulation was done to the BAR update site which might have caused this? Or whether you had any other update sites enabled when you uploaded to BAR? It is best practice to have a “clean” Fiji with only ImageJ, Fiji and BAR (and maybe Java-8) turned on when you do your uploads—otherwise it is conceivable that the Updater could get “mixed up” somehow.

I hacked the BAR update site’s db.xml.gz to remove the overridden Simple Neurite Tracer, and was then able to update successfully. @tferr Did you mean to override SNT with a custom version? Or was that perhaps a mix-up of the Updater? If you did mean to override it, perhaps we should roll any changes back upstream to Fiji?

No, not at all. I did not mean to override SNT either. I do have one same Fiji installation set for BAR, Neuroanatomy and (recently) Java 8 uploads. I guess I’m not being easy on the updater.
When I marked the BAR files for upload an exception was thrown (sorry, I was in a rush and did not look into it). I then restarted Fiji, and things seemed to work OK, so I went ahead with the upload. But I am convinced my snapshot version of SNT was not marked for upload.

Got it. Will keep a separate instance of Fiji for each of update sites. It is just I always get confused when I keep more than two Fijis, and never know which one I am using.

Do you want me to do something?

I know right!

ls -la /Applications/Science/ | grep Fiji                                                                                                                                                                        #  0 {2016-06-16 11:17:21}
drwxr-xr-x@  15 curtis  staff    510 Mar  7 10:43 Fiji-BoneJ.app/
drwxr-xr-x@  14 curtis  staff    476 May  3 11:34 Fiji-ClearVolume.app/
drwxr-xr-x@  15 curtis  staff    510 Sep 16  2015 Fiji-Cookbook.app/
drwxr-xr-x@  15 curtis  staff    510 Jun 14 10:45 Fiji-Default.app/
drwxr-xr-x@  16 curtis  admin    544 May 21  2015 Fiji-FFMPEG.app/
drwxr-xr-x@  14 curtis  wheel    476 Feb  9 15:43 Fiji-Hinerm.app/
drwxr-xr-x@  14 curtis  staff    476 Jun  7 12:42 Fiji-Java-8-Plus.app/
drwxr-xr-x@  14 curtis  staff    476 Jun 16 10:26 Fiji-Java-8.app/
drwxr-xr-x@  15 curtis  staff    510 Apr 28  2015 Fiji-LOCI.app/
drwxr-xr-x@  13 curtis  staff    442 Dec 11  2013 Fiji-Life-Line-2013-07.app/
drwxr-xr-x@  12 curtis  staff    408 Jun  2  2014 Fiji-Life-Line-2014-06.app/
drwxr-xr-x@  16 curtis  wheel    544 Nov 17  2015 Fiji-MATLAB.app/
drwxr-xr-x@  15 curtis  admin    510 Jun 24  2014 Fiji-MOSAIC.app/
drwxr-xr-x@  16 curtis  staff    544 Oct  8  2015 Fiji-OMERO-5.0.app/
drwxr-xr-x@  17 curtis  staff    578 Nov 16  2015 Fiji-OMERO-5.1.app/
drwxr-xr-x@  18 curtis  staff    612 Feb  4 10:09 Fiji-OpenSPIM.app/
drwxr-xr-x@  15 curtis  staff    510 Apr 24  2015 Fiji-PET-CT.app/
drwxr-xr-x@  15 curtis  staff    510 Sep 24  2015 Fiji-SLIM.app/
drwxr-xr-x@  16 curtis  admin    544 Jul 27  2015 Fiji-SiMView.app/
drwxr-xr-x@  16 curtis  admin    544 May 31  2015 Fiji-TANGO.app/
drwxr-xr-x@  13 curtis  admin    442 May 27  2014 Fiji-TrackMate.app/

Nope, it’s all good! I think everything is working again. At least for now… *spooky laugh*

1 Like