We're updating the issue view to help you get more done. 

Corda complaining of duplicate classes upon start-up when it doesn't need to

Description

Sample log lines:

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.JSONObject. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.JSONValue. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.parser.JSONParser. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.parser.ParseException. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.parser.Yylex. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.parser.Yytoken. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.ConfigMBean. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.MBeanServerHandlerMBean. [WARN ] 2019-03-01T16:44:53,714Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.RequestDispatcher. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.executor.MBeanServerExecutor. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.executor.MBeanServerExecutor$MBeanAction. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.executor.MBeanServerExecutor$MBeanEachCallback. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.plugin.MBeanPlugin. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.backend.plugin.MBeanPluginContext. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.config.ConfigExtractor. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.converter.json.Extractor. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.converter.json.ValueFaultHandler. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.converter.json.simplifier.SimplifierExtractor$AttributeExtractor. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.converter.object.StringToObjectConverter$Parser. [WARN ] 2019-03-01T16:44:53,715Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.detector.ServerDetector. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.discovery.AgentDetailsHolder. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.discovery.JolokiaDiscoveryMBean. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.history.HistoryStore$HistoryUpdater. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.http.AgentServlet$ServletRequestHandler. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.jvmagent.security.DelegatingAuthenticator$PrincipalExtractor. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.restrictor.Restrictor. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.util.JolokiaCipher$KeyHolder. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.jolokia.util.LogHandler. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.JSONAware. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.JSONStreamAware. [WARN ] 2019-03-01T16:44:53,716Z [main] cordapp.CordappResolver.register - More than one CorDapp registered for org.json.simple.parser.ContainerFactory.

This happens because jackson is included in all the cordapp jars for some reason. Whilst it's not ideal.. it's not actually a problem that there are dupes for classes which are not contracts. can further comment if necessary.

Status

Assignee

Dominic.Fox@r3.com

Reporter

Dominic.Fox@r3.com

Priority

Low

Labels

None

Severity

Medium

Fix versions

Ported to...

None

Feature Team

Select team

Affects versions

Corda 4
Corda Enterprise 4 RC04