Skip to content

error in process filter: Unmatched bracket or quote #669

@kostafey

Description

@kostafey

UPD: Dublicates #587

CIDER 20140718.747

When I trying to get c3p0 pool I've got
error in process filter: Unmatched bracket or quote.

The way to reproduce:
Add c3p0 to project :dependencies

[com.mchange/c3p0 "0.9.5-pre8"]
[com.h2database/h2 "1.4.178"] ;; in this example
(import 'com.mchange.v2.c3p0.ComboPooledDataSource)

(let [{:keys [classname subprotocol subname user password] 
       :as other-spec}
      {:subprotocol "h2"
       :subname (str
                 "file:/tmp/test_db"
                 ";DATABASE_TO_UPPER=false;DB_CLOSE_DELAY=-1;")
       :classname "org.h2.Driver"
       :user "test"
       :password "test"}
      cpds (doto (ComboPooledDataSource.)
             (.setDriverClass classname)
             (.setJdbcUrl (str "jdbc:" subprotocol ":" subname))
             (.setUser user)
             (.setPassword password))]
  {:datasource cpds})

Evaluating let leads to such error. The same problem may involve some other java objects, but I caught this one.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions