You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Luis Lozano <lo...@gmail.com> on 2023/10/09 21:20:46 UTC

Errors in karaf 4.4.4 when using the "karaf-jpa-example-datasource" feature.

Good afternoon.

Linux openSUSE Tumbleweed
VERSION_ID="20230902"
apache-karaf-4.4.4

I have performed the following test:

I download apache karaf 4.4.4.tar.gz and extract it.
I modify setenv with the following data:

export JAVA_HOME=/home/desarrollo/tools/jdk11.0.17
export EXTRA_JAVA_OPTS=-Djava.locale.providers=COMPAT,CLDR

I run "apache-karaf-4.4.4/bin/karaf" and inside the console, I execute:

karaf@root()> feature:repo-add
mvn:org.apache.karaf.examples/karaf-jpa-example-features/LATEST/xml
karaf@root()> feature:install karaf-jpa-example-datasource
karaf@root()> feature:install karaf-jpa-example-command
karaf@root()> feature:install karaf-jpa-example-provider-ds-hibernate
karaf@root()> booking:add Doe AF520
karaf@root()> booking:list
ID      │ Flight │ Customer
────────┼────────┼─────────
1       │ AF520  │ Doe

In the karaf.log, I get:

2023-10-09T23:06:27,402 | WARN  | features-3-thread-1 |
JdbcEnvironmentInitiator         | 108 - org.hibernate.orm.core -
5.6.7.Final | HHH000342: Could not obtain connection to query metadata
java.lang.NullPointerException: null
at
org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl$Builder.apply(ExtractedDatabaseMetaDataImpl.java:183)
~[?:?]
at
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl.<init>(JdbcEnvironmentImpl.java:272)
~[?:?]
at
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:114)
~[?:?]
at
org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
~[?:?]
at
org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)
~[?:?]
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
~[?:?]
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
~[?:?]
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
~[?:?]
at
org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175)
~[?:?]
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
~[?:?]
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
~[?:?]
at
org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
~[?:?]
at
org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173)
~[?:?]
...

I close with Ctrl-D.

I run again:
apache-karaf-4.4.4/bin/karaf
karaf@root()> booking:list
ID      │ Flight │ Customer
────────┼────────┼─────────
karaf@root()>

(No data)

And in karaf.log, I have the same error.
-- 
Saludos:
    Luis Lozano.

Re: Errors in karaf 4.4.4 when using the "karaf-jpa-example-datasource" feature.

Posted by Luis Lozano <lo...@gmail.com>.
Hi,
Is there JIRA about this or any provision to solve the problem?
Can you give me any alternative to solve the problem?

Thank you so much.

El vie, 20 oct 2023 a las 17:24, Jean-Baptiste Onofré (<jb...@nanthrax.net>)
escribió:

