B4J Question malformed input for jdeps

rboeck

Well-Known Member
Licensed User
Longtime User
I am searching for hours how to handle a problem with b4jpackager; my app compiles without problems. But when i use packing, i get this logfile:
B4X:
B4JPackager11 Version 1.21
Exe name: result.exe
InputJar: C:\B4J\MobilCRM Desktop CC\Objects\result.jar
Running: C:\B4J\B4JPackager11_1.21\Objects\temp\FindDosPath.exe
Package name: mobilcrm.cc
Running: C:\Java jdk-14.0.1\bin\jdeps
Exception in thread "main" java.lang.IllegalArgumentException: malformed input off : 6151, length : 1
    at java.base/java.lang.StringCoding.throwMalformed(StringCoding.java:698)
    at java.base/java.lang.StringCoding.decodeUTF8_0(StringCoding.java:885)
    at java.base/java.lang.StringCoding.newStringUTF8NoRepl(StringCoding.java:978)
    at java.base/java.lang.System$2.newStringUTF8NoRepl(System.java:2270)
    at java.base/java.util.zip.ZipCoder$UTF8.toString(ZipCoder.java:60)
    at java.base/java.util.zip.ZipFile.getZipEntry(ZipFile.java:663)
    at java.base/java.util.zip.ZipFile.lambda$stream$1(ZipFile.java:640)
    at java.base/java.util.zip.ZipFile$EntrySpliterator.tryAdvance(ZipFile.java:571)
    at java.base/java.util.Spliterator.forEachRemaining(Spliterator.java:326)
    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 jdk.jdeps/com.sun.tools.jdeps.ClassFileReader$JarFileReader.scan(ClassFileReader.java:329)
    at jdk.jdeps/com.sun.tools.jdeps.ClassFileReader.entries(ClassFileReader.java:114)
    at jdk.jdeps/com.sun.tools.jdeps.Archive.contains(Archive.java:95)
    at jdk.jdeps/com.sun.tools.jdeps.JdepsConfiguration$Builder.addRoot(JdepsConfiguration.java:495)
    at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.buildConfig(JdepsTask.java:597)
    at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:557)
    at jdk.jdeps/com.sun.tools.jdeps.JdepsTask.run(JdepsTask.java:533)
    at jdk.jdeps/com.sun.tools.jdeps.Main.main(Main.java:49)
Caused by: java.nio.charset.MalformedInputException: Input length = 1
    ... 22 more

I tried all versions of java 8/32 8/64 11 and 14; i tried b4j packager 1.5 for java 8, standalone and integrated. I have a nearly identical app, which i can package without problems.
I renamed my jar file to a zip file and tried to discover some wrong names etc. but without success. How can i find the source of this problem?
 

rboeck

Well-Known Member
Licensed User
Longtime User
Yes, there was a non used file inside with the german word for link: 'verknüpfung', which is made by the explorer, when you link to a file. I deleted it and it worked!

Thanks!
 
Upvote 0
Top