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.

  • fab maven plugin - NPE
    via GitHub by davsclaus
    ,
  • Exception running MRBenchmark on hadoop cluster
    via Stack Overflow by aps
    ,
  • Create New Class NPE
    via by Unknown author,
  • Exception in configure
    via by Unknown author,
  • 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.
    via by Pietro Schaff [Atlassian],
  • 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)
    via by Peter Hanraets,
  • 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.
    via by Pietro Schaff [Atlassian],
    • java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:514) at java.util.Properties.setProperty(Properties.java:161) at de.tuberlin.dima.schubotz.fse.settings.Settings.setProperty(Settings.java:130) at de.tuberlin.dima.schubotz.fse.settings.Settings.loadOptions(Settings.java:105) at de.tuberlin.dima.schubotz.fse.client.ClientConsole.parseParameters(ClientConsole.java:47) at de.tuberlin.dima.schubotz.fse.MainProgram.main(MainProgram.java:61) 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 com.intellij.rt.execution.application.AppMain.main(AppMain.java:134)

    Users with the same issue

    Unknown visitor
    Unknown visitor2 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    Unknown visitor
    Unknown visitor1 times, last one,
    19 more bugmates