Tuesday, August 9, 2022

Re: GWT 2.10.0: gradle gwtSuperDev - java.lang.IllegalArgumentException: No selectors

So, I'm guessing that gretty jetty is leaking into gwt super dev mode somehow.

I added the following as a compile time dependency, and superdev mode seems to be working.

providedCompile "net.sourceforge.htmlunit:htmlunit:2.55.0" // to get superdev mode working


On 8/9/22 10:20, Michael Conrad wrote:
Meh,

I've managed to break my GWT setup again. This time for superdev mode. Looking for suggestions on where the (I assume) Jetty conflict is coming from.

Getting the following stacktrace after "Module setup completed" is logged when trying to run "./gradlew subproject:gwtSuperDev"

java.lang.IllegalArgumentException: No selectors
        at org.eclipse.jetty.io.SelectorManager.<init>(SelectorManager.java:81)
        at org.eclipse.jetty.server.ServerConnector$ServerConnectorManager.<init>(ServerConnector.java:600)
        at org.eclipse.jetty.server.ServerConnector.newSelectorManager(ServerConnector.java:223)
        at org.eclipse.jetty.server.ServerConnector.<init>(ServerConnector.java:216)
        at org.eclipse.jetty.server.ServerConnector.<init>(ServerConnector.java:98)
        at com.google.gwt.dev.codeserver.WebServer.start(WebServer.java:122)
        at com.google.gwt.dev.codeserver.CodeServer.start(CodeServer.java:162)
        at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:104)
        at com.google.gwt.dev.codeserver.CodeServer.main(CodeServer.java:55)


We are using Gradle with the wisepersist GWT plugin:

id "org.wisepersist.gwt" version "1.1.18"  id "org.gretty" version "3.0.8"
gwt {
    gwtVersion = "2.10.0"      src += files(compileJava.options.annotationProcessorGeneratedSourcesDirectory)        logLevel = "INFO"      maxHeapSize = "2048M";      modules 'com.newsrx.butter.Butter'      compiler {          disableClassMetadata = false;          strict = true;          style = "OBF";      }        // allow sdm on simultaneous modules  //    devModules 'com.newsrx.butter.Butter', 'com.newsrx.newsletter.NewsletterBrowser', 'com.newsrx.dailies.DailiesBrowser'        superDev {          noPrecompile = false;          failOnError = false;          bindAddress = "0.0.0.0";      }  }

No comments:

Post a Comment