Re: user can't access own database after creation - Mailing list pgsql-jdbc
From | Nuno Zimas |
---|---|
Subject | Re: user can't access own database after creation |
Date | |
Msg-id | 8DC65D5F-EC46-449D-A9B3-486EDD05C17E@gmail.com Whole thread Raw |
In response to | Re: user can't access own database after creation (Dave Cramer <pg@fastcrypt.com>) |
Responses |
Re: user can't access own database after creation
|
List | pgsql-jdbc |
This is as much as I can get from the application log.
Relevant bit is shown in bold.
2015-12-03 11:51:26,821 INFO [main] log.Log4jLogger - 2Next 1.0.0 start
2015-12-03 11:51:26,823 INFO [main] log.Log4jLogger - copyright(c) the flabser team 2015. All Right Reserved
2015-12-03 11:51:26,824 INFO [main] log.Log4jLogger - OS: Linux 2.6.32-34-pve(amd64), jvm: 1.8.0_65
2015-12-03 11:51:26,878 INFO [main] log.Log4jLogger - initialize runtime environment
2015-12-03 11:51:28,160 INFO [main] log.Log4jLogger - webServer will use port: 8080
2015-12-03 11:51:28,680 INFO [main] log.Log4jLogger - mailAgent will redirect some messages to host: smtp.mail.ru
2015-12-03 11:51:28,682 DEBUG [main] log.Log4jLogger - build: 11:44 3-December-2015
2015-12-03 11:51:28,690 DEBUG [main] log.Log4jLogger - init webserver ...
2015-12-03 11:51:29,429 INFO [main] log.Log4jLogger - load "benexus(benexus.nzimas.com)"
2015-12-03 11:51:29,701 INFO [main] log.Log4jLogger - load "FlabserPromo(flabser.com)"
2015-12-03 11:51:29,767 DEBUG [main] log.Log4jLogger - register REST handler "flabserpromo.rest.Service"
2015-12-03 11:51:29,776 INFO [main] log.Log4jLogger - load "Task"
2015-12-03 11:51:29,813 DEBUG [main] log.Log4jLogger - register REST handler "task.rest.IssueService"
2015-12-03 11:51:29,831 DEBUG [main] log.Log4jLogger - register REST handler "task.rest.TagService"
2015-12-03 11:51:29,837 INFO [main] log.Log4jLogger - load "administrator(helloadmin.info)"
2015-12-03 11:51:29,845 INFO [main] log.Log4jLogger - load "CashTracker"
2015-12-03 11:51:29,860 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.AccountService"
2015-12-03 11:51:29,863 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.BudgetService"
2015-12-03 11:51:29,865 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.CategoryService"
2015-12-03 11:51:29,868 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.CostCenterService"
2015-12-03 11:51:29,870 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.DashboardService"
2015-12-03 11:51:29,872 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.ReportsService"
2015-12-03 11:51:29,874 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.TagService"
2015-12-03 11:51:29,876 DEBUG [main] log.Log4jLogger - register REST handler "cashtracker.rest.TransactionService"
2015-12-03 11:51:29,913 INFO [main] log.Log4jLogger - load "ImmigrationService(aikonamedia.kz)"
2015-12-03 11:51:29,979 DEBUG [main] log.Log4jLogger - register REST handler "immigrationservice.rest.Service"
2015-12-03 11:51:30,057 INFO [main] log.Log4jLogger - webserver start (10.10.10.99:8080)
2015-12-03 11:51:33,913 INFO [flabser.com-startStop-1] log.Log4jLogger - # init "FlabserPromo"
2015-12-03 11:51:35,192 INFO [aikonamedia.kz-startStop-1] log.Log4jLogger - # init "ImmigrationService"
2015-12-03 11:51:36,478 INFO [helloadmin.info-startStop-1] log.Log4jLogger - # init "administrator"
2015-12-03 11:51:37,080 INFO [benexus.nzimas.com-startStop-1] log.Log4jLogger - # init "benexus"
2015-12-03 11:51:37,616 WARN [benexus.nzimas.com-startStop-1] log.Log4jLogger - the entity manager of "benexus" has not been initialized
2015-12-03 11:51:37,617 ERROR [benexus.nzimas.com-startStop-1] log.Log4jLogger - smartdoc postgres jdbc:postgresql://10.10.10.100:5432/benexus
2015-12-03 11:51:38,217 INFO [benexus.nzimas.com-startStop-1] log.Log4jLogger - # init template "Task"
2015-12-03 11:51:39,508 INFO [benexus.nzimas.com-startStop-1] log.Log4jLogger - # init template "CashTracker"
2015-12-03 11:51:40,859 INFO [main] impl.StdSchedulerFactory - Using default implementation for ThreadExecutor
2015-12-03 11:51:40,866 INFO [main] simpl.SimpleThreadPool - Job execution threads will use class loader of thread: main
2015-12-03 11:51:40,929 INFO [main] core.SchedulerSignalerImpl - Initialized Scheduler Signaller of type: class org.quartz.core.SchedulerSignalerImpl
2015-12-03 11:51:40,931 INFO [main] core.QuartzScheduler - Quartz Scheduler v.2.1.7 created.
2015-12-03 11:51:40,934 INFO [main] simpl.RAMJobStore - RAMJobStore initialized.
2015-12-03 11:51:40,937 INFO [main] core.QuartzScheduler - Scheduler meta-data: Quartz Scheduler (v2.1.7) 'DefaultQuartzScheduler' with instanceId 'NON_CLUSTERED'
Scheduler class: 'org.quartz.core.QuartzScheduler' - running locally.
NOT STARTED.
Currently in standby mode.
Number of jobs executed: 0
Using thread pool 'org.quartz.simpl.SimpleThreadPool' - with 10 threads.
Using job-store 'org.quartz.simpl.RAMJobStore' - which does not support persistence. and is not clustered.
2015-12-03 11:51:40,938 INFO [main] impl.StdSchedulerFactory - Quartz scheduler 'DefaultQuartzScheduler' initialized from default resource file in Quartz package: 'quartz.properties'
2015-12-03 11:51:40,939 INFO [main] impl.StdSchedulerFactory - Quartz scheduler version: 2.1.7
2015-12-03 11:51:40,964 INFO [main] core.QuartzScheduler - Scheduler DefaultQuartzScheduler_$_NON_CLUSTERED started.
2015-12-03 11:51:40,986 DEBUG [Thread-6] log.Log4jLogger - add context "Task/1o7r2598w77d0w13" application...
2015-12-03 11:51:41,072 DEBUG [Thread-6] log.Log4jLogger - register REST handler "task.rest.IssueService"
2015-12-03 11:51:41,074 DEBUG [Thread-6] log.Log4jLogger - register REST handler "task.rest.TagService"
2015-12-03 11:51:41,122 INFO [Thread-6] log.Log4jLogger - users contexts are ready
2015-12-03 11:52:00,061 INFO [DefaultQuartzScheduler_Worker-1] log.Log4jLogger - start temp file cleaner tasks
2015-12-03 11:52:00,082 INFO [DefaultQuartzScheduler_Worker-2] log.Log4jLogger - start database remover task
On 2 Dec 2015, at 22:17, Dave Cramer <pg@fastcrypt.com> wrote:Yes, JDBC is still involved. I'd say there is a mistake in the JPA configOn 2 December 2015 at 17:15, Nuno Zimas <nzimas@gmail.com> wrote:The programmer says that she relies on JPA to establish the connection, but I suppose that JDBC is still involved, otherwise i can’t see how java would talk to postgresql.Unless JPA does so directly.Like I said, Java really isn’t my thing.On 2 Dec 2015, at 22:05, Nuno Zimas <nzimas@gmail.com> wrote:Thanks a lot, everyone (and specially Dave Cramer).Now I know the issue is not JDBC related.Not sure of this is good news for me, though :)I’d think that the application needs to be amended.Still, this does not account for the fact that it works on a local win machine.As you can see, Dave’s little program connects like a charm,2015-12-02 17:00:22 EST [2408-1] postgres@postgres LOG: duration: 16.239 ms parse <unnamed>: SET extra_float_digits = 32015-12-02 17:00:22 EST [2408-2] postgres@postgres LOG: duration: 0.023 ms bind <unnamed>: SET extra_float_digits = 32015-12-02 17:00:22 EST [2408-3] postgres@postgres LOG: duration: 0.031 ms execute <unnamed>: SET extra_float_digits = 32015-12-02 17:00:22 EST [2408-4] postgres@postgres LOG: duration: 0.217 ms parse <unnamed>: select 12015-12-02 17:00:22 EST [2408-5] postgres@postgres LOG: duration: 0.100 ms bind <unnamed>: select 12015-12-02 17:00:22 EST [2408-6] postgres@postgres LOG: duration: 0.953 ms execute <unnamed>: select 1On 2 Dec 2015, at 21:45, Dave Cramer <pg@fastcrypt.com> wrote:log_min_duration
pgsql-jdbc by date: