java.lang.NullPointerException

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.

  • 1) Start Opal and log in 2) import -d opal-data -o test small-both.zip <ENTER> 3) import -d opal-data -o test2 small-both.zip <ENTER> You will get the following exception : java.lang.NullPointerException at org.obiba.opal.core.service.impl.OpalPrivateVariableEntityMap.publicEntity(OpalPrivateVariableEntityMap.java:60) at org.obiba.opal.core.magma.PrivateVariableEntityValueTable$2.apply(PrivateVariableEntityValueTable.java:89) at org.obiba.opal.core.magma.PrivateVariableEntityValueTable$2.apply(PrivateVariableEntityValueTable.java:87) at com.google.common.collect.Iterators$8.next(Iterators.java:697) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:135) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:117) at org.obiba.opal.core.service.impl.DefaultImportService.copyParticipantDataAndMetadata(DefaultImportService.java:221) at org.obiba.opal.core.service.impl.DefaultImportService.copyParticipants(DefaultImportService.java:151) at org.obiba.opal.core.service.impl.DefaultImportService.copyValueTables(DefaultImportService.java:130) at org.obiba.opal.core.service.impl.DefaultImportService.importData(DefaultImportService.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 $Proxy40.importData(Unknown Source) at org.obiba.opal.cli.client.command.ImportCommand.importFiles(ImportCommand.java:59) at org.obiba.opal.cli.client.command.ImportCommand.execute(ImportCommand.java:38) 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) It seems like importing to different owners doesn't work.
    via by Martin Boulanger,
  • 1) Start Opal and log in 2) import -d opal-data -o test small-both.zip <ENTER> 3) import -d opal-data -o test2 small-both.zip <ENTER> You will get the following exception : java.lang.NullPointerException at org.obiba.opal.core.service.impl.OpalPrivateVariableEntityMap.publicEntity(OpalPrivateVariableEntityMap.java:60) at org.obiba.opal.core.magma.PrivateVariableEntityValueTable$2.apply(PrivateVariableEntityValueTable.java:89) at org.obiba.opal.core.magma.PrivateVariableEntityValueTable$2.apply(PrivateVariableEntityValueTable.java:87) at com.google.common.collect.Iterators$8.next(Iterators.java:697) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:135) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:117) at org.obiba.opal.core.service.impl.DefaultImportService.copyParticipantDataAndMetadata(DefaultImportService.java:221) at org.obiba.opal.core.service.impl.DefaultImportService.copyParticipants(DefaultImportService.java:151) at org.obiba.opal.core.service.impl.DefaultImportService.copyValueTables(DefaultImportService.java:130) at org.obiba.opal.core.service.impl.DefaultImportService.importData(DefaultImportService.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 $Proxy40.importData(Unknown Source) at org.obiba.opal.cli.client.command.ImportCommand.importFiles(ImportCommand.java:59) at org.obiba.opal.cli.client.command.ImportCommand.execute(ImportCommand.java:38) 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) It seems like importing to different owners doesn't work.
    via by Martin Boulanger,
    • java.lang.NullPointerException at org.obiba.opal.core.service.impl.OpalPrivateVariableEntityMap.publicEntity(OpalPrivateVariableEntityMap.java:60) at org.obiba.opal.core.magma.PrivateVariableEntityValueTable$2.apply(PrivateVariableEntityValueTable.java:89) at org.obiba.opal.core.magma.PrivateVariableEntityValueTable$2.apply(PrivateVariableEntityValueTable.java:87) at com.google.common.collect.Iterators$8.next(Iterators.java:697) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:135) at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:117) at org.obiba.opal.core.service.impl.DefaultImportService.copyParticipantDataAndMetadata(DefaultImportService.java:221) at org.obiba.opal.core.service.impl.DefaultImportService.copyParticipants(DefaultImportService.java:151) at org.obiba.opal.core.service.impl.DefaultImportService.copyValueTables(DefaultImportService.java:130) at org.obiba.opal.core.service.impl.DefaultImportService.importData(DefaultImportService.java:90) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) 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 $Proxy40.importData(Unknown Source) at org.obiba.opal.cli.client.command.ImportCommand.importFiles(ImportCommand.java:59) at org.obiba.opal.cli.client.command.ImportCommand.execute(ImportCommand.java:38) 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)
    No Bugmate found.