java.lang.IllegalArgumentException during install
See original GitHub issueVersion : update4j@1.5.4 Plateform: Windows 10
During a business application install process, an IllegalArgumentException is thrown if one of the files to be installed is a zip archive. Here’s the full stacktrace :
Exception in thread "main" java.lang.IllegalArgumentException
at jdk.zipfs/jdk.nio.zipfs.ZipPath.relativize(ZipPath.java:230)
at org.update4j.Archive.lambda$load$1(Archive.java:69)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:177)
at java.base/java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:195)
at java.base/java.util.Iterator.forEachRemaining(Iterator.java:133)
at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
at org.update4j.Archive.load(Archive.java:81)
at org.update4j.Archive.read(Archive.java:37)
at org.update4j.service.DefaultBootstrap.updateFirst(DefaultBootstrap.java:211)
at org.update4j.service.DefaultBootstrap.main(DefaultBootstrap.java:147)
at org.update4j.Bootstrap.start(Bootstrap.java:297)
at org.update4j.Bootstrap.start(Bootstrap.java:280)
at org.update4j.Bootstrap.start(Bootstrap.java:182)
at org.update4j.Bootstrap.main(Bootstrap.java:113)
Steps to reproduce :
- Create a dummy archive with some files in it
- Create a config file referencing this file for installation like
<file uri="file:/C:/.../dummy.zip" size="dummy-size" checksum="dummy-checksum"/>
- Launch install with command line
java -jar update4j-1.5.4.jar --remote "file:/C:/.../config.xml"
This is working fine with update4j@1.4.5
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (5 by maintainers)
Top Results From Across the Web
"java.lang.IllegalArgumentException: System memory ...
After installing Java 8 32 bits on my computer to perform an unrelated task, I get the above exception when running mvn install...
Read more >Export to Android 8.0: java.lang.IllegalArgumentException ...
I'm trying to export empty project and run on android device. ... IllegalArgumentException: Unknown package - during installation #23111.
Read more >IllegalArgumentException during install of extensions
While installing extensions for knime-executor on a KNIME server via CLI following Exception is thrown !ENTRY org.eclipse.equinox.p2.core 4 ...
Read more >IllegalArgumentException (Java Platform SE 7 )
Constructs a new exception with the specified detail message and cause. Note that the detail message associated with cause is not automatically incorporated...
Read more >Installation fails with "java.lang.IllegalArgumentException
For the medium installation fill in the next values for multiple NFS mounts. Application run failed org.springframework.beans.factory.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
My gut tells me it’s a bug in zipfs. I’ll investigate it soon
This issue was brought up again in #116. It looks like a bug indeed in zipfs and was probably fixed in 12