You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@curator.apache.org by Francesco Chicchiriccò <il...@apache.org> on 2024/06/17 12:33:26 UTC

Maven error after upgrade to 5.7.0

Hi there,
after upgrading Curator to 5.7.0, I am getting the following error when running the Maven build:

[ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 2
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?

FYI this is the only test class with org.apache.curator.test.* imports:

https://github.com/apache/syncope/blob/master/wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java

For the moment, I am stick with 5.6.0 and all works as expected.

Does this ring any bell? Thank you.

Regards.

-- 
Francesco Chicchiriccò

Tirasa - Open Source Excellence
http://www.tirasa.net/

Member at The Apache Software Foundation
Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
http://home.apache.org/~ilgrosso/


Re: Maven error after upgrade to 5.7.0

Posted by Francesco Chicchiriccò <il...@apache.org>.
Thank you very much for your pointer: it seems that for some reason, while curator-framework was set to 5.7.0, curator-client remained stuck at 5.5.0.

Problem solved now.
Regards.

On 2024/06/19 14:47:47 Kezhu Wang wrote:
> Hi,
> 
> Which job failed with the above message ? I did not find one through
> the above pr.
> 
> I found following error in
> https://github.com/apache/syncope/actions/runs/9555779178/job/26339689219
> 
> ```java
> Caused by: org.springframework.beans.BeanInstantiationException:
> Failed to instantiate [org.apache.curator.framework.CuratorFramework]:
> Factory method 'curatorFramework' threw exception with message:
> org/apache/curator/utils/ZookeeperCompatibility
> 5362 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:177)
> 5363 at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
> 5364 ... 70 more
> 5365Caused by: java.lang.NoClassDefFoundError:
> org/apache/curator/utils/ZookeeperCompatibility
> 5366 at org.apache.curator.framework.CuratorFrameworkFactory$Builder.<init>(CuratorFrameworkFactory.java:178)
> 5367 at org.apache.curator.framework.CuratorFrameworkFactory$Builder.<init>(CuratorFrameworkFactory.java:154)
> ```
> 
> `ZookeeperCompatibility` is new in 5.7.0 and located in
> `curator-client`. I confirmed that `curator-client-5.7.0.jar` contains
> this class. So, I guess the job is using `curator-framework-5.7.0` and
> an old version of `curator-client`.
> 
> Best,
> Kezhu Wang
> 
> On Tue, Jun 18, 2024 at 5:06 PM Francesco Chicchiriccò
> <il...@apache.org> wrote:
> >
> > FYI: https://github.com/apache/syncope/pull/752
> >
> > On 2024/06/17 12:33:26 Francesco Chicchiriccò wrote:
> > > Hi there,
> > > after upgrading Curator to 5.7.0, I am getting the following error when running the Maven build:
> > >
> > > [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> > > [ERROR] Error occurred in starting fork, check output in log
> > > [ERROR] Process Exit Code: 2
> > > [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> > >
> > > FYI this is the only test class with org.apache.curator.test.* imports:
> > >
> > > https://github.com/apache/syncope/blob/master/wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java
> > >
> > > For the moment, I am stick with 5.6.0 and all works as expected.
> > >
> > > Does this ring any bell? Thank you.
> > >
> > > Regards.
> > >
> > > --
> > > Francesco Chicchiriccò
> > >
> > > Tirasa - Open Source Excellence
> > > http://www.tirasa.net/
> > >
> > > Member at The Apache Software Foundation
> > > Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> > > http://home.apache.org/~ilgrosso/
> > >
> > >
> 

Re: Maven error after upgrade to 5.7.0

Posted by Kezhu Wang <ke...@gmail.com>.
Hi,

Which job failed with the above message ? I did not find one through
the above pr.

I found following error in
https://github.com/apache/syncope/actions/runs/9555779178/job/26339689219

```java
Caused by: org.springframework.beans.BeanInstantiationException:
Failed to instantiate [org.apache.curator.framework.CuratorFramework]:
Factory method 'curatorFramework' threw exception with message:
org/apache/curator/utils/ZookeeperCompatibility
5362 at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:177)
5363 at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:644)
5364 ... 70 more
5365Caused by: java.lang.NoClassDefFoundError:
org/apache/curator/utils/ZookeeperCompatibility
5366 at org.apache.curator.framework.CuratorFrameworkFactory$Builder.<init>(CuratorFrameworkFactory.java:178)
5367 at org.apache.curator.framework.CuratorFrameworkFactory$Builder.<init>(CuratorFrameworkFactory.java:154)
```

`ZookeeperCompatibility` is new in 5.7.0 and located in
`curator-client`. I confirmed that `curator-client-5.7.0.jar` contains
this class. So, I guess the job is using `curator-framework-5.7.0` and
an old version of `curator-client`.

Best,
Kezhu Wang

On Tue, Jun 18, 2024 at 5:06 PM Francesco Chicchiriccò
<il...@apache.org> wrote:
>
> FYI: https://github.com/apache/syncope/pull/752
>
> On 2024/06/17 12:33:26 Francesco Chicchiriccò wrote:
> > Hi there,
> > after upgrading Curator to 5.7.0, I am getting the following error when running the Maven build:
> >
> > [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> > [ERROR] Error occurred in starting fork, check output in log
> > [ERROR] Process Exit Code: 2
> > [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> >
> > FYI this is the only test class with org.apache.curator.test.* imports:
> >
> > https://github.com/apache/syncope/blob/master/wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java
> >
> > For the moment, I am stick with 5.6.0 and all works as expected.
> >
> > Does this ring any bell? Thank you.
> >
> > Regards.
> >
> > --
> > Francesco Chicchiriccò
> >
> > Tirasa - Open Source Excellence
> > http://www.tirasa.net/
> >
> > Member at The Apache Software Foundation
> > Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> > http://home.apache.org/~ilgrosso/
> >
> >

Re: Maven error after upgrade to 5.7.0

Posted by Francesco Chicchiriccò <il...@apache.org>.
FYI: https://github.com/apache/syncope/pull/752

On 2024/06/17 12:33:26 Francesco Chicchiriccò wrote:
> Hi there,
> after upgrading Curator to 5.7.0, I am getting the following error when running the Maven build:
> 
> [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> [ERROR] Error occurred in starting fork, check output in log
> [ERROR] Process Exit Code: 2
> [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
> 
> FYI this is the only test class with org.apache.curator.test.* imports:
> 
> https://github.com/apache/syncope/blob/master/wa/starter/src/test/java/org/apache/syncope/wa/starter/ZookeeperTestingServer.java
> 
> For the moment, I am stick with 5.6.0 and all works as expected.
> 
> Does this ring any bell? Thank you.
> 
> Regards.
> 
> -- 
> Francesco Chicchiriccò
> 
> Tirasa - Open Source Excellence
> http://www.tirasa.net/
> 
> Member at The Apache Software Foundation
> Syncope, Cocoon, Olingo, CXF, OpenJPA, PonyMail
> http://home.apache.org/~ilgrosso/
> 
>