You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@directory.apache.org by Daan Hoogland <da...@gmail.com> on 2019/06/12 12:29:53 UTC

Re: build issues on macos 10.14

sorry to get back to this; I think it succeeding before was due to mvn
clean not doing a thorough job (or me forgetting to run it.
Can you people comment on my recent endeavours, please?

openjdk64-1.8.0.212 and openjdk64-11.0.3 both don't pass all tests at once
giving different results
with jdk 11 KeyDerivationServiceIT is not passing on the cli (with maven)
$ mvn clean install
...
[ERROR] Failures:
[ERROR]   KeyDerivationServiceIT.testAddDerivedKeys:269->checkKeyNumber:182
Unkown JVM: Eclipse OpenJ9
[ERROR]
KeyDerivationServiceIT.testModifyDerivedKeys:346->checkKeyNumber:182 Unkown
JVM: Eclipse OpenJ9
[ERROR]
KeyDerivationServiceIT.testModifyDerivedKeysWithoutPrincipalName:485->checkKeyNumber:182
Unkown JVM: Eclipse OpenJ9
[INFO]
[ERROR] Tests run: 523, Failures: 3, Errors: 0, Skipped: 18

$ mvn -version
Listening for transport dt_socket at address: 8787
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555;
2019-04-04T21:00:29+02:00)
Maven home: /usr/local/Cellar/maven/3.6.1/libexec
Java version: 11.0.3, vendor: Eclipse OpenJ9, runtime:
/Library/Java/JavaVirtualMachines/adoptopenjdk-11-openj9.jdk/Contents/Home
Default locale: utf_US, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.5", arch: "amd64", family: "mac"

and in intellij, CertificateUtil isnot compiling because it does not know
sun.security.x509 ???

in 1.8

$ mvn -version
OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=800m; support
was removed in 8.0
Listening for transport dt_socket at address: 8787
Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555;
2019-04-04T21:00:29+02:00)
Maven home: /usr/local/Cellar/maven/3.6.1/libexec
Java version: 1.8.0_212, vendor: AdoptOpenJDK, runtime:
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
Default locale: en_NL, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
some other tests is failing:

[ERROR] Errors:
[ERROR]   LdapConnectionTest.testBindAndCloseLoop:149 » IllegalState The
connector is be...
[INFO]
[ERROR] Tests run: 189, Failures: 0, Errors: 1, Skipped: 11

after alternating jvm (just to see if that was my prior 'error') I get to
ApacheDS Service which fails to create an ÜberJar

