我只是跟随Infinispan embedded tutorial,在step 5处,由于此异常它不起作用:
java.lang.IllegalArgumentException: No marshaller registered for Java type org.infinispan.tutorial.embedded.LocationWeather
.
[some details here]
.
.
at org.infinispan.cache.impl.EncoderCache.put(EncoderCache.java:674)
at org.infinispan.tutorial.embedded.CachingWeatherService.getWeatherForLocation(CachingWeatherService.java:17)
at org.infinispan.tutorial.embedded.WeatherApp.fetchWeather(WeatherApp.java:50)
at org.infinispan.tutorial.embedded.WeatherApp.main(WeatherApp.java:69)
我正在寻找如何注册编组器 here,但我不明白,它应该在pom.xml或在哪里声明?
如果是在[[pom,哪一部分?
谢谢:D