8 Replies Latest reply on Mar 13, 2012 5:45 AM by Erkki Lindpere

    JBoss AS 7.1.0 final with debugging and JRebel dies

    jnovotny Newbie

      I added the following to the standalone.sh script to enable debugging and JRebel (Same flags as I use for Jboss 5.1.0 which works fine)

       

      export JAVA_OPTS="-Xmx768m -noverify -javaagent:/Applications/ZeroTurnaround/JRebel-4.5.3/jrebel.jar  -Drebel.trace.log=true -Drebel.wicket_plugin=true -XX:PermSize=256M -Xdebug -Xrunansport=dt_socket,server=n,suspend=y,address=8787"

       

      Jboss dies with a segmentation fault:

       

      ERROR: transport error 202: connect failed: Connection refused

      Invalid memory access of location 0x0 rip=0x7fff88a515f0

      ./standalone.sh: line 178: 31708 Segmentation fault: 11  "/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home//bin/java" -D"[Standalone]" -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xmx768m -noverify -javaagent:/Applications/ZeroTurnaround/JRebel-4.5.3/jrebel.jar -Drebel.trace.log=true -Drebel.wicket_plugin=true -XX:PermSize=256M -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8787 "-Dorg.jboss.boot.log.file=/Users/novotny/Software/jboss-as-7.1.0.Final/standalone/log/boot.log" "-Dlogging.configuration=file:/Users/novotny/Software/jboss-as-7.1.0.Final/standalone/configuration/logging.properties" -jar "/Users/novotny/Software/jboss-as-7.1.0.Final/jboss-modules.jar" -mp "/Users/novotny/Software/jboss-as-7.1.0.Final/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir="/Users/novotny/Software/jboss-as-7.1.0.Final"

        • 1. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
          marian furdui Newbie

          try with the latest JRebel (4.6) on which the ZeroTurnaround added support for JBoss 7.1:

          http://zeroturnaround.com/jrebel/changelog/4-x/

          • 2. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
            jnovotny Newbie

            Thanks! I just tried upgrading and am now getting the same thing:

             

            =========================================================================

             

              JBoss Bootstrap Environment

             

              JBOSS_HOME: /Users/novotny/Software/jboss-as-7.1.0.Final

             

              JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home//bin/java

             

              JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xmx768m -noverify -javaagent:/Applications/ZeroTurnaround/JRebel-4.6/jrebel.jar  -Drebel.trace.log=true -Drebel.wicket_plugin=true -XX:PermSize=256M -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8787

             

            =========================================================================

             

             

            #############################################################

             

            JRebel 4.6 (201202291303)

            (c) Copyright ZeroTurnaround OU, Estonia, Tartu.

             

            Over the last 30 days JRebel prevented

            at least 323 redeploys/restarts saving you about 13.1 hours.

             

            Over the last 205 days JRebel prevented

            at least 1101 redeploys/restarts saving you about 44.7 hours.

             

            This product is licensed to Jason Novotny (Personal)

            until August 21, 2013

             

            The following plugins are disabled at the moment:

            * Apache MyFaces plugin (set -Drebel.myfaces_plugin=true to enable)

            Reloads JSF configuration and reconfigures managed beans.

            * Click plugin (set -Drebel.click_plugin=true to enable)

            Reloads menu.xml menu definitions of Apache Click projects.

            * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)

            * Jersey plugin (set -Drebel.jersey_plugin=true to enable)

            Reloads Jersey configuration from Java annotations.

            * Lift plugin (set -Drebel.lift_plugin=true to enable)

            Supports reloading singleton objects that extend RestHelper, MVCHelper,

            LiftScreen or Wizard.

            * Oracle ADF Core plugin (set -Drebel.adf_core_plugin=true to enable)

            JRebel ADF Core Plugin

            * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=true to enable)

            JRebel ADF Faces Plugin

            * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)

            Integration with load time weaving seam annotations to wicket classes

            (-javaagent:<path-to-jboss-seam-wicket-jar>)

            * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)

            WebObjects JRebel Plugin

             

            #############################################################

             

            ERROR: transport error 202: connect failed: Connection refused

            Invalid memory access of location 0x0 rip=0x7fff88a515f0

            ./standalone.sh: line 178: 64185 Segmentation fault: 11  "/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home//bin/java" -D"[Standalone]" -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xmx768m -noverify -javaagent:/Applications/ZeroTurnaround/JRebel-4.6/jrebel.jar -Drebel.trace.log=true -Drebel.wicket_plugin=true -XX:PermSize=256M -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8787 "-Dorg.jboss.boot.log.file=/Users/novotny/Software/jboss-as-7.1.0.Final/standalone/log/boot.log" "-Dlogging.configuration=file:/Users/novotny/Software/jboss-as-7.1.0.Final/standalone/configuration/logging.properties" -jar "/Users/novotny/Software/jboss-as-7.1.0.Final/jboss-modules.jar" -mp "/Users/novotny/Software/jboss-as-7.1.0.Final/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir="/Users/novotny/Software/jboss-as-7.1.0.Final"

            • 3. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
              Anton Arhipov Newbie

              Hi,

               

              what is the exact Java version that you use to run this instance?

              • 4. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
                jnovotny Newbie

                fuzzmonkey:jboss-7.1.0 novotny$ java -version

                java version "1.6.0_29"

                Java(TM) SE Runtime Environment (build 1.6.0_29-b11-402-11D50b)

                Java HotSpot(TM) 64-Bit Server VM (build 20.4-b02-402, mixed mode)

                 

                on MacBook Pro running Lion OS X

                • 5. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
                  Anton Arhipov Newbie

                  Remove -noverify from the arguments and try again. Most likely you will see the real cause of the error then.

                  • 6. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
                    jnovotny Newbie

                    Hi, thanks I tried that but nothing new... this is what I see:

                     

                      JBoss Bootstrap Environment

                     

                      JBOSS_HOME: /Users/novotny/Software/jboss-as-7.1.0.Final

                     

                      JAVA: /System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home//bin/java

                     

                      JAVA_OPTS:  -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xmx768m  -javaagent:/Applications/ZeroTurnaround/JRebel-4.6/jrebel.jar  -Drebel.trace.log=true -Drebel.wicket_plugin=true -XX:PermSize=256M -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8787

                     

                    =========================================================================

                     

                     

                    #############################################################

                     

                    JRebel 4.6 (201202291303)

                    (c) Copyright ZeroTurnaround OU, Estonia, Tartu.

                     

                    Over the last 30 days JRebel prevented

                    at least 313 redeploys/restarts saving you about 12.7 hours.

                     

                    Over the last 225 days JRebel prevented

                    at least 1113 redeploys/restarts saving you about 45.1 hours.

                     

                    This product is licensed to Jason Novotny (Personal)

                    until August 21, 2013

                     

                    The following plugins are disabled at the moment:

                    * Apache MyFaces plugin (set -Drebel.myfaces_plugin=true to enable)

                    Reloads JSF configuration and reconfigures managed beans.

                    * Click plugin (set -Drebel.click_plugin=true to enable)

                    Reloads menu.xml menu definitions of Apache Click projects.

                    * JRuby Plugin (set -Drebel.jruby_plugin=true to enable)

                    * Jersey plugin (set -Drebel.jersey_plugin=true to enable)

                    Reloads Jersey configuration from Java annotations.

                    * Lift plugin (set -Drebel.lift_plugin=true to enable)

                    Supports reloading singleton objects that extend RestHelper, MVCHelper,

                    LiftScreen or Wizard.

                    * Oracle ADF Core plugin (set -Drebel.adf_core_plugin=true to enable)

                    JRebel ADF Core Plugin

                    * Oracle ADF Faces plugin (set -Drebel.adf_faces_plugin=true to enable)

                    JRebel ADF Faces Plugin

                    * Seam-Wicket plugin (set -Drebel.seam_wicket_plugin=true to enable)

                    Integration with load time weaving seam annotations to wicket classes

                    (-javaagent:<path-to-jboss-seam-wicket-jar>)

                    * WebObjects plugin (set -Drebel.webobjects_plugin=true to enable)

                    WebObjects JRebel Plugin

                     

                    #############################################################

                     

                    ERROR: transport error 202: connect failed: Connection refused

                    Invalid memory access of location 0x0 rip=0x7fff88a515f0

                    ./standalone.sh: line 178: 90363 Segmentation fault: 11  "/System/Library/Frameworks/JavaVM.framework/Versions/1.6/Home//bin/java" -D"[Standalone]" -server -XX:+UseCompressedOops -XX:+TieredCompilation -Xmx768m -javaagent:/Applications/ZeroTurnaround/JRebel-4.6/jrebel.jar -Drebel.trace.log=true -Drebel.wicket_plugin=true -XX:PermSize=256M -Xdebug -Xrunjdwp:transport=dt_socket,server=n,suspend=y,address=8787 "-Dorg.jboss.boot.log.file=/Users/novotny/Software/jboss-as-7.1.0.Final/standalone/log/boot.log" "-Dlogging.configuration=file:/Users/novotny/Software/jboss-as-7.1.0.Final/standalone/configuration/logging.properties" -jar "/Users/novotny/Software/jboss-as-7.1.0.Final/jboss-modules.jar" -mp "/Users/novotny/Software/jboss-as-7.1.0.Final/modules" -jaxpmodule javax.xml.jaxp-provider org.jboss.as.standalone -Djboss.home.dir="/Users/novotny/Software/jboss-as-7.1.0.Final"

                    • 7. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
                      Stuart Douglas Master

                      The JRebel forums would probably be a better place to ask this, as it appears to be a JRebel problem.

                      1 of 1 people found this helpful
                      • 8. Re: JBoss AS 7.1.0 final with debugging and JRebel dies
                        Erkki Lindpere Newbie

                        Hi,

                         

                        I actually tried removing all the Jrebel related arguments from the example above and still got the same result. So it doesn't seem to be JRebel related.

                         

                        Erkki from ZeroTurnaround