Error After Upgrading FishEye-Crucible 3.1.1. To 4.6.1
Asked by Mehmet Dama:

Hi,

I want to upgrade FishEye-Crucible 3.1.1. To 4.6.1 version. As described in upgrade guide I installed oracle-java-8. But I am getting below errors.

```
2019-01-31 11:27:32,461 ERROR - Exception "javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getWebItems'" (javax.servlet.ServletException) while processing "/WEB-INF/jsp/login.jsp" (Referer:"null")
javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getWebItems'
 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:944)
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:879)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspService(login_jsp.java:144)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1526)
 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:70)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:70)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)

 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
 at java.lang.Thread.run(Thread.java:748)
Caused by: javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getWebItems'
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke(masthead_tag.java:2991)
 at org.apache.jsp.tag.web.aui.auiDropDown2_tag.doTag(auiDropDown2_tag.java:210)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_aui_auiDropDown2_3(masthead_tag.java:1496)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_c_if_7(masthead_tag.java:1468)
 at org.apache.jsp.tag.web.cru.masthead_tag.access$300(masthead_tag.java:7)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke0(masthead_tag.java:2779)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke(masthead_tag.java:2951)
 at org.apache.jsp.tag.web.cru.common_002dheader_tag.doTag(common_002dheader_tag.java:92)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_rend_common$1header_0(masthead_tag.java:1252)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_c_if_3(masthead_tag.java:1225)
 at org.apache.jsp.tag.web.cru.masthead_tag.doTag(masthead_tag.java:388)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspx_meth_rend_masthead_0(login_jsp.java:230)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspx_meth_c_if_1(login_jsp.java:202)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspService(login_jsp.java:130)
 ... 187 more
Caused by: javax.el.ELException: Problems calling function 'cru:getWebItems'
 at com.sun.el.parser.AstFunction.getValue(AstFunction.java:136)
 at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.jav at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at com.atlassian.crucible.filters.CrucibleFilter.doFilter(CrucibleFilter.java:148)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:101)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:243)
 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)

 ...a:224)
 at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_c_set_14(masthead_tag.java:1606)
 at org.apache.jsp.tag.web.cru.masthead_tag.access$1100(masthead_tag.java:7)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke4(masthead_tag.java:2833)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke(masthead_tag.java:2963)
 ... 200 more
Caused by: java.lang.IllegalStateException: Cannot find module of class interface com.atlassian.sal.api.message.I18nResolver
 at com.cenqua.fisheye.web.util.PluginModuleInstanceTracker.lambda$getModule$0(PluginModuleInstanceTracker.java:55)
 at java.util.Optional.orElseThrow(Optional.java:290)
 at com.cenqua.fisheye.web.util.PluginModuleInstanceTracker.getModule(PluginModuleInstanceTracker.java:55)
 at com.atlassian.fisheye.plugin.web.FisheyeWebFragmentHelper.getI18nValue(FisheyeWebFragmentHelper.java:81)
 at com.atlassian.plugin.web.model.DefaultWebLabel.getDisplayableLabel(DefaultWebLabel.java:60)
 at com.cenqua.fisheye.web.webfragments.DefaultInjectableWebFragmentDataFactory.lambda$getWebItems$0(DefaultInjectableWebFragmentDataFactory.java:157)
 at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
 at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
 at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
 at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
 at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
 at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
 at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
 at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
 at com.cenqua.fisheye.web.webfragments.DefaultInjectableWebFragmentDataFactory.getWebItems(DefaultInjectableWebFragmentDataFactory.java:164)
 at com.cenqua.fisheye.web.webfragments.DefaultInjectableWebFragmentDataFactory.getWebItems(DefaultInjectableWebFragmentDataFactory.java:57)
 at com.cenqua.fisheye.web.webfragments.WebFragmentDataFactory.getWebItems(WebFragmentDataFactory.java:22)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.sun.el.parser.AstFunction.getValue(AstFunction.java:131)
 ... 206 more
2019-01-31 11:27:32,466 ERROR - Exception "javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getWebItems'" (javax.servlet.ServletException) while processing "/404.jsp" (Referer:"null")
javax.servlet.ServletException: javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getWebItems'
 at org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:944)
 at org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:879)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspService(login_jsp.java:144)
 at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:111)
 at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
 at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:669)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1526)
 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:70)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 ...
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
 at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:276)
 at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:103)
 at com.cenqua.fisheye.web.LoginServlet.redirectToLogin(LoginServlet.java:58)
 at com.cenqua.fisheye.web.filters.TotalityFilter.doFilter(TotalityFilter.java:275)
 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at com.atlassian.security.auth.trustedapps.filter.TrustedApplicationsFilter.doFilter(TrustedApplicationsFilter.java:103)
 at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:344)
 at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:261)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:70)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at com.atlassian.plugin.servlet.filter.IteratingFilterChain.doFilter(IteratingFilterChain.java:39)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:70)
 at com.atlassian.plugin.servlet.filter.ServletFilterModuleContainerFilter.doFilter(ServletFilterModuleContainerFilter.java:58)
 at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1502)
 at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:455)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:137)
 at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:575)
 at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:231)
 at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1075)
 at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:384)
 at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:193)
 at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1009)
 at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:135)
 ....
HttpConnection$RequestHandler.headerComplete(AbstractHttpConnection.java:1004)
 at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:640)
 at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
 at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:82)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:628)
 at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:52)
 at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:608)
 at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:543)
 at java.lang.Thread.run(Thread.java:748)
Caused by: javax.servlet.jsp.JspException: javax.el.ELException: Problems calling function 'cru:getWebItems'
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke(masthead_tag.java:2991)
 at org.apache.jsp.tag.web.aui.auiDropDown2_tag.doTag(auiDropDown2_tag.java:210)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_aui_auiDropDown2_3(masthead_tag.java:1496)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_c_if_7(masthead_tag.java:1468)
 at org.apache.jsp.tag.web.cru.masthead_tag.access$300(masthead_tag.java:7)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke0(masthead_tag.java:2779)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke(masthead_tag.java:2951)
 at org.apache.jsp.tag.web.cru.common_002dheader_tag.doTag(common_002dheader_tag.java:92)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_rend_common$1header_0(masthead_tag.java:1252)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_c_if_3(masthead_tag.java:1225)
 at org.apache.jsp.tag.web.cru.masthead_tag.doTag(masthead_tag.java:388)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspx_meth_rend_masthead_0(login_jsp.java:230)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspx_meth_c_if_1(login_jsp.java:202)
 at org.apache.jsp.WEB_002dINF.jsp.login_jsp._jspService(login_jsp.java:130)
 ... 187 more
Caused by: javax.el.ELException: Problems calling function 'cru:getWebItems'
 at com.sun.el.parser.AstFunction.getValue(AstFunction.java:136)
 at com.sun.el.ValueExpressionImpl.getValue(ValueExpressionImpl.java:224)
 at org.apache.jasper.runtime.PageContextImpl.evaluateExpression(PageContextImpl.java:1009)
 at org.apache.jsp.tag.web.cru.masthead_tag._jspx_meth_c_set_14(masthead_tag.java:1606)
 at org.apache.jsp.tag.web.cru.masthead_tag.access$1100(masthead_tag.java:7)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke4(masthead_tag.java:2833)
 at org.apache.jsp.tag.web.cru.masthead_tag$masthead_tagHelper.invoke(masthead_tag.java:2963)
 ... 200 more
Caused by: java.lang.IllegalStateException: Cannot find module of class interface com.atlassian.sal.api.message.I18nResolver
 at com.cenqua.fisheye.web.util.PluginModuleInstanceTracker.lambda$getModule$0(PluginModuleInstanceTracker.java:55)
 at java.util.Optional.orElseThrow(Optional.java:290)
 at com.cenqua.fisheye.web.util.PluginModuleInstanceTracker.getModule(PluginModuleInstanceTracker.java:55)
 at com.atlassian.fisheye.plugin.web.FisheyeWebFragmentHelper.getI18nValue(FisheyeWebFragmentHelper.java:81)
 at com.atlassian.plugin.web.model.DefaultWebLabel.getDisplayableLabel(DefaultWebLabel.java:60)
 at com.cenqua.fisheye.web.webfragments.DefaultInjectableWebFragmentDataFactory.lambda$getWebItems$0(DefaultInjectableWebFragmentDataFactory.java:157)
 at java.util.stream.ReferencePipeline$3$1.accept(ReferencePipeline.java:193)
 at java.util.stream.ReferencePipeline$2$1.accept(ReferencePipeline.java:175)
 at java.util.ArrayList$ArrayListSpliterator.forEachRemaining(ArrayList.java:1382)
 at java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:481)
 at java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:471)
 at java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:708)
 at java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
 at java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:499)
 at com.cenqua.fisheye.web.webfragments.DefaultInjectableWebFragmentDataFactory.getWebItems(DefaultInjectableWebFragmentDataFactory.java:164)
 at com.cenqua.fisheye.web.webfragments.DefaultInjectableWebFragmentDataFactory.getWebItems(DefaultInjectableWebFragmentDataFactory.java:57)
 at com.cenqua.fisheye.web.webfragments.WebFragmentDataFactory.getWebItems(WebFragmentDataFactory.java:22)
 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
 at java.lang.reflect.Method.invoke(Method.java:498)
 at com.sun.el.parser.AstFunction.getValue(AstFunction.java:131)
 ... 206 more
```


Answers:
author: Mehmet Dama
body: Hi Ben, Thanks for suggestions. But I've previously solved the issue in different way. For users who will probably face same issue the solution steps are below;

* Keep old version (in my case FishEye-Crucible 3.1.1) and FISHEYE_INST directory as it is
* As mentioned in installation guido stop old version then start new fisheye-crucible from new binary folder (in my case in 4.6.1)
* Then stop new instance.
* Change FISHEYE_INST directory to point new fisheye-crucible folder.
* Thats it.


author: Ben Stuart
body: Can you perform the following steps? Usually this resovles the issue.

1. Stop FishEye/Crucible
2. Delete FISHEYE_INST/var/osgi-cache
3. Start FishEye/Crucible
4. Supply updated log file