Interesting, thanks for posting the results of your investigation.
If i remember correctly, the zip implementation can vary dependent on
the JDK distribution. It does make sense that the JDK provided by arch
is using the system's zlib since they have control over it. But some
(most?) other vendors might already ship with zlib with the JDK and wont
be affected.
regards,
michael
On 13.04.22 17:33, Jens Pelzetter wrote:
Hello everyone,
if anybody is interested: The problem is caused on Arch Linux by the
recent update of zlib from zlib 1.2.11 to zlib 1.2.12. This native
library is used by the JDK internally for calculating CRC sums.
More information:
https://bugs.archlinux.org/task/74371?string=zlib&project=1&type%5B0%5D=&sev%5B0%5D=&pri%5B0%5D=&due%5B0%5D=&reported%5B0%5D=&cat%5B0%5D=&status%5B0%5D=open&percent%5B0%5D=&opened=&dev=&closed=&duedatefrom=&duedateto=&changedfrom=&changedto=&openedfrom=&openedto=&closedfrom=&closedto=
https://github.com/madler/zlib/issues/634
https://github.com/madler/zlib/issues/426
Downgrading zlib to 1.2.11 solves the problem.
Best
Jens
On 04.04.22 08:16, Jens Pelzetter wrote:
Hello all,
for some reason Netbeans is reporting CRC errors for a lot of
dependencies, for example several Jakarta EE things or Apache Shiro.
The imports for classes from these dependencies are marked as errors,
with the message (${classname} etc are only placeholders):
cannot access ${classname}
bad class file: ${classname}.class
unable to access file: ${full_qualified_name_of_class}: invalid entry
CRC (expected ... but got ... )
Please remove or make sure it appears in the correct subdirectory of
the classpath
This happens only on my desktop (Arch Linux), on almost identical
configured Notebook everything is still fine. Tested with both the
Arch Linux package, and the official download from netbeans.apache.org.
Java Version is
openjdk version "11.0.15" 2022-04-19
OpenJDK Runtime Environment (build 11.0.15+3)
OpenJDK 64-Bit Server VM (build 11.0.15+3, mixed mode)
Compiling the affected projects with Maven on the commandline (or
from Netbeans) still works fine.
What I already tried:
* Deleting the Netbeans Cache
* Downloading the dependencies again
* Using a fresh Netbeans profile
Any ideas what may causes this problem and how to fix it? If you need
more information please let me know.
Best
Jens
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists