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

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • 9.1.0
    • Affects Version/s: 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
    • Component/s: API
    • None
    • 26
    • Severity 3 - Minor
    • 2

      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
      

            Assignee:
            Mateusz Szmal
            Reporter:
            Jeremy Owen
            Votes:
            10 Vote for this issue
            Watchers:
            19 Start watching this issue

              Created:
              Updated:
              Resolved: