Uploaded image for project: 'JBoss Transaction Manager'
  1. JBoss Transaction Manager
  2. JBTM-3682

IllegalThreadStateException in undertow quickstart

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • None
    • 5.13.1.Alpha1
    • Quickstarts, REST
    • None

      When running quickstart rts-undertow-qs (test TxnTest) some threads do not stop correctly when undertow server stops:

      [WARNING] thread Thread[Listener:46641,5,org.jboss.narayana.rts.TxnTest] was interrupted but is still alive after waiting at least 15000msecs
      [WARNING] thread Thread[Listener:46641,5,org.jboss.narayana.rts.TxnTest] will linger despite being asked to die via interruption
      [WARNING] thread Thread[Transaction Reaper,5,org.jboss.narayana.rts.TxnTest] will linger despite being asked to die via interruption
      [WARNING] thread Thread[Transaction Reaper Worker 0,5,org.jboss.narayana.rts.TxnTest] will linger despite being asked to die via interruption
      [WARNING] NOTE: 3 thread(s) did not finish despite being asked to via interruption. This is not a problem with exec:java, it is a problem with the running code. Although not serious, it should be remedied.
      [WARNING] Couldn't destroy threadgroup org.codehaus.mojo.exec.ExecJavaMojo$IsolatedThreadGroup[name=org.jboss.narayana.rts.TxnTest,maxpri=10]

      The quickstart builds successfully, but the following error message is logged:

      java.lang.IllegalThreadStateException
          at java.lang.ThreadGroup.destroy (ThreadGroup.java:776)
          at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:319)
          at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
          at org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (MojoExecutor.java:301)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:211)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:165)
          at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:157)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:121)
          at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
          at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
          at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:127)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:294)
          at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
          at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
          at org.apache.maven.cli.MavenCli.execute (MavenCli.java:960)
          at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
          at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
          at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
          at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
          at java.lang.reflect.Method.invoke (Method.java:566)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
          at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
          at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
          at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)

       

              rh-ee-msappegr Marco Sappe Griot
              rh-ee-msappegr Marco Sappe Griot
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: