Uploaded image for project: 'Pax JDBC'
  1. PAXJDBC-134

Error installing jdbc-config feature if datasource files already exist

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.3.0
    • Fix Version/s: None
    • Labels:
      None
    • Environment:
      Karaf 4.2.1
      Oracle JDK 8
      Test with https://github.com/jbonofre/karaf-vineyard
    • Sprint:

      Description

      Hi,

      I have 3 datasources existing files in

      $KARAF_HOME/etc
      

      folder and when I install the feature I've got an error about pax-jdbc-config bundle restart error.

      If I run the install a second time, it works well, but always fail the first time.

      karaf@root()> feature:repo-add mvn:org.apache.karaf.vineyard/apache-karaf-vineyard/1.0.0-SNAPSHOT/xml/features
      Adding feature url mvn:org.apache.karaf.vineyard/apache-karaf-vineyard/1.0.0-SNAPSHOT/xml/features
      
      karaf@root()> feature:install vineyard-registry
      org.osgi.framework.BundleException: Activator stop error in bundle org.ops4j.pax.jdbc.config [48].
      	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2692)
      	at org.apache.felix.framework.BundleImpl.stop(BundleImpl.java:1038)
      	at org.apache.karaf.features.internal.service.BundleInstallSupportImpl.stopBundle(BundleInstallSupportImpl.java:167)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.stopBundle(FeaturesServiceImpl.java:1121)
      	at org.apache.karaf.features.internal.service.Deployer.deploy(Deployer.java:748)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.doProvision(FeaturesServiceImpl.java:1025)
      	at org.apache.karaf.features.internal.service.FeaturesServiceImpl.lambda$doProvisionInThread$13(FeaturesServiceImpl.java:964)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
      	at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
      	at java.base/java.lang.Thread.run(Thread.java:834)
      Caused by: java.util.ConcurrentModificationException
      	at java.base/java.util.HashMap$HashIterator.nextNode(HashMap.java:1493)
      	at java.base/java.util.HashMap$KeyIterator.next(HashMap.java:1516)
      	at org.ops4j.pax.jdbc.config.impl.DataSourceConfigManager.destroy(DataSourceConfigManager.java:193)
      	at org.ops4j.pax.jdbc.config.impl.Activator.stop(Activator.java:77)
      	at org.apache.felix.framework.util.SecureAction.stopActivator(SecureAction.java:719)
      	at org.apache.felix.framework.Felix.stopBundle(Felix.java:2636)
      	... 10 more
      
      Error executing command: Activator stop error in bundle org.ops4j.pax.jdbc.config [48].
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                jbonofre Jean-Baptiste Onofre
                Reporter:
                papon974 fran├žois papon
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: