camel-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Owain McGuire <ow...@integration.technology>
Subject Unable to configure RedisTemplate with Blueprint XML
Date Tue, 14 Jun 2016 13:17:35 GMT
I have set up a simple route to isolate the string serialization problem that
I am experiencing, like others

  

non XML version here: http://stackoverflow.com/questions/32245916/redis-
serialization-prefixed-with-extra-string

  

I have a route set up with some beans but seem to be going round and round in
circles.  Have I completely missed how to do the configuration and is there
really a # in the redis URI?

  

Camel 2.15.6

  

 Thanks,

  

O.

  

  

&lt;?xml version="1.0" encoding="UTF-8"?&gt;  
  
&lt;blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"  
          xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  
          xsi:schemaLocation="  
      http://www.osgi.org/xmlns/blueprint/v1.0.0 http://www.osgi.org/xmlns/blueprint/v1.0.0/blueprint.xsd
 
      http://camel.apache.org/schema/blueprint http://camel.apache.org/schema/spring/camel-blueprint.xsd"&gt;
 
  
 &lt;bean id="redisConnectionFactory"
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"&gt;  
   &lt;property name="hostName" value="${redis.host}" /&gt;  
   &lt;property name="port" value="${redis.port}"/&gt;  
 &lt;/bean&gt;  
  
 &lt;bean  
   id="stringSerializer"  
class="org.springframework.data.redis.serializer.StringRedisSerializer"/&gt;  
  
 &lt;bean  
   id="i4pRedisTemplate"  
   class="org.springframework.data.redis.core.RedisTemplate"&gt;  
   &lt;property name="defaultSerializer" ref="stringSerializer"/&gt;  
   &lt;property name="connectionFactory" ref="redisConnectionFactory"/&gt;  
 &lt;/bean&gt;  
  
 &lt;routeContext id="camel-redis-route-context"
xmlns="http://camel.apache.org/schema/blueprint"&gt;  
  
   &lt;route id="camel-redis-route"&gt;  
     &lt;from uri="direct:redis"/&gt;  
     &lt;log loggingLevel="INFO" message="Just about to call redis with ${in.headers}"/&gt;
 
     &lt;to uri="spring-redis://x?redisTemplate=#i4pRedisTemplate" id="callRedisWithHeaders"/&gt;
 
   &lt;/route&gt;  
  
 &lt;/routeContext&gt;  
  
&lt;/blueprint&gt;  

  

  

The error I get is below but I am really struggling to work out how all of the
beans are set, referenced and where they should be placed in my OSGI-
INF/blueprint files.

  

