bbende commented on issue #3831: NIFI-6707: Addition of nifi-system-tests 
module. Updates to EmbeddedN…
URL: https://github.com/apache/nifi/pull/3831#issuecomment-545620490
 
 
   1) The first time I ran the test suite I encountered two test failures, not 
sure if these are consistent yet:
   
   ```
   
-------------------------------------------------------------------------------
   Test set: org.apache.nifi.tests.system.parameters.ClusteredParameterContextIT
   
-------------------------------------------------------------------------------
   Tests run: 7, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 75.795 s <<< 
FAILURE! - in 
org.apache.nifi.tests.system.parameters.ClusteredParameterContextIT
   
testProcessorRestartedWhenParameterChangedWhenReferencedThroughEL(org.apache.nifi.tests.system.parameters.ClusteredParameterContextIT)
  Time elapsed: 1.455 s  <<< ERROR!
   org.apache.nifi.toolkit.cli.impl.client.nifi.NiFiClientException: Error 
deleting Processor: Node localhost:5672 is unable to fulfill this request due 
to: fa331065-016d-1000-ffff-ffff873ef21d is running
   Caused by: javax.ws.rs.ClientErrorException: HTTP 409 Conflict
   ```
   
   ```
   
-------------------------------------------------------------------------------
   Test set: org.apache.nifi.tests.system.rpg.ClusteredRemoteProcessGroupIT
   
-------------------------------------------------------------------------------
   Tests run: 2, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 181.695 s 
<<< FAILURE! - in org.apache.nifi.tests.system.rpg.ClusteredRemoteProcessGroupIT
   
testRPGBackToSelfHttp(org.apache.nifi.tests.system.rpg.ClusteredRemoteProcessGroupIT)
  Time elapsed: 120.005 s  <<< ERROR!
   org.junit.runners.model.TestTimedOutException: test timed out after 2 minutes
   ```
   
   2) I attempted to build/run with Java 11 and ran into a few issues...
   
   It looks like the bootstrap.conf in the node directories has the java binary 
hard-coded to a JDK 8 path:
   
   
`java=/Library/Java/JavaVirtualMachines/jdk1.8.0_60.jdk/Contents/Home/bin/java`
   
   This basically launched NiFi with JDK 8, after I built it with JDK 11, so I 
got one of those errors about incompatible class version of 55 and can read up 
to 52. 
   
   I commented out the above line in each bootstrap and ran again, this time it 
now used the same JDK as my shell had which was 11, and this time it got a 
different error:
   ```
   
   java.util.ServiceConfigurationError: 
org.apache.nifi.authorization.UserGroupProvider: 
org.apache.nifi.authorization.FileUserGroupProvider Unable to get public no-arg 
constructor
           at java.base/java.util.ServiceLoader.fail(ServiceLoader.java:581)
           at 
java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:672)
           at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNextService(ServiceLoader.java:1232)
           at 
java.base/java.util.ServiceLoader$LazyClassPathLookupIterator.hasNext(ServiceLoader.java:1264)
           at 
java.base/java.util.ServiceLoader$2.hasNext(ServiceLoader.java:1299)
           at 
java.base/java.util.ServiceLoader$3.hasNext(ServiceLoader.java:1384)
           at 
org.apache.nifi.nar.StandardExtensionDiscoveringManager.loadExtensions(StandardExtensionDiscoveringManager.java:155)
           at 
org.apache.nifi.nar.StandardExtensionDiscoveringManager.discoverExtensions(StandardExtensionDiscoveringManager.java:130)
           at 
org.apache.nifi.nar.StandardExtensionDiscoveringManager.discoverExtensions(StandardExtensionDiscoveringManager.java:116)
           at org.apache.nifi.web.server.JettyServer.start(JettyServer.java:942)
           at org.apache.nifi.NiFi.<init>(NiFi.java:158)
           at org.apache.nifi.NiFi.<init>(NiFi.java:72)
           at org.apache.nifi.NiFi.main(NiFi.java:301)
   Caused by: java.lang.NoClassDefFoundError: javax/xml/bind/JAXBException
           at java.base/java.lang.Class.getDeclaredConstructors0(Native Method)
           at 
java.base/java.lang.Class.privateGetDeclaredConstructors(Class.java:3137)
           at java.base/java.lang.Class.getConstructor0(Class.java:3342)
           at java.base/java.lang.Class.getConstructor(Class.java:2151)
           at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:659)
           at java.base/java.util.ServiceLoader$1.run(ServiceLoader.java:656)
           at java.base/java.security.AccessController.doPrivileged(Native 
Method)
           at 
java.base/java.util.ServiceLoader.getConstructor(ServiceLoader.java:667)
           ... 11 common frames omitted
   Caused by: java.lang.ClassNotFoundException: javax.xml.bind.JAXBException
           at 
java.base/java.net.URLClassLoader.findClass(URLClassLoader.java:471)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:588)
           at java.base/java.lang.ClassLoader.loadClass(ClassLoader.java:521)
           ... 19 common frames omitted
   ```
   I think this is because the assembly for the test suite doesn't have the 
`lib/java11` directory setup with the JAX-B dependencies the way the regular 
assembly does.

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to