Michael,

I am really sorry, but I can no longer reproduce the issue that I was
seeing even if I removed the unnecessary Cayenne query that I inserted
before the AggregateUtils use. I will report you the cause, if I
successfully pointed out the exact cause of the issue.

nobu


On 15 July 2016 at 19:15, Michael Gentry <[email protected]> wrote:

> Hi Nobu,
>
> That's an odd limitation I wouldn't have expected to exist.  Can you share
> how you were creating the runtime and calling AggregateUtils when it was
> failing?
>
> Thanks,
>
> mrg
>
>
> On Fri, Jul 15, 2016 at 1:46 PM, Harunobu Oyama <[email protected]> wrote:
>
> > Michael,
> >
> > Increasing the maximum connection did not help, but using Cayenne for
> > something else beforehand solved the problem.
> > I do not understand the logic behind it, but it seems AggregateUtils
> fails
> > if it is CayenneRuntime's first customer.
> >
> > Problem sorted and the utility provides me the functionality I wanted.
> >
> > thank you,
> > nobu
> >
> >
> >
> > On 15 July 2016 at 18:36, Michael Gentry <[email protected]> wrote:
> >
> > > Hi Nobu,
> > >
> > > Try increasing your maximum connections.
> > >
> > > mrg
> > >
> > >
> > > On Fri, Jul 15, 2016 at 1:26 PM, Harunobu Oyama <[email protected]>
> wrote:
> > >
> > > > Michael,
> > > >
> > > > The min connection and max connection are both 1 as default.
> > > >
> > > > nobu
> > > >
> > > >
> > > > On 15 July 2016 at 18:16, Michael Gentry <[email protected]>
> wrote:
> > > >
> > > > > On Fri, Jul 15, 2016 at 12:39 PM, Harunobu Oyama <[email protected]>
> > > wrote:
> > > > >
> > > > > > Caused by: java.sql.SQLException: Can't obtain connection.
> Request
> > > > timed
> > > > > > out. Total used connections: 1
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cayenne.conn.PoolManager.uncheckPooledConnection(PoolManager.java:454)
> > > > > > at
> > > > >
> > org.apache.cayenne.conn.PoolManager.getConnection(PoolManager.java:382)
> > > > > > at
> > > > >
> > org.apache.cayenne.conn.PoolManager.getConnection(PoolManager.java:371)
> > > > > > at
> > > > > >
> > > > > >
> > > > >
> > > >
> > >
> >
> org.apache.cayenne.configuration.server.DefaultDbAdapterFactory.detectAdapter(DefaultDbAdapterFactory.java:97)
> > > > > > ... 15 more
> > > > >
> > > > >
> > > > > Hi Nobu,
> > > > >
> > > > > Given this part of the exception, it seems it was unable to get a
> > > > > connection to the database.  How is your connection pool
> configured?
> > > Do
> > > > > you only have one connection?
> > > > >
> > > > > mrg
> > > > >
> > > >
> > >
> >
>

Reply via email to