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.

  • Oracle does not remove memberships when the Users are deleted. The membership is kept in the CWD_MEMBERSHIP table and the records *child_id* fields are updated to null. Sometimes the User and the Membership are still in the DB, however, the *child_id* field is also updated to null. The problem is being detected when the Admins try to create an XML Backup. The following stack-trace is displayed: {code} java.lang.NullPointerException at com.atlassian.crowd.migration.MembershipMapper.addMembershipToXml(MembershipMapper.java:58) at com.atlassian.crowd.migration.MembershipMapper.exportXml(MembershipMapper.java:44) at com.atlassian.crowd.migration.XmlMigrator.exportXml(XmlMigrator.java:30) at com.atlassian.crowd.migration.XmlMigrationManagerImpl.exportXml(XmlMigrationManagerImpl.java:96) at com.atlassian.crowd.console.action.admin.Backup.doExport(Backup.java:71) 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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) {code} Workaround: Delete from table CWD_MEMBERSHIP the problematic entries: {code} delete from CWD_MEMBERSHIP where child_id = null {code}
    via by Renan Battaglin,
  • Oracle does not remove memberships when the Users are deleted. The membership is kept in the CWD_MEMBERSHIP table and the records *child_id* fields are updated to null. Sometimes the User and the Membership are still in the DB, however, the *child_id* field is also updated to null. The problem is being detected when the Admins try to create an XML Backup. The following stack-trace is displayed: {code} java.lang.NullPointerException at com.atlassian.crowd.migration.MembershipMapper.addMembershipToXml(MembershipMapper.java:58) at com.atlassian.crowd.migration.MembershipMapper.exportXml(MembershipMapper.java:44) at com.atlassian.crowd.migration.XmlMigrator.exportXml(XmlMigrator.java:30) at com.atlassian.crowd.migration.XmlMigrationManagerImpl.exportXml(XmlMigrationManagerImpl.java:96) at com.atlassian.crowd.console.action.admin.Backup.doExport(Backup.java:71) 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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218) {code} Workaround: Delete from table CWD_MEMBERSHIP the problematic entries: {code} delete from CWD_MEMBERSHIP where child_id = null {code}
    via by Renan Battaglin,
    • java.lang.NullPointerException at com.atlassian.crowd.migration.MembershipMapper.addMembershipToXml(MembershipMapper.java:58) at com.atlassian.crowd.migration.MembershipMapper.exportXml(MembershipMapper.java:44) at com.atlassian.crowd.migration.XmlMigrator.exportXml(XmlMigrator.java:30) at com.atlassian.crowd.migration.XmlMigrationManagerImpl.exportXml(XmlMigrationManagerImpl.java:96) at com.atlassian.crowd.console.action.admin.Backup.doExport(Backup.java:71) 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 com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358) at com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
    No Bugmate found.