/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/bin/java -ea
-Didea.launcher.port=7537 "-Didea.launcher.bin.path=/Applications/IntelliJ
IDEA.app/Contents/bin" -Didea.junit.sm_runner -Dfile.encoding=UTF-8 -classpath
"/Applications/IntelliJ
IDEA.app/Contents/lib/idea_rt.jar:/Applications/IntelliJ
IDEA.app/Contents/plugins/junit/lib/junit-
rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/localedata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/nashorn.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/sunec.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/sunjce_provider.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/sunpkcs11.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/ext/zipfs.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/javaws.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jce.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jfr.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jfxswt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/jsse.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib
/management-
agent.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/plugin.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/resources.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/jre/lib/rt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib
/ant-
javafx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib/dt.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib
/javafx-
mx.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib/jconsole.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib/packager.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib
/sa-
jdi.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_77.jdk/Contents/Home/lib/tools.jar:/Users/owain/dev
/i4ip-platform/i4ip-counter/target/test-classes:/Users/owain/dev/i4ip-platform
/i4ip-counter/target/classes:/Users/owain/.m2/repository/org/apache/camel
/camel-spring-redis/2.15.6/camel-spring-
redis-2.15.6.jar:/Users/owain/.m2/repository/org/springframework/data/spring-
data-redis/1.3.4.RELEASE/spring-data-
redis-1.3.4.RELEASE.jar:/Users/owain/.m2/repository/org/springframework
/spring-context-support/3.2.10.RELEASE/spring-context-
support-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/org/springframework
/spring-beans/3.2.10.RELEASE/spring-
beans-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/org/springframework
/spring-context/3.2.10.RELEASE/spring-
context-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/org/springframework
/spring-expression/3.2.10.RELEASE/spring-
expression-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/org/springframework
/spring-core/3.2.10.RELEASE/spring-
core-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/org/springframework
/spring-aop/3.2.10.RELEASE/spring-
aop-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/aopalliance/aopalliance/1.0/aopalliance-1.0.jar:/Users/owain/.m2/repository/org/springframework
/spring-tx/3.2.10.RELEASE/spring-
tx-3.2.10.RELEASE.jar:/Users/owain/.m2/repository/com/sun/xml/bind/jaxb-
core/2.2.11/jaxb-core-2.2.11.jar:/Users/owain/.m2/repository/com/sun/xml/bind
/jaxb-impl/2.2.11/jaxb-
impl-2.2.11.jar:/Users/owain/.m2/repository/redis/clients/jedis/2.6.3/jedis-2.6.3.jar:/Users/owain/.m2/repository/org/apache/commons
/commons-pool2/2.3/commons-
pool2-2.3.jar:/Users/owain/.m2/repository/org/apache/camel/camel-core/2.15.6
/camel-core-2.15.6.jar:/Users/owain/.m2/repository/org/apache/camel/camel-
blueprint/2.15.6/camel-
blueprint-2.15.6.jar:/Users/owain/.m2/repository/org/apache/camel/camel-core-
xml/2.15.6/camel-core-
xml-2.15.6.jar:/Users/owain/.m2/repository/org/apache/camel/camel-core-
osgi/2.15.6/camel-core-
osgi-2.15.6.jar:/Users/owain/.m2/repository/org/apache/camel/camel-test/2.15.6
/camel-
test-2.15.6.jar:/Users/owain/.m2/repository/junit/junit/4.11/junit-4.11.jar:/Users/owain/.m2/repository/org/hamcrest
/hamcrest-core/1.3/hamcrest-
core-1.3.jar:/Users/owain/.m2/repository/org/apache/camel/camel-test-
blueprint/2.15.6/camel-test-
blueprint-2.15.6.jar:/Users/owain/.m2/repository/org/apache/camel/camel-
core/2.15.6/camel-
core-2.15.6-tests.jar:/Users/owain/.m2/repository/org/apache/aries/proxy/org.apache.aries.proxy.api/1.0.1/org.apache.aries.proxy.api-1.0.1.jar:/Users/owain/.m2/repository/org/apache/aries/proxy/org.apache.aries.proxy.impl/1.0.4/org.apache.aries.proxy.impl-1.0.4.jar:/Users/owain/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint.api/1.0.1/org.apache.aries.blueprint.api-1.0.1.jar:/Users/owain/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint.core/1.4.4/org.apache.aries.blueprint.core-1.4.4.jar:/Users/owain/.m2/repository/org/apache/aries/quiesce/org.apache.aries.quiesce.api/1.0.0/org.apache.aries.quiesce.api-1.0.0.jar:/Users/owain/.m2/repository/org/apache/aries/blueprint/org.apache.aries.blueprint.cm/1.0.6/org.apache.aries.blueprint.cm-1.0.6.jar:/Users/owain/.m2/repository/org/apache/aries/org.apache.aries.util/1.1.0/org.apache.aries.util-1.1.0.jar:/Users/owain/.m2/repository/org/apache/felix/org.apache.felix.connect/0.1.0/org.apache.felix.connect-0.1.0.jar:/Users/owain/.m2/repository/org/ops4j/pax/swissbox
/pax-swissbox-tinybundles/1.3.1/pax-swissbox-
tinybundles-1.3.1.jar:/Users/owain/.m2/repository/org/ops4j/base/ops4j-base-
lang/1.2.2/ops4j-base-
lang-1.2.2.jar:/Users/owain/.m2/repository/org/ops4j/base/ops4j-base-io/1.2.2
/ops4j-base-io-1.2.2.jar:/Users/owain/.m2/repository/org/ops4j/base/ops4j-
base-monitors/1.2.2/ops4j-base-
monitors-1.2.2.jar:/Users/owain/.m2/repository/org/ops4j/base/ops4j-base-
store/1.2.2/ops4j-base-
store-1.2.2.jar:/Users/owain/.m2/repository/org/ops4j/pax/swissbox/pax-
swissbox-bnd/1.3.1/pax-swissbox-
bnd-1.3.1.jar:/Users/owain/.m2/repository/biz/aQute/bndlib/0.0.357/bndlib-0.0.357.jar:/Users/owain/.m2/repository
/commons-logging/commons-logging/1.2/commons-
logging-1.2.jar:/Users/owain/.m2/repository/org/apache/felix/org.apache.felix.configadmin/1.8.0/org.apache.felix.configadmin-1.8.0.jar:/Users/owain/.m2/repository/org/apache/felix/org.apache.felix.fileinstall/3.5.0/org.apache.felix.fileinstall-3.5.0.jar:/Users/owain/.m2/repository/org/slf4j
/slf4j-api/1.6.1/slf4j-api-1.6.1.jar:/Users/owain/.m2/repository/org/slf4j
/slf4j-log4j12/1.6.1/slf4j-
log4j12-1.6.1.jar:/Users/owain/.m2/repository/log4j/log4j/1.2.16/log4j-1.2.16.jar"
com.intellij.rt.execution.application.AppMain
com.intellij.rt.execution.junit.JUnitStarter -ideVersion5
integration.technology.i4ip.counter.IncrementCounterTest  
2016-06-14 14:10:48,599 [main           ] INFO  CamelBlueprintHelper
\- Using Blueprint XML file: /Users/owain/dev/i4ip-platform/i4ip-
counter/target/test-classes/blueprint/i4ip-counter-increment-test-context.xml  
2016-06-14 14:10:48,600 [main           ] INFO  CamelBlueprintHelper
\- Using Blueprint XML file: /Users/owain/dev/i4ip-platform/i4ip-
counter/target/test-classes/blueprint/camel-redis-route.xml  
2016-06-14 14:10:48,600 [main           ] INFO  CamelBlueprintHelper
\- Using Blueprint XML file: /Users/owain/dev/i4ip-platform/i4ip-
counter/target/classes/OSGI-INF/blueprint/i4ip-counter-increment-route.xml  
2016-06-14 14:10:48,600 [main           ] INFO  CamelBlueprintHelper
\- Using Blueprint XML file: /Users/owain/dev/i4ip-platform/i4ip-
counter/target/classes/OSGI-INF/blueprint/i4ip-counter-properties.xml  
2016-06-14 14:10:48,631 [Thread-0       ] INFO  RawBuilder
\- Copy thread finished.  
2016-06-14 14:10:48,920 [main           ] INFO  Activator
\- Camel activator starting  
2016-06-14 14:10:48,980 [main           ] INFO  Activator
\- Camel activator started  
2016-06-14 14:10:49,111 [main           ] INFO  CamelBlueprintHelper
\- Updating ConfigAdmin Configuration PID=technology.integration.i4ip.counter,
factoryPID=null, bundleLocation=null by overriding properties
{redis.host=localhost, redis.key=i4p-counter-order-test,
counter.prefix.headerName=i4pCounterPrefix, redis.port=6379}  
2016-06-14 14:10:49,288 [int Extender: 1] INFO  BlueprintContainerImpl
\- Bundle IncrementCounterTest/1.0.0 is waiting for namespace handlers
[http://camel.apache.org/schema/blueprint,
http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.0.0]  
2016-06-14 14:10:51,928 [int Extender: 1] WARN  BeanRecipe
\- Object to be destroyed is not an instance of UnwrapperedBeanHolder, type:
null  
2016-06-14 14:10:51,934 [int Extender: 1] INFO  BlueprintCamelContext
\- Apache Camel 2.15.6 (CamelContext: i4ip-counter-increment-test-context) is
shutting down  
2016-06-14 14:10:51,939 [int Extender: 1] INFO  BlueprintCamelContext
\- Apache Camel 2.15.6 (CamelContext: i4ip-counter-increment-test-context)
uptime not started  
2016-06-14 14:10:51,940 [int Extender: 1] INFO  BlueprintCamelContext
\- Apache Camel 2.15.6 (CamelContext: i4ip-counter-increment-test-context) is
shutdown in 0.006 seconds  
2016-06-14 14:10:51,941 [int Extender: 1] ERROR BlueprintContainerImpl
\- Unable to start blueprint container for bundle IncrementCounterTest/1.0.0  
org.osgi.service.blueprint.container.ComponentDefinitionException: Error
setting property: PropertyDescriptor &lt;name: defaultSerializer, getter:
class
org.springframework.data.redis.core.RedisTemplate.getDefaultSerializer(),
setter: [class
org.springframework.data.redis.core.RedisTemplate.setDefaultSerializer(interface
org.springframework.data.redis.serializer.RedisSerializer)]  
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:939)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:905)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:886)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_77]  
at
org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_77]  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_77]  
at
org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)[org.apache.aries.blueprint.core-1.4.4.jar:1.4.4]
 
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)[:1.8.0_77]  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)[:1.8.0_77]  
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)[:1.8.0_77]
 
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)[:1.8.0_77]
 
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)[:1.8.0_77]
 
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)[:1.8.0_77]
 
