<p>If I currently start after a full re-build <code>desktop/build/app/bin/bisq-desktop</code> the application throws following error:</p>
<pre><code>Aug-20 16:17:34.221 [readFromResourcesThread] ERROR b.c.s.CommonSetup: Uncaught Exception from thread readFromResourcesThread 
Aug-20 16:17:34.221 [readFromResourcesThread] ERROR b.c.s.CommonSetup: throwableMessage= bisq.core.dao.state.BsqState cannot be cast to bisq.core.trade.statistics.TradeStatistics2Store 
Aug-20 16:17:34.222 [readFromResourcesThread] ERROR b.c.s.CommonSetup: throwableClass= class java.lang.ClassCastException 
Aug-20 16:17:34.224 [readFromResourcesThread] ERROR b.c.s.CommonSetup: Stack trace:
java.lang.ClassCastException: bisq.core.dao.state.BsqState cannot be cast to bisq.core.trade.statistics.TradeStatistics2Store
        at bisq.core.trade.statistics.TradeStatistics2StorageService.getMap(TradeStatistics2StorageService.java:63)
        at bisq.network.p2p.storage.persistence.StoreService.putIfAbsent(StoreService.java:76)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.lambda$put$3(AppendOnlyDataStoreService.java:81)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.put(AppendOnlyDataStoreService.java:80)
        at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.transferDeprecatedDataStructure(AppendOnlyDataStoreService.java:66)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.readFromResources(AppendOnlyDataStoreService.java:59)
        at bisq.network.p2p.storage.P2PDataStorage.readFromResources(P2PDataStorage.java:155)
        at bisq.core.app.SetupUtils.lambda$readFromResources$1(SetupUtils.java:98)
        at java.lang.Thread.run(Thread.java:748)
 
java.lang.ClassCastException: bisq.core.dao.state.BsqState cannot be cast to bisq.core.trade.statistics.TradeStatistics2Store
        at bisq.core.trade.statistics.TradeStatistics2StorageService.getMap(TradeStatistics2StorageService.java:63)
        at bisq.network.p2p.storage.persistence.StoreService.putIfAbsent(StoreService.java:76)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.lambda$put$3(AppendOnlyDataStoreService.java:81)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.accept(ForEachOps.java:184)
        at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
        at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
        at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
        at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
        at java.util.stream.ForEachOps$ForEachOp.evaluateSequential(ForEachOps.java:151)
        at java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential(ForEachOps.java:174)
        at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
        at java.util.stream.ReferencePipeline.forEach(ReferencePipeline.java:418)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.put(AppendOnlyDataStoreService.java:80)
        at java.util.concurrent.ConcurrentHashMap.forEach(ConcurrentHashMap.java:1597)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.transferDeprecatedDataStructure(AppendOnlyDataStoreService.java:66)
        at bisq.network.p2p.storage.persistence.AppendOnlyDataStoreService.readFromResources(AppendOnlyDataStoreService.java:59)
        at bisq.network.p2p.storage.P2PDataStorage.readFromResources(P2PDataStorage.java:155)
        at bisq.core.app.SetupUtils.lambda$readFromResources$1(SetupUtils.java:98)
        at java.lang.Thread.run(Thread.java:748)
Aug-20 16:17:50.235 [JavaFX Application Thread] ERROR b.n.p.n.TorNetworkNode: A timeout occurred at shutDown 
Aug-20 16:18:05.235 [JavaFX Application Thread] WARN  b.c.a.BisqExecutable: Timeout triggered resultHandler
</code></pre>
<p>It works if I start the current master from IntelliJ, but I run into this issue when building from command line.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/bisq-network/bisq-core/issues/161">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AkpZtkecY2s9ovcGwWTBSWVHxdqxVAswks5uSsZPgaJpZM4WEGe4">mute the thread</a>.<img src="https://github.com/notifications/beacon/AkpZtgpo-J8E8LbqM1EqV5sULPfMPSayks5uSsZPgaJpZM4WEGe4.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/bisq-network/bisq-core","title":"bisq-network/bisq-core","subtitle":"GitHub repository","main_image_url":"https://assets-cdn.github.com/images/email/message_cards/header.png","avatar_image_url":"https://assets-cdn.github.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/bisq-network/bisq-core"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Class cast exception on startup (#161)"}],"action":{"name":"View Issue","url":"https://github.com/bisq-network/bisq-core/issues/161"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/bisq-network/bisq-core/issues/161",
"url": "https://github.com/bisq-network/bisq-core/issues/161",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
},
{
"@type": "MessageCard",
"@context": "http://schema.org/extensions",
"hideOriginalBody": "false",
"originator": "AF6C5A86-E920-430C-9C59-A73278B5EFEB",
"title": "Class cast exception on startup (#161)",
"sections": [
{
"text": "",
"activityTitle": "**Christoph Atteneder**",
"activityImage": "https://assets-cdn.github.com/images/email/message_cards/avatar.png",
"activitySubtitle": "@ripcurlx",
"facts": [
{
"name": "Repository: ",
"value": "bisq-network/bisq-core"
},
{
"name": "Issue #: ",
"value": 161
}
]
}
],
"potentialAction": [
{
"name": "Add a comment",
"@type": "ActionCard",
"inputs": [
{
"isMultiLine": true,
"@type": "TextInput",
"id": "IssueComment",
"isRequired": false
}
],
"actions": [
{
"name": "Comment",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueComment\",\n\"repositoryFullName\": \"bisq-network/bisq-core\",\n\"issueId\": 161,\n\"IssueComment\": \"{{IssueComment.value}}\"\n}"
}
]
},
{
"name": "Close issue",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"IssueClose\",\n\"repositoryFullName\": \"bisq-network/bisq-core\",\n\"issueId\": 161\n}"
},
{
"targets": [
{
"os": "default",
"uri": "https://github.com/bisq-network/bisq-core/issues/161"
}
],
"@type": "OpenUri",
"name": "View on GitHub"
},
{
"name": "Unsubscribe",
"@type": "HttpPOST",
"target": "https://api.github.com",
"body": "{\n\"commandName\": \"MuteNotification\",\n\"threadId\": 370173880\n}"
}
],
"themeColor": "26292E"
}
]</script>