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

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

    XMLWordPrintable

Details

    • Bug
    • Status: Gathering Impact (View Workflow)
    • Low
    • Resolution: Unresolved
    • 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
    • None
    • 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

              Unassigned Unassigned
              jowen@atlassian.com Jeremy Owen
              Votes:
              8 Vote for this issue
              Watchers:
              17 Start watching this issue

              Dates

                Created:
                Updated: