Grails 1.1 and "Address family not supported by protocol family: bind"

Hi folks,

with IntelliJ IDEA 8.1 or the Diana #9757 (running on windows vista) I get the following error when I try to start a Grails 1.1-app:

"C:\Program Files\Java\jdk1.6.0_11\bin\java" -Dserver.host=localhost -Dserver.port=8080 -Denable.jndi=false -Ddisable.auto.recompile=false -Drecompile.frequency=3 -Xmx256M -Dgrails.home=C:\Users\finn\grails-1.1 -Dbase.dir=C:\Users\finn\IdeaProjects\grails-jquery\trunk "-Dtools.jar=C:\Program Files\Java\jdk1.6.0_11\lib\tools.jar" -Dgroovy.starter.conf=C:\Users\finn\grails-1.1/conf/groovy-starter.conf -Didea.launcher.port=7533 "-Didea.launcher.bin.path=C:\Program Files\JetBrains\IntelliJ IDEA 9757\bin" -Dfile.encoding=windows-1252 -classpath "C:\Users\finn\grails-1.1\lib\groovy-all-1.6.0.jar;C:\Users\finn\grails-1.1\dist\grails-bootstrap-1.1.jar;C:\Program Files\JetBrains\IntelliJ IDEA 9757\lib\idea_rt.jar" com.intellij.rt.execution.application.AppMain org.codehaus.groovy.grails.cli.support.GrailsStarter --main org.codehaus.groovy.grails.cli.GrailsScriptRunner --conf C:\Users\finn\grails-1.1/conf/groovy-starter.conf --classpath C:\Users\finn\grails-1.1\lib\groovy-all-1.6.0.jar;.;C:\Users\finn\grails-1.1\dist\grails-bootstrap-1.1.jar run-app
Welcome to Grails 1.1 - http://grails.org/
Licensed under Apache Standard License 2.0
Grails home is set to: C:\Users\finn\grails-1.1

Base Directory: C:\Users\finn\IdeaProjects\grails-jquery\trunk
Running script C:\Users\finn\grails-1.1\scripts\RunApp.groovy
Environment set to development
    [mkdir] Created dir: C:\Users\finn\.grails\1.1\projects\trunk\classes
  [groovyc] Compiling 7 source files to C:\Users\finn\.grails\1.1\projects\trunk\classes
     [echo] Compiling plugin descriptor...
    [mkdir] Created dir: C:\Users\finn\.grails\1.1\projects\trunk\resources\grails-app\i18n
     [copy] Copying 1 file to C:\Users\finn\.grails\1.1\projects\trunk\resources\grails-app\i18n
     [copy] Copying 1 file to C:\Users\finn\.grails\1.1\projects\trunk\classes
     [copy] Copied 2 empty directories to 2 empty directories under C:\Users\finn\.grails\1.1\projects\trunk\resources
     [copy] Copied 6 empty directories to 4 empty directories under C:\Users\finn\.grails\1.1\projects\trunk\resources
Running Grails application..
java.net.SocketException: Address family not supported by protocol family: bind
at grails.web.container.EmbeddableServer$start.call(Unknown Source)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy:145)
at _GrailsRun_groovy$_run_closure5_closure11.doCall(_GrailsRun_groovy)
at _GrailsSettings_groovy$_run_closure10.doCall(_GrailsSettings_groovy:269)
at _GrailsRun_groovy$_run_closure5.doCall(_GrailsRun_groovy:137)
at _GrailsRun_groovy.runInline(_GrailsRun_groovy:104)
at _GrailsRun_groovy.this$4$runInline(_GrailsRun_groovy)
at _GrailsRun_groovy$_run_closure1.doCall(_GrailsRun_groovy:58)
at RunApp$_run_closure1.doCall(RunApp.groovy:33)
at gant.Gant$_dispatch_closure4.doCall(Gant.groovy:324)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy:334)
at gant.Gant$_dispatch_closure6.doCall(Gant.groovy)
at gant.Gant.withBuildListeners(Gant.groovy:344)
at gant.Gant.this$2$withBuildListeners(Gant.groovy)
at gant.Gant$this$2$withBuildListeners.callCurrent(Unknown Source)
at gant.Gant.dispatch(Gant.groovy:334)
at gant.Gant.this$2$dispatch(Gant.groovy)
at gant.Gant.invokeMethod(Gant.groovy)
at gant.Gant.processTargets(Gant.groovy:495)
at gant.Gant.processTargets(Gant.groovy:480)
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:90)
Server failed to start: java.net.SocketException: Address family not supported by protocol family: bind


This error occurs also with fresh created 1.1 apps. Using Grails 1.0.4 or Grails 1.1 from the commandline everything works fine.

Any suggestions?

Cheers
Finn

1 comment
Comment actions Permalink

Running fresh Grails 1.1 application works for me and I actually have no
idea what's happening. You may try to debug this script. You may also
check if something else is already set up on localhost:8080.

0

Please sign in to leave a comment.