> Hi Luis
>
> Thanks for the update, I'm investigating the issue right now.
>
> Regards
> JB
>
> On Fri, Oct 20, 2023 at 1:12 PM Luis Lozano <lo...@gmail.com>
> wrote:
>
>> I am also having problems defining the external configuration file for
>> the persistence unit.
>> In version 4.2.16 of karaf, I could redefine the persistence.xml
>> parameters using an external file:  "org.apache.aries.jpa.examplePU.cfg"
>>
>> hibernate.connection.datasource=osgi:service/javax.sql.DataSource/(
>> osgi.jndi.service.name=defaultDS)
>>
>> In version 4.4.4 I get the following error:
>> Unexpected problem updating configuration org.apache.aries.jpa.examplePU
>> ...
>>
>> Caused by: org.hibernate.engine.jndi.JndiException: JNDI lookups for
>> scheme 'osgi' are not allowed
>>
>> Checking the hibernate-orm code on github, I see that version 5.6.7 of
>> org.hibernate.engine.jndi.internal.JndiService does not support the 'ogi'
>> schema name. In the latest version it does allow it.
>> (See attached images)
>>
>> [image: imagen.png]
>>
>> [image: imagen.png]
>> [image: imagen.png]
>>
>>
>> El mar, 10 oct 2023 a las 11:28, Jean-Baptiste Onofré (<jb...@nanthrax.net>)
>> escribió:
>>
>>> Hi Luis
>>>
>>> Let me try to reproduce. It seems Hibernate is not able to retrieve
>>> the meta from the database (especially for the dialect and so). The
>>> database is h2 (via pax-jdbc-h2) in the example.
>>>
>>> It could be related to h2 wrapping in pax-jdbc.
>>>
>>> Regards
>>> JB
>>>
>>> On Mon, Oct 9, 2023 at 11:20 PM Luis Lozano <lo...@gmail.com>
>>> wrote:
>>> >
>>> > Good afternoon.
>>> >
>>> > Linux openSUSE Tumbleweed
>>> > VERSION_ID="20230902"
>>> > apache-karaf-4.4.4
>>> >
>>> > I have performed the following test:
>>> >
>>> > I download apache karaf 4.4.4.tar.gz and extract it.
>>> > I modify setenv with the following data:
>>> >
>>> > export JAVA_HOME=/home/desarrollo/tools/jdk11.0.17
>>> > export EXTRA_JAVA_OPTS=-Djava.locale.providers=COMPAT,CLDR
>>> >
>>> > I run "apache-karaf-4.4.4/bin/karaf" and inside the console, I execute:
>>> >
>>> > karaf@root()> feature:repo-add
>>> mvn:org.apache.karaf.examples/karaf-jpa-example-features/LATEST/xml
>>> > karaf@root()> feature:install karaf-jpa-example-datasource
>>> > karaf@root()> feature:install karaf-jpa-example-command
>>> > karaf@root()> feature:install karaf-jpa-example-provider-ds-hibernate
>>> > karaf@root()> booking:add Doe AF520
>>> > karaf@root()> booking:list
>>> > ID      │ Flight │ Customer
>>> > ────────┼────────┼─────────
>>> > 1       │ AF520  │ Doe
>>> >
>>> > In the karaf.log, I get:
>>> >
>>> > 2023-10-09T23:06:27,402 | WARN  | features-3-thread-1 |
>>> JdbcEnvironmentInitiator         | 108 - org.hibernate.orm.core -
>>> 5.6.7.Final | HHH000342: Could not obtain connection to query metadata
>>> > java.lang.NullPointerException: null
>>> > at
>>> org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl$Builder.apply(ExtractedDatabaseMetaDataImpl.java:183)
>>> ~[?:?]
>>> > at
>>> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl.<init>(JdbcEnvironmentImpl.java:272)
>>> ~[?:?]
>>> > at
>>> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:114)
>>> ~[?:?]
>>> > at
>>> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
>>> ~[?:?]
>>> > at
>>> org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)
>>> ~[?:?]
>>> > at
>>> org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
>>> ~[?:?]
>>> > at
>>> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
>>> ~[?:?]
>>> > at
>>> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
>>> ~[?:?]
>>> > at
>>> org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175)
>>> ~[?:?]
>>> > at
>>> org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
>>> ~[?:?]
>>> > at
>>> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
>>> ~[?:?]
>>> > at
>>> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
>>> ~[?:?]
>>> > at
>>> org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173)
>>> ~[?:?]
>>> > ...
>>> >
>>> > I close with Ctrl-D.
>>> >
>>> > I run again:
>>> > apache-karaf-4.4.4/bin/karaf
>>> > karaf@root()> booking:list
>>> > ID      │ Flight │ Customer
>>> > ────────┼────────┼─────────
>>> > karaf@root()>
>>> >
>>> > (No data)
>>> >
>>> > And in karaf.log, I have the same error.
>>> > --
>>> > Saludos:
>>> >     Luis Lozano.
>>>
>>
>>
>> --
>> Saludos:
>>     Luis Lozano.
>>
>

-- 
Saludos:
    Luis Lozano.

Re: Errors in karaf 4.4.4 when using the "karaf-jpa-example-datasource" feature.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Luis

Thanks for the update, I'm investigating the issue right now.

Regards
JB

On Fri, Oct 20, 2023 at 1:12 PM Luis Lozano <lo...@gmail.com> wrote:

