camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Claus Ibsen (JIRA)" <j...@apache.org>
Subject [jira] [Resolved] (CAMEL-6683) camel-dozer - Does not work well in OSGi Blueprint
Date Mon, 02 Sep 2013 09:15:53 GMT

     [ https://issues.apache.org/jira/browse/CAMEL-6683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Claus Ibsen resolved CAMEL-6683.
--------------------------------

       Resolution: Fixed
    Fix Version/s:     (was: 2.12.1)
                   2.12.0

It works better now. Though upgrading to Dozer 5.5.0 works even better. Though Dozer 5.5.0
has not been released yet.
                
> camel-dozer - Does not work well in OSGi Blueprint
> --------------------------------------------------
>
>                 Key: CAMEL-6683
>                 URL: https://issues.apache.org/jira/browse/CAMEL-6683
>             Project: Camel
>          Issue Type: Bug
>    Affects Versions: 2.12.0
>            Reporter: Claus Ibsen
>            Assignee: Claus Ibsen
>             Fix For: 2.12.0
>
>
> Dozer doesnt work to well in OSGi. It seems to work with spring, but fails with OSGi
blueprint.
> {code}
> 2013-08-29 14:44:51,302 | ERROR | l Console Thread | BlueprintContainerImpl         
 | container.BlueprintContainerImpl  393 | 7 - org.apache.aries.blueprint.core - 1.1.0 | Unable
to start blueprint container for bundle blue
> org.osgi.service.blueprint.container.ComponentDefinitionException: Error when instantiating
bean dozerMapper of class class org.dozer.DozerBeanMapper
> 	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:333)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:806)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)[:1.7.0_25]
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:166)[:1.7.0_25]
> 	at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:245)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:668)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:370)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:261)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintExtender.createContainer(BlueprintExtender.java:259)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BlueprintExtender.modifiedBundle(BlueprintExtender.java:222)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:500)[11:org.apache.aries.util:1.1.0]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.customizerModified(BundleHookBundleTracker.java:433)[11:org.apache.aries.util:1.1.0]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$AbstractTracked.track(BundleHookBundleTracker.java:725)[11:org.apache.aries.util:1.1.0]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$Tracked.bundleChanged(BundleHookBundleTracker.java:463)[11:org.apache.aries.util:1.1.0]
> 	at org.apache.aries.util.tracker.hook.BundleHookBundleTracker$BundleEventHook.event(BundleHookBundleTracker.java:422)[11:org.apache.aries.util:1.1.0]
> 	at org.apache.felix.framework.util.SecureAction.invokeBundleEventHook(SecureAction.java:1103)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.util.EventDispatcher.createWhitelistFromHooks(EventDispatcher.java:695)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.util.EventDispatcher.fireBundleEvent(EventDispatcher.java:483)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.Felix.fireBundleEvent(Felix.java:4244)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.Felix.startBundle(Felix.java:1923)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.Felix.updateBundle(Felix.java:2235)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:962)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.felix.framework.BundleImpl.update(BundleImpl.java:949)[org.apache.felix.framework-4.0.3.jar:]
> 	at org.apache.karaf.shell.osgi.UpdateBundle.doExecute(UpdateBundle.java:37)[43:org.apache.karaf.shell.osgi:2.3.2]
> 	at org.apache.karaf.shell.osgi.BundleCommand.doExecute(BundleCommand.java:42)[43:org.apache.karaf.shell.osgi:2.3.2]
> 	at org.apache.karaf.shell.console.OsgiCommandSupport.execute(OsgiCommandSupport.java:38)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.commands.basic.AbstractCommand.execute(AbstractCommand.java:35)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.CommandProxy.execute(CommandProxy.java:78)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.executeCmd(Closure.java:474)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.executeStatement(Closure.java:400)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Pipe.run(Pipe.java:108)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:183)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.Closure.execute(Closure.java:120)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.felix.gogo.runtime.CommandSessionImpl.execute(CommandSessionImpl.java:89)[14:org.apache.karaf.shell.console:2.3.2]
> 	at org.apache.karaf.shell.console.jline.Console.run(Console.java:173)[14:org.apache.karaf.shell.console:2.3.2]
> 	at java.lang.Thread.run(Thread.java:724)[:1.7.0_25]
> Caused by: org.dozer.MappingException: java.lang.ClassNotFoundException: org.dozer.util.DefaultClassLoader
> 	at org.dozer.util.MappingUtils.throwMappingException(MappingUtils.java:82)
> 	at org.dozer.util.DefaultClassLoader.loadClass(DefaultClassLoader.java:38)
> 	at org.dozer.DozerInitializer.loadBeanType(DozerInitializer.java:115)
> 	at org.dozer.DozerInitializer.initialize(DozerInitializer.java:97)
> 	at org.dozer.DozerInitializer.init(DozerInitializer.java:74)
> 	at org.dozer.DozerBeanMapper.init(DozerBeanMapper.java:173)
> 	at org.dozer.DozerBeanMapper.<init>(DozerBeanMapper.java:99)
> 	at org.dozer.DozerBeanMapper.<init>(DozerBeanMapper.java:94)
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)[:1.7.0_25]
> 	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)[:1.7.0_25]
> 	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)[:1.7.0_25]
> 	at java.lang.reflect.Constructor.newInstance(Constructor.java:526)[:1.7.0_25]
> 	at org.apache.aries.blueprint.utils.ReflectionUtils.newInstance(ReflectionUtils.java:329)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BeanRecipe.newInstance(BeanRecipe.java:962)[7:org.apache.aries.blueprint.core:1.1.0]
> 	at org.apache.aries.blueprint.container.BeanRecipe.getInstance(BeanRecipe.java:331)[7:org.apache.aries.blueprint.core:1.1.0]
> 	... 39 more
> Caused by: java.lang.ClassNotFoundException: org.dozer.util.DefaultClassLoader
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:366)[:1.7.0_25]
> 	at java.net.URLClassLoader$1.run(URLClassLoader.java:355)[:1.7.0_25]
> 	at java.security.AccessController.doPrivileged(Native Method)[:1.7.0_25]
> 	at java.net.URLClassLoader.findClass(URLClassLoader.java:354)[:1.7.0_25]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[:1.7.0_25]
> 	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)[:1.7.0_25]
> 	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[:1.7.0_25]
> 	at java.lang.Class.forName0(Native Method)[:1.7.0_25]
> 	at java.lang.Class.forName(Class.java:270)[:1.7.0_25]
> 	at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:823)
> 	at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:889)
> 	at org.apache.commons.lang3.ClassUtils.getClass(ClassUtils.java:872)
> 	at org.dozer.util.DefaultClassLoader.loadClass(DefaultClassLoader.java:36)
> 	... 52 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message