java.lang.NullPointerException

Atlassian JIRA | Renan Battaglin | 7 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    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}

    Atlassian JIRA | 7 years ago | Renan Battaglin
    java.lang.NullPointerException
  2. 0

    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}

    Atlassian JIRA | 7 years ago | Renan Battaglin
    java.lang.NullPointerException

    Root Cause Analysis

    1. java.lang.NullPointerException

      No message provided

      at com.atlassian.crowd.migration.MembershipMapper.addMembershipToXml()
    2. com.atlassian.crowd
      Backup.doExport
      1. com.atlassian.crowd.migration.MembershipMapper.addMembershipToXml(MembershipMapper.java:58)
      2. com.atlassian.crowd.migration.MembershipMapper.exportXml(MembershipMapper.java:44)
      3. com.atlassian.crowd.migration.XmlMigrator.exportXml(XmlMigrator.java:30)
      4. com.atlassian.crowd.migration.XmlMigrationManagerImpl.exportXml(XmlMigrationManagerImpl.java:96)
      5. com.atlassian.crowd.console.action.admin.Backup.doExport(Backup.java:71)
      5 frames
    3. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      4. java.lang.reflect.Method.invoke(Method.java:597)
      4 frames
    4. XWork Tiger Extensions
      DefaultActionInvocation.invokeActionOnly
      1. com.opensymphony.xwork.DefaultActionInvocation.invokeAction(DefaultActionInvocation.java:358)
      2. com.opensymphony.xwork.DefaultActionInvocation.invokeActionOnly(DefaultActionInvocation.java:218)
      2 frames