java.lang.RuntimeException: java.lang.NullPointerException

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Samebug tips

Do you know how to solve this issue? Write a tip to help other users and build your expert profile.

Solutions on the web

via JIRA by Pieter Lukasse, 1 year ago
java.lang.NullPointerException
via JIRA by Pieter Lukasse, 1 year ago
java.lang.NullPointerException
java.lang.RuntimeException: java.lang.NullPointerException
at org.obiba.magma.datasource.hibernate.converter.VariableConverter.getStateForVariable(VariableConverter.java:27)
at org.obiba.magma.datasource.hibernate.converter.VariableConverter.marshal(VariableConverter.java:34)
at org.obiba.magma.datasource.hibernate.HibernateValueTableWriter$HibernateVariableWriter.writeVariable(HibernateValueTableWriter.java:115)
at org.obiba.magma.support.DatasourceCopier.copyMetadata(DatasourceCopier.java:270)
at org.obiba.magma.support.DatasourceCopier.copyMetadata(DatasourceCopier.java:262)
at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:224)
at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:214)
at org.obiba.magma.support.DatasourceCopier.copy(DatasourceCopier.java:202)
at org.obiba.opal.core.service.CopyValueTablesLockingAction$CopyAction.execute(CopyValueTablesLockingAction.java:132)
at org.obiba.opal.core.magma.concurrent.LockingActionTemplate$1.doInTransactionWithoutResult(LockingActionTemplate.java:47)
at org.springframework.transaction.support.TransactionCallbackWithoutResult.doInTransaction(TransactionCallbackWithoutResult.java:34)
at org.obiba.opal.core.magma.concurrent.LockingActionTemplate.doInTransaction(LockingActionTemplate.java:42)
at org.obiba.opal.core.magma.concurrent.LockingActionTemplate.execute(LockingActionTemplate.java:31)
at org.obiba.opal.core.service.DataImportServiceImpl.copyValueTables(DataImportServiceImpl.java:133)
at org.obiba.opal.core.service.DataImportServiceImpl.importData(DataImportServiceImpl.java:105)
at org.obiba.opal.core.service.DataImportServiceImpl.importData(DataImportServiceImpl.java:87)
at org.obiba.opal.shell.commands.ImportCommand.importFromTables(ImportCommand.java:155)
at org.obiba.opal.shell.commands.ImportCommand.executeImports(ImportCommand.java:89)
at org.obiba.opal.shell.commands.ImportCommand.execute(ImportCommand.java:68)
at org.obiba.opal.shell.CommandJob.run(CommandJob.java:149)
at org.apache.shiro.subject.support.SubjectRunnable.doRun(SubjectRunnable.java:120)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:745)

Users with the same issue

You are the first who have seen this exception. Write a tip to help other users and build your expert profile.

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.