at java.lang.Thread.run(Thread.java:745)[:1.8.0_77]  
2016-06-14 14:10:51,946 [main           ] INFO  IncrementCounterTest
\-
********************************************************************************  
2016-06-14 14:10:51,946 [main           ] INFO  IncrementCounterTest
\- Testing done:
testSetCounter(integration.technology.i4ip.counter.IncrementCounterTest)  
2016-06-14 14:10:51,946 [main           ] INFO  IncrementCounterTest
\- Took: 3.397 seconds (3397 millis)  
2016-06-14 14:10:51,946 [main           ] INFO  IncrementCounterTest
\-
********************************************************************************  
2016-06-14 14:10:51,946 [main           ] INFO  CamelBlueprintHelper
\- Deleting work directory target/bundles/1465909848607  
  
java.lang.RuntimeException: Error setting property: PropertyDescriptor
&lt;name: defaultSerializer, getter: class
org.springframework.data.redis.core.RedisTemplate.getDefaultSerializer(),
setter: [class
org.springframework.data.redis.core.RedisTemplate.setDefaultSerializer(interface
org.springframework.data.redis.serializer.RedisSerializer)]  
  
at
org.apache.camel.test.blueprint.CamelBlueprintHelper.waitForBlueprintContainer(CamelBlueprintHelper.java:343)
 
