1. ;config.edn
  2. {
  3. :host001
  4. {
  5. :protocol "http"
  6. :host "test-uk1.example.com"
  7. :port 9101
  8. :context-root "Jolokia"
  9. :credentials {
  10. :credential001{
  11. :username "user"
  12. :password "user1"
  13. }
  14. }
  15. :action001 {
  16. :action "read"
  17. :mbean "java.lang:type=OperatingSystem"
  18. :attribute "FreePhysicalMemorySize"
  19. :option "ignoreErrors=true"}
  20. }
  21. :host002
  22. {
  23. :protocol "http"
  24. :host "test-uk2.example.com"
  25. :port 9101
  26. :context-root "Jolokia"
  27. :credentials {
  28. :credential001{
  29. :username "user"
  30. :password "user1"
  31. }
  32. }
  33. :action001 {
  34. :action "read"
  35. :mbean "java.lang:type=OperatingSystem"
  36. :attribute "FreePhysicalMemorySize"
  37. :option "ignoreErrors=true"}
  38. }
  39. }
  40. (defn init-queue []
  41. (doseq [keyval config]
  42. (println (key keyval))
  43. (if (map? (val keyval))
  44. (
  45. (println (val keyval))))))

After parsing the edn file, I get an null pointer exception and I don't get it why:

NullPointerException jolokia-client.core/init-queue (NO_SOURCE_FILE:6)