karaf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rodrigo Serra <rodrigo.se...@jlab.com.ar>
Subject Re: MissingResourceException in aries transaction
Date Mon, 08 Sep 2014 20:36:54 GMT
it works!. I try with karaf transaction feature content.Thank!!!

Regards,
Rodrigo

El 08/09/2014, a las 17:29, Krzysztof Sobkowiak <krzys.sobkowiak@gmail.com> escribió:

> I have just tested ServiceMix and the problem doesn't occur there. But
> here is one difference:
> 
>  * when you install transaction feature in Karaf, there is no file
>    org.apache.aries.transaction.cfg in etc directory.
>  * ServiceMix has a predefined org.apache.aries.transaction.cfg with
>    following content:
> 
>    aries.transaction.timeout=600
>    aries.transaction.howl.logFileDir=${karaf.data}/txlog/
>    aries.transaction.recoverable=true
> 
>  * after copying the file from ServiceMix into Karaf and deleting the
>    data directory, the problem seems to be fixed
>  * I have copied the content of the Karaf transaction feature config
>    into the org.apache.aries.transaction.cfg file
> 
>    aries.transaction.recoverable = true
>    aries.transaction.timeout = 600
>    aries.transaction.howl.logFileDir = ${karaf.data}/txlog
>    aries.transaction.howl.maxLogFiles = 2
>    aries.transaction.howl.maxBlocksPerFile = 512
>    aries.transaction.howl.bufferSizeKBytes = 4
> 
> 
>    It works too.
> 
> 
> It means, the problem is missing etc/org.apache.aries.transaction.cfg
> file. But I think this is a correct behavior (missing file), because the
> configuration is stored now in the cache, when defined in feature files
> using  <config> tag
> 
> Best regards
> Krzysztof
> 
> 
> On 08.09.2014 22:03, Krzysztof Sobkowiak wrote:
>> I can reproduce it on Karaf master too. Karaf 2.4 no problem.
>> 
>> On 08.09.2014 21:05, Jean-Baptiste Onofré wrote:
>>> I don't have it on my machine. Let me check ;)
>>> 
>>> Regards
>>> JB
>>> 
>>> On 09/08/2014 08:10 PM, Krzysztof Sobkowiak wrote:
>>>> I could reproduce this problem on my machine too
>>>> 
>>>> On 08.09.2014 15:17, Rodrigo Serra wrote:
>>>>> Both of cases. When install feature i get this error (this is for
>>>>> clean data dir: rm -fr data):
>>>>> 
>>>>> 2014-09-08 10:11:35,275 | INFO  | FelixStartLevel  |
>>>>> RegionsPersistenceImpl           | 63 -
>>>>> org.apache.karaf.region.persist - 3.0.2.SNAPSHOT | Loading region
>>>>> digraph persistence
>>>>> 2014-09-08 10:11:35,310 | INFO  | FelixStartLevel  |
>>>>> RegionsPersistenceImpl           | 63 -
>>>>> org.apache.karaf.region.persist - 3.0.2.SNAPSHOT | initializing
>>>>> region digraph from etc/regions-config.xml
>>>>> 2014-09-08 10:11:35,467 | INFO  | FelixStartLevel  |
>>>>> BlueprintContainerImpl           | 15 -
>>>>> org.apache.aries.blueprint.core - 1.4.1 | Bundle
>>>>> org.apache.karaf.bundle.command is waiting for dependencies
>>>>> [(objectClass=org.apache.karaf.bundle.core.BundleWatcher),
>>>>> (objectClass=org.apache.karaf.bundle.core.BundleService)]
>>>>> 2014-09-08 10:11:35,479 | INFO  | rint Extender: 3 |
>>>>> BlueprintContainerImpl           | 15 -
>>>>> org.apache.aries.blueprint.core - 1.4.1 | Bundle
>>>>> org.apache.karaf.bundle.command is waiting for dependencies
>>>>> [(objectClass=org.apache.karaf.bundle.core.BundleService)]
>>>>> 2014-09-08 10:11:48,657 | INFO  | Local user karaf |
>>>>> FeaturesServiceImpl              | 20 -
>>>>> org.apache.karaf.features.core - 3.0.2.SNAPSHOT | Installing
>>>>> feature transaction 1.1.0
>>>>> 2014-09-08 10:11:48,688 | INFO  | Local user karaf |
>>>>> BlueprintContainerImpl           | 15 -
>>>>> org.apache.aries.blueprint.core - 1.4.1 | Bundle
>>>>> org.apache.aries.transaction.blueprint is waiting for dependencies
>>>>> [(objectClass=javax.transaction.TransactionManager)]
>>>>> 2014-09-08 10:11:48,722 | ERROR | es.transaction]) |
>>>>> configadmin                      | 6 - org.apache.felix.configadmin
>>>>> - 1.8.0 | [org.osgi.service.cm.ManagedService, id=652,
>>>>> bundle=67/mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.0]:
>>>>> Unexpected problem updating configuration org.apache.aries.transaction
>>>>> java.lang.ExceptionInInitializerError
>>>>>    at
>>>>> org.apache.aries.transaction.internal.TransactionManagerService.<init>(TransactionManagerService.java:114)
>>>>>    at
>>>>> org.apache.aries.transaction.internal.Activator.updated(Activator.java:63)
>>>>>    at
>>>>> org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:148)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:81)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1448)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1404)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
>>>>> Caused by: java.util.MissingResourceException: Can't find bundle
>>>>> for base name org.apache.aries.transaction.txManager, locale en_US
>>>>>    at
>>>>> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)[:1.7.0_67]
>>>>>    at
>>>>> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)[:1.7.0_67]
>>>>>    at
>>>>> java.util.ResourceBundle.getBundle(ResourceBundle.java:1028)[:1.7.0_67]
>>>>> 
>>>>>    at
>>>>> org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:152)[9:org.apache.aries.util:1.1.0]
>>>>>    at
>>>>> org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:107)[9:org.apache.aries.util:1.1.0]
>>>>>    at
>>>>> org.apache.aries.transaction.internal.NLS.<clinit>(NLS.java:25)[67:org.apache.aries.transaction.manager:1.1.0]
>>>>>    ... 8 more
>>>>> 
>>>>> and this is the error after restarting karaf:
>>>>> 
>>>>> 2014-09-08 10:13:58,540 | INFO  | FelixStartLevel  |
>>>>> RegionsPersistenceImpl           | 63 -
>>>>> org.apache.karaf.region.persist - 3.0.2.SNAPSHOT | Loading region
>>>>> digraph persistence
>>>>> 2014-09-08 10:13:58,653 | INFO  | FelixStartLevel  |
>>>>> BlueprintContainerImpl           | 15 -
>>>>> org.apache.aries.blueprint.core - 1.4.1 | Bundle
>>>>> org.apache.aries.transaction.blueprint is waiting for dependencies
>>>>> [(objectClass=javax.transaction.TransactionManager)]
>>>>> 2014-09-08 10:13:58,697 | ERROR | es.transaction]) |
>>>>> configadmin                      | 6 - org.apache.felix.configadmin
>>>>> - 1.8.0 | [org.osgi.service.cm.ManagedService, id=477,
>>>>> bundle=67/mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.0]:
>>>>> Unexpected problem updating configuration org.apache.aries.transaction
>>>>> java.lang.ExceptionInInitializerError
>>>>>    at
>>>>> org.apache.aries.transaction.internal.TransactionManagerService.<init>(TransactionManagerService.java:114)
>>>>>    at
>>>>> org.apache.aries.transaction.internal.Activator.updated(Activator.java:63)
>>>>>    at
>>>>> org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:148)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:81)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1448)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1404)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at
>>>>> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.8.0]
>>>>>    at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
>>>>> Caused by: java.util.MissingResourceException: Can't find bundle
>>>>> for base name org.apache.aries.transaction.txManager, locale en_US
>>>>>    at
>>>>> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)[:1.7.0_67]
>>>>>    at
>>>>> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)[:1.7.0_67]
>>>>>    at
>>>>> java.util.ResourceBundle.getBundle(ResourceBundle.java:1028)[:1.7.0_67]
>>>>> 
>>>>>    at
>>>>> org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:152)[9:org.apache.aries.util:1.1.0]
>>>>>    at
>>>>> org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:107)[9:org.apache.aries.util:1.1.0]
>>>>>    at
>>>>> org.apache.aries.transaction.internal.NLS.<clinit>(NLS.java:25)[67:org.apache.aries.transaction.manager:1.1.0]
>>>>>    ... 8 more
>>>>> 
>>>>> Regards,
>>>>> Rodrigo
>>>>> 
>>>>> El 08/09/2014, a las 09:32, Jean-Baptiste Onofré <jb@nanthrax.net>
>>>>> escribió:
>>>>> 
>>>>>> Is it when you install the transaction feature or directly when
>>>>>> you start ConfigAdmin/karaf ?
>>>>>> 
>>>>>> Regards
>>>>>> JB
>>>>>> 
>>>>>> On 09/08/2014 01:23 PM, Rodrigo Serra wrote:
>>>>>>> Hi,
>>>>>>> 
>>>>>>> When starting latest karaf 3.0.2-SNAPSHOT i get this error:
>>>>>>> 
>>>>>>> 2014-09-08 08:06:26,646 | ERROR | es.transaction]) |
>>>>>>> configadmin                      | 6 -
>>>>>>> org.apache.felix.configadmin - 1.8.0 |
>>>>>>> [org.osgi.service.cm.ManagedService, id=652,
>>>>>>> bundle=67/mvn:org.apache.aries.transaction/org.apache.aries.transaction.manager/1.1.0]:
>>>>>>> Unexpected problem updating configuration
>>>>>>> org.apache.aries.transactionjava.lang.ExceptionInInitializerError
>>>>>>>         at
>>>>>>> org.apache.aries.transaction.internal.TransactionManagerService.<init>(TransactionManagerService.java:114)
>>>>>>>         at
>>>>>>> org.apache.aries.transaction.internal.Activator.updated(Activator.java:63)
      