[ERROR] Please refer to
/Users/dahn/apache/directory-server/service/target/surefire-reports for the
individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump,
[date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] The forked VM terminated without properly saying goodbye. VM crash
or System.exit called?
[ERROR] Command was /bin/sh -c cd
/Users/dahn/apache/directory-server/service &&
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java
-Xmx1024m -jar
/Users/dahn/apache/directory-server/service/target/surefire/surefirebooter8751169659152956685.jar
/Users/dahn/apache/directory-server/service/target/surefire
2019-06-12T14-24-08_517-jvmRun1 surefire1294047605614087720tmp
surefire_07367554630409192216tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] Crashed tests:
[ERROR] org.apache.directory.server.UberJarMainTest
[ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The
forked VM terminated without properly saying goodbye. VM crash or
System.exit called?
[ERROR] Command was /bin/sh -c cd
/Users/dahn/apache/directory-server/service &&
/Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java
-Xmx1024m -jar
/Users/dahn/apache/directory-server/service/target/surefire/surefirebooter8751169659152956685.jar
/Users/dahn/apache/directory-server/service/target/surefire
2019-06-12T14-24-08_517-jvmRun1 surefire1294047605614087720tmp
surefire_07367554630409192216tmp
[ERROR] Error occurred in starting fork, check output in log
[ERROR] Process Exit Code: 1
[ERROR] Crashed tests:
[ERROR] org.apache.directory.server.UberJarMainTest
[ERROR] at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:670)
[ERROR] at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:283)
[ERROR] at
org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246)
[ERROR] at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1161)
[ERROR] at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1002)
[ERROR] at
org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:848)
[ERROR] at
org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
[ERROR] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
[ERROR] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
[ERROR] at
org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
[ERROR] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
[ERROR] at
org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
[ERROR] at
org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
[ERROR] at
org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
[ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
[ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
[ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
[ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
[ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
[ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[ERROR] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[ERROR] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
[ERROR] at
org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
[ERROR] at
org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
[ERROR] at
org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
[ERROR] at
org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)

also a lot of warnings like this pass by (in both cases and obviously maven
and not java related):
[WARNING] Some problems were encountered while building the effective model
for org.apache.directory.server:apacheds-i18n:bundle:2.0.0.AM26-SNAPSHOT
[WARNING] Reporting configuration should be done in <reporting> section,
not in maven-site-plugin <configuration> as reportPlugins parameter.

not sure if pictures are allowed @here but <alt="AM25 installation fails"/>
[image: image.png]
my macos version is 10.14.5


On Tue, May 21, 2019 at 6:15 PM Emmanuel Lécharny <el...@gmail.com>
wrote:

> Okie, great !
>
>
> Thanks for the feedback :-)
>
> On 21/05/2019 18:06, Daan Hoogland wrote:
> > Thanks Emmanuel,
> > I have installed a few alternatives and they work.
> > The jenv output saying 'system' was just the fact that I had not set
> > an explicit jdk version and had no JAVA_HOME.
> >
> > On Thu, May 16, 2019 at 3:43 PM Emmanuel Lécharny <elecharny@gmail.com
> > <ma...@gmail.com>> wrote:
> >
> >     HI Daan,
> >
> >
> >     We haven't tested the build with Java 9. Also note that Java 9
> >     (and 10)
> >     are now EOLed.
> >
> >
> >     I strongly suggest you also install another Java version rathert han
> >     the Oracle one, as its license has recently changed and does not
> >     allow
> >     you to run it on your machine without paying something. Please check
> >     https://adoptopenjdk.net/, this is  what I'm using on my Mac, and it
> >     works just fine.
> >
> >
> >     comments inline
> >
> >     On 16/05/2019 14:07, Daan Hoogland wrote:
> >     > H,
> >     > I am building directory server on macos 10.14.4 in order to try and
> >     > embed it in a Apache CloudStack test suit(, for now).
> >     >
> >     > I have tried 1.5.7, 2.0.0.AM25 and latest head several times.
> >     > toolchain describes itself as below. I am pretty sure the jenv
> >     > messages are not indicative of an error. Each version shows a
> >     > different error during the build and I've been looking for a
> >     correct
> >     > combination for a while now. any help is appreciated. I finally
> >     > managed to build latest head but with some local cleans and builds
> >     > (-rf options). Is there some special build requirements in terms of
> >     > JVM options that I should look at to make sure the build succeeds
> >     > without hick-ups?
> >     > Thanks in advance
> >     >
> >     > $ jenv doctor
> >     > [OK]    No JAVA_HOME set
> >     > [OK]    Java binaries in path are jenv shims
> >     > [OK]    Jenv is correctly loaded
> >     >
> >     > $ jenv version
> >     > system (set by /Users/dahn/.jenv/version)
> >
> >
> >     This is more than bizarre. When I run this command, here is what I
> >     get :
> >
> >
> >     $ jenv version
> >     1.8 (set by /Users/elecharny/.jenv/version)
> >
> >     I suspect you have something wrong set in your environment
> >
> >
> >     >
> >     > $ mvn -version
> >     > Unable to find any JVMs matching version "system".
> >     > Java HotSpot(TM) 64-Bit Server VM warning: Ignoring option
> >     > MaxPermSize; support was removed in 8.0
> >     > Listening for transport dt_socket at address: 8787
> >     > Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3;
> >     > 2018-10-24T20:41:47+02:00)
> >     > Maven home: /usr/local/Cellar/maven/3.6.0/libexec
> >     > Java version: 9, vendor: Oracle Corporation, runtime:
> >     > /Library/Java/JavaVirtualMachines/jdk-9.jdk/Contents/Home
> >     > Default locale: en_NL, platform encoding: UTF-8
> >     > OS name: "mac os x", version: "10.14.4", arch: "x86_64", family:
> >     "mac"
> >     >
> >     > -- Daan
> >
> >
> >
> > --
> > Daan
>


-- 
Daan

Re: build issues on macos 10.14

Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Jun 12, 2019 at 6:16 PM Emmanuel Lécharny <el...@gmail.com>
wrote:

>
> On 12/06/2019 17:45, Daan Hoogland wrote:
> >
> >
> >
> >     This issue should have been fixed with the latest LDAP API release
> >     (2.0.0.AM4), which is out since monday.
> >
> > so a pull of master should have worked? or do I need to update the
> > pom.xml? I see it 'still' uses 2.0.0.AM4-SNAPSHOT.
>
> I just updated the ApacheDS pom to point to 2.0.0.AM4 (something I
> should have done earlier).
>
>  great, these pass, but ...

using jdk 1.8.0.212, I get
[ERROR] Errors:
[ERROR]   AsRepDecoderTest.testDecodeFullAsRep:237 » NoSuchMethod
java.nio.ByteBuffer.po...
[ERROR]   AsRepDecoderTest.testDecodeFullAsRep2:935 » NoSuchMethod
java.nio.ByteBuffer.p...
[ERROR]   AsReqDecoderTest.testDecodeAsReqNoPaData:538 » NoSuchMethod
java.nio.ByteBuffe...
[ERROR]   AsReqDecoderTest.testDecodeFullAsReq:197 » NoSuchMethod
java.nio.ByteBuffer.po...
[ERROR]   ETypeInfo2DecoderTest.testETypeInfo2:105 » NoSuchMethod
java.nio.ByteBuffer.po...
[ERROR]   ETypeInfoDecoderTest.testETypeInfo:107 » NoSuchMethod
java.nio.ByteBuffer.posi...
[ERROR]   EncKrbCredPartDecoderTest.testEncKrbCredPart:154 » NoSuchMethod
java.nio.ByteB...
[ERROR]   EncKrbCredPartDecoderTest.testKrbCredInfoWithEachOptElement:198 »
NoSuchMethod
[ERROR]
EncTicketPartDecoderTest.testDecodeEncTicketPart:118->encodeDecodeAndTest:184
» NoSuchMethod
[ERROR]
EncTicketPartDecoderTest.testDecodeEncTicketPartWithoutRenwtillTime:137->encodeDecodeAndTest:184
» NoSuchMethod
[ERROR]
EncTicketPartDecoderTest.testDecodeEncTicketPartWithoutStartAndRenewtillTimes:128->encodeDecodeAndTest:184
» NoSuchMethod
[ERROR]   HostAddressesDecoderTest.testHostAddresses:144 » NoSuchMethod
java.nio.ByteBuf...
[ERROR]   KdcRepDecoderTest.testDecodeFullKdcRep:238 » NoSuchMethod
java.nio.ByteBuffer....
[ERROR]   KdcReqBodyDecoderTest.testDecodeFullKdcReqBody:189 » NoSuchMethod
java.nio.Byt...
[ERROR]   KdcReqDecoderTest.testDecodeFullKdcReq:197 » NoSuchMethod
java.nio.ByteBuffer....
[ERROR]   KerberosMessageDecoderTest.testDecodeKerberosMessages:274 »
NoSuchMethod java....
[ERROR]   KrbCredDecoderTest.testDecodeKrebCred:78 » NoSuchMethod
java.nio.ByteBuffer.po...
[ERROR]   KrbCredInfoDecoderTest.testKrbCredInfo:182 » NoSuchMethod
java.nio.ByteBuffer....
[ERROR]   KrbCredInfoDecoderTest.testKrbCredInfoWithEachOptElement:228 »
NoSuchMethod ja...
[ERROR]   MethodDataDecoderTest.testMethodData:111 » NoSuchMethod
java.nio.ByteBuffer.po...
[ERROR]   TgsRepDecoderTest.testDecodeFullTgsRep:237 » NoSuchMethod
java.nio.ByteBuffer....
[ERROR]   TgsReqDecoderTest.testDecodeFullTgsReq:197 » NoSuchMethod
java.nio.ByteBuffer....
[ERROR]   TgsReqDecoderTest.testDecodeFullTgsReqBadMsgType »  Unexpected
exception, expe...

whereas using 11.0.3 i get (which you kind of explained earlier):

[INFO] Running org.apache.directory.server.kerberos.KeyDerivationServiceIT
[ERROR] Tests run: 4, Failures: 3, Errors: 0, Skipped: 0, Time elapsed:
11.098 s <<< FAILURE! - in
org.apache.directory.server.kerberos.KeyDerivationServiceIT
[ERROR]
testModifyDerivedKeysWithoutPrincipalName(org.apache.directory.server.kerberos.KeyDerivationServiceIT)
 Time elapsed: 0.642 s  <<< FAILURE!
java.lang.AssertionError: Unkown JVM: Eclipse OpenJ9
at
org.apache.directory.server.kerberos.KeyDerivationServiceIT.checkKeyNumber(KeyDerivationServiceIT.java:182)
at
org.apache.directory.server.kerberos.KeyDerivationServiceIT.testModifyDerivedKeysWithoutPrincipalName(KeyDerivationServiceIT.java:485)

[ERROR]
testModifyDerivedKeys(org.apache.directory.server.kerberos.KeyDerivationServiceIT)
 Time elapsed: 0.124 s  <<< FAILURE!
java.lang.AssertionError: Unkown JVM: Eclipse OpenJ9
at
org.apache.directory.server.kerberos.KeyDerivationServiceIT.checkKeyNumber(KeyDerivationServiceIT.java:182)
at
org.apache.directory.server.kerberos.KeyDerivationServiceIT.testModifyDerivedKeys(KeyDerivationServiceIT.java:346)

[ERROR]
testAddDerivedKeys(org.apache.directory.server.kerberos.KeyDerivationServiceIT)
 Time elapsed: 0.066 s  <<< FAILURE!
java.lang.AssertionError: Unkown JVM: Eclipse OpenJ9
at
org.apache.directory.server.kerberos.KeyDerivationServiceIT.checkKeyNumber(KeyDerivationServiceIT.java:182)
at
org.apache.directory.server.kerberos.KeyDerivationServiceIT.testAddDerivedKeys(KeyDerivationServiceIT.java:269)

...


Check that you don't have a server running in Studio.
>
it was actually a failed stuck debug session in the background, sorry to
bother you with that.
I am using this, https://github.com/bkoehm/apacheds-embedded/pull/1 to try
to use ApacheDS as test ldapserver.
Is there an easy way prepared to run the server from 'source'/working
directory?


-- 
Daan

Re: build issues on macos 10.14

Posted by Emmanuel Lécharny <el...@gmail.com>.
On 12/06/2019 17:45, Daan Hoogland wrote:
>
>
>
>     This issue should have been fixed with the latest LDAP API release
>     (2.0.0.AM4), which is out since monday.
>
> so a pull of master should have worked? or do I need to update the 
> pom.xml? I see it 'still' uses 2.0.0.AM4-SNAPSHOT.

I just updated the ApacheDS pom to point to 2.0.0.AM4 (something I 
should have done earlier).


>
>
>     >
>     > after alternating jvm (just to see if that was my prior 'error')
>     I get
>     > to ApacheDS Service which fails to create an ÜberJar
>     >
>     > [ERROR] Please refer to
>     > /Users/dahn/apache/directory-server/service/target/surefire-reports
>     > for the individual test results.
>     > [ERROR] Please refer to dump files (if any exist) [date].dump,
>     > [date]-jvmRun[N].dump and [date].dumpstream.
>     > [ERROR] The forked VM terminated without properly saying
>     goodbye. VM
>     > crash or System.exit called?
>     > [ERROR] Command was /bin/sh -c cd
>     > /Users/dahn/apache/directory-server/service &&
>     >
>     /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java
>
>     > -Xmx1024m -jar
>     >
>     /Users/dahn/apache/directory-server/service/target/surefire/surefirebooter8751169659152956685.jar
>
>     > /Users/dahn/apache/directory-server/service/target/surefire
>     > 2019-06-12T14-24-08_517-jvmRun1 surefire1294047605614087720tmp
>     > surefire_07367554630409192216tmp
>     > [ERROR] Error occurred in starting fork, check output in log
>     > [ERROR] Process Exit Code: 1
>     > [ERROR] Crashed tests:
>     > [ERROR] org.apache.directory.server.UberJarMainTest
>
>
>     I wonder if you have not a running ApacheDS in the background. Can
>     you
>     check ?
>
> I have studio running, but no DS. I never succeeded at installing it. 
> I have only the native apple openldap implementation.
> Something is listening on 10389, thought and it doesn't close 
> connection on ldapsearch :(
> ```
> $ ldapsearch -H ldap://localhost:389 -D "uid=admin,ou=system" -w secret
> ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
> $ ldapsearch -H ldap://localhost:10389 -D "uid=admin,ou=system" -w secret
> ^C
> $
> ```
> will report back...
> ...
Check that you don't have a server running in Studio.



>
>     Yes, this one is benign, we need to fix that but it won't harm.
>
>
>     >
>     > not sure if pictures are allowed @here but <alt="AM25 installation
>     > fails"/>
>     > image.png
>     > my macos version is 10.14.5
>
>
>     That's because Apple now requires signed packages in order to have
>     them
>     accepted. We are working on that atm.
>
> ok, tnx.


You can probably install the binary package, which is just a shell 
script installer. That should do the trick.


In case you are still blocked, we can organized a live session, you and 
me (skype or whatever). Just let me know.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org


Re: build issues on macos 10.14

Posted by Daan Hoogland <da...@gmail.com>.
On Wed, Jun 12, 2019 at 2:41 PM Emmanuel Lécharny <el...@gmail.com>
wrote:

>
> On 12/06/2019 14:29, Daan Hoogland wrote:
> > sorry to get back to this; I think it succeeding before was due to mvn
> > clean not doing a thorough job (or me forgetting to run it.
> > Can you people comment on my recent endeavours, please?
> >
> > openjdk64-1.8.0.212 and openjdk64-11.0.3 both don't pass all tests at
> > once giving different results
> > with jdk 11 KeyDerivationServiceIT is not passing on the cli (with maven)
>
...

>
> Never tested this version.
>
>
>
> > runtime:
> >
> /Library/Java/JavaVirtualMachines/adoptopenjdk-11-openj9.jdk/Contents/Home
> > Default locale: utf_US, platform encoding: UTF-8
> > OS name: "mac os x", version: "10.14.5", arch: "amd64", family: "mac"
> >
> > and in intellij, CertificateUtil isnot compiling because it does not
> > know sun.security.x509 ???
> >
> > in 1.8
> >
> > $ mvn -version
> > OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=800m;
> > support was removed in 8.0
> > Listening for transport dt_socket at address: 8787
> > Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555;
> > 2019-04-04T21:00:29+02:00)
> > Maven home: /usr/local/Cellar/maven/3.6.1/libexec
> > Java version: 1.8.0_212, vendor: AdoptOpenJDK, runtime:
> > /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
> > Default locale: en_NL, platform encoding: UTF-8
> > OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
> > some other tests is failing:
> >
> > [ERROR] Errors:
> > [ERROR]   LdapConnectionTest.testBindAndCloseLoop:149 » IllegalState
> > The connector is be...
> > [INFO]
> > [ERROR] Tests run: 189, Failures: 0, Errors: 1, Skipped: 11
>
> This issue should have been fixed with the latest LDAP API release
> (2.0.0.AM4), which is out since monday.
>
so a pull of master should have worked? or do I need to update the pom.xml?
I see it 'still' uses 2.0.0.AM4-SNAPSHOT.


>
>
> >
> > after alternating jvm (just to see if that was my prior 'error') I get
> > to ApacheDS Service which fails to create an ÜberJar
> >
> > [ERROR] Please refer to
> > /Users/dahn/apache/directory-server/service/target/surefire-reports
> > for the individual test results.
> > [ERROR] Please refer to dump files (if any exist) [date].dump,
> > [date]-jvmRun[N].dump and [date].dumpstream.
> > [ERROR] The forked VM terminated without properly saying goodbye. VM
> > crash or System.exit called?
> > [ERROR] Command was /bin/sh -c cd
> > /Users/dahn/apache/directory-server/service &&
> >
> /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java
>
> > -Xmx1024m -jar
> >
> /Users/dahn/apache/directory-server/service/target/surefire/surefirebooter8751169659152956685.jar
>
> > /Users/dahn/apache/directory-server/service/target/surefire
> > 2019-06-12T14-24-08_517-jvmRun1 surefire1294047605614087720tmp
> > surefire_07367554630409192216tmp
> > [ERROR] Error occurred in starting fork, check output in log
> > [ERROR] Process Exit Code: 1
> > [ERROR] Crashed tests:
> > [ERROR] org.apache.directory.server.UberJarMainTest
>
>
> I wonder if you have not a running ApacheDS in the background. Can you
> check ?
>
I have studio running, but no DS. I never succeeded at installing it. I
have only the native apple openldap implementation.
Something is listening on 10389, thought and it doesn't close connection on
ldapsearch :(
```
$ ldapsearch -H ldap://localhost:389 -D "uid=admin,ou=system" -w secret
ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
$ ldapsearch -H ldap://localhost:10389 -D "uid=admin,ou=system" -w secret
^C
$
```
will report back...
...

>
> Yes, this one is benign, we need to fix that but it won't harm.
>
>
> >
> > not sure if pictures are allowed @here but <alt="AM25 installation
> > fails"/>
> > image.png
> > my macos version is 10.14.5
>
>
> That's because Apple now requires signed packages in order to have them
> accepted. We are working on that atm.
>
ok, tnx.

-- 
Daan

Re: build issues on macos 10.14

Posted by Emmanuel Lécharny <el...@gmail.com>.
On 12/06/2019 14:29, Daan Hoogland wrote:
> sorry to get back to this; I think it succeeding before was due to mvn 
> clean not doing a thorough job (or me forgetting to run it.
> Can you people comment on my recent endeavours, please?
>
> openjdk64-1.8.0.212 and openjdk64-11.0.3 both don't pass all tests at 
> once giving different results
> with jdk 11 KeyDerivationServiceIT is not passing on the cli (with maven)
> $ mvn clean install
> ...
> [ERROR] Failures:
> [ERROR] 
> KeyDerivationServiceIT.testAddDerivedKeys:269->checkKeyNumber:182 
> Unkown JVM: Eclipse OpenJ9
> [ERROR] 
> KeyDerivationServiceIT.testModifyDerivedKeys:346->checkKeyNumber:182 
> Unkown JVM: Eclipse OpenJ9
> [ERROR] 
> KeyDerivationServiceIT.testModifyDerivedKeysWithoutPrincipalName:485->checkKeyNumber:182 
> Unkown JVM: Eclipse OpenJ9
> [INFO]
> [ERROR] Tests run: 523, Failures: 3, Errors: 0, Skipped: 18
>
> $ mvn -version
> Listening for transport dt_socket at address: 8787
> Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 
> 2019-04-04T21:00:29+02:00)
> Maven home: /usr/local/Cellar/maven/3.6.1/libexec
> Java version: 11.0.3, vendor: Eclipse OpenJ9,

Never tested this version.



> runtime: 
> /Library/Java/JavaVirtualMachines/adoptopenjdk-11-openj9.jdk/Contents/Home
> Default locale: utf_US, platform encoding: UTF-8
> OS name: "mac os x", version: "10.14.5", arch: "amd64", family: "mac"
>
> and in intellij, CertificateUtil isnot compiling because it does not 
> know sun.security.x509 ???
>
> in 1.8
>
> $ mvn -version
> OpenJDK 64-Bit Server VM warning: ignoring option MaxPermSize=800m; 
> support was removed in 8.0
> Listening for transport dt_socket at address: 8787
> Apache Maven 3.6.1 (d66c9c0b3152b2e69ee9bac180bb8fcc8e6af555; 
> 2019-04-04T21:00:29+02:00)
> Maven home: /usr/local/Cellar/maven/3.6.1/libexec
> Java version: 1.8.0_212, vendor: AdoptOpenJDK, runtime: 
> /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre
> Default locale: en_NL, platform encoding: UTF-8
> OS name: "mac os x", version: "10.14.5", arch: "x86_64", family: "mac"
> some other tests is failing:
>
> [ERROR] Errors:
> [ERROR]   LdapConnectionTest.testBindAndCloseLoop:149 » IllegalState 
> The connector is be...
> [INFO]
> [ERROR] Tests run: 189, Failures: 0, Errors: 1, Skipped: 11

This issue should have been fixed with the latest LDAP API release 
(2.0.0.AM4), which is out since monday.


>
> after alternating jvm (just to see if that was my prior 'error') I get 
> to ApacheDS Service which fails to create an ÜberJar
>
> [ERROR] Please refer to 
> /Users/dahn/apache/directory-server/service/target/surefire-reports 
> for the individual test results.
> [ERROR] Please refer to dump files (if any exist) [date].dump, 
> [date]-jvmRun[N].dump and [date].dumpstream.
> [ERROR] The forked VM terminated without properly saying goodbye. VM 
> crash or System.exit called?
> [ERROR] Command was /bin/sh -c cd 
> /Users/dahn/apache/directory-server/service && 
> /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java 
> -Xmx1024m -jar 
> /Users/dahn/apache/directory-server/service/target/surefire/surefirebooter8751169659152956685.jar 
> /Users/dahn/apache/directory-server/service/target/surefire 
> 2019-06-12T14-24-08_517-jvmRun1 surefire1294047605614087720tmp 
> surefire_07367554630409192216tmp
> [ERROR] Error occurred in starting fork, check output in log
> [ERROR] Process Exit Code: 1
> [ERROR] Crashed tests:
> [ERROR] org.apache.directory.server.UberJarMainTest


I wonder if you have not a running ApacheDS in the background. Can you 
check ?


> [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: 
> The forked VM terminated without properly saying goodbye. VM crash or 
> System.exit called?
> [ERROR] Command was /bin/sh -c cd 
> /Users/dahn/apache/directory-server/service && 
> /Library/Java/JavaVirtualMachines/adoptopenjdk-8.jdk/Contents/Home/jre/bin/java 
> -Xmx1024m -jar 
> /Users/dahn/apache/directory-server/service/target/surefire/surefirebooter8751169659152956685.jar 
> /Users/dahn/apache/directory-server/service/target/surefire 
> 2019-06-12T14-24-08_517-jvmRun1 surefire1294047605614087720tmp 
> surefire_07367554630409192216tmp
> [ERROR] Error occurred in starting fork, check output in log
> [ERROR] Process Exit Code: 1
> [ERROR] Crashed tests:
> [ERROR] org.apache.directory.server.UberJarMainTest
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:670)
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:283)
> [ERROR] at 
> org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:246)
> [ERROR] at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1161)
> [ERROR] at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1002)
> [ERROR] at 
> org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:848)
> [ERROR] at 
> org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56)
> [ERROR] at 
> org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
> [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305)
> [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192)
> [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105)
> [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:956)
> [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)
> [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:192)
> [ERROR] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> [ERROR] at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> [ERROR] at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> [ERROR] at java.lang.reflect.Method.invoke(Method.java:498)
> [ERROR] at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282)
> [ERROR] at 
> org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225)
> [ERROR] at 
> org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406)
> [ERROR] at 
> org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347)
>
> also a lot of warnings like this pass by (in both cases and obviously 
> maven and not java related):
> [WARNING] Some problems were encountered while building the effective 
> model for 
> org.apache.directory.server:apacheds-i18n:bundle:2.0.0.AM26-SNAPSHOT
> [WARNING] Reporting configuration should be done in <reporting> 
> section, not in maven-site-plugin <configuration> as reportPlugins 
> parameter.

Yes, this one is benign, we need to fix that but it won't harm.


>
> not sure if pictures are allowed @here but <alt="AM25 installation 
> fails"/>
> image.png
> my macos version is 10.14.5


That's because Apple now requires signed packages in order to have them 
accepted. We are working on that atm.



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@directory.apache.org
For additional commands, e-mail: dev-help@directory.apache.org