> I am also having problems defining the external configuration file for the
> persistence unit.
> In version 4.2.16 of karaf, I could redefine the persistence.xml
> parameters using an external file:  "org.apache.aries.jpa.examplePU.cfg"
>
> hibernate.connection.datasource=osgi:service/javax.sql.DataSource/(
> osgi.jndi.service.name=defaultDS)
>
> In version 4.4.4 I get the following error:
> Unexpected problem updating configuration org.apache.aries.jpa.examplePU
> ...
>
> Caused by: org.hibernate.engine.jndi.JndiException: JNDI lookups for
> scheme 'osgi' are not allowed
>
> Checking the hibernate-orm code on github, I see that version 5.6.7 of
> org.hibernate.engine.jndi.internal.JndiService does not support the 'ogi'
> schema name. In the latest version it does allow it.
> (See attached images)
>
> [image: imagen.png]
>
> [image: imagen.png]
> [image: imagen.png]
>
>
> El mar, 10 oct 2023 a las 11:28, Jean-Baptiste Onofré (<jb...@nanthrax.net>)
> escribió:
>
>> Hi Luis
>>
>> Let me try to reproduce. It seems Hibernate is not able to retrieve
>> the meta from the database (especially for the dialect and so). The
>> database is h2 (via pax-jdbc-h2) in the example.
>>
>> It could be related to h2 wrapping in pax-jdbc.
>>
>> Regards
>> JB
>>
>> On Mon, Oct 9, 2023 at 11:20 PM Luis Lozano <lo...@gmail.com>
>> wrote:
>> >
>> > Good afternoon.
>> >
>> > Linux openSUSE Tumbleweed
>> > VERSION_ID="20230902"
>> > apache-karaf-4.4.4
>> >
>> > I have performed the following test:
>> >
>> > I download apache karaf 4.4.4.tar.gz and extract it.
>> > I modify setenv with the following data:
>> >
>> > export JAVA_HOME=/home/desarrollo/tools/jdk11.0.17
>> > export EXTRA_JAVA_OPTS=-Djava.locale.providers=COMPAT,CLDR
>> >
>> > I run "apache-karaf-4.4.4/bin/karaf" and inside the console, I execute:
>> >
>> > karaf@root()> feature:repo-add
>> mvn:org.apache.karaf.examples/karaf-jpa-example-features/LATEST/xml
>> > karaf@root()> feature:install karaf-jpa-example-datasource
>> > karaf@root()> feature:install karaf-jpa-example-command
>> > karaf@root()> feature:install karaf-jpa-example-provider-ds-hibernate
>> > karaf@root()> booking:add Doe AF520
>> > karaf@root()> booking:list
>> > ID      │ Flight │ Customer
>> > ────────┼────────┼─────────
>> > 1       │ AF520  │ Doe
>> >
>> > In the karaf.log, I get:
>> >
>> > 2023-10-09T23:06:27,402 | WARN  | features-3-thread-1 |
>> JdbcEnvironmentInitiator         | 108 - org.hibernate.orm.core -
>> 5.6.7.Final | HHH000342: Could not obtain connection to query metadata
>> > java.lang.NullPointerException: null
>> > at
>> org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl$Builder.apply(ExtractedDatabaseMetaDataImpl.java:183)
>> ~[?:?]
>> > at
>> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl.<init>(JdbcEnvironmentImpl.java:272)
>> ~[?:?]
>> > at
>> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:114)
>> ~[?:?]
>> > at
>> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
>> ~[?:?]
>> > at
>> org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)
>> ~[?:?]
>> > at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
>> ~[?:?]
>> > at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
>> ~[?:?]
>> > at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
>> ~[?:?]
>> > at
>> org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175)
>> ~[?:?]
>> > at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
>> ~[?:?]
>> > at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
>> ~[?:?]
>> > at
>> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
>> ~[?:?]
>> > at
>> org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173)
>> ~[?:?]
>> > ...
>> >
>> > I close with Ctrl-D.
>> >
>> > I run again:
>> > apache-karaf-4.4.4/bin/karaf
>> > karaf@root()> booking:list
>> > ID      │ Flight │ Customer
>> > ────────┼────────┼─────────
>> > karaf@root()>
>> >
>> > (No data)
>> >
>> > And in karaf.log, I have the same error.
>> > --
>> > Saludos:
>> >     Luis Lozano.
>>
>
>
> --
> Saludos:
>     Luis Lozano.
>