>>>>>>> at
>>>>>>> org.apache.felix.cm.impl.helper.ManagedServiceTracker.updateService(ManagedServiceTracker.java:148)[6:org.apache.felix.configadmin:1.8.0]
>>>>>>>         at
>>>>>>> org.apache.felix.cm.impl.helper.ManagedServiceTracker.provideConfiguration(ManagedServiceTracker.java:81)[6:org.apache.felix.configadmin:1.8.0]
>>>>>>>         at
>>>>>>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.provide(ConfigurationManager.java:1448)[6:org.apache.felix.configadmin:1.8.0]
>>>>>>>         at
>>>>>>> org.apache.felix.cm.impl.ConfigurationManager$ManagedServiceUpdate.run(ConfigurationManager.java:1404)[6:org.apache.felix.configadmin:1.8.0]
>>>>>>>         at
>>>>>>> org.apache.felix.cm.impl.UpdateThread.run(UpdateThread.java:103)[6:org.apache.felix.configadmin:1.8.0]
>>>>>>>         at java.lang.Thread.run(Thread.java:745)[:1.7.0_67]
>>>>>>> Caused by: java.util.MissingResourceException: Can't find bundle
>>>>>>> for base name org.apache.aries.transaction.txManager, locale
es_ES
>>>>>>>         at
>>>>>>> java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)[:1.7.0_67]
>>>>>>>         at
>>>>>>> java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)[:1.7.0_67]
>>>>>>>         at
>>>>>>> java.util.ResourceBundle.getBundle(ResourceBundle.java:1028)[:1.7.0_67]
>>>>>>> 
>>>>>>>         at
>>>>>>> org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:152)[9:org.apache.aries.util:1.1.0]
>>>>>>>         at
>>>>>>> org.apache.aries.util.nls.MessageUtil.createMessageUtil(MessageUtil.java:107)[9:org.apache.aries.util:1.1.0]
>>>>>>>         at
>>>>>>> org.apache.aries.transaction.internal.NLS.<clinit>(NLS.java:25)[67:org.apache.aries.transaction.manager:1.1.0]
>>>>>>>         ... 8 more
>>>>>>> 
>>>>>>> and no transaction manager service is available. Is some thing
>>>>>>> regarding my OS installation locale?
>>>>>>> 
>>>>>>> Regards,
>>>>>>> Rodrigo
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>>>>> 
>>>> 
>>> 
> 
> -- 
> Krzysztof Sobkowiak
> 
> JEE & OSS Architect | Senior Solution Architect @ Capgemini | Committer
> @ ASF
> Capgemini <http://www.pl.capgemini.com/> | Software Solutions Center
> <http://www.pl.capgemini-sdm.com/> | Wroclaw
> e-mail: krzys.sobkowiak@gmail.com <mailto:krzys.sobkowiak@gmail.com> |
> Twitter: @KSobkowiak
> Calendar: http://goo.gl/yvsebC


Mime
View raw message