3 Replies Latest reply on Jun 22, 2016 2:43 PM by Steven Hawkins

    Teiid-embedded v9.0.0.CR2 - Getting an error in EmbeddedServer start/stop

    John Rodrigues Novice

      I noticed that stopping the embedded server using the EmbeddedServer#stop method and then calling EmbeddedServer#start throws an IllegalStateException, because of:

       

      public synchronized void start(@SuppressWarnings("hiding") EmbeddedConfiguration config) {

          if (running != null) {

           throw new IllegalStateException();

      }

      ....

      }

       

      Meanwhile, the stop() method, does not null out running, but sets it to false instead.

       

      Am I missing something in the start/stop/start sequence?

       

      Thanks,

      John