org.obiba.magma.NoSuchDatasourceException: No datasource exists with the specified name 'opal-data'

JIRA | Philippe Laflamme | 6 years ago
  1. 0

    Upgrade fails with the following exception: 2010-11-01 11:46:51,660 - main - ERROR - gingUpgradeManagerListener - Exception: org.obiba.magma.NoSuchDatasourceException: No datasource exists with the specified name 'opal-data' at org.obiba.magma.MagmaEngine.getDatasource(MagmaEngine.java:100) at org.obiba.magma.support.MagmaEngineTableResolver.resolveTable(MagmaEngineTableResolver.java:22) at org.obiba.magma.support.ValueTableReference.getWrappedValueTable(ValueTableReference.java:57) at org.obiba.magma.support.AbstractValueTableWrapper.getDatasource(AbstractValueTableWrapper.java:22) at org.obiba.magma.xstream.converter.ViewConverter.marshallValueTableReference(ViewConverter.java:131) at org.obiba.magma.xstream.converter.ViewConverter.marshallFromTable(ViewConverter.java:125) at org.obiba.magma.xstream.converter.ViewConverter.marshal(ViewConverter.java:41) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:56) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38) at com.thoughtworks.xstream.XStream.marshal(XStream.java:837) at com.thoughtworks.xstream.XStream.marshal(XStream.java:826) at com.thoughtworks.xstream.XStream.toXML(XStream.java:801) at org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.writeViews(OpalViewPersistenceStrategy.java:72) at org.obiba.opal.core.runtime.upgrade.ViewsUpgrade_1_4_0.execute(ViewsUpgrade_1_4_0.java:85) at org.obiba.runtime.upgrade.support.DefaultUpgradeManager.executeUpgrade(DefaultUpgradeManager.java:104) at org.obiba.opal.server.UpgradeCommand.execute(UpgradeCommand.java:37) at org.obiba.opal.server.OpalServer.<init>(OpalServer.java:33) at org.obiba.opal.server.OpalServer.main(OpalServer.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    JIRA | 6 years ago | Philippe Laflamme
    org.obiba.magma.NoSuchDatasourceException: No datasource exists with the specified name 'opal-data'
  2. 0

    Upgrade fails with the following exception: 2010-11-01 11:46:51,660 - main - ERROR - gingUpgradeManagerListener - Exception: org.obiba.magma.NoSuchDatasourceException: No datasource exists with the specified name 'opal-data' at org.obiba.magma.MagmaEngine.getDatasource(MagmaEngine.java:100) at org.obiba.magma.support.MagmaEngineTableResolver.resolveTable(MagmaEngineTableResolver.java:22) at org.obiba.magma.support.ValueTableReference.getWrappedValueTable(ValueTableReference.java:57) at org.obiba.magma.support.AbstractValueTableWrapper.getDatasource(AbstractValueTableWrapper.java:22) at org.obiba.magma.xstream.converter.ViewConverter.marshallValueTableReference(ViewConverter.java:131) at org.obiba.magma.xstream.converter.ViewConverter.marshallFromTable(ViewConverter.java:125) at org.obiba.magma.xstream.converter.ViewConverter.marshal(ViewConverter.java:41) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64) at com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118) at com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:56) at com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78) at com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63) at com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98) at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38) at com.thoughtworks.xstream.XStream.marshal(XStream.java:837) at com.thoughtworks.xstream.XStream.marshal(XStream.java:826) at com.thoughtworks.xstream.XStream.toXML(XStream.java:801) at org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.writeViews(OpalViewPersistenceStrategy.java:72) at org.obiba.opal.core.runtime.upgrade.ViewsUpgrade_1_4_0.execute(ViewsUpgrade_1_4_0.java:85) at org.obiba.runtime.upgrade.support.DefaultUpgradeManager.executeUpgrade(DefaultUpgradeManager.java:104) at org.obiba.opal.server.UpgradeCommand.execute(UpgradeCommand.java:37) at org.obiba.opal.server.OpalServer.<init>(OpalServer.java:33) at org.obiba.opal.server.OpalServer.main(OpalServer.java:82) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

    JIRA | 6 years ago | Philippe Laflamme
    org.obiba.magma.NoSuchDatasourceException: No datasource exists with the specified name 'opal-data'

    Root Cause Analysis

    1. org.obiba.magma.NoSuchDatasourceException

      No datasource exists with the specified name 'opal-data'

      at org.obiba.magma.MagmaEngine.getDatasource()
    2. org.obiba.magma
      ViewConverter.marshal
      1. org.obiba.magma.MagmaEngine.getDatasource(MagmaEngine.java:100)
      2. org.obiba.magma.support.MagmaEngineTableResolver.resolveTable(MagmaEngineTableResolver.java:22)
      3. org.obiba.magma.support.ValueTableReference.getWrappedValueTable(ValueTableReference.java:57)
      4. org.obiba.magma.support.AbstractValueTableWrapper.getDatasource(AbstractValueTableWrapper.java:22)
      5. org.obiba.magma.xstream.converter.ViewConverter.marshallValueTableReference(ViewConverter.java:131)
      6. org.obiba.magma.xstream.converter.ViewConverter.marshallFromTable(ViewConverter.java:125)
      7. org.obiba.magma.xstream.converter.ViewConverter.marshal(ViewConverter.java:41)
      7 frames
    3. XStream Core
      XStream.toXML
      1. com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86)
      2. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      3. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      4. com.thoughtworks.xstream.converters.collections.AbstractCollectionConverter.writeItem(AbstractCollectionConverter.java:64)
      5. com.thoughtworks.xstream.converters.collections.ArrayConverter.marshal(ArrayConverter.java:45)
      6. com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86)
      7. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      8. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshallField(AbstractReflectionConverter.java:157)
      9. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.writeField(AbstractReflectionConverter.java:148)
      10. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter$2.visit(AbstractReflectionConverter.java:118)
      11. com.thoughtworks.xstream.converters.reflection.PureJavaReflectionProvider.visitSerializableFields(PureJavaReflectionProvider.java:129)
      12. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.doMarshal(AbstractReflectionConverter.java:100)
      13. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:58)
      14. com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86)
      15. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      16. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      17. com.thoughtworks.xstream.converters.reflection.AbstractReflectionConverter.marshal(AbstractReflectionConverter.java:56)
      18. com.thoughtworks.xstream.core.TreeMarshaller.convert(TreeMarshaller.java:86)
      19. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:78)
      20. com.thoughtworks.xstream.core.TreeMarshaller.convertAnother(TreeMarshaller.java:63)
      21. com.thoughtworks.xstream.core.TreeMarshaller.start(TreeMarshaller.java:98)
      22. com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.marshal(AbstractTreeMarshallingStrategy.java:38)
      23. com.thoughtworks.xstream.XStream.marshal(XStream.java:837)
      24. com.thoughtworks.xstream.XStream.marshal(XStream.java:826)
      25. com.thoughtworks.xstream.XStream.toXML(XStream.java:801)
      25 frames
    4. org.obiba.opal
      ViewsUpgrade_1_4_0.execute
      1. org.obiba.opal.core.cfg.OpalViewPersistenceStrategy.writeViews(OpalViewPersistenceStrategy.java:72)
      2. org.obiba.opal.core.runtime.upgrade.ViewsUpgrade_1_4_0.execute(ViewsUpgrade_1_4_0.java:85)
      2 frames
    5. org.obiba.runtime
      DefaultUpgradeManager.executeUpgrade
      1. org.obiba.runtime.upgrade.support.DefaultUpgradeManager.executeUpgrade(DefaultUpgradeManager.java:104)
      1 frame
    6. org.obiba.opal
      OpalServer.main
      1. org.obiba.opal.server.UpgradeCommand.execute(UpgradeCommand.java:37)
      2. org.obiba.opal.server.OpalServer.<init>(OpalServer.java:33)
      3. org.obiba.opal.server.OpalServer.main(OpalServer.java:82)
      3 frames
    7. Java RT
      NativeMethodAccessorImpl.invoke0
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      1 frame