brooklyn-dev mailing list archives

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

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

ASF GitHub Bot commented on BROOKLYN-453:
-----------------------------------------

Github user aledsage commented on the issue:

    https://github.com/apache/brooklyn-server/pull/598
  
    jenkins test failure looked unrelated - we should investigate that separately. I've amended
the commits to force jenkins to build again.
    
    For the record, here's the test failure:
    ```
    2017-03-16 00:39:32,545 INFO  TESTNG INVOKING: "Surefire test" - org.apache.brooklyn.entity.software.base.SoftwareProcessStopsDuringStartTest.testStopDuringProvisionWaitsForCompletion()
    2017-03-16 00:39:32,549 INFO  Stopping EmptySoftwareProcessImpl{id=ax1j5mlygp} in []
    2017-03-16 00:39:32,550 INFO  When stopping EmptySoftwareProcessImpl{id=ax1j5mlygp}, waiting
for up to 10m for the machine to finish provisioning, before terminating it
    2017-03-16 00:39:32,554 WARN  Deprecated use of unmanaged location (SshMachineLocation[SshMachineLocation:y2op:null@localhost/127.0.0.1:22(id=y2ope2zmax)]);
will be managed automatically now but not supported in future versions
    2017-03-16 00:39:32,555 INFO  Simulated obtain of machine SshMachineLocation[SshMachineLocation:y2op:null@localhost/127.0.0.1:22(id=y2ope2zmax)]
    2017-03-16 00:39:32,574 WARN  Request for bundle 'org.apache.brooklyn.software-winrm'
(0.11.0-SNAPSHOT) will be ignored, loading 'org.apache.brooklyn.location.winrm.WinRmMachineLocation'
as no framework available
    2017-03-16 00:39:32,730 INFO  TESTNG FAILED: "Surefire test" - org.apache.brooklyn.entity.software.base.SoftwareProcessStopsDuringStartTest.testStopDuringProvisionWaitsForCompletion()
finished in 183 ms
    java.lang.AssertionError: lists don't have the same size expected [2] but found [1]
    	at org.apache.brooklyn.entity.software.base.SoftwareProcessStopsDuringStartTest.testStopDuringProvisionWaitsForCompletion(SoftwareProcessStopsDuringStartTest.java:185)
    ```


> 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