Questions tagged [javalite]

JavaLite is a collection of frameworks including ActiveJDBC (an ORM) and ActiveWeb.

JavaLite is a collection of frameworks including and .

http://javalite.io/

123 questions
0
votes
1 answer

How to read the property values setup for ActiveJDBC?

I am using the activejdbc.properties file to specify the location of my database.properties values. activejdbc.properties env.connections.file=/opt/apps/conf/database.properties database.properties (Located on the…
Jeff Moreau
  • 29
  • 1
  • 7
0
votes
1 answer

In ActiveJDBC how to update value of one of the Composite Key fields?

I am using ActiveJDBC. I have a table that is made up of a composite key (parentId, childId, effStartDate). I have a new requirement to allow the updating of the effStartDate field. When I tried to update the field and save, it errors out. Is…
Jeff Moreau
  • 29
  • 1
  • 7
0
votes
1 answer

How to build runnable JAR using Javalite framework as standalone http?

As questioned, how to build runnable JAR using Javalite framework? Javalite doesn't have known entry point / main class. I browse some of the examples but not found any clue. This jar will run as stand-alone on server using java -jar…
0
votes
0 answers

org.javalite.activejdbc.InitException: Failed to connect to JDBC URL

Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/tmolecules", "root", "......"); I keep getting this error when I try to use a local database. How do I fix this? Stack Trace: org.javalite.activejdbc.InitException: Failed to connect to…
kittu
  • 6,662
  • 21
  • 91
  • 185
0
votes
1 answer

Can I make Javalite Http unpack replies that are gziped?

I am using Javalite Http client to make a post request to a REST service and would like to get the result gziped (as it can be quite large and compresses well). I am reading the reply with the post.text() method but the result seems to be the…
Tristpost
  • 19
  • 4
0
votes
1 answer

Maven error when downloading latest 2.1-SNAPSHOT

Suddenly i encounter the following error when trying to download the latest 2.1-SNAPSHOT from the configured snapshot repository: [WARNING] Could not transfer metadata org.javalite:javalite-common:2.1-SNAPSHOT/maven-metadata.xml from/to…
valley
  • 157
  • 1
  • 13
0
votes
0 answers

delete and deleteAll not working for me

I have the following code: try (DB db = new DB()) { db.open(cpds); // Using the metadata to walk down the tree and identify all // children nodes to the leaf tables. // First the metadata for the pk of the target…
oldDave
  • 395
  • 6
  • 25
0
votes
1 answer

Postgres driver for activejdbc keeps throwing nullpointers

I've been trying to get this example for activejdbc to work to no avail. My database has the tables in to make use of this code, this is how it looks when opened in my editor (intellij): I cut out some tables that aren't used by this code, as it's…
J. Oostrom
  • 55
  • 8
0
votes
1 answer

JavaLite error Failed URL when requesting HTTPS RESTful

I'm using the JavaLite implementation and everything works fine when requesting HTTP services but when trying to get data from the HTTPS version of the service I get the HttpException "Failed URL". Here's my code: Get get = Http.get(url +…
0
votes
2 answers

jetty embedded javalite web app

I am trying to generate a jetty 9.4.8 embedded webapp with javalite activeweb that is a servletFilter based framework. I develop a server main with a webappContextHandler, but i obtain always that exception: 2018-03-07 18:28:54 DEBUG…
mls_dev
  • 511
  • 2
  • 6
  • 21
0
votes
1 answer

ActiveJDBC (JavaLite) : Using "activejdbc.properties" does not work for test directory

I recently updated to ActiveJDBC 2.1 in order to use activejdbc.properties for the purpose of externalizing out the database property so we didn't have to check in the database username/password into SVN. Putting the "activejdbc.property" file…
Jeff Moreau
  • 29
  • 1
  • 7
0
votes
1 answer

Different connections for same environment in database.properties

i need access to several databases per environment. Until now i've only seen examples with exactly one database connection config per environment in database.properties. Is it possible to have several connection configs in there for an environment…
valley
  • 157
  • 1
  • 13
0
votes
2 answers

JavaLite / ActiveJDBC: Derive database columns from Getters?

ActiveJDBC is a real "thin" database mapper allowing to query databases and mapping the results to POJOs. I'm using version 2.1-SNAPSHOT. However, when it comes to the properties of a class, it looks like one has to do the hard work manually (or…
Georg S.
  • 23
  • 3
0
votes
1 answer

Cannot open a new connection because existing connection is still on current thread - ActiveJDBC

I'm getting this error Cannot open a new connection because existing connection is still on current thread after a while. I think the error is pretty self explanatory. My code is this: String mySQLUrl = "jdbc:postgresql://" +…
JGutierrezC
  • 4,398
  • 5
  • 25
  • 42
0
votes
1 answer

Adjust ActiveJDBC log level

This should be so simple to accomplish that not being able to do so is driving me crazy! I'm using ActiveJDBC (which uses slf4j) along logback, and it seems it is IMPOSSIBLE to adjust the log level on ActiveJDBC so it doesn't print a NOTICE to…
Ox3
  • 451
  • 1
  • 6
  • 22
1 2 3
8 9