Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-13393

Helloworld-jms throwing execption java.lang.IllegalThreadStateException

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • None
    • Quickstarts
    • None

      Helloworld-jms throwing an exception at the end of the program.
      Run : mvn clean compile exec:java

      Output :
      [INFO] Scanning for projects...
      [INFO]
      [INFO] --------------< org.wildfly.quickstarts:helloworld-jms >--------------
      [INFO] Building Quickstart: helloworld-jms 19.0.0.Beta2-SNAPSHOT
      [INFO] -------------------------------[ jar ]--------------------------------
      [INFO]
      [INFO] — maven-clean-plugin:3.1.0:clean (default-clean) @ helloworld-jms —
      [INFO] Deleting /home/parsharm/Documents/Wildlfy/quickstart/helloworld-jms/target
      [INFO]
      [INFO] — maven-enforcer-plugin:3.0.0-M2:enforce (enforce-java-version) @ helloworld-jms —
      [INFO]
      [INFO] — maven-enforcer-plugin:3.0.0-M2:enforce (enforce-maven-version) @ helloworld-jms —
      [INFO]
      [INFO] — buildnumber-maven-plugin:1.4:create (get-scm-revision) @ helloworld-jms —
      [INFO] Executing: /bin/sh c cd '/home/parsharm/Documents/Wildlfy/quickstart/helloworld-jms' && 'git' 'rev-parse' '-verify' 'HEAD'
      [INFO] Working directory: /home/parsharm/Documents/Wildlfy/quickstart/helloworld-jms
      [INFO] Storing buildNumber: 10607568b2392d363f71c4192f41a11687508011 at timestamp: 1587389716538
      [INFO] Storing buildScmBranch: master
      [INFO]
      [INFO] — maven-resources-plugin:3.1.0:resources (default-resources) @ helloworld-jms —
      [INFO] Using 'UTF-8' encoding to copy filtered resources.
      [INFO] Copying 1 resource
      [INFO]
      [INFO] — maven-compiler-plugin:3.8.0-jboss-2:compile (default-compile) @ helloworld-jms —
      [INFO] Changes detected - recompiling the module!
      [INFO] Compiling 1 source file to /home/parsharm/Documents/Wildlfy/quickstart/helloworld-jms/target/classes
      [INFO]
      [INFO] — maven-checkstyle-plugin:3.0.0:checkstyle (check-style) @ helloworld-jms —
      [INFO] Starting audit...
      Audit done.
      [INFO]
      [INFO] — exec-maven-plugin:1.6.0:java (default-cli) @ helloworld-jms —
      Apr 20, 2020 7:05:18 PM org.wildfly.naming.client.Version <clinit>
      INFO: WildFly Naming version 1.0.12.Final
      Apr 20, 2020 7:05:18 PM org.wildfly.security.Version <clinit>
      INFO: ELY00001: WildFly Elytron version 1.11.0.Final
      Apr 20, 2020 7:05:18 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
      INFO: Attempting to acquire connection factory "jms/RemoteConnectionFactory"
      Apr 20, 2020 7:05:18 PM org.xnio.Xnio <clinit>
      INFO: XNIO version 3.7.7.Final
      Apr 20, 2020 7:05:18 PM org.xnio.nio.NioXnio <clinit>
      INFO: XNIO NIO Implementation Version 3.7.7.Final
      Apr 20, 2020 7:05:18 PM org.jboss.threads.Version <clinit>
      INFO: JBoss Threads version 2.3.3.Final
      Apr 20, 2020 7:05:18 PM org.jboss.remoting3.EndpointImpl <clinit>
      INFO: JBoss Remoting version 5.0.17.Final
      SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
      SLF4J: Defaulting to no-operation (NOP) logger implementation
      SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.
      Apr 20, 2020 7:05:19 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
      INFO: Found connection factory "jms/RemoteConnectionFactory" in JNDI
      Apr 20, 2020 7:05:19 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
      INFO: Attempting to acquire destination "jms/queue/test"
      Apr 20, 2020 7:05:19 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
      INFO: Found destination "jms/queue/test" in JNDI
      Apr 20, 2020 7:05:19 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
      INFO: Sending 1 messages with content: Hello, World!
      Apr 20, 2020 7:05:19 PM org.jboss.as.quickstarts.jms.HelloWorldJMSClient main
      INFO: Received message with content Hello, World!
      [WARNING] thread Thread[XNIO-1 I/O-1,5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] was interrupted but is still alive after waiting at least 14999msecs
      [WARNING] thread Thread[XNIO-1 I/O-1,5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] will linger despite being asked to die via interruption
      [WARNING] thread Thread[XNIO-1 Accept,5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] will linger despite being asked to die via interruption
      [WARNING] thread Thread[XNIO-1 task-1,5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] will linger despite being asked to die via interruption
      [WARNING] thread Thread[Thread-0 (ActiveMQ-client-global-scheduled-threads),5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] will linger despite being asked to die via interruption
      [WARNING] thread Thread[Thread-1 (ActiveMQ-client-global-scheduled-threads),5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] will linger despite being asked to die via interruption
      [WARNING] thread Thread[Thread-0 (ActiveMQ-client-global-threads),5,org.jboss.as.quickstarts.jms.HelloWorldJMSClient] will linger despite being asked to die via interruption
      [WARNING] NOTE: 6 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.as.quickstarts.jms.HelloWorldJMSClient,maxpri=10]
      java.lang.IllegalThreadStateException
      at java.lang.ThreadGroup.destroy (ThreadGroup.java:778)
      at org.codehaus.mojo.exec.ExecJavaMojo.execute (ExecJavaMojo.java:321)
      at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:208)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:154)
      at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:146)
      at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
      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:128)
      at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
      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:954)
      at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
      at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
      at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke (Method.java:498)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
      at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
      at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
      at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
      [INFO] ------------------------------------------------------------------------
      [INFO] BUILD SUCCESS
      [INFO] ------------------------------------------------------------------------
      [INFO] Total time: 19.827 s
      [INFO] Finished at: 2020-04-20T19:05:35+05:30
      [INFO] ------------------------------------------------------------------------

              parsharm Parul Sharma (Inactive)
              parsharm Parul Sharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: