Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-24379

(7.4.z) Patch rollback fails with NoSuchMethodError on JDK 8

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Blocker Blocker
    • 7.4.9.CR1, 7.4.9.GA
    • 7.4.9.CR1
    • CLI, Patching
    • None
    • False
    • None
    • False
    • +
    • Hide
      1. Download EAP 7.4.0
      2. Download patch for EAP 7.4.9.GA-CR1
      3. Apply the patch and restart
      4. With JDK 8 run the cli command
        bin/jboss-cli.sh -c --timeout=50000 '--command=patch rollback --reset-configuration=true --patch-id=jboss-eap-7.4.9.CP'
        WFLYCTL0158: Operation handler failed: java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
        
      Show
      Download EAP 7.4.0 Download patch for EAP 7.4.9.GA-CR1 Apply the patch and restart With JDK 8 run the cli command bin/jboss-cli.sh -c --timeout=50000 '--command=patch rollback --reset-configuration= true --patch-id=jboss-eap-7.4.9.CP' WFLYCTL0158: Operation handler failed: java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;

      CLI command patch rollback fails on 7.4.9 with error when using JDK 8:

      ERROR [org.jboss.as.controller.management-operation] (management-handler-thread - 1) WFLYCTL0013: Operation ("rollback") failed - address: ([("core-service" => "patching")]): java.lang.NoSuchMethodError: java.nio.ByteBuffer.clear()Ljava/nio/ByteBuffer;
      	at org.jboss.as.patching.runner.PatchModuleInvalidationUtils.read(PatchModuleInvalidationUtils.java:498)
      	at org.jboss.as.patching.runner.PatchModuleInvalidationUtils.validateEndRecord(PatchModuleInvalidationUtils.java:263)
      	at org.jboss.as.patching.runner.PatchModuleInvalidationUtils.updateJar(PatchModuleInvalidationUtils.java:189)
      	at org.jboss.as.patching.runner.PatchModuleInvalidationUtils.processFile(PatchModuleInvalidationUtils.java:157)
      	at org.jboss.as.patching.runner.IdentityPatchContext$PatchEntry.invalidateRoot(IdentityPatchContext.java:828)
      	at org.jboss.as.patching.runner.AbstractModuleTask.backup(AbstractModuleTask.java:60)
      	at org.jboss.as.patching.runner.AbstractPatchingTask.prepare(AbstractPatchingTask.java:132)
      	at org.jboss.as.patching.runner.IdentityPatchRunner.prepareTasks(IdentityPatchRunner.java:677)
      	at org.jboss.as.patching.runner.IdentityPatchRunner.executeTasks(IdentityPatchRunner.java:637)
      	at org.jboss.as.patching.runner.IdentityPatchRunner.rollbackPatch(IdentityPatchRunner.java:261)
      	at org.jboss.as.patching.runner.PatchToolImpl.rollback(PatchToolImpl.java:232)
      	at org.jboss.as.patching.management.LocalPatchRollbackHandler.execute(LocalPatchRollbackHandler.java:59)
      	at org.jboss.as.patching.management.PatchStreamResourceOperationStepHandler.executeRuntime(PatchStreamResourceOperationStepHandler.java:58)
      	at org.jboss.as.controller.AbstractOperationContext.executeStep(AbstractOperationContext.java:1047)
      	at org.jboss.as.controller.AbstractOperationContext.processStages(AbstractOperationContext.java:779)
      	at org.jboss.as.controller.AbstractOperationContext.executeOperation(AbstractOperationContext.java:468)
      	at org.jboss.as.controller.OperationContextImpl.executeOperation(OperationContextImpl.java:1431)
      	at org.jboss.as.controller.ModelControllerImpl.internalExecute(ModelControllerImpl.java:449)
      	at org.jboss.as.controller.ModelControllerImpl.lambda$executeForResponse$0(ModelControllerImpl.java:260)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:304)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:270)
      	at org.jboss.as.controller.ModelControllerImpl.executeForResponse(ModelControllerImpl.java:260)
      	at org.jboss.as.controller.ModelControllerImpl.executeOperation(ModelControllerImpl.java:254)
      	at org.jboss.as.controller.ModelControllerImpl.execute(ModelControllerImpl.java:237)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.doExecute(ModelControllerClientOperationHandler.java:240)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler.access$400(ModelControllerClientOperationHandler.java:138)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:162)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1$1.run(ModelControllerClientOperationHandler.java:158)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:328)
      	at org.wildfly.security.auth.server.SecurityIdentity.runAs(SecurityIdentity.java:285)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:254)
      	at org.jboss.as.controller.AccessAuditContext.doAs(AccessAuditContext.java:225)
      	at org.jboss.as.controller.remote.ModelControllerClientOperationHandler$ExecuteRequestHandler$1.execute(ModelControllerClientOperationHandler.java:158)
      	at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$1.doExecute(ManagementRequestContextImpl.java:70)
      	at org.jboss.as.protocol.mgmt.ManagementRequestContextImpl$AsyncTaskRunner.run(ManagementRequestContextImpl.java:160)
      	at org.jboss.threads.ContextClassLoaderSavingRunnable.run(ContextClassLoaderSavingRunnable.java:35)
      	at org.jboss.threads.EnhancedQueueExecutor.safeRun(EnhancedQueueExecutor.java:1990)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.doRunTask(EnhancedQueueExecutor.java:1486)
      	at org.jboss.threads.EnhancedQueueExecutor$ThreadBody.run(EnhancedQueueExecutor.java:1377)
      	at java.lang.Thread.run(Thread.java:748)
      	at org.jboss.threads.JBossThread.run(JBossThread.java:513)
      

            rhn-support-ivassile Ilia Vassilev
            dcihak@redhat.com Daniel Cihak
            Votes:
            0 Vote for this issue
            Watchers:
            11 Start watching this issue

              Created:
              Updated:
              Resolved: