Uploaded image for project: 'OpenNMS'
  1. OpenNMS
  2. NMS-13035

Bouncycastle JAR version 1.67 breaks CIFS Monitor

    XMLWordPrintable

    Details

    • Sprint:
      Horizon 2020 - Nov 24-Dec 9

      Description

      With new OpenNMS version 27.0.1 my CIFS Monitors failing with:

      2020-12-02 12:57:17,783 ERROR [Poller-Thread-39-of-150] o.o.n.p.p.PollableServiceConfig: Unexpected exception while polling PollableService[location=Default, interface=PollableInterface [PollableN
      ode [348]:10.1.2.15], svcName=CIFS-Customer-Software]. Marking service as DOWN
      java.util.concurrent.ExecutionException: java.lang.IllegalAccessError: failed to access class org.bouncycastle.asn1.DEROutputStream from class jcifs.spnego.NegTokenInit (org.bouncycastle.asn1.DERO
      utputStream and jcifs.spnego.NegTokenInit are in unnamed module of loader java.net.FactoryURLClassLoader @30b8a058)
              at java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395) ~[?:?]
              at java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999) ~[?:?]
              at org.opennms.netmgt.poller.pollables.PollableServiceConfig.poll(PollableServiceConfig.java:137) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableService.poll(PollableService.java:191) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.poll(PollableElement.java:309) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableContainer$5.run(PollableContainer.java:319) [opennms-services-27.0.1.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:240) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:227) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableContainer.poll(PollableContainer.java:326) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableInterface.poll(PollableInterface.java:228) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableContainer$5.run(PollableContainer.java:319) [opennms-services-27.0.1.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:240) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:227) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableContainer.poll(PollableContainer.java:326) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableNode$3.run(PollableNode.java:288) [opennms-services-27.0.1.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:240) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:227) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableNode.doPoll(PollableNode.java:291) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.doPoll(PollableElement.java:184) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableService.doPoll(PollableService.java:215) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableService$PollRunner.run(PollableService.java:61) [opennms-services-27.0.1.jar:?]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515) [?:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:276) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableElement.withTreeLock(PollableElement.java:259) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableService.doRun(PollableService.java:405) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.poller.pollables.PollableService.run(PollableService.java:380) [opennms-services-27.0.1.jar:?]
              at org.opennms.netmgt.scheduler.Schedule.run(Schedule.java:142) [org.opennms.core.daemon-27.0.1.jar:?]
              at org.opennms.netmgt.scheduler.Schedule$ScheduleEntry.run(Schedule.java:86) [org.opennms.core.daemon-27.0.1.jar:?]
              at org.opennms.netmgt.scheduler.LegacyScheduler$1.run(LegacyScheduler.java:179) [org.opennms.core.daemon-27.0.1.jar:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) [?:?]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) [?:?]
              at org.opennms.core.concurrent.LogPreservingThreadFactory$3.run(LogPreservingThreadFactory.java:124) [opennms-util-27.0.1.jar:?]
              at java.lang.Thread.run(Thread.java:834) [?:?]
      Caused by: java.lang.IllegalAccessError: failed to access class org.bouncycastle.asn1.DEROutputStream from class jcifs.spnego.NegTokenInit (org.bouncycastle.asn1.DEROutputStream and jcifs.spnego.NegTokenInit are in unnamed module of loader java.net.FactoryURLClassLoader @30b8a058)
              at jcifs.spnego.NegTokenInit.toByteArray(NegTokenInit.java:158) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SpnegoContext.initSecContext(SpnegoContext.java:207) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbSessionImpl.createToken(SmbSessionImpl.java:656) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbSessionImpl.sessionSetupSMB2(SmbSessionImpl.java:538) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbSessionImpl.sessionSetup(SmbSessionImpl.java:483) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbSessionImpl.send(SmbSessionImpl.java:369) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbSessionImpl.send(SmbSessionImpl.java:347) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbTreeImpl.treeConnect(SmbTreeImpl.java:611) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbTreeConnection.connectTree(SmbTreeConnection.java:614) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbTreeConnection.connectHost(SmbTreeConnection.java:568) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbTreeConnection.connectHost(SmbTreeConnection.java:489) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbTreeConnection.connect(SmbTreeConnection.java:465) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbTreeConnection.connectWrapException(SmbTreeConnection.java:426) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbFile.ensureTreeConnected(SmbFile.java:558) ~[jcifs-ng-2.1.4.jar:?]
              at jcifs.smb.SmbFile.exists(SmbFile.java:852) ~[jcifs-ng-2.1.4.jar:?]
              at org.opennms.netmgt.poller.monitors.JCifsMonitor.poll(JCifsMonitor.java:186) ~[org.opennms.protocols.cifs-27.0.1.jar:?]
              at org.opennms.netmgt.poller.client.rpc.PollerClientRpcModule$1.get(PollerClientRpcModule.java:77) ~[org.opennms.features.poller.client-rpc-27.0.1.jar:?]
              at org.opennms.netmgt.poller.client.rpc.PollerClientRpcModule$1.get(PollerClientRpcModule.java:71) ~[org.opennms.features.poller.client-rpc-27.0.1.jar:?]
              at java.util.concurrent.CompletableFuture$AsyncSupply.run(CompletableFuture.java:1700) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) ~[?:?]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) ~[?:?]
              ... 1 more
      
      

      Downgrade bcprov-jdk15on-1.67.jar to version 1.66 - error is gone!

        Attachments

          Activity

            People

            Assignee:
            ranger Benjamin Reed
            Reporter:
            mlaercher Martin Laercher
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Git Integration