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

java.lang.SecurityException: class "org.apache.commons.io.output.ByteArrayOutputStream"'s signer information does not match signer information of other classes in the same package

    Details

      Description

      Our Application functionalities say in this case the 'file upload' is not working due to this error message. There are 2 different jar dependencies in the same war module but the log is not showing which jar file this is class is being searched or failed .

      Error log trace:
      Defined package org.apache.commons.io.output in Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,658 TRACE [org.jboss.modules] (default task-47) Finding class org.apache.commons.io.output.ThresholdingOutputStream from Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,658 TRACE [org.jboss.modules] (default task-47) Finding local class org.apache.commons.io.output.ThresholdingOutputStream from Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,658 TRACE [org.jboss.modules] (default task-47) Loading class org.apache.commons.io.output.ThresholdingOutputStream locally from Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,658 TRACE [org.jboss.modules] (default task-47) Attempting to define class org.apache.commons.io.output.ThresholdingOutputStream in Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,658 TRACE [org.jboss.modules] (default task-47) Defined class org.apache.commons.io.output.ThresholdingOutputStream in Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,659 TRACE [org.jboss.modules] (default task-47) Defined class org.apache.commons.io.output.DeferredFileOutputStream in Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,659 TRACE [org.jboss.modules] (default task-47) Finding class org.apache.commons.io.output.ByteArrayOutputStream from Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,659 TRACE [org.jboss.modules] (default task-47) Finding local class org.apache.commons.io.output.ByteArrayOutputStream from Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,659 TRACE [org.jboss.modules] (default task-47) Loading class org.apache.commons.io.output.ByteArrayOutputStream locally from Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,660 TRACE [org.jboss.modules] (default task-47) Attempting to define class org.apache.commons.io.output.ByteArrayOutputStream in Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader
      2020-04-01 05:45:21,660 WARN [org.jboss.modules] (default task-47) Failed to define class org.apache.commons.io.output.ByteArrayOutputStream in Module "deployment.icam-e.ear.icam-e-web-1.war" from Service Module Loader: java.lang.SecurityException: class "org.apache.commons.io.output.ByteArrayOutputStream"'s signer information does not match signer information of other classes in the same package
      at java.lang.ClassLoader.checkCerts(ClassLoader.java:898)
      at java.lang.ClassLoader.preDefineClass(ClassLoader.java:668)
      at java.lang.ClassLoader.defineClass(ClassLoader.java:761)
      at org.jboss.modules.ModuleClassLoader.doDefineOrLoadClass(ModuleClassLoader.java:358)
      at org.jboss.modules.ModuleClassLoader.defineClass(ModuleClassLoader.java:437)
      at org.jboss.modules.ModuleClassLoader.loadClassLocal(ModuleClassLoader.java:274)
      at org.jboss.modules.ModuleClassLoader$1.loadClassLocal(ModuleClassLoader.java:77)
      at org.jboss.modules.Module.loadModuleClass(Module.java:713)
      at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:190)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412)
      at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400)
      at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116)
      at org.apache.commons.fileupload.disk.DiskFileItem.getOutputStream(DiskFileItem.java:557)
      at org.apache.commons.fileupload.FileUploadBase.parseRequest(FileUploadBase.java:362)
      at org.apache.commons.fileupload.servlet.ServletFileUpload.parseRequest(ServletFileUpload.java:126)

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                k_saravanan Kannan Saravanan
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: