Your stack trace lines up except for the top frame - jetty-io 
9.4.4.v20210927 has a blank line for SelectorManager.java:81, and the 
source for the file at that version doesn't contain the string "No 
selectors". On the other hand, jetty-io 9.2.14.v20151116 has this as a 
constructor (and line 81 is where it throws):
    protected SelectorManager(Executor executor, Scheduler scheduler, int 
selectors)
    {
        if (selectors<=0)
            throw new IllegalArgumentException("No selectors");
        this.executor = executor;
        this.scheduler = scheduler;
        _selectors = new ManagedSelector[selectors];
    }

This much older version of jetty-io is the general version of Jetty that 
GWT 2.9 used (as well as a few earlier GWT versions).

My guess is that you have correctly updated GWT, and the expected version 
of Jetty has been updated (9.4.44), except somehow you have a dependency on 
the old version of jetty-io. Check the rest of your classpath, or the 
particular gradle plugin you are using?


On Tuesday, August 9, 2022 at 9:20:42 AM UTC-5 Michael Joyner 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";
>     }}
>
>

-- 
You received this message because you are subscribed to the Google Groups "GWT 
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/f0314d8f-d70e-4244-a421-1709cd6efcdfn%40googlegroups.com.

Reply via email to