Skip to content

Allow json loading from jar

bornholdt requested to merge fix-json-from-jar-error into master

2018-10-01 10:02:30,011 [ServiceThread_2] INFO org.cadeia.blockchain.node.NodeUtil Reading KeyPair 2018-10-01 10:02:30,080 [ServiceThread_2] INFO o.c.b.api.helper.JsonReaderUtil parse json file jar:file:/Volumes/USB%20STICK/P2PLinkedFYPA2C/P2PGUI-0.0.1-SNAPSHOT-jar-with-dependencies.jar!/private.json Exception in thread "main" java.lang.IllegalArgumentException: URI is not hierarchical at java.io.File.(File.java:418) at org.cadeia.blockchain.api.helper.JsonReaderUtil.parseJsonClasspath(JsonReaderUtil.java:128) at org.cadeia.blockchain.api.helper.JsonReaderUtil.readKeypair(JsonReaderUtil.java:103) at org.cadeia.blockchain.node.NodeUtil.getConsensusCreationInfo(NodeUtil.java:141) at org.cadeia.blockchain.node.NodeUtil.getBlockchainAgents(NodeUtil.java:54) at org.cadeia.blockchain.node.agents.BlockChainAgent.created(BlockChainAgent.java:71) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:498) at jadex.micro.features.impl.MicroLifecycleComponentFeature.invokeMethod(MicroLifecycleComponentFeature.java:337) at jadex.micro.features.impl.MicroLifecycleComponentFeature.init(MicroLifecycleComponentFeature.java:69) at jadex.platform.service.cms.PlatformComponent.executeInitOnFeatures(PlatformComponent.java:293) at jadex.platform.service.cms.PlatformComponent$1.execute(PlatformComponent.java:144) at jadex.bridge.component.impl.ExecutionComponentFeature.execute(ExecutionComponentFeature.java:1176) at jadex.commons.concurrent.Executor.code(Executor.java:299) at jadex.commons.concurrent.Executor.run(Executor.java:126) at jadex.platform.service.execution.AsyncExecutionService$1.run(AsyncExecutionService.java:109) at jadex.commons.concurrent.ThreadPool$ServiceThread.run(ThreadPool.java:515)

Merge request reports