<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body>
    <br>
    Dear Aspace List,<br>
    <br>
    I am This Close to duplicating our ASpace in my Vagrant box.  But
    the very last step, booting it up, results in some nastiness:<br>
    <br>
    <blockquote type="cite">Unhandled Java exception:
      java.net.SocketException: Permission denied<br>
      java.net.SocketException: Permission denied<br>
                                    bind0 at sun/nio/ch/Net.java:-2<br>
                                     bind at sun/nio/ch/Net.java:433<br>
                                     bind at sun/nio/ch/Net.java:425<br>
                                     bind at
      sun/nio/ch/ServerSocketChannelImpl.java:220<br>
                                     bind at
      sun/nio/ch/ServerSocketAdaptor.java:85<br>
                                     open at
      org/eclipse/jetty/server/nio/SelectChannelConnector.java:182<br>
                                  doStart at
      org/eclipse/jetty/server/AbstractConnector.java:311<br>
                                  doStart at
      org/eclipse/jetty/server/nio/SelectChannelConnector.java:260<br>
                                    start at
      org/eclipse/jetty/util/component/AbstractLifeCycle.java:59<br>
                                  doStart at
      org/eclipse/jetty/server/Server.java:283<br>
                                    start at
      org/eclipse/jetty/util/component/AbstractLifeCycle.java:59<br>
                                   invoke at
      java/lang/reflect/Method.java:498<br>
        invokeDirectWithExceptionHandling at
      org/jruby/javasupport/JavaMethod.java:438<br>
                             invokeDirect at
      org/jruby/javasupport/JavaMethod.java:302<br>
                     invokeOther148:start at launcher/launcher.rb:92<br>
                             start_server at launcher/launcher.rb:92<br>
              invokeOther321:start_server at launcher/launcher.rb:173<br>
                                     main at launcher/launcher.rb:173<br>
                      invokeOther454:main at launcher/launcher.rb:261<br>
                                   <main> at
      launcher/launcher.rb:261<br>
                      invokeWithArguments at
      java/lang/invoke/MethodHandle.java:627<br>
                                runScript at org/jruby/Ruby.java:827<br>
                              runNormally at org/jruby/Ruby.java:746<br>
                              runNormally at org/jruby/Ruby.java:764<br>
                              runFromMain at org/jruby/Ruby.java:577<br>
                            doRunFromMain at org/jruby/Main.java:417<br>
                              internalRun at org/jruby/Main.java:305<br>
                                      run at org/jruby/Main.java:232<br>
                                     main at org/jruby/Main.java:204<br>
    </blockquote>
    <br>
    This is on Ubuntu<strong> </strong>20.04 LTS, OpenJDK8, ASpace
    2.5.1.  (And is all is preparation for upgrading to 2.7.1)<br>
    <br>
    From what I'm reading this may have something to do with the Java
    MySQL Connector attempting to use "native sockets" instead of IPV4
    for its connectivity.  So just before attempting to boot ASpace, I
    do this:<br>
    <br>
    <blockquote>sudo export JAVA_OPTS="$JAVA_OPTS
      -Djava.net.preferIPv4Stack=true"<br>
    </blockquote>
    <br>
    Still no joy.<br>
    <br>
    Any advice on how to handle this Unhandled Socket Exception would be
    greatly appreciated.<br>
    <br>
    THIS close!<br>
    <br>
    Mark<br>
    <pre class="moz-signature" cols="72">-- 
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><>
Mark Cyzyk, M.A., M.L.S.
Library Applications Group
The Sheridan Libraries
The Johns Hopkins University
<a class="moz-txt-link-abbreviated" href="mailto:mcyzyk@jhu.edu">mcyzyk@jhu.edu</a>

Verba volant, scripta manent. 
</pre>
  </body>
</html>