IllegalArgumentException using Commons VFS library

java.io.IOException
Javadoc
Signals that an I/O exception of some sort has occurred. This class is the general class of exceptions produced by failed or interrupted I/O operations. @author unascribed @see java.io.InputStream @see java.io.OutputStream @since JDK1.0
at org.apache.commons.vfs2.provider.ram.RamFileObject.resize
(source)
at org.apache.commons.vfs2.provider.ram.RamFileOutputStream.write
(source)
at java.io.BufferedOutputStream.flushBuffer
(source)
at java.io.BufferedOutputStream.flush
(source)
at org.apache.commons.vfs2.util.MonitorOutputStream.flush
(source)
at java.io.FilterOutputStream.close
(source)
java.lang.IllegalArgumentException
Javadoc
Thrown to indicate that a method has been passed an illegal or inappropriate argument. @author unascribed @since JDK1.0
at java.lang.Throwable.addSuppressed
(source)
at java.io.FilterOutputStream.close
(source)
at org.apache.commons.vfs2.util.MonitorOutputStream.close
(source)
at org.apache.commons.vfs2.provider.DefaultFileContent$FileContentOutputStream.close
(source)
at org.apache.commons.vfs2.provider.ram.test.CustomRamProviderTest.testSmallFS
at sun.reflect.NativeMethodAccessorImpl.invoke0
(source)
at sun.reflect.NativeMethodAccessorImpl.invoke
(source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke
(source)
at java.lang.reflect.Method.invoke
(source)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall
at org.junit.internal.runners.model.ReflectiveCallable.run
(source)
at org.junit.runners.model.FrameworkMethod.invokeExplosively
(source)
at org.junit.internal.runners.statements.InvokeMethod.evaluate
(source)
at org.junit.internal.runners.statements.RunBefores.evaluate
(source)
at org.junit.internal.runners.statements.RunAfters.evaluate
(source)
at org.junit.runners.ParentRunner.runLeaf
(source)
at org.junit.runners.BlockJUnit4ClassRunner.runChild
(source)
at org.junit.runners.BlockJUnit4ClassRunner.runChild
(source)
at org.junit.runners.ParentRunner$3.run
at org.junit.runners.ParentRunner$1.schedule
at org.junit.runners.ParentRunner.runChildren
(source)
at org.junit.runners.ParentRunner.access$000
at org.junit.runners.ParentRunner$2.evaluate
at org.junit.runners.ParentRunner.run
(source)
29 frames hidden

Typical Exception Messages

  1. Self-suppression not permitted

Solution

JaviRpo, 3 weeks ago

The problem shown in this pattern is related to Commons VFS (version <2.1) library.

Upgrade your Commons VFS library versión to solve the problem.

External results for this pattern (3)

  1. Bernd Eckenfelsvia Apache's JIRA Issue Tracker4 months ago
    Self-suppression not permitted
    Show stack trace
  2. Schalk Cronjévia commons-dev4 months ago
    Self-suppression not permitted
    Show stack trace
  3. Unknown authorvia apache.org2 years ago
    Self-suppression not permitted
    Show stack trace