CodeSource does not work in windows using jar files

Description

I see this as major issue, since for example in my case the application and the spring context using hibernate search won't start at all, just because there is a jar with an annotated entity on the classpath.

The following test method reproduces the problem on windows (Insert this method as org.hibernate.search.util.common.jar.impl.CodeSourceTest#initFileSystem_windowsJar):

When it is run with 6.2.1-Final, it throws the following exception:

The fix is the following:

Activity

Show:

Yoann Rodière September 25, 2023 at 6:57 AM

Thanks ! We’ll release shortly.

Gábor Lipták September 24, 2023 at 11:02 AM
Edited

@Yoann I can confirm, that the fix works for me. The spring context is starting up correctly. Tested with 6.2.2-SNAPSHOT.

Yoann Rodière September 22, 2023 at 3:40 PM

a fix has been merged into the 6.2 branch a few minutes ago, so a version 6.2.2-SNAPSHOT should be available with the fix in a few hours, worst case tomorrow.

We have set up a Windows build to test this on the main branch, but unfortunately not yet on 6.2. If you have time, it would be great if you could confirm that 6.2.2-SNAPSHOT fixes the issue for you.

Using Hibernate Search snapshots in your application requires extra configuration, you can find instructions here.

Marko Bekhta September 15, 2023 at 10:37 AM

Hey, thanks for reporting the issue; we’ll take a look into it.

Gábor Lipták September 14, 2023 at 3:38 PM
Edited

As a side note: a lot of tests in CodeSourceTest class are broken on windows. Maybe it would be a good idea to make builds also on windows.

Fixed

Details

Assignee

Reporter

Sprint

Affects versions

Priority

Created September 14, 2023 at 3:30 PM
Updated October 3, 2023 at 8:00 AM
Resolved September 22, 2023 at 3:36 PM