[ 
https://issues.apache.org/jira/browse/NIFI-1260?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15045149#comment-15045149
 ] 

Matt Gilman commented on NIFI-1260:
-----------------------------------

Those other JSPs are only excluded because we filter version numbers (using 
maven filtering capabilities) into the path of some resources to attempt to 
bust browser caches. The JSP in question does not pull in any of those 
resources so it does not need to be filtered and can be pre-compiled. This is 
also true for all the JSPs in src/main/webapp/WEB-INF/partials.

Unfortunately, I am unable to replicate the issue running CentOS 6.7 with 
openjdk 1.7 or 1.8. Here's my environment when running with 1.7. 

{noformat}
# mvn -version
Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 
2015-04-22T07:57:37-04:00)
Maven home: /usr/share/apache-maven
Java version: 1.7.0_91, vendor: Oracle Corporation
Java home: /usr/lib/jvm/java-1.7.0-openjdk-1.7.0.91.x86_64/jre
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "2.6.32-573.el6.x86_64", arch: "amd64", family: 
"unix"
{noformat}

I will make the purposed change since it only affects when a JSP is compiled 
(build time vs run time). I will create a new ticket to investigate this 
further.

Thanks for digging into this guys!

> Centos 6.7 and Fedora 23 NiFi build fails to start
> --------------------------------------------------
>
>                 Key: NIFI-1260
>                 URL: https://issues.apache.org/jira/browse/NIFI-1260
>             Project: Apache NiFi
>          Issue Type: Bug
>          Components: Core Framework, Tools and Build
>    Affects Versions: 0.3.0
>            Reporter: Joseph Witt
>             Fix For: 0.4.0
>
>
> In a thread started on Dec 6 by Andre with contributions of many folks it has 
> been discovered that when building NiFi in at least Centos 6.7 and Fedora 23 
> that there can be problems with pre-compiled JSPs.  Stack trace seen on 
> startup looks like this:
> Build completes, however ./bin/nifi.sh start causes the error previously
> mentioned.
> 2015-12-07 10:01:26,557 WARN [main] org.apache.nifi.web.server.JettyServer
> Failed to start web server... shutting down.
> java.lang.IllegalArgumentException: Comparison method violates its general
> contract!
>         at java.util.ComparableTimSort.mergeHi(ComparableTimSort.java:866)
> ~[na:1.8.0_65]
>         at java.util.ComparableTimSort.mergeAt(ComparableTimSort.java:483)
> ~[na:1.8.0_65]
>         at
> java.util.ComparableTimSort.mergeForceCollapse(ComparableTimSort.java:422)
> ~[na:1.8.0_65]
>         at java.util.ComparableTimSort.sort(ComparableTimSort.java:222)
> ~[na:1.8.0_65]
>         at java.util.Arrays.sort(Arrays.java:1246) ~[na:1.8.0_65]
>         at
> org.eclipse.jetty.servlet.ServletHandler.initialize(ServletHandler.java:865)
> ~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextHandler.java:298)
> ~[jetty-servlet-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1349)
> ~[jetty-webapp-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1342)
> ~[jetty-webapp-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:741)
> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:505)
> ~[jetty-webapp-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle.java:132)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at org.eclipse.jetty.server.Server.start(Server.java:387)
> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCycle.java:114)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.java:61)
> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at org.eclipse.jetty.server.Server.doStart(Server.java:354)
> ~[jetty-server-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.java:68)
> ~[jetty-util-9.2.11.v20150529.jar:9.2.11.v20150529]
>         at
> org.apache.nifi.web.server.JettyServer.start(JettyServer.java:663)
> ~[nifi-jetty-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
>         at org.apache.nifi.NiFi.<init>(NiFi.java:137)
> [nifi-runtime-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
>         at org.apache.nifi.NiFi.main(NiFi.java:227)
> [nifi-runtime-0.4.0-SNAPSHOT.jar:0.4.0-SNAPSHOT]
> Given the comments, I've switched to Java 8 to build:
> $ mvn -version
> Apache Maven 3.3.9 (bb52d8502b132ec0a5a3f4c09453c07478323dc5;
> 2015-11-11T03:41:47+11:00)
> Maven home: /usr/local/apache-maven-3.3.9
> Java version: 1.8.0_65, vendor: Oracle Corporation
> Java home: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.65-0.b17.el6_7.x86_64/jre
> Default locale: en_US, platform encoding: UTF-8
> OS name: "linux", version: "2.6.32-573.8.1.el6.x86_64", arch: "amd64",
> family: "unix"



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to