10 Replies Latest reply on Jun 14, 2013 9:04 AM by sfcoy

    Jboss jdk1.6.0_45 JMV error

    modibal

      I have a problem with my JBoss instance, I had jdk1.7.0_21 configured as the Java home variable, when I tried deploying my application, the deployment went into a loop, until I got the out of memory error from Jboss, I went and changed my Java home variable back to jdk1.6.0_45, when I start Jboss with no deployments I get no issues, the moment I try deplying an application, I keep getting errors like:

       

      #

      # A fatal error has been detected by the Java Runtime Environment:

      #

      #  Internal Error (c1_Optimizer.cpp:271), pid=6612, tid=6836

      #  guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp

      #

      # JRE version: 6.0_45-b06

      10:42:28,022 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains# Java VM: Java HotSpot(TM) Client VM (2

      0.45-b01 mixed mode, sharing windows-x86 )

      .CmfDeliveryServicesDomain on table CMF_DELIVERY_SERVICES

      # An error report file with more information is saved as:

      # C:\jboss-as-7.1.1.Final\bin\hs_err_pid6612.log

      10:42:28,100 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoSdrSyncOutDomain

      10:42:28,100 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains.CmoSdrSyncOutDomain on table CMO_SDR_SY

      NC_OUT

      #

      # If you would like to submit a bug report, please visit:

      #   http://java.sun.com/webapps/bugreport/crash.jsp

       

      The entities it complains about change with every start I have attached the files that its complaining about

       

       

       

      Could you please hepl.

       

      I have attached the log but for some reason the error I get is only displayed on the console during startup, I have checked the boot.log and the server.log the error is not in there but I have attached it so you can see what was being loaded before the I got the error, Thanks Niklas

        • 1. Re: Jboss jdk1.6.0_45 JMV error
          nickarls

          Can you attach the server log also?

          • 2. Re: Jboss jdk1.6.0_45 JMV error
            erasmomarciano

            Thi is an bug of Jdk

             

            Internal Error (c1_Optimizer.cpp:271), pid=6612, tid=6836

             

            You hae change the jdk

             

            check this one http://stackoverflow.com/questions/5770608/jdk1-6-understand-err-file

            • 3. Re: Jboss jdk1.6.0_45 JMV error
              modibal

              I did, I first changed the JDK to jdk1.7.0_21, when I started JBoss it went into and infinite loop till  a pemgem space error, JDK 1.6_36-b05 threw the same exception, I am running Windows 7 Service Pack 1 64 bit with and X86 JDK, let me try installing a 64bit JDK and see what I get.

              • 4. Re: Jboss jdk1.6.0_45 JMV error
                ctomc

                What are extact jvm options you are running with?

                • 5. Re: Jboss jdk1.6.0_45 JMV error
                  modibal

                  I reinstalled my Jboss the only option I added was: JAVA_OPTS: -XX:+TieredCompilation -Duser.timezone=GMT+2 I had to add timezone so that my datasource could bind to my oracle instance, was getting a timezone not found exception when I started the application, that Duser.timezone fixed that but besides that I did not do anything else. Seems that when the entities are binding to the actual tables thats when I get the JVM error, when I undeploy the application and deploy a simple loading application I don't get any problems, can this have to do with the libs I'm using? If all applications didn't work I could blame the JVM but only one deployment fails where I have 160 Annotated Entities. HIbernate 3.3.2, Hibernate Annotations 3.4.0-GA

                  3.4.0

                  • 6. Re: Jboss jdk1.6.0_45 JMV error
                    modibal

                    Niklas the Jboss.log is the server.log just took the snippet form an attempted deployment.

                    • 7. Re: Jboss jdk1.6.0_45 JMV error
                      modibal

                      I have realized that this is a hibernate error of sorts, The application I'm building is a Spring 3.2.2, HIbernate 3.3.2, Hibernate Annotations 3.5.6 Final.  I have changed my session factory from scanning the package with all the domains and started adding individual classes.  

                      <!-- property name="packagesToScan"-->

                      <property name="annotatedClasses">

                       

                      I have 160 Entities with 56 Embeddable classes old work db written by cobol guys not allowed to modify it,  I managed to get close to 90 classes before I got the JVM error again, I think there is an uncaught error in Jboss AS 7.1.1 itself somewhere, because from my simulations I only got 2 outcomes when I change my JDK either I keep getting the same JVM error or JBoss goes into an infinite loop,  The only question I have is why are some of the entities failing and some arent? I reverse engineered my Entities from a database usiing the same tool, I have some classes that are binding withou and issue and some that are just causing Jboss to go nuts, now I get this error:

                       

                      #

                      # A fatal error has been detected by the Java Runtime Environment:

                      #

                      #  Internal Error (c1_Optimizer.cpp:271), pid=8716, tid=8572

                      #  guarantee(x_compare_res != Constant::not_comparable) failed: incomparable constants in IfOp

                      #

                      # JRE version: 6.0_45-b06

                      # Java VM: Java HotSpot(TM) Client VM (20.45-b01 mixed mode, sharing windows-x86 )

                      # An error report file with more information is saved as:

                      # C:\jboss-as-7.1.1.Final\bin\hs_err_pid8716.log

                      09:13:56,119 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoStockHeadersTempDomain

                      09:13:56,119 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains.CmoStockHeadersTempDomain on table CMO_STOCK_HEADERS_TEMP

                      09:13:56,166 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoStockSyncInDomain

                      09:13:56,166 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains.CmoStockSyncInDomain on table CMO_STOCK_SYNC_IN

                      09:13:56,260 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoStockSyncOutDomain

                      09:13:56,260 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains.CmoStockSyncOutDomain on table CMO_STOCK_SYNC_OUT

                      09:13:56,338 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoSystemControlsDomain

                      09:13:56,338 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains.CmoSystemControlsDomain on table CMO_SYSTEM_CONTROLS

                      09:13:56,401 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoSystemParametersDomain

                      09:13:56,401 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains.CmoSystemParametersDomain on table CMO_SYSTEM_PARAMETERS

                      09:13:56,432 INFO  [org.hibernate.cfg.AnnotationBinder] (MSC service thread 1-6) Binding entity from annotated class: com.bsv.persistence.domains.CmoVaultStocksDomain

                      09:13:56,432 INFO  [org.hibernate.cfg.annotations.EntityBinder] (MSC service thread 1-6) Bind entity com.bsv.persistence.domains#.CmoVaultStocksDomain on table CMO_VAULT_STOCKS

                       

                      # If you would like to submit a bug report, please visit:

                      #   http://java.sun.com/webapps/bugreport/crash.jsp

                      #

                      Press any key to continue . . .

                       

                      The Entities have embedded classes since the tables did not have primary keys and were being used as if they were flat files, the initial exception I was getting was hibernate complaining about no primary keys, I will attach a set of functioning entity with its embedded class, and attach the failing sets

                       

                      Thanks.

                      • 8. Re: Jboss jdk1.6.0_45 JMV error
                        sfcoy

                        I think you need to use Hibernate 3.5 or newer.

                        • 9. Re: Jboss jdk1.6.0_45 JMV error
                          modibal

                          Changed to Hibernate-core 4.2.1 now I have an infinite loop during deployment.no exceptions nothing just keeps looping and looping.

                          • 10. Re: Jboss jdk1.6.0_45 JMV error
                            sfcoy

                            Consider using the Hibernate implementation provided by the AS as described in AS71 JPA Reference Guide under "Native Hibernate use".