org.obiba.magma.NoSuchAttributeException: No such attribute 'label'@fr for 'N' INFO|wrapper|10-10-08 12:06:19|Trigger found: Exception

JIRA | Martin Boulanger | 6 years ago
  1. 0

    1) Create an XML datasource based on the attached file 2) Export that datasource to CSV using the Data Export feature (select all tables & export to a folder) You will get the following: INFO|2332/0|10-10-08 12:06:19|java.lang.RuntimeException: org.obiba.magma.NoSuchAttributeException: No such attribute 'label'@fr for 'N' INFO|wrapper|10-10-08 12:06:19|Trigger found: Exception INFO|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToDatasource(DefaultExportServiceImpl.java:146) INFO|wrapper|10-10-08 12:06:19|start script scripts/trayMessage.gv INFO|2332/0|10-10-08 12:06:19| at org.obiba.opal.shell.commands.CopyCommand.execute(CopyCommand.java:82) INFO|2332/0|10-10-08 12:06:19| at org.obiba.opal.shell.CommandJob.run(CommandJob.java:109) INFO|2332/0|10-10-08 12:06:19| at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) INFO|2332/0|10-10-08 12:06:19| at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source) INFO|2332/0|10-10-08 12:06:19| at java.util.concurrent.FutureTask.run(Unknown Source) INFO|2332/0|10-10-08 12:06:19| at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) INFO|2332/0|10-10-08 12:06:19| at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) INFO|2332/0|10-10-08 12:06:19| at java.lang.Thread.run(Unknown Source) INFO|2332/0|10-10-08 12:06:19|Caused by: org.obiba.magma.NoSuchAttributeException: No such attribute 'label'@fr for 'N' INFO|wrapper|10-10-08 12:06:19|Trigger found: Exception INFO|wrapper|10-10-08 12:06:19|start script scripts/trayMessage.gv INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.AbstractAttributeAware.getAttribute(AbstractAttributeAware.java:50) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.datasource.csv.converter.VariableConverter.marshalCategories(VariableConverter.java:141) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.datasource.csv.converter.VariableConverter.marshal(VariableConverter.java:193) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.datasource.csv.CsvValueTableWriter$CsvVariableWriter.writeVariable(CsvValueTableWriter.java:59) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:176) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:154) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:144) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.support.MultithreadedDatasourceCopier.copyVariables(MultithreadedDatasourceCopier.java:190) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.support.MultithreadedDatasourceCopier.write(MultithreadedDatasourceCopier.java:138) INFO|2332/0|10-10-08 12:06:19| at org.obiba.magma.support.MultithreadedDatasourceCopier.copy(MultithreadedDatasourceCopier.java:129) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTableToDatasource(DefaultExportServiceImpl.java:177) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.access$200(DefaultExportServiceImpl.java:52) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.service.impl.DefaultExportServiceImpl$1$1.execute(DefaultExportServiceImpl.java:129) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.magma.concurrent.LockingActionTemplate$1.doInTransactionWithoutResult(LockingActionTemplate.java:46) FINEST|2332/0|10-10-08 12:06:19| at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:33) FINEST|2332/0|10-10-08 12:06:19| at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:130) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.magma.concurrent.LockingActionTemplate.doInTransaction(LockingActionTemplate.java:42) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.magma.concurrent.LockingActionTemplate.execute(LockingActionTemplate.java:31) FINEST|2332/0|10-10-08 12:06:19| at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToDatasource(DefaultExportServiceImpl.java:111) FINEST|2332/0|10-10-08 12:06:19| ... 8 more

    JIRA | 6 years ago | Martin Boulanger
    org.obiba.magma.NoSuchAttributeException: No such attribute 'label'@fr for 'N' INFO|wrapper|10-10-08 12:06:19|Trigger found: Exception

    Root Cause Analysis

    1. org.obiba.magma.NoSuchAttributeException

      No such attribute 'label'@fr for 'N' INFO|wrapper|10-10-08 12:06:19|Trigger found: Exception

      at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToDatasource()
    2. org.obiba.opal
      DefaultExportServiceImpl.exportTablesToDatasource
      1. org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToDatasource(DefaultExportServiceImpl.java:146)
      1 frame