Common errors and solutions

As errors and solutions are encountered this list is updated to help developers working with Molecule.

Compile time

Runtime

☝︎ Cannot resolve overloaded method ‘inputMolecule’

When forgetting to explicitly calling m on an input molecule

val inputMolecule = Community.name(?)
inputMolecule("Ben") // will not compile and likely be inferred as an error in your IDE

Input molecule needs to be declared explicitly with the m method

val inputMolecule = m(Community.name(?))
// Now we can apply value to input molecule
inputMolecule("Ben")

☝︎ JdbcSQLException: Connection is broken: “java.net.ConnectException: Connection refused

Datomic transactor is not running - start it.