java.lang.NullPointerException

Atlassian JIRA | Pietro Schaff [Atlassian] | 8 months ago
  1. 0

    h3. Current behaviour Sometimes the atlassian-crowd.log will fill up a lot of messages like: {noformat} 2016-03-29 02:00:00,166 scheduler_Worker-6 ERROR [atlassian.scheduler.core.JobLauncher] Scheduled job with ID 'AutomatedBackup' failed java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222) at com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:29) at com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74) at sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy60.backup(Unknown Source) at com.atlassian.crowd.manager.backup.BackupJobRunner.runJob(BackupJobRunner.java:37) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {noformat} h3. Expected behaviour We would like Crowd to properly run the scheduler against valid jobs so these messages aren't displayed in the logs.

    Atlassian JIRA | 8 months ago | Pietro Schaff [Atlassian]
    java.lang.NullPointerException
  2. 0

    h3. Current behaviour Sometimes the atlassian-crowd.log will fill up a lot of messages like: {noformat} 2016-03-29 02:00:00,166 scheduler_Worker-6 ERROR [atlassian.scheduler.core.JobLauncher] Scheduled job with ID 'AutomatedBackup' failed java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222) at com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:29) at com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74) at sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy60.backup(Unknown Source) at com.atlassian.crowd.manager.backup.BackupJobRunner.runJob(BackupJobRunner.java:37) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549) {noformat} h3. Expected behaviour We would like Crowd to properly run the scheduler against valid jobs so these messages aren't displayed in the logs.

    Atlassian JIRA | 8 months ago | Pietro Schaff [Atlassian]
    java.lang.NullPointerException
  3. 0

    Crowd keeps throwing an exception every night during the automated backup. 2014-02-10 02:00:00,010 scheduler_Worker-1 INFO [crowd.manager.backup.BackupJob] Starting scheduled backup to file atlassian-crowd-2014-02-10-020000-automated-backup-2.7.0.xml... 2014-02-10 02:00:00,385 scheduler_Worker-1 INFO [atlassian.crowd.migration.XmlMigrationManagerImpl] Time taken to export (millis): 375 2014-02-10 02:00:00,385 scheduler_Worker-1 ERROR [org.quartz.core.JobRunShell] Job AutomatedBackup.AutomatedBackup threw an unhandled Exception: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222) at com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:26) at com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy50.backup(Unknown Source) at com.atlassian.crowd.manager.backup.BackupJob.executeInternal(BackupJob.java:30) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2014-02-10 02:00:00,385 scheduler_Worker-1 ERROR [org.quartz.core.ErrorLogger] Job (AutomatedBackup.AutomatedBackup threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222) at com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:26) at com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy50.backup(Unknown Source) at com.atlassian.crowd.manager.backup.BackupJob.executeInternal(BackupJob.java:30) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Atlassian JIRA | 3 years ago | Peter Hanraets
    java.lang.NullPointerException
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Crowd keeps throwing an exception every night during the automated backup. 2014-02-10 02:00:00,010 scheduler_Worker-1 INFO [crowd.manager.backup.BackupJob] Starting scheduled backup to file atlassian-crowd-2014-02-10-020000-automated-backup-2.7.0.xml... 2014-02-10 02:00:00,385 scheduler_Worker-1 INFO [atlassian.crowd.migration.XmlMigrationManagerImpl] Time taken to export (millis): 375 2014-02-10 02:00:00,385 scheduler_Worker-1 ERROR [org.quartz.core.JobRunShell] Job AutomatedBackup.AutomatedBackup threw an unhandled Exception: java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222) at com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:26) at com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy50.backup(Unknown Source) at com.atlassian.crowd.manager.backup.BackupJob.executeInternal(BackupJob.java:30) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) 2014-02-10 02:00:00,385 scheduler_Worker-1 ERROR [org.quartz.core.ErrorLogger] Job (AutomatedBackup.AutomatedBackup threw an exception. org.quartz.SchedulerException: Job threw an unhandled exception. [See nested exception: java.lang.NullPointerException] at org.quartz.core.JobRunShell.run(JobRunShell.java:214) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) * Nested Exception (Underlying Cause) --------------- java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222) at com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:26) at com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy50.backup(Unknown Source) at com.atlassian.crowd.manager.backup.BackupJob.executeInternal(BackupJob.java:30) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)

    Atlassian JIRA | 3 years ago | Peter Hanraets
    java.lang.NullPointerException
  6. 0

    fab maven plugin - NPE

    GitHub | 3 years ago | davsclaus
    org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal org.fusesource.mvnplugins:maven-fab-plugin:1.16:generate (default) on project fab-sample-camel-noshare: Could not store the fabric module descriptor '/Users/davsclaus/workspace/fabric8/fab/tests/fab-sample-camel-noshare/target/fab-sample-camel-noshare-1.1.0-SNAPSHOT.jar.fmd'

    9 unregistered visitors
    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 java.util.Hashtable.put()
    2. Java RT
      Properties.setProperty
      1. java.util.Hashtable.put(Hashtable.java:514)
      2. java.util.Properties.setProperty(Properties.java:161)
      2 frames
    3. com.atlassian.crowd
      DefaultBackupManager.backup
      1. com.atlassian.crowd.dao.directory.DirectoryPropertiesMapper.exportProperties(DirectoryPropertiesMapper.java:222)
      2. com.atlassian.crowd.file.FileConfigurationExporter.exportDirectories(FileConfigurationExporter.java:29)
      3. com.atlassian.crowd.manager.backup.DefaultBackupManager.backup(DefaultBackupManager.java:74)
      3 frames
    4. Java RT
      Method.invoke
      1. sun.reflect.GeneratedMethodAccessor545.invoke(Unknown Source)
      2. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      3. java.lang.reflect.Method.invoke(Method.java:606)
      3 frames
    5. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
      2. org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
      3. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
      3 frames
    6. Spring Tx
      TransactionInterceptor.invoke
      1. org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96)
      2. org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260)
      3. org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94)
      3 frames
    7. Spring AOP
      JdkDynamicAopProxy.invoke
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
      2. org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
      2 frames
    8. com.sun.proxy
      $Proxy60.backup
      1. com.sun.proxy.$Proxy60.backup(Unknown Source)
      1 frame
    9. com.atlassian.crowd
      BackupJobRunner.runJob
      1. com.atlassian.crowd.manager.backup.BackupJobRunner.runJob(BackupJobRunner.java:37)
      1 frame
    10. com.atlassian.scheduler
      Quartz1Job.execute
      1. com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135)
      2. com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101)
      3. com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80)
      4. com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32)
      4 frames
    11. quartz
      JobRunShell.run
      1. org.quartz.core.JobRunShell.run(JobRunShell.java:223)
      1 frame