Re: Errors in karaf 4.4.4 when using the "karaf-jpa-example-datasource" feature.

Posted by Luis Lozano <lo...@gmail.com>.
I am also having problems defining the external configuration file for the
persistence unit.
In version 4.2.16 of karaf, I could redefine the persistence.xml parameters
using an external file:  "org.apache.aries.jpa.examplePU.cfg"

hibernate.connection.datasource=osgi:service/javax.sql.DataSource/(
osgi.jndi.service.name=defaultDS)

In version 4.4.4 I get the following error:
Unexpected problem updating configuration org.apache.aries.jpa.examplePU
...

Caused by: org.hibernate.engine.jndi.JndiException: JNDI lookups for scheme
'osgi' are not allowed

Checking the hibernate-orm code on github, I see that version 5.6.7 of
org.hibernate.engine.jndi.internal.JndiService does not support the 'ogi'
schema name. In the latest version it does allow it.
(See attached images)

[image: imagen.png]

[image: imagen.png]
[image: imagen.png]


El mar, 10 oct 2023 a las 11:28, Jean-Baptiste Onofré (<jb...@nanthrax.net>)
escribió:

> Hi Luis
>
> Let me try to reproduce. It seems Hibernate is not able to retrieve
> the meta from the database (especially for the dialect and so). The
> database is h2 (via pax-jdbc-h2) in the example.
>
> It could be related to h2 wrapping in pax-jdbc.
>
> Regards
> JB
>
> On Mon, Oct 9, 2023 at 11:20 PM Luis Lozano <lo...@gmail.com>
> wrote:
> >
> > Good afternoon.
> >
> > Linux openSUSE Tumbleweed
> > VERSION_ID="20230902"
> > apache-karaf-4.4.4
> >
> > I have performed the following test:
> >
> > I download apache karaf 4.4.4.tar.gz and extract it.
> > I modify setenv with the following data:
> >
> > export JAVA_HOME=/home/desarrollo/tools/jdk11.0.17
> > export EXTRA_JAVA_OPTS=-Djava.locale.providers=COMPAT,CLDR
> >
> > I run "apache-karaf-4.4.4/bin/karaf" and inside the console, I execute:
> >
> > karaf@root()> feature:repo-add
> mvn:org.apache.karaf.examples/karaf-jpa-example-features/LATEST/xml
> > karaf@root()> feature:install karaf-jpa-example-datasource
> > karaf@root()> feature:install karaf-jpa-example-command
> > karaf@root()> feature:install karaf-jpa-example-provider-ds-hibernate
> > karaf@root()> booking:add Doe AF520
> > karaf@root()> booking:list
> > ID      │ Flight │ Customer
> > ────────┼────────┼─────────
> > 1       │ AF520  │ Doe
> >
> > In the karaf.log, I get:
> >
> > 2023-10-09T23:06:27,402 | WARN  | features-3-thread-1 |
> JdbcEnvironmentInitiator         | 108 - org.hibernate.orm.core -
> 5.6.7.Final | HHH000342: Could not obtain connection to query metadata
> > java.lang.NullPointerException: null
> > at
> org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl$Builder.apply(ExtractedDatabaseMetaDataImpl.java:183)
> ~[?:?]
> > at
> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl.<init>(JdbcEnvironmentImpl.java:272)
> ~[?:?]
> > at
> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:114)
> ~[?:?]
> > at
> org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35)
> ~[?:?]
> > at
> org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101)
> ~[?:?]
> > at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263)
> ~[?:?]
> > at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237)
> ~[?:?]
> > at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
> ~[?:?]
> > at
> org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175)
> ~[?:?]
> > at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286)
> ~[?:?]
> > at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243)
> ~[?:?]
> > at
> org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214)
> ~[?:?]
> > at
> org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173)
> ~[?:?]
> > ...
> >
> > I close with Ctrl-D.
> >
> > I run again:
> > apache-karaf-4.4.4/bin/karaf
> > karaf@root()> booking:list
> > ID      │ Flight │ Customer
> > ────────┼────────┼─────────
> > karaf@root()>
> >
> > (No data)
> >
> > And in karaf.log, I have the same error.
> > --
> > Saludos:
> >     Luis Lozano.
>


