Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Already connected" error at HttpFileSystem.doDownload #84

Open
jbfaden opened this issue Nov 19, 2023 · 1 comment
Open

"Already connected" error at HttpFileSystem.doDownload #84

jbfaden opened this issue Nov 19, 2023 · 1 comment

Comments

@jbfaden
Copy link
Member

jbfaden commented Nov 19, 2023

Bill noticed he was getting the error "java.lang.IllegalStateException: Already connected" when running a script twice in Autoplot. First, he runs

https://abbith.physics.uiowa.edu/jbf/juno/-/blob/master/team/wigglePlot/wigglePlotSapClipFast.jy?orbit='56'&model=''&c10plus=True&clip='2023-363'&shells='05,10,20,30,40,50'

which will ask for credentials, and then the orbit 56 plot is drawn properly. When he then runs the script again to switch to orbit 57, the error occurs.

It's not clear why this is suddenly happening. Nothing has changed in the code recently, so maybe it's the Java version, though I can generate the problem at my site on Linux. The same issue shows with Autoplot v2023a_10, which has been out for a month. So maybe we have never noticed this before and the bug has always been there.

@jbfaden
Copy link
Member Author

jbfaden commented Nov 19, 2023

I'm fixing this by simply catching the error and issuing a log message at INFO. If the connection is already made, then it stands to reason that the header already contains the credentials so they don't need to be set again. This seems to be the case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant