OpenEngSB
  1. OpenEngSB
  2. OPENENGSB-3069

Use Version string instead of osgi version in modeldescription

    Details

    • Changelog:
      The ModelDescription class now have no constructor or setter/getter with a osgi framework version reference. Use the String variants instead.

      Description

      The version string should still be a valid OSGi version string, so don't forget to add a checker for that in the setter

        Gliffy Diagrams

        Error rendering 'com.meetme.plugins.jira.gerrit-plugin:gerritreviewsmodule'. Please contact your JIRA administrators.

          Activity

          Hide
          Christoph Gritschenberger added a comment - - edited

          the ModelDescription in api still references osgi.Version
          There are still a getter and setter

          Show
          Christoph Gritschenberger added a comment - - edited the ModelDescription in api still references osgi.Version There are still a getter and setter
          Hide
          Wolfgang Zeller added a comment -

                  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_07]
                  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_07]
                  at java.lang.Thread.run(Thread.java:722)[:1.7.0_07]
          Caused by: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.osgi.framework.Version]: can not instantiate from JSON object (need to add/enable type information?)
           at [Source: N/A; line: -1, column: -1] (through reference chain: org.openengsb.core.api.xlink.model.ModelToViewsTuple["description"]->org.openengsb.core.api.model.ModelDescription["version"])
                  at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164)
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:400)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:289)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:375)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:98)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:308)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:375)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:98)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:308)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:147)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:18)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:2516)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1]
                  ... 23 more

          Show
          Wolfgang Zeller added a comment - at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)[:1.7.0_07] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)[:1.7.0_07] at java.lang.Thread.run(Thread.java:722)[:1.7.0_07] Caused by: com.fasterxml.jackson.databind.JsonMappingException: No suitable constructor found for type [simple type, class org.osgi.framework.Version]: can not instantiate from JSON object (need to add/enable type information?) at [Source: N/A; line: -1, column: -1] (through reference chain: org.openengsb.core.api.xlink.model.ModelToViewsTuple["description"]->org.openengsb.core.api.model.ModelDescription["version"]) at com.fasterxml.jackson.databind.JsonMappingException.from(JsonMappingException.java:164) at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObjectUsingNonDefault(BeanDeserializer.java:400)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:289)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:375)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:98)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:308)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.SettableBeanProperty.deserialize(SettableBeanProperty.java:375)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.impl.MethodProperty.deserializeAndSet(MethodProperty.java:98)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserializeFromObject(BeanDeserializer.java:308)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.BeanDeserializer.deserialize(BeanDeserializer.java:121)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:147)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.deser.std.ObjectArrayDeserializer.deserialize(ObjectArrayDeserializer.java:18)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] at com.fasterxml.jackson.databind.ObjectMapper._convert(ObjectMapper.java:2516)[178:com.fasterxml.jackson.core.jackson-databind:2.1.1] ... 23 more

            People

            • Assignee:
              Felix Mayerhuber
              Reporter:
              Felix Mayerhuber
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: