6 Replies Latest reply on Jun 27, 2012 3:07 AM by radomir.kadlec

    Java crashes on 64bit Xeon SUSE Enterprise linux

    radomir.kadlec

      Hello,

      I try to use the newest apache-servicemix-4.4.1-fuse-06-03 on 64bit SuSe Enterprise Linux with Xeon CPU.

      The Java machine crashes during startup.

      In the Java-log I can see, it was during loading some native library.

      Look for org.fusesource.hawtjni.runtime.Library.load in the attachment.

      The previous version apache-servicemix-4.4.1-fuse-02-05 works fine.

      What's the reason and how can I bring it to work?

      Thanks,

      Radomir

        • 1. Re: Java crashes on 64bit Xeon SUSE Enterprise linux
          ffang

          Hi,

          How you start FUSE ESB?

          Did you change any default configuration?  especially the -Djava.io.tmpdir="$KARAF_DATA/tmp"?

          If not, seems it's related to the known issue[1], could you please try the solution described in , e.g., build jansi-native lib yourself on the platform you use and tell us if it works for you?

          Btw, what's exact SUSE version you're using? 11.x or 10.x?

          https://issues.apache.org/jira/browse/KARAF-1377

           

          Freeman

          • 2. Re: Java crashes on 64bit Xeon SUSE Enterprise linux
            radomir.kadlec

            Hello Freeman,

             

            I use the original FUSE ESB without changes (and without any own deployed libraries).

            The FUSE ESB is started on Suse Linux Enterprise Server 10, as you can see in the log. I can not migrate to SLES 11.

             

            You are right, the reason for the crash is the jansi native library.

             

            I have two versions of libjansi in the /tmp directory:

            - libjansi.so which comes from the apache-servicemix-4.4.1-fuse-02-05

            - libjansi-64.so which comes from the apache-servicemix-4.4.1-fuse-06-03

             

            When I overwrite the newer file /tmp/libjansi-64.so with the content of the older file /tmp/libjansi.so, than the FUSE ESB 4.4.1-fuse-06-03 starts correctly.

             

            I did not try to compile libjansi yet.

            Is the using of the old library correct?

            Or shall I try to compile it now?

             

            Radomir

            • 3. Re: Java crashes on 64bit Xeon SUSE Enterprise linux
              ffang

              Hi,

               

              One more question, is your JDK on SUSE11 64bit?

               

              Freeman

              • 4. Re: Java crashes on 64bit Xeon SUSE Enterprise linux
                radomir.kadlec

                Hi Freeman,

                of course, the Java is 64-bit as you can see in the log file attached to the question:

                 

                1. JRE version: 6.0_32-b05

                2. Java VM: Java HotSpot(TM) 64-Bit Server VM (20.7-b02 mixed mode linux-amd64 compressed oops)

                 

                I tried to use 64bit Java from Oracle, IBM and JRockit, but FUSE ESB crashed with all of them.

                Radomir

                 

                Edited by: kadlec on Jun 21, 2012 7:59 AM

                • 5. Re: Java crashes on 64bit Xeon SUSE Enterprise linux
                  gertv

                  L.S.,

                   

                   

                  Could you remove both jansi .so libraries from your /tmp folder and try again to see what happens?  I don't have a SLES installation at hand, but just tried with an OpenSusSE VM I have here and I only get the libjansi-64.so in my /tmp folder here.

                   

                  Anyway, if replacing the library gets the container to start up, you shouldn't experience any problems after that so feel free to use that as a workaround.  Rebuilding the jansi-native project on your own machine and using that library will most likely fix the problem as well.

                   

                   

                  Regards,

                   

                  Gert

                  • 6. Re: Java crashes on 64bit Xeon SUSE Enterprise linux
                    radomir.kadlec

                    Hello Gerd,

                    when I remove all jansi libraries, a new one named "libjansi-64.so" will be created in the tmp directory during startup and the Java crashes.

                     

                    Therefore the only way I found is to overwrite the libjansi-64.so file with the older libjansi.so file. In such case stays this file unchanged during startup and the ServiceMix runs.

                     

                    Regards,

                    Radomir