-
Notifications
You must be signed in to change notification settings - Fork 106
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
ArrayIndexOutOfBoundsException #2
Comments
This is because you have to set the argument of the This will be explained in detail in the book, but I will add some error handling to produce a reasonable error message if you don't specify the server address. |
More precisely, you should run the server first:
and select the
and select the |
Got it! Thank you @axel22 for explanation. |
Maybe input arguments should be treated with better error messages. I'll fix this in the coming days. |
When I try to run FTP Client, I get ArrayIndexOutOfBoundsException.
com.intellij.rt.execution.application.AppMain org.learningconcurrency.ch9.FTPClient
Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 0
at org.learningconcurrency.ch9.FTPClient$.main(FTPClient.scala:305)
at org.learningconcurrency.ch9.FTPClient.main(FTPClient.scala)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:483)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:120)
Process finished with exit code 1
The text was updated successfully, but these errors were encountered: