"cobbler sync" command fails with error "RuntimeExceptioneError trying to sync to cobbler: null java.lang.NullPointerException"

Solution Verified - Updated -

Issue

  • Cobbler sync fails with "RuntimeExceptioneError trying to sync to cobbler: null java.lang.NullPointerException" error .

     [DefaultQuartzScheduler_Worker-4] ERROR com.redhat.rhn.taskomatic.task.CobblerSyncTask  - RuntimeExceptioneError trying to sync to cobbler: null
    java.lang.NullPointerException
            at com.redhat.rhn.manager.kickstart.cobbler.CobblerProfileSyncCommand.syncProfileToSpacewalk(CobblerProfileSyncCommand.java:136)
            at com.redhat.rhn.manager.kickstart.cobbler.CobblerProfileSyncCommand.store(CobblerProfileSyncCommand.java:107)
            at com.redhat.rhn.taskomatic.task.CobblerSyncTask.execute(CobblerSyncTask.java:102)
            at com.redhat.rhn.taskomatic.task.RhnJavaJob.execute(RhnJavaJob.java:80)
            at com.redhat.rhn.taskomatic.TaskoJob.execute(TaskoJob.java:168)
            at org.quartz.core.JobRunShell.run(JobRunShell.java:214)
            at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:549)
    

Environment

  • Red Hat Network (RHN) Satellite v 5.3 and above

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.