org.obiba.magma.MagmaRuntimeException: java.lang.NullPointerException

JIRA | Martin Boulanger | 7 years ago
  1. 0

    1) Start Opal 2) List the metadata of an existing datasource : list -o c:\output\metadata.xls opal-data.Participants 3) List again (same output file): list -o c:\output\metadata.xls opal-data.Participants An error occurs while loading the existing Excel datasource: 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

    JIRA | 7 years ago | Martin Boulanger
    org.obiba.magma.MagmaRuntimeException: java.lang.NullPointerException
  2. 0

    1) Start Opal 2) List the metadata of an existing datasource : list -o c:\output\metadata.xls opal-data.Participants 3) List again (same output file): list -o c:\output\metadata.xls opal-data.Participants An error occurs while loading the existing Excel datasource: 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

    JIRA | 7 years ago | Martin Boulanger
    org.obiba.magma.MagmaRuntimeException: java.lang.NullPointerException
  3. 0

    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

    JIRA | 7 years ago
    org.obiba.magma.MagmaRuntimeException: java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Android: Saving Map State in Google map

    Stack Overflow | 11 months ago | Junie Negentien
    java.lang.RuntimeException: Unable to resume activity {com.ourThesis.junieNegentien2015/com.ourThesis.junieNegentien2015.MainActivity}: java.lang.NullPointerException

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at org.obiba.magma.datasource.excel.ExcelValueTable.readCustomAttributes()
    2. org.obiba.magma
      MagmaEngine.addDatasource
      1. org.obiba.magma.datasource.excel.ExcelValueTable.readCustomAttributes(ExcelValueTable.java:182)
      2. org.obiba.magma.datasource.excel.ExcelValueTable.readVariables(ExcelValueTable.java:112)
      3. org.obiba.magma.datasource.excel.ExcelValueTable.initialise(ExcelValueTable.java:44)
      4. org.obiba.magma.support.Initialisables.initialise(Initialisables.java:10)
      5. org.obiba.magma.support.Initialisables.initialise(Initialisables.java:20)
      6. org.obiba.magma.support.AbstractDatasource.initialise(AbstractDatasource.java:83)
      7. org.obiba.magma.support.Initialisables.initialise(Initialisables.java:10)
      8. org.obiba.magma.MagmaEngine.addDatasource(MagmaEngine.java:84)
      8 frames
    3. org.obiba.opal
      OpalConsole.main
      1. org.obiba.opal.cli.client.command.ListCommand.execute(ListCommand.java:45)
      2. org.obiba.opal.cli.client.OpalConsole.prompt(OpalConsole.java:136)
      3. org.obiba.opal.cli.client.OpalConsole.<init>(OpalConsole.java:103)
      4. org.obiba.opal.cli.client.OpalConsole.main(OpalConsole.java:185)
      4 frames