Internal Service Error After Upgrade
Asked by koncepp:

I just performed an upgrade from 7.15.0 to 7.16.0 using the Linux installer (as I always have). However, upon server startup, I receive the following:

```
java.nio.file.NoSuchFileException: /opt/atlassian/confluence/confluence/WEB-INF/lib/lucene-queryparser-4.4.0-atlassian-4.jar
```

This file does exist but it version "atlassian-6". I already tried clearing the plugin cache and this did not resolve the issue.

Update:

It appears as though I can get the server to start if I copy the WEB-INF/libs folder from a backup copy of my 7.15 libs, but then none of the content actually appears normally. In addition, even though 7.16 is installed, it still generates in the footer that it's running "7.15".


Answers:
author: Rilwan Ahmed
body: [@koncepp](/t5/user/viewprofilepage/user-id/237132)

While downgrading, if you have app backup folders, add **lucene-queryparser-4.4.0-atlassian-4.jar** to   
**/opt/atlassian/confluence/confluence/WEB-INF/lib/** folder before starting confluence.

I would suggest you to contact Atlassian Support

<https://support.atlassian.com/customer/servicedesk-portal>

comments: author: koncepp
body: I have tried this to no success as it just ends up failing on multiple mis-matching version libs. Unfortunately, contacting Atlassian support isn't possible either due to this being a Starter license.


author: Pramodh M
body: Hi [@koncepp](/t5/user/viewprofilepage/user-id/237132)

Are you able to access the server?

If you are able to see the UI, you should be able to see the KB Link

Can you assist with a screenshot with more info

Thanks

comments: author: koncepp
body: Good morning,

A screenshot won't capture the entire screen but this is the entire output of the page. I also receive a similar error when downgrading back to 7.15.

**Type** Exception Report

**Message** java.io.IOException: java.lang.reflect.InvocationTargetException

**Description** The server encountered an unexpected condition that prevented it from fulfilling the request.

**Exception**

```
java.lang.IllegalStateException: java.io.IOException: java.lang.reflect.InvocationTargetException org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:101) org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:263) org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281) org.apache.catalina.webresources.Cache.getResource(Cache.java:62) org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216) org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225) org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2359) org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:870) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1371) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1215) com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:56) com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
```

**Root Cause**

```
java.io.IOException: java.lang.reflect.InvocationTargetException org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:209) org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:226) org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:314) org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97) org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:263) org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281) org.apache.catalina.webresources.Cache.getResource(Cache.java:62) org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216) org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225) org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2359) org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:870) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1371) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1215) com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:56) com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
```

**Root Cause**

```
java.lang.reflect.InvocationTargetException java.base/jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source) java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:206) org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:226) org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:314) org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97) org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:263) org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281) org.apache.catalina.webresources.Cache.getResource(Cache.java:62) org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216) org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225) org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2359) org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:870) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1371) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1215) com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:56) com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
```

**Root Cause**

```
java.nio.file.NoSuchFileException: /opt/atlassian/confluence/confluence/WEB-INF/lib/lucene-queryparser-4.4.0-atlassian-4.jar java.base/sun.nio.fs.UnixException.translateToIOException(Unknown Source) java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) java.base/sun.nio.fs.UnixException.rethrowAsIOException(Unknown Source) java.base/sun.nio.fs.UnixFileAttributeViews$Basic.readAttributes(Unknown Source) java.base/sun.nio.fs.UnixFileSystemProvider.readAttributes(Unknown Source) java.base/sun.nio.fs.LinuxFileSystemProvider.readAttributes(Unknown Source) java.base/java.nio.file.Files.readAttributes(Unknown Source) java.base/java.util.zip.ZipFile$Source.get(Unknown Source) java.base/java.util.zip.ZipFile$CleanableResource.<init>(Unknown Source) java.base/java.util.zip.ZipFile$CleanableResource.get(Unknown Source) java.base/java.util.zip.ZipFile.<init>(Unknown Source) java.base/java.util.zip.ZipFile.<init>(Unknown Source) java.base/java.util.jar.JarFile.<init>(Unknown Source) java.base/jdk.internal.reflect.GeneratedConstructorAccessor7.newInstance(Unknown Source) java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source) java.base/java.lang.reflect.Constructor.newInstance(Unknown Source) org.apache.tomcat.util.compat.Jre9Compat.jarFileNewInstance(Jre9Compat.java:206) org.apache.tomcat.util.compat.JreCompat.jarFileNewInstance(JreCompat.java:226) org.apache.catalina.webresources.AbstractArchiveResourceSet.openJarFile(AbstractArchiveResourceSet.java:314) org.apache.catalina.webresources.AbstractSingleArchiveResourceSet.getArchiveEntry(AbstractSingleArchiveResourceSet.java:97) org.apache.catalina.webresources.AbstractArchiveResourceSet.getResource(AbstractArchiveResourceSet.java:263) org.apache.catalina.webresources.StandardRoot.getResourceInternal(StandardRoot.java:281) org.apache.catalina.webresources.Cache.getResource(Cache.java:62) org.apache.catalina.webresources.StandardRoot.getResource(StandardRoot.java:216) org.apache.catalina.webresources.StandardRoot.getClassLoaderResource(StandardRoot.java:225) org.apache.catalina.loader.WebappClassLoaderBase.findClassInternal(WebappClassLoaderBase.java:2359) org.apache.catalina.loader.WebappClassLoaderBase.findClass(WebappClassLoaderBase.java:870) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1371) org.apache.catalina.loader.WebappClassLoaderBase.loadClass(WebappClassLoaderBase.java:1215) com.atlassian.confluence.web.filter.DebugFilter.doFilter(DebugFilter.java:56) com.atlassian.core.filters.AbstractHttpFilter.doFilter(AbstractHttpFilter.java:32)
```

**Note** The full stack trace of the root cause is available in the server logs.


Tags: confluence-server

server