kostafey / ejc-sql

Emacs SQL client uses Clojure JDBC.
279 stars 29 forks source link

Unable to connect to database #103

Closed rrudakov closed 5 years ago

rrudakov commented 5 years ago

Since last update, when I'm trying to connect to database using ejc-connect I get error in echo area:

error in process filter: SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

And connection doesn't establish.

rrudakov commented 5 years ago

Turning on toggle-debug-on-error got the next output:

Debugger entered--Lisp error: (error "SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n")
  signal(error ("SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n"))
  error("SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n")
  (if (nrepl-dict-get result "err") (error (nrepl-dict-get result "err")) (let (--cl-get-value-- --cl-get-out--) (setq --cl-get-value-- (function (lambda nil (clomacs-format-result (let (...) (if ... ... essence-result)) type)))) (setq --cl-get-out-- (function (lambda nil (clomacs-format-result (nrepl-dict-get result "out") type)))) (cond ((equal value :value) (funcall --cl-get-value--)) ((equal value :stdout) (funcall --cl-get-out--)) ((equal value :both) (cons (funcall --cl-get-out--) (funcall --cl-get-value--))))))
  clomacs-get-result((dict "status" ("done" "state") "err" "SLF4J: Failed to load class \"org.slf4j.impl.StaticLoggerBinder\".\nSLF4J: Defaulting to no-operation (NOP) logger implementation\nSLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.\n" "id" "8" "session" "2b405259-30b1-4c26-a706-33d30e15ca63" "ns" "user" "value" "nil" "changed-namespaces" (dict) "repl-type" "clj") :value :string nil)
  #f(compiled-function (&rest attributes) #<bytecode 0x404b81>)((quote clomacs))
  apply(#f(compiled-function (&rest attributes) #<bytecode 0x404b81>) (quote clomacs))
  (if wrapped-eval (apply wrapped-eval attributes))
  (if (clomacs-get-connection lib-name) (if wrapped-eval (apply wrapped-eval attributes)) (if clomacs-auto-start-nrepl (clomacs-launch-nrepl lib-name wrapped-eval attributes nrepl-ready-callback backend) (error (concat "CIDER is not launched!"))))
  clomacs-ensure-nrepl-run("ejc-sql" #f(compiled-function (&rest attributes) #<bytecode 0x404b81>) ((quote clomacs)) nil :clj)
  ejc-sql-require((quote clomacs))
  ejc-httpd-start()
  #f(compiled-function (&rest attributes) #<bytecode 0x1061959>)(((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")))
  apply(#f(compiled-function (&rest attributes) #<bytecode 0x1061959>) ((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")))
  (if wrapped-eval (apply wrapped-eval attributes))
  (if (clomacs-get-connection lib-name) (if wrapped-eval (apply wrapped-eval attributes)) (if clomacs-auto-start-nrepl (clomacs-launch-nrepl lib-name wrapped-eval attributes nrepl-ready-callback backend) (error (concat "CIDER is not launched!"))))
  clomacs-ensure-nrepl-run("ejc-sql" #f(compiled-function (&rest attributes) #<bytecode 0x1061959>) (((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql"))) nil :clj)
  ejc-sql-set-db(((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")))
  ejc-connect-to-db(((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")))
  #f(compiled-function (db connection-name) #<bytecode 0x18e1fb9>)(((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")) "eotrade_candle_prod")
  apply(#f(compiled-function (db connection-name) #<bytecode 0x18e1fb9>) (((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")) "eotrade_candle_prod"))
  (if wrapped-eval (apply wrapped-eval attributes))
  (let ((eval-result (if wrapped-eval (apply wrapped-eval attributes)))) (when nrepl-ready-callback (funcall nrepl-ready-callback eval-result) nil))
  (prog1 (cider-connect-sibling-clj params server-buffer) (let ((eval-result (if wrapped-eval (apply wrapped-eval attributes)))) (when nrepl-ready-callback (funcall nrepl-ready-callback eval-result) nil)) (setq cider-repl-pop-to-buffer-on-connect old-cider-repl-pop))
  (closure ((old-cider-repl-pop) (params :project-dir "~/.emacs.d/elpa/ejc-sql-20190528.2329/" :--context-buffer #<buffer  *cider-context-buffer*> :jack-in-cmd "/usr/bin/lein update-in :dependencies conj \\[nrepl\\ \\\"0.6.0\\\"\\] -- update-in :plugins conj \\[cider/cider-nrepl\\ \\\"0.22.0-beta1\\\"\\] -- repl :headless :host localhost") (nrepl-ready-callback) (attributes ((:classpath . "/home/rrudakov/.m2/repository/org/postgresql/postgresql/42.2.5/postgresql-42.2.5.jar") (:password . "UdPickIcweigTyn7") (:user . "eotrade") (:port . "5432") (:host . "pg-eo-master.eoadm.com") (:dbname . "eotrade_candle") (:dbtype . "postgresql")) "eotrade_candle_prod") (wrapped-eval . #f(compiled-function (db connection-name) #<bytecode 0x18e1fb9>)) (params :project-dir "~/.emacs.d/elpa/ejc-sql-20190528.2329/" :--context-buffer #<buffer  *cider-context-buffer*> :jack-in-cmd "/usr/bin/lein update-in :dependencies conj \\[nrepl\\ \\\"0.6.0\\\"\\] -- update-in :plugins conj \\[cider/cider-nrepl\\ \\\"0.22.0-beta1\\\"\\] -- repl :headless :host localhost") t) (server-buffer) (prog1 (cider-connect-sibling-clj params server-buffer) (let ((eval-result (if wrapped-eval (apply wrapped-eval attributes)))) (when nrepl-ready-callback (funcall nrepl-ready-callback eval-result) nil)) (setq cider-repl-pop-to-buffer-on-connect old-cider-repl-pop)))(#<buffer *nrepl-server elpa/ejc-sql-20190528.2329:localhost*>)
  nrepl-server-filter(#<process nrepl-server> "nREPL server started on port 44191 on host localhost - nrepl://localhost:44191\n")
kostafey commented 5 years ago

Fixed.

rrudakov commented 5 years ago

Thanks a lot!)