Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: TK 1.y
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      OS X 10.9, Java Hotspot 1.7

    • Template:

      Description

      I am unable to get an uberjar built. I have my own main defined which calls TK's build-app. I have tried various flavors of AOT to see if the problem is resolved that way but to no avail.

      I am able to run my app from the repl using a reloaded workflow which calls build-app.

      Aside, I've also tried setting up my application using puppetlabs.trapperkeeper.main per the wiki. I am able to uberjar, but I'm unable to call `java -jar my-uberjar.jar` because it does not find a main.

      All that said, I do need to be able to do an uberjar build and call TK from my own main.

      Compiling longitude.main
      java.lang.IllegalArgumentException: Service attempts to define function 'get-config', but does not provide protocol, compiling:(puppetlabs/trapperkeeper/config.clj:93:3)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6651)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.analyze(Compiler.java:6406)
      at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)
      at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5217)
      at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3846)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6642)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6632)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.access$100(Compiler.java:38)
      at clojure.lang.Compiler$DefExpr$Parser.parse(Compiler.java:538)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.analyze(Compiler.java:6406)
      at clojure.lang.Compiler.compile1(Compiler.java:7221)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:619)
      at puppetlabs.trapperkeeper.bootstrap$loading_4958auto_.invoke(bootstrap.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:703)
      at puppetlabs.trapperkeeper.core$loading_4958auto_.invoke(core.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:619)
      at longitude.system$loading_4958auto_.invoke(system.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:421)
      at longitude.main$loading_4958auto_.invoke(main.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$compile$fn__5071.invoke(core.clj:5652)
      at clojure.core$compile.invoke(core.clj:5651)
      at user$eval19$fn__26.invoke(form-init9068046988380725616.clj:1)
      at user$eval19.invoke(form-init9068046988380725616.clj:1)
      at clojure.lang.Compiler.eval(Compiler.java:6703)
      at clojure.lang.Compiler.eval(Compiler.java:6693)
      at clojure.lang.Compiler.load(Compiler.java:7130)
      at clojure.lang.Compiler.loadFile(Compiler.java:7086)
      at clojure.main$load_script.invoke(main.clj:274)
      at clojure.main$init_opt.invoke(main.clj:279)
      at clojure.main$initialize.invoke(main.clj:307)
      at clojure.main$null_opt.invoke(main.clj:342)
      at clojure.main$main.doInvoke(main.clj:420)
      at clojure.lang.RestFn.invoke(RestFn.java:421)
      at clojure.lang.Var.invoke(Var.java:383)
      at clojure.lang.AFn.applyToHelper(AFn.java:156)
      at clojure.lang.Var.applyTo(Var.java:700)
      at clojure.main.main(main.java:37)
      Caused by: java.lang.IllegalArgumentException: Service attempts to define function 'get-config', but does not provide protocol
      at puppetlabs.trapperkeeper.services_internal$validate_provided_fns_BANG_.invoke(services_internal.clj:168)
      at puppetlabs.trapperkeeper.services_internal$build_fns_map_BANG_.invoke(services_internal.clj:313)
      at puppetlabs.trapperkeeper.services_internal$parse_service_forms_BANG_.invoke(services_internal.clj:372)
      at puppetlabs.trapperkeeper.services$service.doInvoke(services.clj:60)
      at clojure.lang.RestFn.invoke(RestFn.java:566)
      at clojure.lang.Var.invoke(Var.java:419)
      at clojure.lang.AFn.applyToHelper(AFn.java:186)
      at clojure.lang.Var.applyTo(Var.java:700)
      at clojure.lang.Compiler.macroexpand1(Compiler.java:6552)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6630)
      ... 133 more
      Exception in thread "main" java.lang.IllegalArgumentException: Service attempts to define function 'get-config', but does not provide protocol, compiling:(puppetlabs/trapperkeeper/config.clj:93:3)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6651)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.analyze(Compiler.java:6406)
      at clojure.lang.Compiler$BodyExpr$Parser.parse(Compiler.java:5782)
      at clojure.lang.Compiler$FnMethod.parse(Compiler.java:5217)
      at clojure.lang.Compiler$FnExpr.parse(Compiler.java:3846)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6642)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6632)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.access$100(Compiler.java:38)
      at clojure.lang.Compiler$DefExpr$Parser.parse(Compiler.java:538)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6644)
      at clojure.lang.Compiler.analyze(Compiler.java:6445)
      at clojure.lang.Compiler.analyze(Compiler.java:6406)
      at clojure.lang.Compiler.compile1(Compiler.java:7221)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:619)
      at puppetlabs.trapperkeeper.bootstrap$loading_4958auto_.invoke(bootstrap.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:703)
      at puppetlabs.trapperkeeper.core$loading_4958auto_.invoke(core.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:619)
      at longitude.system$loading_4958auto_.invoke(system.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$load_lib$fn__5015.invoke(core.clj:5486)
      at clojure.core$load_lib.doInvoke(core.clj:5485)
      at clojure.lang.RestFn.applyTo(RestFn.java:142)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$load_libs.doInvoke(core.clj:5524)
      at clojure.lang.RestFn.applyTo(RestFn.java:137)
      at clojure.core$apply.invoke(core.clj:626)
      at clojure.core$require.doInvoke(core.clj:5607)
      at clojure.lang.RestFn.invoke(RestFn.java:421)
      at longitude.main$loading_4958auto_.invoke(main.clj:1)
      at clojure.lang.AFn.applyToHelper(AFn.java:152)
      at clojure.lang.AFn.applyTo(AFn.java:144)
      at clojure.lang.Compiler$InvokeExpr.eval(Compiler.java:3553)
      at clojure.lang.Compiler.compile1(Compiler.java:7226)
      at clojure.lang.Compiler.compile1(Compiler.java:7216)
      at clojure.lang.Compiler.compile(Compiler.java:7292)
      at clojure.lang.RT.compile(RT.java:398)
      at clojure.lang.RT.load(RT.java:438)
      at clojure.lang.RT.load(RT.java:411)
      at clojure.core$load$fn__5066.invoke(core.clj:5641)
      at clojure.core$load.doInvoke(core.clj:5640)
      at clojure.lang.RestFn.invoke(RestFn.java:408)
      at clojure.core$load_one.invoke(core.clj:5446)
      at clojure.core$compile$fn__5071.invoke(core.clj:5652)
      at clojure.core$compile.invoke(core.clj:5651)
      at user$eval19$fn__26.invoke(form-init9068046988380725616.clj:1)
      at user$eval19.invoke(form-init9068046988380725616.clj:1)
      at clojure.lang.Compiler.eval(Compiler.java:6703)
      at clojure.lang.Compiler.eval(Compiler.java:6693)
      at clojure.lang.Compiler.load(Compiler.java:7130)
      at clojure.lang.Compiler.loadFile(Compiler.java:7086)
      at clojure.main$load_script.invoke(main.clj:274)
      at clojure.main$init_opt.invoke(main.clj:279)
      at clojure.main$initialize.invoke(main.clj:307)
      at clojure.main$null_opt.invoke(main.clj:342)
      at clojure.main$main.doInvoke(main.clj:420)
      at clojure.lang.RestFn.invoke(RestFn.java:421)
      at clojure.lang.Var.invoke(Var.java:383)
      at clojure.lang.AFn.applyToHelper(AFn.java:156)
      at clojure.lang.Var.applyTo(Var.java:700)
      at clojure.main.main(main.java:37)
      Caused by: java.lang.IllegalArgumentException: Service attempts to define function 'get-config', but does not provide protocol
      at puppetlabs.trapperkeeper.services_internal$validate_provided_fns_BANG_.invoke(services_internal.clj:168)
      at puppetlabs.trapperkeeper.services_internal$build_fns_map_BANG_.invoke(services_internal.clj:313)
      at puppetlabs.trapperkeeper.services_internal$parse_service_forms_BANG_.invoke(services_internal.clj:372)
      at puppetlabs.trapperkeeper.services$service.doInvoke(services.clj:60)
      at clojure.lang.RestFn.invoke(RestFn.java:566)
      at clojure.lang.Var.invoke(Var.java:419)
      at clojure.lang.AFn.applyToHelper(AFn.java:186)
      at clojure.lang.Var.applyTo(Var.java:700)
      at clojure.lang.Compiler.macroexpand1(Compiler.java:6552)
      at clojure.lang.Compiler.analyzeSeq(Compiler.java:6630)
      ... 133 more
      Compilation failed: Subprocess failed

        Attachments

          Activity

            jsd-sla-details-panel

              People

              • Assignee:
                Unassigned
                Reporter:
                sbrady Stephen Brady
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: