Transaction Control

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Transaction Control

Scott

I’ve been trying to integrate this into my app. I just pulled down the latest (0.0.3) jars from Maven Central.  As far as I can tell, the two bundles I need are

tx-control-service-local

tx-control-provider-jdbc-local

 

I can drop the first one into my deploy directory and it tells me it needs the second.  As soon as I try to deploy the second jar, the console stops recognizing commands or hangs (at least that’s the appearance).  The  Following is what I see in the log.  Note that I’m using 4.2.0.M2.

 

 

2018-01-16T14:38:17,751 | INFO  | fileinstall-c:/bam | fileinstall                      | 9 - org.apache.felix.fileinstall - 3.6.4 | Installing bundle tx-control-provider-jdbc-local / 0.0.3

2018-01-16T14:38:17,813 | INFO  | FelixFrameworkWiring | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.event/4.2.0.M2

2018-01-16T14:38:17,820 | INFO  | FelixFrameworkWiring | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.features.command/4.2.0.M2

2018-01-16T14:38:17,828 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling SLF4J API support.

2018-01-16T14:38:17,828 | INFO  | activator-1-thread-2 | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.kar.core/4.2.0.M2

2018-01-16T14:38:17,828 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Jakarta Commons Logging API support.

2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J API support.

2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Avalon Logger API support.

2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling JULI Logger API support.

2018-01-16T14:38:17,829 | INFO  | activator-1-thread-1 | HttpServiceFactoryImpl           | 105 - org.ops4j.pax.web.pax-web-runtime - 6.1.0 | Unbinding bundle: [org.apache.karaf.webconsole.features [111]]

2018-01-16T14:38:17,830 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J v2 API support.

2018-01-16T14:38:17,831 | INFO  | activator-1-thread-1 | FeaturesPlugin                   | 111 - org.apache.karaf.webconsole.features - 4.2.0.M2 | Features plugin deactivated

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.BundleStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.FrameworkMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.ServiceStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,871 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.PackageStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,871 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,872 | WARN  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Task rejected for JMX Notification dispatch of event [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may have been shutdown

Reply | Threaded
Open this post in threaded view
|

Re: Transaction Control

Tim Ward-2
Hi Scott,

Those are the two bundles that you need. At a guess Karaf is unhappy because the Aries bundles substitutably export the API packages that they need (including config admin) for ease of deployment. When installing bundles Karaf sometimes attempts some interesting package rewiring operations and kills its own console, which is (I guess) what’s happening here. It’s hard to be sure though…

Tim

On 16 Jan 2018, at 21:04, Leschke, Scott <[hidden email]> wrote:

I’ve been trying to integrate this into my app. I just pulled down the latest (0.0.3) jars from Maven Central.  As far as I can tell, the two bundles I need are
tx-control-service-local
tx-control-provider-jdbc-local
 
I can drop the first one into my deploy directory and it tells me it needs the second.  As soon as I try to deploy the second jar, the console stops recognizing commands or hangs (at least that’s the appearance).  The  Following is what I see in the log.  Note that I’m using 4.2.0.M2.
 
 
2018-01-16T14:38:17,751 | INFO  | fileinstall-c:/bam | fileinstall                      | 9 - org.apache.felix.fileinstall - 3.6.4 | Installing bundle tx-control-provider-jdbc-local / 0.0.3
2018-01-16T14:38:17,813 | INFO  | FelixFrameworkWiring | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.event/4.2.0.M2
2018-01-16T14:38:17,820 | INFO  | FelixFrameworkWiring | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.features.command/4.2.0.M2
2018-01-16T14:38:17,828 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling SLF4J API support.
2018-01-16T14:38:17,828 | INFO  | activator-1-thread-2 | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.kar.core/4.2.0.M2
2018-01-16T14:38:17,828 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Jakarta Commons Logging API support.
2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J API support.
2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Avalon Logger API support.
2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling JULI Logger API support.
2018-01-16T14:38:17,829 | INFO  | activator-1-thread-1 | HttpServiceFactoryImpl           | 105 - org.ops4j.pax.web.pax-web-runtime - 6.1.0 | Unbinding bundle: [org.apache.karaf.webconsole.features [111]]
2018-01-16T14:38:17,830 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J v2 API support.
2018-01-16T14:38:17,831 | INFO  | activator-1-thread-1 | FeaturesPlugin                   | 111 - org.apache.karaf.webconsole.features - 4.2.0.M2 | Features plugin deactivated
2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.BundleStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa
2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa
2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.FrameworkMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa
2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.ServiceStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa
2018-01-16T14:38:17,871 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.PackageStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa
2018-01-16T14:38:17,871 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer org.apache.karaf.management.internal.EventAdminMBeanServerWrapper@700031b9 with name osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa
2018-01-16T14:38:17,872 | WARN  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Task rejected for JMX Notification dispatch of event [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may have been shutdown

Reply | Threaded
Open this post in threaded view
|

RE: Transaction Control

Scott

As always, thx for the response. I’ll submit a Jira first chance I get.  Unfortunately, I need to head out of town in a little while and may not get to it until Monday.

 

Scott

 

From: Tim Ward [mailto:[hidden email]]
Sent: Thursday, January 18, 2018 9:03 AM
To: [hidden email]
Subject: Re: Transaction Control

 

Hi Scott,

 

Those are the two bundles that you need. At a guess Karaf is unhappy because the Aries bundles substitutably export the API packages that they need (including config admin) for ease of deployment. When installing bundles Karaf sometimes attempts some interesting package rewiring operations and kills its own console, which is (I guess) what’s happening here. It’s hard to be sure though…

 

Tim



On 16 Jan 2018, at 21:04, Leschke, Scott <[hidden email]> wrote:

 

I’ve been trying to integrate this into my app. I just pulled down the latest (0.0.3) jars from Maven Central.  As far as I can tell, the two bundles I need are

tx-control-service-local

tx-control-provider-jdbc-local

 

I can drop the first one into my deploy directory and it tells me it needs the second.  As soon as I try to deploy the second jar, the console stops recognizing commands or hangs (at least that’s the appearance).  The  Following is what I see in the log.  Note that I’m using 4.2.0.M2.

 

 

2018-01-16T14:38:17,751 | INFO  | fileinstall-c:/bam | fileinstall                      | 9 - org.apache.felix.fileinstall - 3.6.4 | Installing bundle tx-control-provider-jdbc-local / 0.0.3

2018-01-16T14:38:17,813 | INFO  | FelixFrameworkWiring | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.event/4.2.0.M2

2018-01-16T14:38:17,820 | INFO  | FelixFrameworkWiring | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.features.command/4.2.0.M2

2018-01-16T14:38:17,828 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling SLF4J API support.

2018-01-16T14:38:17,828 | INFO  | activator-1-thread-2 | CommandExtension                 | 33 - org.apache.karaf.shell.core - 4.2.0.M2 | Unregistering commands for bundle org.apache.karaf.kar.core/4.2.0.M2

2018-01-16T14:38:17,828 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Jakarta Commons Logging API support.

2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J API support.

2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Avalon Logger API support.

2018-01-16T14:38:17,829 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling JULI Logger API support.

2018-01-16T14:38:17,829 | INFO  | activator-1-thread-1 | HttpServiceFactoryImpl           | 105 - org.ops4j.pax.web.pax-web-runtime - 6.1.0 | Unbinding bundle: [org.apache.karaf.webconsole.features [111]]

2018-01-16T14:38:17,830 | INFO  | FelixFrameworkWiring | Activator                        | 6 - org.ops4j.pax.logging.pax-logging-api - 1.10.1 | Disabling Log4J v2 API support.

2018-01-16T14:38:17,831 | INFO  | activator-1-thread-1 | FeaturesPlugin                   | 111 - org.apache.karaf.webconsole.features - 4.2.0.M2 | Features plugin deactivated

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.BundleStateMBean to MBeanServer [hidden email] with name osgi.core:type=bundleState,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.service.cm.ConfigurationAdminMBean to MBeanServer [hidden email] with name osgi.compendium:service=cm,version=1.3,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.FrameworkMBean to MBeanServer [hidden email] with name osgi.core:type=framework,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,870 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.ServiceStateMBean to MBeanServer [hidden email] with name osgi.core:type=serviceState,version=1.7,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,871 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.PackageStateMBean to MBeanServer [hidden email] with name osgi.core:type=packageState,version=1.5,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,871 | INFO  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Unregistering org.osgi.jmx.framework.wiring.BundleWiringStateMBean to MBeanServer [hidden email] with name osgi.core:type=wiringState,version=1.1,framework=org.apache.felix.framework,uuid=cac40ac4-12dd-4cb5-8ded-1f73370df0aa

2018-01-16T14:38:17,872 | WARN  | FelixFrameworkWiring | core                             | 12 - org.apache.aries.jmx.core - 1.1.7 | Task rejected for JMX Notification dispatch of event [org.osgi.framework.ServiceEvent[source=[javax.management.MBeanServer]]] - Dispatcher may have been shutdown