brooklyn-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aled Sage (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BROOKLYN-453) Rebinding fails when using class-renames with bundle prefixes
Date Thu, 16 Mar 2017 00:31:42 GMT

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

Aled Sage commented on BROOKLYN-453:
------------------------------------

See https://github.com/apache/brooklyn-server/pull/598 for a fix.

> Rebinding fails when using class-renames with bundle prefixes
> -------------------------------------------------------------
>
>                 Key: BROOKLYN-453
>                 URL: https://issues.apache.org/jira/browse/BROOKLYN-453
>             Project: Brooklyn
>          Issue Type: Bug
>            Reporter: Aled Sage
>            Priority: Blocker
>
> I have some persisted state from an older version of Brooklyn (but still 0.11.0-SNAPSHOT,
from January). This includes a reference to {{org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier}}
- note the bundle name prefix.
> In the `deserializingClassRenames.properties`, there is an entry for:
> {noformat}
> org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier : org.apache.brooklyn.feed.AbstractCommandFeed$CommandPollIdentifier
> {noformat}
> However, this is not used - rebind therefore fails with an error like:
> {noformat}
> 2017-03-15 18:25:26,721 WARN  120 o.a.b.c.m.p.RetryingMementoSerializer [ooklyn-persister]
Error deserializing memento (attempt 4 of 5): com.thoughtworks.xstream.converters.ConversionException:
Could not call com.google.common.collect.HashMultimap.readObject() : org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
via loadClass : org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
> ---- Debugging information ----
> message             : Could not call com.google.common.collect.HashMultimap.readObject()
> cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message       : org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
via loadClass : org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
> class               : com.google.common.collect.HashMultimap
> required-type       : com.google.common.collect.HashMultimap
> converter-type      : com.thoughtworks.xstream.converters.reflection.SerializableConverter
> path                : /feed/config/polls/com.google.guava:com.google.common.collect.HashMultimap/com.google.guava:com.google.common.collect.HashMultimap/org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
> line number         : 24
> class[1]            : java.util.LinkedHashMap
> converter-type[1]   : org.apache.brooklyn.util.core.xstream.StringKeyMapConverter
> class[2]            : org.apache.brooklyn.core.mgmt.rebind.dto.BasicFeedMemento
> converter-type[2]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
> version             : 0.11.0-20170314.1743
> -------------------------------
> com.thoughtworks.xstream.converters.ConversionException: Could not call com.google.common.collect.HashMultimap.readObject()
: org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier via loadClass
: org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
> ---- Debugging information ----
> message             : Could not call com.google.common.collect.HashMultimap.readObject()
> cause-exception     : com.thoughtworks.xstream.mapper.CannotResolveClassException
> cause-message       : org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
via loadClass : org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
> class               : com.google.common.collect.HashMultimap
> required-type       : com.google.common.collect.HashMultimap
> converter-type      : com.thoughtworks.xstream.converters.reflection.SerializableConverter
> path                : /feed/config/polls/com.google.guava:com.google.common.collect.HashMultimap/com.google.guava:com.google.common.collect.HashMultimap/org.apache.brooklyn.core:org.apache.brooklyn.feed.ssh.SshFeed$SshPollIdentifier
> line number         : 24
> class[1]            : java.util.LinkedHashMap
> converter-type[1]   : org.apache.brooklyn.util.core.xstream.StringKeyMapConverter
> class[2]            : org.apache.brooklyn.core.mgmt.rebind.dto.BasicFeedMemento
> converter-type[2]   : com.thoughtworks.xstream.converters.reflection.ReflectionConverter
> version             : 0.11.0-20170314.1743
> -------------------------------
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message