java.lang.IllegalArgumentException: invalid port range: :21

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Oracle Community by 843793, 1 year ago
via Google Groups by Matthew Jones, 2 years ago
invalid port range: :21
via Stack Overflow by user3115251
, 2 years ago
invalid host wildcard specification
java.lang.IllegalArgumentException: invalid port range: :21
at java.net.SocketPermission.init(SocketPermission.java:341)
at java.net.SocketPermission.(SocketPermission.java:206)
at sun.net.www.protocol.ftp.FtpURLConnection.getPermission(FtpURLConnection.java:175)
at java.net.URLClassLoader.getPermissions(URLClassLoader.java:427)
at java.security.SecureClassLoader.getProtectionDomain(SecureClassLoader.java:154)
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:109)
at java.net.URLClassLoader.defineClass(URLClassLoader.java:249)
at java.net.URLClassLoader.access$1(URLClassLoader.java:217)
at java.net.URLClassLoader$1.run(URLClassLoader.java:198)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:192)
at java.lang.ClassLoader.loadClass(ClassLoader.java:298)
at java.lang.ClassLoader.loadClass(ClassLoader.java:255)
at undefined.DynamicExtension.main(DynamicExtension.java:15)

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.