[ 
https://issues.apache.org/jira/browse/OFBIZ-12726?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17803255#comment-17803255
 ] 

Ioan Eugen Stan commented on OFBIZ-12726:
-----------------------------------------

I did a bit of research and found out that ./gradlew "ofbiz --test 
suitename=entitytests"  fails.

It might be the thing that fails the other tests.

I believe it's caused because xstream does not work with Java 17: 
[https://github.com/x-stream/xstream/issues/262] .

The recommended way to fix it is to do:
{color:#6aab73}'--add-opens=java.base/java.util=ALL-UNNAMED' 
{color}{color:#7a7e85}// OFBIZ-12726{color}
which we already do.

There does not seem to be a way around this other than replaxing xstream with 
something else.

So I believe this issue can be closed and we can move forward.

We could open a new issue, related to this where we can consider dropping 
xstream in place of something else.

But I guess we can do that at a later time.

No need to change if we have a workaround that seems ok so far.

cc [~jleroux] , [~pgil]  wdyt?

 

```
| |No converter available ---- Debugging information ---- message : No 
converter available type : java.util.Collections$UnmodifiableMap converter : 
com.thoughtworks.xstream.converters.reflection.ReflectionConverter message[1] : 
Unable to make field private static final long 
java.util.Collections$UnmodifiableMap.serialVersionUID accessible: module 
java.base does not "opens java.util" to unnamed module @75eeccf5 
------------------------------- 
 
```
{{com.thoughtworks.xstream.converters.ConversionException: No converter 
available                        }}
{{                        ---- Debugging information ----                       
 }}
{{                        message             : No converter available          
              }}
{{                        type                : 
java.util.Collections$UnmodifiableMap                        }}
{{                        converter           : 
com.thoughtworks.xstream.converters.reflection.ReflectionConverter              
          }}
{{                        message[1]          : Unable to make field 
private static final long 
java.util.Collections$UnmodifiableMap.serialVersionUID accessible: 
module java.base does not "opens java.util" to unnamed module @75eeccf5         
               }}
```|

> Running integration tests under Gradle 7.6 and JDK 17 fails
> -----------------------------------------------------------
>
>                 Key: OFBIZ-12726
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-12726
>             Project: OFBiz
>          Issue Type: Sub-task
>          Components: ALL COMPONENTS
>    Affects Versions: 22.01.01
>            Reporter: Jacques Le Roux
>            Assignee: Jacques Le Roux
>            Priority: Blocker
>         Attachments: image-2023-12-05-16-52-38-822.png, 
> image-2023-12-12-18-10-16-016.png, image-2024-01-04-18-27-42-512.png, 
> image-2024-01-04-18-28-27-910.png
>
>
> Following our discussion at 
> https://lists.apache.org/thread/kr4v21lxx493byzgpdrzfbz3whhbm82m I ran the 
> integration tests and found that we currently have 322 errors and 190 
> failures :/ 
> It's a blocker for releasing...



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to