You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@karaf.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2018/11/19 14:15:00 UTC

[jira] [Commented] (KARAF-5931) More than one Datrasource Configuration does not work

    [ https://issues.apache.org/jira/browse/KARAF-5931?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16691743#comment-16691743 ] 

ASF subversion and git services commented on KARAF-5931:
--------------------------------------------------------

Commit 500885038b7d14337c87695af940de6f0a307ede in karaf's branch refs/heads/master from [~grzes]
[ https://gitbox.apache.org/repos/asf?p=karaf.git;h=5008850 ]

[KARAF-5931] Upgrade to pax-jdbc 1.3.1


> More than one Datrasource Configuration does not work
> -----------------------------------------------------
>
>                 Key: KARAF-5931
>                 URL: https://issues.apache.org/jira/browse/KARAF-5931
>             Project: Karaf
>          Issue Type: Bug
>          Components: karaf
>    Affects Versions: 4.2.1
>            Reporter: Gerhard Munze
>            Assignee: Jean-Baptiste Onofré
>            Priority: Critical
>              Labels: DataSource, karaf
>             Fix For: 4.2.2
>
>
> When you configure more than one 
> org.ops4j.datasource in karaf/etc folder,the server doesnt start.
> The following Exception is thrown:
> {code:java}
> 2018-09-06T13:10:49,587 | ERROR | activator-1-thread-2 | 
> BootFeaturesInstaller            | 9 - org.apache.karaf.features.core - 
> 4.2.1 | Error installing boot features 
> org.osgi.framework.BundleException: Activator stop error in bundle 
> org.ops4j.pax.jdbc.config [14]. 
>         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.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?] 
>         at 
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 
> [?:?] 
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 
> [?:?] 
>         at java.lang.Thread.run(Thread.java:748) [?:?] 
> Caused by: java.util.ConcurrentModificationException 
>         at java.util.HashMap$HashIterator.nextNode(HashMap.java:1437) ~[?:?] 
>         at java.util.HashMap$KeyIterator.next(HashMap.java:1461) ~[?:?] 
>         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 
> {code}
> I am using one postgres Datasource and one mariadb/mysql datasource.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)