nullibrew / Graph-Analyzer

An LDAP to Neo4J loader and analyzer tool
10 stars 1 forks source link

java Exceptions #1

Open Tristec2019 opened 5 years ago

Tristec2019 commented 5 years ago

Hello,

I followed the install instructions but I am getting the following error:

`/usr/bin/build-classpath: Could not find build/libs Java extension for this JVM /usr/bin/build-classpath: Could not find runtime Java extension for this JVM /usr/bin/build-classpath: error: Some specified jars were not found org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed: /opt/Graph-Analyzer/NeoLoader.groovy: 28: unable to resolve class com.nulli.analyzer.neoloader.config.NeoConfiguration @ line 28, column 1. import com.nulli.analyzer.neoloader.config.NeoConfiguration; ^

/opt/Graph-Analyzer/NeoLoader.groovy: 26: unable to resolve class com.nulli.analyzer.neoloader.LoaderProcessor @ line 26, column 1. import com.nulli.analyzer.neoloader.LoaderProcessor ^

/opt/Graph-Analyzer/NeoLoader.groovy: 27: unable to resolve class com.nulli.analyzer.neoloader.config.LdapConfiguration @ line 27, column 1. import com.nulli.analyzer.neoloader.config.LdapConfiguration; ^

3 errors `

I installed the following versions: Groovy Version: 1.8.9 JVM: 1.8.0_212 Vendor: Oracle Corporation OS: Linux

openjdk version "1.8.0_212" OpenJDK Runtime Environment (build 1.8.0_212-b04) OpenJDK 64-Bit Server VM (build 25.212-b04, mixed mode)

Gradle 5.4.1 Build time: 2019-04-26 08:14:42 UTC Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d Kotlin: 1.3.21 Groovy: 2.5.4 Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018 JVM: 1.8.0_212 (Oracle Corporation 25.212-b04) OS: Linux 3.10.0-957.12.2.el7.x86_64 amd64

Do you have any ideas? Best regards Tristan

Tristec2019 commented 5 years ago

After updating groovy up to version "Groovy Version: 2.3.6 JVM: 1.8.0_212" and corrected the jar file ("GraphAnalyzer-1.0.jar") in the neoLoader.sh I got the following error:

Using default LDAP Config ... Using default Neo4J Config ... Caught: java.lang.NoClassDefFoundError: com/unboundid/ldap/sdk/LDAPException java.lang.NoClassDefFoundError: com/unboundid/ldap/sdk/LDAPException at NeoLoader.run(NeoLoader.groovy:98) Caused by: java.lang.ClassNotFoundException: com.unboundid.ldap.sdk.LDAPException ... 1 more

Best regards Tristan

baboulebou commented 5 years ago

Hi Tristan, This tool uses the UnboundID Java LDAP SDK to interact with the LDAP Source. It looks like you may not have that SDK/Jar in your classpath, or where Groovy can see it. Check here: https://github.com/pingidentity/ldapsdk/releases

I'll update the README with these pre-req's. Thanks, ./\.

baboulebou commented 5 years ago

Actually, it's been a while , and the UnboundID version is of course higher. I'll have to test this again too. Ping may have changed the SDK itself...