Error while upgrading from 12.6.1 to 12.6.2

#1

I am trying to update from 12.6.1 to 12.6.2 or 12.6.3. I followed the release notes but i am getting this error.
Build is successful but i get this error while the repository is starting up.

2019-05-13T17:01:36,305 {America/New_York} ERROR localhost-startStop-1 [RepositoryServlet.init:224] Error while setting up JCR repository:
[INFO] [talledLocalContainer] javax.jcr.RepositoryException: unchecked exception: java.lang.AbstractMethodError: javax.ws.rs.core.Response$ResponseBuilder.status(ILjava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:161) ~[hippo-repository-connector-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.RepositoryServlet.init(RepositoryServlet.java:184) [hippo-repository-servlets-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1144) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1091) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:983) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4978) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5290) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:754) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:730) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig.deployWAR(HostConfig.java:985) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at org.apache.catalina.startup.HostConfig$DeployWar.run(HostConfig.java:1857) [catalina.jar:8.5.34]
[INFO] [talledLocalContainer] at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:1.8.0_211]
[INFO] [talledLocalContainer] at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_211]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:1.8.0_211]
[INFO] [talledLocalContainer] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:1.8.0_211]
[INFO] [talledLocalContainer] at java.lang.Thread.run(Thread.java:748) [?:1.8.0_211]
[INFO] [talledLocalContainer] Caused by: java.lang.AbstractMethodError: javax.ws.rs.core.Response$ResponseBuilder.status(ILjava/lang/String;)Ljavax/ws/rs/core/Response$ResponseBuilder;
[INFO] [talledLocalContainer] at javax.ws.rs.core.Response$ResponseBuilder.status(Response.java:921) ~[javax.ws.rs-api-2.1.jar:2.1]
[INFO] [talledLocalContainer] at javax.ws.rs.core.Response.status(Response.java:592) ~[javax.ws.rs-api-2.1.jar:2.1]
[INFO] [talledLocalContainer] at javax.ws.rs.core.Response.status(Response.java:603) ~[javax.ws.rs-api-2.1.jar:2.1]
[INFO] [talledLocalContainer] at org.onehippo.repository.jaxrs.api.ManagedUserSessionInvoker.(ManagedUserSessionInvoker.java:49) ~[hippo-repository-jaxrs-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.repository.jaxrs.api.JsonResourceServiceModule.doInitialize(JsonResourceServiceModule.java:73) ~[hippo-repository-jaxrs-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.cms.channelmanager.content.ChannelContentServiceModule.doInitialize(ChannelContentServiceModule.java:92) ~[hippo-addon-channel-manager-content-service-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.repository.modules.AbstractReconfigurableDaemonModule.initialize(AbstractReconfigurableDaemonModule.java:67) ~[hippo-repository-api-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.repository.modules.ModuleManager.startModule(ModuleManager.java:172) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.repository.modules.ModuleManager.startModules(ModuleManager.java:143) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.repository.modules.ModuleManager.start(ModuleManager.java:80) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.start(LocalHippoRepository.java:315) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.lambda$initializeConfiguration$0(LocalHippoRepository.java:308) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.init(ConfigurationServiceImpl.java:232) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.onehippo.cm.engine.ConfigurationServiceImpl.start(ConfigurationServiceImpl.java:122) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initializeConfiguration(LocalHippoRepository.java:308) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.initialize(LocalHippoRepository.java:292) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:122) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at org.hippoecm.repository.LocalHippoRepository.create(LocalHippoRepository.java:112) ~[hippo-repository-engine-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_211]
[INFO] [talledLocalContainer] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_211]
[INFO] [talledLocalContainer] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_211]
[INFO] [talledLocalContainer] at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_211]
[INFO] [talledLocalContainer] at org.hippoecm.repository.HippoRepositoryFactory.getHippoRepository(HippoRepositoryFactory.java:147) ~[hippo-repository-connector-5.6.2.jar:5.6.2]
[INFO] [talledLocalContainer] … 17 more

#2

Can you check your version of javax.ws.rs-api.jar? It should be at 2.1

HTH
Jeroen

#3

Yes, my version of javax.ws.rs-api is 2.1. (javax.ws.rs.core.Response$ResponseBuilder.status(Response.java:921) ~[javax.ws.rs-api-2.1.jar:2.1])

Ran maven dependency:tree to inspect the dependencies but did not find anything interesting. Not sure where to check. Please advice.

#4

Fixed this issue.
The repository-testutils was using an old version 5.1.0 instead of 5.6.3, updating this resolved the issue.

Is there a variable for repository-testutils in the enterprise pom that can be used to set the value dynamically, currently i am using the variable hippo.enterprise-repository.version for this.

#5

Looks like you can just use <hippo.repository.version>.

Do you have <scope>test</scope> as well? That should prevent pulling downstream dependencies into the war anyway.

Regards, Jeroen

#6

You shouldn’t (need to) configure a version at all: the community release pom already provides the dependency management (including the version) for all the product artifacts, including repository-testutils.