question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

java.lang.IllegalArgumentException during install

See original GitHub issue

Version : 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 :

  1. Create a dummy archive with some files in it
  2. Create a config file referencing this file for installation like
<file uri="file:/C:/.../dummy.zip" size="dummy-size" checksum="dummy-checksum"/>
  1. 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:closed
  • Created 3 years ago
  • Comments:6 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
mordechaimcommented, Oct 7, 2020

My gut tells me it’s a bug in zipfs. I’ll investigate it soon

0reactions
mordechaimcommented, Oct 21, 2020

This issue was brought up again in #116. It looks like a bug indeed in zipfs and was probably fixed in 12

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found