Uploaded image for project: 'Bamboo Data Center'
  1. Bamboo Data Center
  2. BAM-18777

Hibernate generates incorrect metamodel which causes error level log messages on start-up

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Low
    • 9.1.0
    • 6.1.1, 6.2.2, 6.5.1, 7.1.0, 7.0.4, 7.2.0, 7.1.2, 7.1.1, 7.1.3, 8.0.0, 7.1.4, 7.2.1, 7.2.2, 7.2.6, 7.2.3, 7.2.4, 7.2.5, 8.0.0 EAP1, 8.0.1, 8.0.2, 8.0.3, 8.1.1, 8.0.4, 8.0.5, 8.1.2, 8.0.6, 8.2.0, 8.1.3
    • API
    • None

    Description

      Summary

      Incorrect metamodel for a number of generated classes causes error level log messages to be logged upon start-up. There is no actual impact of these errors since the Hibernate feature that is being validated is un-used in Bamboo.

      Steps to Reproduce

      1. Start Bamboo 6.2.2

      Expected Results

      No errors.

      Actual Results

      The below exception is thrown in the atlassian-bamboo.log file:

      2017-10-18 14:20:19,887 ERROR [localhost-startStop-1] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#availabilityZones; expected type :  org.hibernate.metamodel.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute
      2017-10-18 14:20:19,887 ERROR [localhost-startStop-1] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.agent.elastic.server.ElasticImageConfigurationImpl_#subnetIds; expected type :  org.hibernate.metamodel.internal.SingularAttributeImpl; encountered type : javax.persistence.metamodel.CollectionAttribute
      2017-10-18 14:20:19,904 ERROR [localhost-startStop-1] [MetadataContext] HHH015007: Illegal argument on static metamodel field injection : com.atlassian.bamboo.project.DefaultProject_#allPlans; expected type :  org.hibernate.metamodel.internal.PluralAttributeImpl$CollectionAttributeImpl; encountered type : javax.persistence.metamodel.ListAttribute
      

      Attachments

        Issue Links

          Activity

            People

              851f15845f55 Mateusz Szmal
              jowen@atlassian.com Jeremy Owen
              Votes:
              10 Vote for this issue
              Watchers:
              19 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: