You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Ephemeris Lappis <ep...@gmail.com> on 2023/02/14 09:07:04 UTC

Service org.springframework.transaction.PlatformTransactionManager missing after restart

Hello.

When installing our applicative features that pull the dependent
transaction features the service
"org.springframework.transaction.PlatformTransactionManager" is up,
provided by the Geronimo TM, and our bundles resolve it and work as
expected.

After stopping and restarting Karaf, the same bundles fail because the
service is missing. Indeed, listing services do not show it anymore.

I've seen very old messages about similar issues on Fuse. Is this
issue still impacting Karaf 4.4.3, and in this case, what can we do to
ensure all the services are present after a reboot ?

Thanks for your help.

Regards.

Re: Service org.springframework.transaction.PlatformTransactionManager missing after restart

Posted by Ephemeris Lappis <ep...@gmail.com>.
Hello.

I don't know if it's a question of start level. I attach the output of
the command "la" just after installing my features.
The bundle that provides the PlatformTransactionManager is 127
"pax-transx-tm-geronimo".

With the command "ls -n | grep Platform", I get :

org.springframework.transaction.PlatformTransactionManager (1)

and if I inspect the services in detail, I can see that the bundle 127
indeed provides services for multiple interfaces, among them, the PTM.

After stopping and restarting Karaf, the command "ls -n" doesn't list
the PTM anymore, and in the services provided by the bundle 127 it's
actually missing :

[javax.transaction.TransactionManager,
javax.transaction.TransactionSynchronizationRegistry,
javax.transaction.UserTransaction,
org.apache.geronimo.transaction.manager.RecoverableTransactionManager]

This looks like an issue I saw in a very old post about a similar
behavior on Fuse, losing the PTM at restarting a container.

Any ideas ?

Thanks a lot.

Regards.

Le mer. 15 févr. 2023 à 06:41, Jean-Baptiste Onofré <jb...@nanthrax.net> a écrit :
>
> Hi,
>
> Did you check the start-level in the features ?
>
> Regards
> JB
>
> On Tue, Feb 14, 2023 at 10:50 AM Ephemeris Lappis
> <ep...@gmail.com> wrote:
> >
> > Hello again.
> >
> > After testing "refresh" or "restart" of bundles around transaction
> > management, with no success, I've tried a "feature:refresh" that seems
> > to have restarted the PlatformManager that was missing, and the
> > bundles that were waiting for it. In fact, I don't understand neither
> > what was failing nor why this "feature:refresh" has fixed it...
> >
> > An explanation should really be welcome : I think these days I'm going
> > to see and learn more things than ever in many years using SMX, Fuse
> > or karaf :) ...
> >
> > Thanks in advance.
> >
> > Regards.
> >
> > Le mar. 14 févr. 2023 à 10:07, Ephemeris Lappis
> > <ep...@gmail.com> a écrit :
> > >
> > > Hello.
> > >
> > > When installing our applicative features that pull the dependent
> > > transaction features the service
> > > "org.springframework.transaction.PlatformTransactionManager" is up,
> > > provided by the Geronimo TM, and our bundles resolve it and work as
> > > expected.
> > >
> > > After stopping and restarting Karaf, the same bundles fail because the
> > > service is missing. Indeed, listing services do not show it anymore.
> > >
> > > I've seen very old messages about similar issues on Fuse. Is this
> > > issue still impacting Karaf 4.4.3, and in this case, what can we do to
> > > ensure all the services are present after a reboot ?
> > >
> > > Thanks for your help.
> > >
> > > Regards.

Re: Service org.springframework.transaction.PlatformTransactionManager missing after restart

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

Did you check the start-level in the features ?

Regards
JB

On Tue, Feb 14, 2023 at 10:50 AM Ephemeris Lappis
<ep...@gmail.com> wrote:
>
> Hello again.
>
> After testing "refresh" or "restart" of bundles around transaction
> management, with no success, I've tried a "feature:refresh" that seems
> to have restarted the PlatformManager that was missing, and the
> bundles that were waiting for it. In fact, I don't understand neither
> what was failing nor why this "feature:refresh" has fixed it...
>
> An explanation should really be welcome : I think these days I'm going
> to see and learn more things than ever in many years using SMX, Fuse
> or karaf :) ...
>
> Thanks in advance.
>
> Regards.
>
> Le mar. 14 févr. 2023 à 10:07, Ephemeris Lappis
> <ep...@gmail.com> a écrit :
> >
> > Hello.
> >
> > When installing our applicative features that pull the dependent
> > transaction features the service
> > "org.springframework.transaction.PlatformTransactionManager" is up,
> > provided by the Geronimo TM, and our bundles resolve it and work as
> > expected.
> >
> > After stopping and restarting Karaf, the same bundles fail because the
> > service is missing. Indeed, listing services do not show it anymore.
> >
> > I've seen very old messages about similar issues on Fuse. Is this
> > issue still impacting Karaf 4.4.3, and in this case, what can we do to
> > ensure all the services are present after a reboot ?
> >
> > Thanks for your help.
> >
> > Regards.

Re: Service org.springframework.transaction.PlatformTransactionManager missing after restart

Posted by Ephemeris Lappis <ep...@gmail.com>.
Hello again.

After testing "refresh" or "restart" of bundles around transaction
management, with no success, I've tried a "feature:refresh" that seems
to have restarted the PlatformManager that was missing, and the
bundles that were waiting for it. In fact, I don't understand neither
what was failing nor why this "feature:refresh" has fixed it...

An explanation should really be welcome : I think these days I'm going
to see and learn more things than ever in many years using SMX, Fuse
or karaf :) ...

Thanks in advance.

Regards.

Le mar. 14 févr. 2023 à 10:07, Ephemeris Lappis
<ep...@gmail.com> a écrit :
>
> Hello.
>
> When installing our applicative features that pull the dependent
> transaction features the service
> "org.springframework.transaction.PlatformTransactionManager" is up,
> provided by the Geronimo TM, and our bundles resolve it and work as
> expected.
>
> After stopping and restarting Karaf, the same bundles fail because the
> service is missing. Indeed, listing services do not show it anymore.
>
> I've seen very old messages about similar issues on Fuse. Is this
> issue still impacting Karaf 4.4.3, and in this case, what can we do to
> ensure all the services are present after a reboot ?
>
> Thanks for your help.
>
> Regards.