[
https://issues.apache.org/jira/browse/BROOKLYN-72?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14170989#comment-14170989
]
Aled Sage commented on BROOKLYN-72:
-----------------------------------
Here is the full stack trace:
2014-10-14 15:07:54,766 INFO b.e.b.BrooklynShutdownHooks
[shutdownHookThread]: terminateOnShutdown of
LocalManagementContext[tra6F9oA-OtSZZswD] returned error (continuing):
java.lang.IllegalArgumentException:
/tmp/brooklyn-osgi-cache-Yqod/bundle93/version0.0 does not exist
java.lang.IllegalArgumentException:
/tmp/brooklyn-osgi-cache-Yqod/bundle93/version0.0 does not exist
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:2270)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1653)
~[commons-io-2.4.jar:2.4]
at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:1535)
~[commons-io-2.4.jar:2.4]
at brooklyn.util.os.Os.deleteRecursively(Os.java:239)
~[brooklyn-utils-common-0.7.0-20140914.023701-181.jar:0.7.0-SNAPSHOT]
at brooklyn.util.os.Os.deleteRecursively(Os.java:225)
~[brooklyn-utils-common-0.7.0-20140914.023701-181.jar:0.7.0-SNAPSHOT]
at brooklyn.management.ha.OsgiManager.stop(OsgiManager.java:78)
~[brooklyn-core-0.7.0-20140914.024529-178.jar:0.7.0-SNAPSHOT]
at
brooklyn.management.internal.LocalManagementContext.terminate(LocalManagementContext.java:318)
~[brooklyn-core-0.7.0-20140914.024529-178.jar:0.7.0-SNAPSHOT]
at
brooklyn.entity.basic.BrooklynShutdownHooks$BrooklynShutdownHookJob.run(BrooklynShutdownHooks.java:206)
~[brooklyn-core-0.7.0-20140914.024529-178.jar:0.7.0-SNAPSHOT]
at brooklyn.util.javalang.Threads$1.run(Threads.java:32)
[brooklyn-utils-common-0.7.0-20140914.023701-181.jar:0.7.0-SNAPSHOT]
> Exception when stopping Brooklyn
> --------------------------------
>
> Key: BROOKLYN-72
> URL: https://issues.apache.org/jira/browse/BROOKLYN-72
> Project: Brooklyn
> Issue Type: Bug
> Reporter: Sam Corbett
>
> Brooklyn throws an unhandled IllegalArgumentException when cleaning up its
> OSGi cache directory.
> {code}
> $ brooklyn launch
> _ _ _
> | |__ _ __ ___ ___ | | _| |_ _ _ __ (R)
> | '_ \| '__/ _ \ / _ \| |/ / | | | | '_ \
> | |_) | | | (_) | (_) | <| | |_| | | | |
> |_.__/|_| \___/ \___/|_|\_\_|\__, |_| |_|
> |___/ 0.7.0-SNAPSHOT
> 2014-10-01 10:25:13,583 INFO Persistence disabled
> 2014-10-01 10:25:13,587 INFO High availability disabled
> 2014-10-01 10:25:16,701 INFO Started Brooklyn console at
> http://127.0.0.1:8081/, running classpath://brooklyn.war
> 2014-10-01 10:25:16,701 INFO Launched Brooklyn; will now block until
> shutdown issued. Shutdown via GUI or API or process interrupt.
> 2014-10-01 10:25:20,139 INFO Web console using security provider
> brooklyn.rest.security.provider.ExplicitUsersSecurityProvider
> 2014-10-01 10:25:20,142 INFO Web console allowing users: [sam]
> ^C2014-10-01 10:25:42,975 INFO terminateOnShutdown of
> LocalManagementContext[Zzdtwojs-jZZBPTEq] returned error (continuing):
> java.lang.IllegalArgumentException: /tmp/brooklyn-osgi-cache-fqEa/bundle18
> does not exist
> java.lang.IllegalArgumentException: /tmp/brooklyn-osgi-cache-fqEa/bundle18
> does not exist
> at
> org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:1637)
> ~[commons-io-2.4.jar:2.4]
> {code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)