javalite

“There's nothing here yet” after deploying Java Web App on Azure

半城伤御伤魂 提交于 2020-01-05 04:17:24
问题 I have a web app I want to deploy on Azure. I followed the recommended instructions and deployed my app, and according to the Azure portal, everything is working just fine. However, when I visit the base URL my app should reside in, I see a page that says the following: This Java based web application has been successfully created There's nothing here yet, but Microsoft Azure makes it simple to publish content with GIT and FTP Also when I visit any one of the endpoints (in this case, the

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

你说的曾经没有我的故事 提交于 2019-12-13 03:45:22
问题 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://" + dataLayer.PostgreSQL_Host + "/" + dataLayer.PostgreSQL_Database; Base.open("org.postgresql.Driver", mySQLUrl, dataLayer.getPostgreSQLUser(), dataLayer.getPostgreSQLPassword()); In order to avoid that error, i would like to create a connection factory, but to accomplish

java.lang.IllegalArgumentException: number of arguments must be even at org.javalite.activejdbc.Model.set

一曲冷凌霜 提交于 2019-12-12 03:40:01
问题 The request body: request.body {"username":"kkk.k999@gmail.com","userImage":"https://lh3.googleusercontent.com/-XdUIqdMkffA/AAAAAAAAAAI/AAAAAAAAAAA/4252rscbv5M/photo.jpg?sz=50","role":"ROLE_USER","token":"ya29.GmIYBNhh5zs2Cpq1UI2iVzdxDvMVf2x8ggpEgM9Jvk51f5FOGodUZINrabY6K9Mhn6L82XpUhOyh5uIPhLZkAjIqS1hBu7un9QhMzRW35 RJM5ZwFozlBIuuxFRP4Y5xsTtdPGw"} Error while Saving to Db: @Override public void saveUserInfo(Request request) { Base.open("com.mysql.jdbc.Driver", "jdbc:mysql://localhost/47seconds"