-- 
Saludos:
    Luis Lozano.

Re: Errors in karaf 4.4.4 when using the "karaf-jpa-example-datasource" feature.

Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi Luis

Let me try to reproduce. It seems Hibernate is not able to retrieve
the meta from the database (especially for the dialect and so). The
database is h2 (via pax-jdbc-h2) in the example.

It could be related to h2 wrapping in pax-jdbc.

Regards
JB

On Mon, Oct 9, 2023 at 11:20 PM Luis Lozano <lo...@gmail.com> wrote:
>
> Good afternoon.
>
> Linux openSUSE Tumbleweed
> VERSION_ID="20230902"
> apache-karaf-4.4.4
>
> I have performed the following test:
>
> I download apache karaf 4.4.4.tar.gz and extract it.
> I modify setenv with the following data:
>
> export JAVA_HOME=/home/desarrollo/tools/jdk11.0.17
> export EXTRA_JAVA_OPTS=-Djava.locale.providers=COMPAT,CLDR
>
> I run "apache-karaf-4.4.4/bin/karaf" and inside the console, I execute:
>
> karaf@root()> feature:repo-add mvn:org.apache.karaf.examples/karaf-jpa-example-features/LATEST/xml
> karaf@root()> feature:install karaf-jpa-example-datasource
> karaf@root()> feature:install karaf-jpa-example-command
> karaf@root()> feature:install karaf-jpa-example-provider-ds-hibernate
> karaf@root()> booking:add Doe AF520
> karaf@root()> booking:list
> ID      │ Flight │ Customer
> ────────┼────────┼─────────
> 1       │ AF520  │ Doe
>
> In the karaf.log, I get:
>
> 2023-10-09T23:06:27,402 | WARN  | features-3-thread-1 | JdbcEnvironmentInitiator         | 108 - org.hibernate.orm.core - 5.6.7.Final | HHH000342: Could not obtain connection to query metadata
> java.lang.NullPointerException: null
> at org.hibernate.engine.jdbc.env.internal.ExtractedDatabaseMetaDataImpl$Builder.apply(ExtractedDatabaseMetaDataImpl.java:183) ~[?:?]
> at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentImpl.<init>(JdbcEnvironmentImpl.java:272) ~[?:?]
> at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:114) ~[?:?]
> at org.hibernate.engine.jdbc.env.internal.JdbcEnvironmentInitiator.initiateService(JdbcEnvironmentInitiator.java:35) ~[?:?]
> at org.hibernate.boot.registry.internal.StandardServiceRegistryImpl.initiateService(StandardServiceRegistryImpl.java:101) ~[?:?]
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.createService(AbstractServiceRegistryImpl.java:263) ~[?:?]
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:237) ~[?:?]
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[?:?]
> at org.hibernate.id.factory.internal.DefaultIdentifierGeneratorFactory.injectServices(DefaultIdentifierGeneratorFactory.java:175) ~[?:?]
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.injectDependencies(AbstractServiceRegistryImpl.java:286) ~[?:?]
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.initializeService(AbstractServiceRegistryImpl.java:243) ~[?:?]
> at org.hibernate.service.internal.AbstractServiceRegistryImpl.getService(AbstractServiceRegistryImpl.java:214) ~[?:?]
> at org.hibernate.boot.internal.InFlightMetadataCollectorImpl.<init>(InFlightMetadataCollectorImpl.java:173) ~[?:?]
> ...
>
> I close with Ctrl-D.
>
> I run again:
> apache-karaf-4.4.4/bin/karaf
> karaf@root()> booking:list
> ID      │ Flight │ Customer
> ────────┼────────┼─────────
> karaf@root()>
>
> (No data)
>
> And in karaf.log, I have the same error.
> --
> Saludos:
>     Luis Lozano.