at
org.apache.camel.test.blueprint.CamelBlueprintTestSupport.createBundleContext(CamelBlueprintTestSupport.java:154)
 
at
org.apache.camel.test.blueprint.CamelBlueprintTestSupport.setUp(CamelBlueprintTestSupport.java:220)
 
at
integration.technology.i4ip.counter.IncrementCounterTest.setUp(IncrementCounterTest.java:32)
 
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)  
at
org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)  
at
org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)  
at
org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24)  
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)  
at org.junit.rules.TestWatcher$1.evaluate(TestWatcher.java:55)  
at org.junit.rules.RunRules.evaluate(RunRules.java:20)  
at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)  
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)  
at
org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)  
at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)  
at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)  
at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)  
at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)  
at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)  
at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)  
at org.junit.runners.ParentRunner.run(ParentRunner.java:309)  
at org.junit.runner.JUnitCore.run(JUnitCore.java:160)  
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:119)
 
at
com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:42)
 
at
com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
 
at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)  
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)  
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)  
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.lang.reflect.Method.invoke(Method.java:498)  
at com.intellij.rt.execution.application.AppMain.main(AppMain.java:144)  
**Caused by: org.osgi.service.blueprint.container.ComponentDefinitionException: Error setting
property: PropertyDescriptor &lt;name: defaultSerializer, getter: class org.springframework.data.redis.core.RedisTemplate.getDefaultSerializer(),
setter: [class org.springframework.data.redis.core.RedisTemplate.setDefaultSerializer(interface
org.springframework.data.redis.serializer.RedisSerializer)]  
** at org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:939)  
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:905)  
at
org.apache.aries.blueprint.container.BeanRecipe.setProperties(BeanRecipe.java:886)  
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate2(BeanRecipe.java:820)  
at
org.apache.aries.blueprint.container.BeanRecipe.internalCreate(BeanRecipe.java:787)  
at org.apache.aries.blueprint.di.AbstractRecipe$1.call(AbstractRecipe.java:79)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at org.apache.aries.blueprint.di.AbstractRecipe.create(AbstractRecipe.java:88)  
at
org.apache.aries.blueprint.container.BlueprintRepository.createInstances(BlueprintRepository.java:247)
 
at
org.apache.aries.blueprint.container.BlueprintRepository.createAll(BlueprintRepository.java:183)
 
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.instantiateEagerComponents(BlueprintContainerImpl.java:682)
 
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.doRun(BlueprintContainerImpl.java:377)
 
at
org.apache.aries.blueprint.container.BlueprintContainerImpl.run(BlueprintContainerImpl.java:269)
 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at
org.apache.aries.blueprint.container.ExecutorServiceWrapper.run(ExecutorServiceWrapper.java:106)
 
at
org.apache.aries.blueprint.utils.threading.impl.DiscardableRunnable.run(DiscardableRunnable.java:48)
 
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)  
at java.util.concurrent.FutureTask.run(FutureTask.java:266)  
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:180)
 
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:293)
 
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:745)  
**Caused by: java.lang.Exception: Unable to convert value org.springframework.data.redis.serializer.StringRedisSerializer@a292582
to type org.springframework.data.redis.serializer.RedisSerializer&lt;java.lang.Object&gt;
 
** at org.apache.aries.blueprint.container.AggregateConverter.convert(AggregateConverter.java:184)
 
at
org.apache.aries.blueprint.container.BlueprintRepository.convert(BlueprintRepository.java:402)
 
at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.convert(ReflectionUtils.java:396)
 
at
org.apache.aries.blueprint.utils.ReflectionUtils$MethodPropertyDescriptor.internalSet(ReflectionUtils.java:630)
 
at
org.apache.aries.blueprint.utils.ReflectionUtils$PropertyDescriptor.set(ReflectionUtils.java:380)
 
at
org.apache.aries.blueprint.container.BeanRecipe.setProperty(BeanRecipe.java:937)  
... 23 more  
  
  
Process finished with exit code 255  

  

  

  

  

  

  

  

![](https://link.nylas.com/open/ez36v71u7uh7qiundny4ougdd/local-e8f2b0e0-d4b0)

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message