You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by Mike Hummel <mh...@mhus.de> on 2020/06/10 19:38:48 UTC

Building apache failed

Hello,

I try to build karaf but it's not working:


[INFO] -------------------------------------------------------
[INFO]  T E S T S
[INFO] -------------------------------------------------------
[INFO] Running org.apache.karaf.jpm.ProcessTest
/usr/lib/jvm/java-11-openjdk-amd64/bin/java
Executing: "/usr/lib/jvm/java-11-openjdk-amd64/bin/java" -Dprop="key" -classpath /home/user/karaf/instance/target/test-classes/ org.apache.karaf.jpm.MainTest 60000
Process: 4398
Running: true
Destroying
Running: true
[ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.149 s <<< FAILURE! - in org.apache.karaf.jpm.ProcessTest
[ERROR] testCreate(org.apache.karaf.jpm.ProcessTest)  Time elapsed: 2.104 s  <<< FAILURE!
junit.framework.AssertionFailedError
	at org.apache.karaf.jpm.ProcessTest.testCreate(ProcessTest.java:57)

in

[INFO] Apache Karaf :: Instance :: Core ................... FAILURE [  7.811 s]

Environment:

user@deploy-mhus:~/karaf$ java --version
openjdk 11.0.2 2019-01-15
OpenJDK Runtime Environment (build 11.0.2+9-Debian-3bpo91)
OpenJDK 64-Bit Server VM (build 11.0.2+9-Debian-3bpo91, mixed mode, sharing)
user@deploy-mhus:~/karaf$ uname -a
Linux deploy-mhus 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 GNU/Linux
user@deploy-mhus:~/karaf$


Any ideas?

Thx and Regards,

Mike






Re: Building apache failed

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Mike,

Thanks for the update and the PR. I will take a look.

Regards
JB

> Le 14 juin 2020 à 11:07, Mike Hummel <mh...@mhus.de> a écrit :
> 
> Hi,
> 
> the problem is a combination about docker and OpenJdk. Looks like the jdk can't be destroyed at all. With OracleJdk there is no such problem.
> 
> This is a old discussion but the effect is the same:
> 
> https://askubuntu.com/questions/201303/what-is-a-defunct-process-and-why-doesnt-it-get-killed <https://askubuntu.com/questions/201303/what-is-a-defunct-process-and-why-doesnt-it-get-killed>
> 
> This means 'ps -p' returns a process but the process is a zombi and isRunning() returns true. But isn't. 
> 
> I did a fix by testing the process status:
> 
> https://github.com/apache/karaf/pull/1136 <https://github.com/apache/karaf/pull/1136>
> 
> cu
> Mike
> 
> 
>> On 12. Jun 2020, at 11:11, Mike Hummel <mh@mhus.de <ma...@mhus.de>> wrote:
>> 
>> Hi,
>> 
>> after looking under the hat I found some other results.
>> 
>> First I did a mistake: JPM is not package - it's java process management. 
>> 
>> On mac with OpenJDK it's passing the test. Maybe it's related to the docker environment. I will try to debug the test inside the container.
>> 
>> I created the ticket KARAF-6764 <https://issues.apache.org/jira/browse/KARAF-6764>
>>  for it.
>> 
>> Regards,
>> Mike
>> 
>> 
>>> On 11. Jun 2020, at 21:11, Mike Hummel <mh@mhus.de <ma...@mhus.de>> wrote:
>>> 
>>> Thx, 
>>> 
>>> I could create a jira ticket and add the fix by skipping the test if jpm not exists. 
>>> 
>>> Would be nice if you let me try it.
>>> 
>>> 
>>>> On 11. Jun 2020, at 18:35, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>> 
>>>> OK, it’s what I thought as OpenJDK doesn’t include JPM by default.
>>>> 
>>>> Anyway, it’s fair to have building passing with OpenJDK. So I will fix that.
>>>> 
>>>> Sorry for the inconvenience.
>>>> 
>>>> Regards
>>>> JB
>>>> 
>>>>> Le 11 juin 2020 à 14:51, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>>>> 
>>>>> hmm ... Since licence change in 2019 I'm not using OracleJdk any more. As background: In most companies it's no more allowed to use OracleJdk, so it's useless to work with it any more.
>>>>> 
>>>>> Even there is no official docker image for OracleJdk ... 
>>>>> 
>>>>> I created a Oracle one using git clone https://github.com/oracle/docker-images.git <https://github.com/oracle/docker-images.git>
>>>>> 
>>>>> and build was successful.
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>>> On 11. Jun 2020, at 11:00, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>> 
>>>>>> Hi,
>>>>>> 
>>>>>> Any chance to test with Oracle JDK ?
>>>>>> 
>>>>>> Regards
>>>>>> JB
>>>>>> 
>>>>>>> Le 11 juin 2020 à 10:58, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>>>>>> 
>>>>>>> To be sure I tried with a newer OpenJdk version
>>>>>>> 
>>>>>>> user@deploy-mhus:~/karaf$ java --version
>>>>>>> openjdk 11.0.7 2020-04-14
>>>>>>> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
>>>>>>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
>>>>>>> 
>>>>>>> but with the same result.
>>>>>>> 
>>>>>>> I also tried to install jpm manually (I'm not familiar with JPM)
>>>>>>> 
>>>>>>> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
>>>>>>> java -jar t.jar init
>>>>>>> 
>>>>>>> And its possible to use the command 'jpm'
>>>>>>> 
>>>>>>> Without success.
>>>>>>> 
>>>>>>> 
>>>>>>>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>>>> 
>>>>>>>> JPM
>>>>>>> 
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
> 


Re: Building apache failed

Posted by Mike Hummel <mh...@mhus.de>.
Hi,

the problem is a combination about docker and OpenJdk. Looks like the jdk can't be destroyed at all. With OracleJdk there is no such problem.

This is a old discussion but the effect is the same:

https://askubuntu.com/questions/201303/what-is-a-defunct-process-and-why-doesnt-it-get-killed

This means 'ps -p' returns a process but the process is a zombi and isRunning() returns true. But isn't.

I did a fix by testing the process status:

https://github.com/apache/karaf/pull/1136

cu
Mike


> On 12. Jun 2020, at 11:11, Mike Hummel <mh...@mhus.de> wrote:
> 
> Hi,
> 
> after looking under the hat I found some other results.
> 
> First I did a mistake: JPM is not package - it's java process management.
> 
> On mac with OpenJDK it's passing the test. Maybe it's related to the docker environment. I will try to debug the test inside the container.
> 
> I created the ticket KARAF-6764 <https://issues.apache.org/jira/browse/KARAF-6764>
>  for it.
> 
> Regards,
> Mike
> 
> 
>> On 11. Jun 2020, at 21:11, Mike Hummel <mh@mhus.de <ma...@mhus.de>> wrote:
>> 
>> Thx,
>> 
>> I could create a jira ticket and add the fix by skipping the test if jpm not exists.
>> 
>> Would be nice if you let me try it.
>> 
>> 
>>> On 11. Jun 2020, at 18:35, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>> 
>>> OK, it’s what I thought as OpenJDK doesn’t include JPM by default.
>>> 
>>> Anyway, it’s fair to have building passing with OpenJDK. So I will fix that.
>>> 
>>> Sorry for the inconvenience.
>>> 
>>> Regards
>>> JB
>>> 
>>>> Le 11 juin 2020 à 14:51, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>>> 
>>>> hmm ... Since licence change in 2019 I'm not using OracleJdk any more. As background: In most companies it's no more allowed to use OracleJdk, so it's useless to work with it any more.
>>>> 
>>>> Even there is no official docker image for OracleJdk ...
>>>> 
>>>> I created a Oracle one using git clone https://github.com/oracle/docker-images.git <https://github.com/oracle/docker-images.git>
>>>> 
>>>> and build was successful.
>>>> 
>>>> 
>>>> 
>>>> 
>>>>> On 11. Jun 2020, at 11:00, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>> 
>>>>> Hi,
>>>>> 
>>>>> Any chance to test with Oracle JDK ?
>>>>> 
>>>>> Regards
>>>>> JB
>>>>> 
>>>>>> Le 11 juin 2020 à 10:58, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>>>>> 
>>>>>> To be sure I tried with a newer OpenJdk version
>>>>>> 
>>>>>> user@deploy-mhus:~/karaf$ java --version
>>>>>> openjdk 11.0.7 2020-04-14
>>>>>> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
>>>>>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
>>>>>> 
>>>>>> but with the same result.
>>>>>> 
>>>>>> I also tried to install jpm manually (I'm not familiar with JPM)
>>>>>> 
>>>>>> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
>>>>>> java -jar t.jar init
>>>>>> 
>>>>>> And its possible to use the command 'jpm'
>>>>>> 
>>>>>> Without success.
>>>>>> 
>>>>>> 
>>>>>>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>>> 
>>>>>>> JPM
>>>>>> 
>>>>> 
>>>> 
>>> 
>> 
> 


Re: Building apache failed

Posted by Mike Hummel <mh...@mhus.de>.
Hi,

after looking under the hat I found some other results.

First I did a mistake: JPM is not package - it's java process management.

On mac with OpenJDK it's passing the test. Maybe it's related to the docker environment. I will try to debug the test inside the container.

I created the ticket KARAF-6764 <https://issues.apache.org/jira/browse/KARAF-6764>
 for it.

Regards,
Mike


> On 11. Jun 2020, at 21:11, Mike Hummel <mh...@mhus.de> wrote:
> 
> Thx,
> 
> I could create a jira ticket and add the fix by skipping the test if jpm not exists.
> 
> Would be nice if you let me try it.
> 
> 
>> On 11. Jun 2020, at 18:35, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>> 
>> OK, it’s what I thought as OpenJDK doesn’t include JPM by default.
>> 
>> Anyway, it’s fair to have building passing with OpenJDK. So I will fix that.
>> 
>> Sorry for the inconvenience.
>> 
>> Regards
>> JB
>> 
>>> Le 11 juin 2020 à 14:51, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>> 
>>> hmm ... Since licence change in 2019 I'm not using OracleJdk any more. As background: In most companies it's no more allowed to use OracleJdk, so it's useless to work with it any more.
>>> 
>>> Even there is no official docker image for OracleJdk ...
>>> 
>>> I created a Oracle one using git clone https://github.com/oracle/docker-images.git <https://github.com/oracle/docker-images.git>
>>> 
>>> and build was successful.
>>> 
>>> 
>>> 
>>> 
>>>> On 11. Jun 2020, at 11:00, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>> 
>>>> Hi,
>>>> 
>>>> Any chance to test with Oracle JDK ?
>>>> 
>>>> Regards
>>>> JB
>>>> 
>>>>> Le 11 juin 2020 à 10:58, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>>>> 
>>>>> To be sure I tried with a newer OpenJdk version
>>>>> 
>>>>> user@deploy-mhus:~/karaf$ java --version
>>>>> openjdk 11.0.7 2020-04-14
>>>>> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
>>>>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
>>>>> 
>>>>> but with the same result.
>>>>> 
>>>>> I also tried to install jpm manually (I'm not familiar with JPM)
>>>>> 
>>>>> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
>>>>> java -jar t.jar init
>>>>> 
>>>>> And its possible to use the command 'jpm'
>>>>> 
>>>>> Without success.
>>>>> 
>>>>> 
>>>>>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>>> 
>>>>>> JPM
>>>>> 
>>>> 
>>> 
>> 
> 


Re: Building apache failed

Posted by Mike Hummel <mh...@mhus.de>.
Thx,

I could create a jira ticket and add the fix by skipping the test if jpm not exists.

Would be nice if you let me try it.


> On 11. Jun 2020, at 18:35, Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
> 
> OK, it’s what I thought as OpenJDK doesn’t include JPM by default.
> 
> Anyway, it’s fair to have building passing with OpenJDK. So I will fix that.
> 
> Sorry for the inconvenience.
> 
> Regards
> JB
> 
>> Le 11 juin 2020 à 14:51, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>> 
>> hmm ... Since licence change in 2019 I'm not using OracleJdk any more. As background: In most companies it's no more allowed to use OracleJdk, so it's useless to work with it any more.
>> 
>> Even there is no official docker image for OracleJdk ...
>> 
>> I created a Oracle one using git clone https://github.com/oracle/docker-images.git <https://github.com/oracle/docker-images.git>
>> 
>> and build was successful.
>> 
>> 
>> 
>> 
>>> On 11. Jun 2020, at 11:00, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>> 
>>> Hi,
>>> 
>>> Any chance to test with Oracle JDK ?
>>> 
>>> Regards
>>> JB
>>> 
>>>> Le 11 juin 2020 à 10:58, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>>> 
>>>> To be sure I tried with a newer OpenJdk version
>>>> 
>>>> user@deploy-mhus:~/karaf$ java --version
>>>> openjdk 11.0.7 2020-04-14
>>>> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
>>>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
>>>> 
>>>> but with the same result.
>>>> 
>>>> I also tried to install jpm manually (I'm not familiar with JPM)
>>>> 
>>>> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
>>>> java -jar t.jar init
>>>> 
>>>> And its possible to use the command 'jpm'
>>>> 
>>>> Without success.
>>>> 
>>>> 
>>>>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>>> 
>>>>> JPM
>>>> 
>>> 
>> 
> 


Re: Building apache failed

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
OK, it’s what I thought as OpenJDK doesn’t include JPM by default.

Anyway, it’s fair to have building passing with OpenJDK. So I will fix that.

Sorry for the inconvenience.

Regards
JB

> Le 11 juin 2020 à 14:51, Mike Hummel <mh...@mhus.de> a écrit :
> 
> hmm ... Since licence change in 2019 I'm not using OracleJdk any more. As background: In most companies it's no more allowed to use OracleJdk, so it's useless to work with it any more.
> 
> Even there is no official docker image for OracleJdk ... 
> 
> I created a Oracle one using git clone https://github.com/oracle/docker-images.git <https://github.com/oracle/docker-images.git>
> 
> and build was successful.
> 
> 
> 
> 
>> On 11. Jun 2020, at 11:00, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>> 
>> Hi,
>> 
>> Any chance to test with Oracle JDK ?
>> 
>> Regards
>> JB
>> 
>>> Le 11 juin 2020 à 10:58, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>>> 
>>> To be sure I tried with a newer OpenJdk version
>>> 
>>> user@deploy-mhus:~/karaf$ java --version
>>> openjdk 11.0.7 2020-04-14
>>> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
>>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
>>> 
>>> but with the same result.
>>> 
>>> I also tried to install jpm manually (I'm not familiar with JPM)
>>> 
>>> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
>>> java -jar t.jar init
>>> 
>>> And its possible to use the command 'jpm'
>>> 
>>> Without success.
>>> 
>>> 
>>>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>>> 
>>>> JPM
>>> 
>> 
> 


Re: Building apache failed

Posted by Mike Hummel <mh...@mhus.de>.
hmm ... Since licence change in 2019 I'm not using OracleJdk any more. As background: In most companies it's no more allowed to use OracleJdk, so it's useless to work with it any more.

Even there is no official docker image for OracleJdk ...

I created a Oracle one using git clone https://github.com/oracle/docker-images.git

and build was successful.




> On 11. Jun 2020, at 11:00, Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
> 
> Hi,
> 
> Any chance to test with Oracle JDK ?
> 
> Regards
> JB
> 
>> Le 11 juin 2020 à 10:58, Mike Hummel <mh@mhus.de <ma...@mhus.de>> a écrit :
>> 
>> To be sure I tried with a newer OpenJdk version
>> 
>> user@deploy-mhus:~/karaf$ java --version
>> openjdk 11.0.7 2020-04-14
>> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
>> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
>> 
>> but with the same result.
>> 
>> I also tried to install jpm manually (I'm not familiar with JPM)
>> 
>> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
>> java -jar t.jar init
>> 
>> And its possible to use the command 'jpm'
>> 
>> Without success.
>> 
>> 
>>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>>> 
>>> JPM
>> 
> 


Re: Building apache failed

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi,

Any chance to test with Oracle JDK ?

Regards
JB

> Le 11 juin 2020 à 10:58, Mike Hummel <mh...@mhus.de> a écrit :
> 
> To be sure I tried with a newer OpenJdk version
> 
> user@deploy-mhus:~/karaf$ java --version
> openjdk 11.0.7 2020-04-14
> OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
> OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)
> 
> but with the same result.
> 
> I also tried to install jpm manually (I'm not familiar with JPM)
> 
> curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar <https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar> >t.jar
> java -jar t.jar init
> 
> And its possible to use the command 'jpm'
> 
> Without success.
> 
> 
>> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb@nanthrax.net <ma...@nanthrax.net>> wrote:
>> 
>> JPM
> 


Re: Building apache failed

Posted by Mike Hummel <mh...@mhus.de>.
To be sure I tried with a newer OpenJdk version

user@deploy-mhus:~/karaf$ java --version
openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment 18.9 (build 11.0.7+10)
OpenJDK 64-Bit Server VM 18.9 (build 11.0.7+10, mixed mode)

but with the same result.

I also tried to install jpm manually (I'm not familiar with JPM)

curl https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.jpm.run/3.5.0/biz.aQute.jpm.run-3.5.0.jar >t.jar
java -jar t.jar init

And its possible to use the command 'jpm'

Without success.


> On 11. Jun 2020, at 07:15, Jean-Baptiste Onofre <jb...@nanthrax.net> wrote:
> 
> JPM


Re: Building apache failed

Posted by Jean-Baptiste Onofre <jb...@nanthrax.net>.
Hi Mike,

Jenkins is happy https://builds.apache.org/view/K/view/Karaf/job/karaf-master/ <https://builds.apache.org/view/K/view/Karaf/job/karaf-master/> and it works on my machine with:

java version "11.0.6" 2020-01-14 LTS
Java(TM) SE Runtime Environment 18.9 (build 11.0.6+8-LTS)
Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.6+8-LTS, mixed mode)

Result:

[INFO] Running org.apache.karaf.jpm.ProcessTest
/Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin/java
Executing: "/Library/Java/JavaVirtualMachines/jdk-11.0.6.jdk/Contents/Home/bin/java" -Dprop="key" -classpath /Users/jbonofre/Workspace/karaf/instance/target/test-classes/ org.apache.karaf.jpm.MainTest 60000
Process: 75717
Running: true
Destroying
Running: false
[INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.129 s - in org.apache.karaf.jpm.ProcessTest

The difference is that I’m using Oracle JDK (not OpenJDK). I don’t remember if OpenJDK includes JPM by default.

Let me try with OpenJDK.

Regards
JB

> Le 10 juin 2020 à 21:38, Mike Hummel <mh...@mhus.de> a écrit :
> 
> Hello,
> 
> I try to build karaf but it's not working:
> 
> 
> [INFO] -------------------------------------------------------
> [INFO]  T E S T S
> [INFO] -------------------------------------------------------
> [INFO] Running org.apache.karaf.jpm.ProcessTest
> /usr/lib/jvm/java-11-openjdk-amd64/bin/java
> Executing: "/usr/lib/jvm/java-11-openjdk-amd64/bin/java" -Dprop="key" -classpath /home/user/karaf/instance/target/test-classes/ org.apache.karaf.jpm.MainTest 60000
> Process: 4398
> Running: true
> Destroying
> Running: true
> [ERROR] Tests run: 1, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.149 s <<< FAILURE! - in org.apache.karaf.jpm.ProcessTest
> [ERROR] testCreate(org.apache.karaf.jpm.ProcessTest)  Time elapsed: 2.104 s  <<< FAILURE!
> junit.framework.AssertionFailedError
> 	at org.apache.karaf.jpm.ProcessTest.testCreate(ProcessTest.java:57)
> 
> in
> 
> [INFO] Apache Karaf :: Instance :: Core ................... FAILURE [  7.811 s]
> 
> Environment:
> 
> user@deploy-mhus:~/karaf$ java --version
> openjdk 11.0.2 2019-01-15
> OpenJDK Runtime Environment (build 11.0.2+9-Debian-3bpo91)
> OpenJDK 64-Bit Server VM (build 11.0.2+9-Debian-3bpo91, mixed mode, sharing)
> user@deploy-mhus:~/karaf$ uname -a
> Linux deploy-mhus 3.10.0-1062.9.1.el7.x86_64 #1 SMP Fri Dec 6 15:49:49 UTC 2019 x86_64 GNU/Linux
> user@deploy-mhus:~/karaf$
> 
> 
> Any ideas?
> 
> Thx and Regards,
> 
> Mike
> 
> 
> 
> 
>