Uploaded image for project: 'Corda'
  1. CORDA-2696

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

    Details

    • Type: Bug
    • Status: Done (View workflow)
    • Priority: Low
    • Resolution: Done
    • Affects versions: Corda 4, Corda Enterprise 4 RC04
    • Fix versions: Corda 4.1
    • Components: None
    • Labels:
      None

      Description

      Sample log lines:

      [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. Tudor Malene can further comment if necessary.

        Attachments

          Activity

            People

            • Assignee:
              Dominic.Fox Dominic.Fox@r3.com
              Reporter:
              Dominic.Fox Dominic.Fox@r3.com
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: