org.obiba.magma.MagmaRuntimeException

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Step: 1) create an empty excel 'emp.xls' under Windows Explorer: open Windows Explorer -> right click mouse -> New -> Microsoft Excel Worksheet 2) export a table to this 'emp.xls' file: adm@opal>export -o emp.xls opal-data.Waist Result: in step 1), there will be 3 default blank worksheets in 'emp.xls': Sheet1, Sheet2, Sheet3 in step 2), opal will give error info in opal-error.log as follows: org.obiba.magma.MagmaRuntimeException: java.lang.NullPointerException at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:14) at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:20) at org.obiba.magma.support.AbstractDatasource.initialise(AbstractDatasource.java:83) at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:10) at org.obiba.magma.MagmaEngine.addDatasource(MagmaEngine.java:84) at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.buildExcelDatasource(DefaultExportServiceImpl.java:110) at org.obiba.opal.core.service.impl.DefaultExportServiceImpl.exportTablesToExcelFile(DefaultExportServiceImpl.java:84) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:182) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:149) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:106) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at $Proxy45.exportTablesToExcelFile(Unknown Source) at org.obiba.opal.cli.client.command.ExportCommand.execute(ExportCommand.java:38) at org.obiba.opal.cli.client.OpalConsole.prompt(OpalConsole.java:142) at org.obiba.opal.cli.client.OpalConsole.<init>(OpalConsole.java:109) at org.obiba.opal.cli.client.OpalConsole.main(OpalConsole.java:191) Caused by: java.lang.NullPointerException at org.obiba.magma.datasource.excel.ExcelDatasource.mapSheetHeader(ExcelDatasource.java:193) at org.obiba.magma.datasource.excel.ExcelValueTable.readVariables(ExcelValueTable.java:156) at org.obiba.magma.datasource.excel.ExcelValueTable.initialise(ExcelValueTable.java:58) at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:10) ... 21 more
    via by Unknown author,
    • org.obiba.magma.MagmaRuntimeException: java.lang.NullPointerException at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:14) at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:20) at org.obiba.magma.support.AbstractDatasource.initialise(AbstractDatasource.java:83) at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:10) at org.obiba.magma.MagmaEngine.addDatasource(MagmaEngine.java:84) at org.obiba.opal.cli.client.command.ListCommand.execute(ListCommand.java:45) at org.obiba.opal.cli.client.OpalConsole.prompt(OpalConsole.java:136) at org.obiba.opal.cli.client.OpalConsole.<init>(OpalConsole.java:103) at org.obiba.opal.cli.client.OpalConsole.main(OpalConsole.java:185) Caused by: java.lang.NullPointerException at org.obiba.magma.datasource.excel.ExcelValueTable.readCustomAttributes(ExcelValueTable.java:182) at org.obiba.magma.datasource.excel.ExcelValueTable.readVariables(ExcelValueTable.java:112) at org.obiba.magma.datasource.excel.ExcelValueTable.initialise(ExcelValueTable.java:44) at org.obiba.magma.support.Initialisables.initialise(Initialisables.java:10) ... 8 more
    No Bugmate found.