[INFO] [INFO] --< es.uvigo.esei.dgss.teamA.microstories:dgss2526-teamA-microstories-rest >-- [INFO] Building REST 0.1.0-SNAPSHOT [5/7] [INFO] --------------------------------[ war ]--------------------------------- [INFO] [INFO] --- maven-clean-plugin:3.3.2:clean (default-clean) @ dgss2526-teamA-microstories-rest --- [INFO] Deleting /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) @ dgss2526-teamA-microstories-rest --- [INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/jacoco.exec,classdumpdir=/var/lib/jenkins/workspace/microstories-2526-teamA/target/classes [INFO] [INFO] --- maven-resources-plugin:3.0.2:resources (default-resources) @ dgss2526-teamA-microstories-rest --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] skip non existing resourceDirectory /var/lib/jenkins/workspace/microstories-2526-teamA/rest/src/main/resources [INFO] [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ dgss2526-teamA-microstories-rest --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 4 source files to /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/classes [INFO] [INFO] --- maven-resources-plugin:3.0.2:testResources (default-testResources) @ dgss2526-teamA-microstories-rest --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 5 resources [INFO] Copying 3 resources [INFO] [INFO] --- maven-compiler-plugin:3.6.1:testCompile (default-testCompile) @ dgss2526-teamA-microstories-rest --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 3 source files to /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/test-classes [INFO] [INFO] --- maven-dependency-plugin:2.10:unpack (unpack) @ dgss2526-teamA-microstories-rest --- [INFO] Configured Artifact: org.wildfly:wildfly-dist:10.1.0.Final:zip [INFO] Unpacking /var/lib/jenkins/.m2/repository/org/wildfly/wildfly-dist/10.1.0.Final/wildfly-dist-10.1.0.Final.zip to /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target with includes "" and excludes "" [INFO] [INFO] --- maven-resources-plugin:3.0.2:copy-resources (copy-wildfly-resources) @ dgss2526-teamA-microstories-rest --- [INFO] Using 'UTF-8' encoding to copy filtered resources. [INFO] Copying 1 resource [INFO] [INFO] --- maven-surefire-plugin:2.20:test (default-test) @ dgss2526-teamA-microstories-rest --- [INFO] [INFO] ------------------------------------------------------- [INFO] T E S T S [INFO] ------------------------------------------------------- [INFO] Running es.uvigo.esei.microstories.rest.ResourceUnitTestSuite 19:23:43,943 INFO [org.jboss.modules] (main) JBoss Modules version 1.6.1.Final 19:23:45,027 INFO [org.jboss.msc] (main) JBoss MSC version 1.2.7.SP1 19:23:45,716 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0049: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) starting 19:23:49,058 INFO [org.jboss.as.server] (Controller Boot Thread) WFLYSRV0039: Creating http management service using socket-binding (management-http) 19:23:49,108 INFO [org.xnio] (MSC service thread 1-1) XNIO version 3.4.0.Final 19:23:49,157 INFO [org.xnio.nio] (MSC service thread 1-1) XNIO NIO Implementation Version 3.4.0.Final 19:23:49,308 INFO [org.jboss.remoting] (MSC service thread 1-3) JBoss Remoting version 4.0.21.Final 19:23:49,426 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 36) WFLYCLINF0001: Activating Infinispan subsystem. 19:23:49,478 INFO [org.jboss.as.naming] (ServerService Thread Pool -- 44) WFLYNAM0001: Activating Naming Subsystem 19:23:49,538 INFO [org.jboss.as.security] (ServerService Thread Pool -- 49) WFLYSEC0002: Activating Security Subsystem 19:23:49,535 WARN [org.jboss.as.txn] (ServerService Thread Pool -- 50) WFLYTX0013: Node identifier property is set to the default value. Please make sure it is unique. 19:23:49,591 INFO [org.jboss.as.webservices] (ServerService Thread Pool -- 52) WFLYWS0002: Activating WebServices Extension 19:23:49,673 INFO [org.jboss.as.jsf] (ServerService Thread Pool -- 42) WFLYJSF0007: Activated the following JSF Implementations: [main] 19:23:49,673 INFO [org.jboss.as.security] (MSC service thread 1-4) WFLYSEC0001: Current PicketBox version=4.9.6.Final 19:23:49,830 INFO [org.wildfly.extension.io] (ServerService Thread Pool -- 35) WFLYIO001: Worker 'default' has auto-configured to 4 core threads with 32 task threads based on your 2 available processors 19:23:49,930 INFO [org.wildfly.extension.undertow] (MSC service thread 1-2) WFLYUT0003: Undertow 1.4.0.Final starting 19:23:49,944 INFO [org.jboss.as.naming] (MSC service thread 1-3) WFLYNAM0003: Starting Naming Service 19:23:50,172 INFO [org.jboss.as.connector] (MSC service thread 1-1) WFLYJCA0009: Starting JCA Subsystem (WildFly/IronJacamar 1.3.4.Final) 19:23:50,176 INFO [org.jboss.as.connector.subsystems.datasources] (ServerService Thread Pool -- 30) WFLYJCA0004: Deploying JDBC-compliant driver class org.h2.Driver (version 1.3) 19:23:50,184 INFO [org.jboss.as.mail.extension] (MSC service thread 1-3) WFLYMAIL0001: Bound mail session [java:jboss/mail/Default] 19:23:50,219 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-2) WFLYJCA0018: Started Driver service with driver-name = h2 19:23:50,478 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 51) WFLYUT0014: Creating file handler for path '/var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/wildfly-10.1.0.Final/welcome-content' with options [directory-listing: 'false', follow-symlink: 'false', case-sensitive: 'true', safe-symlink-paths: '[]'] 19:23:50,797 INFO [org.wildfly.extension.undertow] (MSC service thread 1-1) WFLYUT0012: Started server default-server. 19:23:50,798 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0018: Host default-host starting 19:23:51,104 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0006: Undertow HTTP listener default listening on 127.0.0.1:28080 19:23:51,693 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-2) WFLYJCA0001: Bound data source [java:jboss/datasources/dgss2526/teamA/microstories] 19:23:51,696 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-3) WFLYJCA0001: Bound data source [java:jboss/datasources/ExampleDS] 19:23:52,642 INFO [org.infinispan.factories.GlobalComponentRegistry] (MSC service thread 1-1) ISPN000128: Infinispan version: Infinispan 'Chakra' 8.2.4.Final 19:23:52,709 INFO [org.jboss.ws.common.management] (MSC service thread 1-4) JBWS022052: Starting JBossWS 5.1.5.Final (Apache CXF 3.1.6) 19:23:52,716 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 55) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. 19:23:52,717 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 56) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. 19:23:52,717 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 55) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. 19:23:52,721 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 56) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. 19:23:52,748 INFO [org.jboss.as.server.deployment.scanner] (MSC service thread 1-1) WFLYDS0013: Started FileSystemDeploymentService for directory /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/wildfly-10.1.0.Final/standalone/deployments 19:23:53,040 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0060: Http management interface listening on http://127.0.0.1:29990/management 19:23:53,041 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0051: Admin console listening on http://127.0.0.1:29990 19:23:53,042 INFO [org.jboss.as] (Controller Boot Thread) WFLYSRV0025: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) started in 8921ms - Started 302 of 506 services (325 services are lazy, passive or on-demand) 19:23:53,988 WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.doServiceDeploy is null. It won't be invoked. 19:23:56,198 INFO [org.jboss.remoting] (main) JBoss Remoting version 5.0.2.Final 19:23:56,270 INFO [org.xnio] (main) XNIO version 3.5.1.Final 19:23:56,287 INFO [org.xnio.nio] (main) XNIO NIO Implementation Version 3.5.1.Final 19:23:56,429 INFO [org.wildfly.security] (main) ELY00001: WildFly Elytron version 1.1.2.Final 19:23:58,157 INFO [org.jboss.as.repository] (management-handler-thread - 2) WFLYDR0001: Content added at location /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/wildfly-10.1.0.Final/standalone/data/content/e5/2f6be760fb4d06b2d27c93263cc968a5599c97/content 19:23:58,195 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0027: Starting deployment of "test.war" (runtime-name: "test.war") 19:24:00,352 INFO [org.jboss.as.jpa] (MSC service thread 1-2) WFLYJPA0002: Read persistence.xml for test 19:24:00,551 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 22) WFLYJPA0010: Starting Persistence Unit (phase 1 of 2) Service 'test.war#test' 19:24:00,616 INFO [org.hibernate.jpa.internal.util.LogHelper] (ServerService Thread Pool -- 22) HHH000204: Processing PersistenceUnitInfo [ name: test ...] 19:24:00,741 INFO [org.jboss.weld.deployer] (MSC service thread 1-3) WFLYWELD0003: Processing weld deployment test.war 19:24:01,387 INFO [org.hibernate.Version] (ServerService Thread Pool -- 22) HHH000412: Hibernate Core {5.0.10.Final} 19:24:01,762 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 22) HHH000206: hibernate.properties not found 19:24:01,765 INFO [org.hibernate.cfg.Environment] (ServerService Thread Pool -- 22) HHH000021: Bytecode provider name : javassist 19:24:02,920 INFO [org.hibernate.annotations.common.Version] (ServerService Thread Pool -- 22) HCANN000001: Hibernate Commons Annotations {5.0.1.Final} 19:24:02,929 INFO [org.hibernate.validator.internal.util.Version] (MSC service thread 1-3) HV000001: Hibernate Validator 5.2.4.Final 19:24:03,629 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'StoryService' in deployment unit 'deployment "test.war"' are as follows: java:global/test/StoryService!es.uvigo.esei.microstories.services.StoryService java:app/test/StoryService!es.uvigo.esei.microstories.services.StoryService java:module/StoryService!es.uvigo.esei.microstories.services.StoryService java:global/test/StoryService java:app/test/StoryService java:module/StoryService 19:24:03,630 INFO [org.jboss.as.ejb3.deployment] (MSC service thread 1-3) WFLYEJB0473: JNDI bindings for session bean named 'UserService' in deployment unit 'deployment "test.war"' are as follows: java:global/test/UserService!es.uvigo.esei.microstories.services.UserService java:app/test/UserService!es.uvigo.esei.microstories.services.UserService java:module/UserService!es.uvigo.esei.microstories.services.UserService java:global/test/UserService java:app/test/UserService java:module/UserService 19:24:04,115 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 22) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. 19:24:04,115 INFO [org.infinispan.configuration.cache.EvictionConfigurationBuilder] (ServerService Thread Pool -- 22) ISPN000152: Passivation configured without an eviction policy being selected. Only manually evicted entities will be passivated. 19:24:04,389 INFO [org.jboss.weld.Version] (MSC service thread 1-1) WELD-000900: 2.3.5 (Final) 19:24:05,150 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 9) WFLYJPA0010: Starting Persistence Unit (phase 2 of 2) Service 'test.war#test' 19:24:05,306 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 22) WFLYCLINF0002: Started client-mappings cache from ejb container 19:24:05,849 INFO [org.hibernate.dialect.Dialect] (ServerService Thread Pool -- 9) HHH000400: Using dialect: org.hibernate.dialect.H2Dialect 19:24:05,862 WARN [org.hibernate.dialect.H2Dialect] (ServerService Thread Pool -- 9) HHH000431: Unable to determine H2 database version, certain features may not work 19:24:06,146 INFO [org.hibernate.envers.boot.internal.EnversServiceImpl] (ServerService Thread Pool -- 9) Envers integration enabled? : true 19:24:07,200 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 9) HHH000227: Running hbm2ddl schema export Hibernate: drop table story if exists Hibernate: drop table story_themes if exists Hibernate: drop table story_views if exists Hibernate: drop table user if exists Hibernate: create table story (id bigint generated by default as identity, content varchar(1000), genre varchar(255), published_at timestamp, title varchar(50), author bigint not null, primary key (id)) Hibernate: create table story_themes (story_id bigint not null, theme varchar(20) not null, primary key (story_id, theme)) Hibernate: create table story_views (story_id bigint not null, viewed_at timestamp not null, primary key (story_id, viewed_at)) Hibernate: create table user (id bigint generated by default as identity, password varchar(32) not null, role varchar(10) not null, username varchar(20) not null, primary key (id)) Hibernate: alter table user add constraint UK_sb8bbouer5wak8vyiiy4pf2bx unique (username) Hibernate: alter table story add constraint FK9v6npkjkm7o39qnq0yi0obl5b foreign key (author) references user Hibernate: alter table story_themes add constraint FK9xe5ttl75r1h6075frr65d2wl foreign key (story_id) references story Hibernate: alter table story_views add constraint FKoarxahf8fai2nq69pypjfr9o5 foreign key (story_id) references story 19:24:07,238 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 9) HHH000230: Schema export complete 19:24:07,720 INFO [org.jboss.weld.Bootstrap] (Weld Thread Pool -- 3) WELD-000119: Not generating any bean definitions from es.uvigo.esei.microstories.services.StoryServiceIntegrationTest because of underlying class loading error: Type es.uvigo.esei.dgss.teama.microstories.service.util.security.TestPrincipal from [Module "deployment.test.war" from Service Module Loader] not found. If this is unexpected, enable DEBUG logging to see the full error. 19:24:15,300 INFO [javax.enterprise.resource.webcontainer.jsf.config] (ServerService Thread Pool -- 9) Initializing Mojarra 2.2.13.SP1 20160303-1204 for context '/test' 19:24:19,143 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 9) WFLYUT0021: Registered web context: /test 19:24:19,234 INFO [org.jboss.as.server] (management-handler-thread - 2) WFLYSRV0010: Deployed "test.war" (runtime-name : "test.war") log4j:WARN No appenders could be found for logger (org.jboss.resteasy.plugins.providers.DocumentProvider). log4j:WARN Please initialize the log4j system properly. 19:24:21,644 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-11) RESTEASY002120: ClassNotFoundException: Unable to load builtin provider org.jboss.resteasy.plugins.providers.jackson.ResteasyJacksonProvider from jar:file:/var/lib/jenkins/.m2/repository/org/jboss/resteasy/resteasy-jackson-provider/3.0.24.Final/resteasy-jackson-provider-3.0.24.Final.jar!/META-INF/services/javax.ws.rs.ext.Providers: java.lang.ClassNotFoundException: org.jboss.resteasy.plugins.providers.jackson.ResteasyJacksonProvider from [Module "deployment.test.war" from Service Module Loader] at org.jboss.modules.ModuleClassLoader.findClass(ModuleClassLoader.java:198) [jboss-modules-1.6.1.Final.jar:1.6.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClassUnchecked(ConcurrentClassLoader.java:412) [jboss-modules-1.6.1.Final.jar:1.6.1.Final] at org.jboss.modules.ConcurrentClassLoader.performLoadClass(ConcurrentClassLoader.java:400) [jboss-modules-1.6.1.Final.jar:1.6.1.Final] at org.jboss.modules.ConcurrentClassLoader.loadClass(ConcurrentClassLoader.java:116) [jboss-modules-1.6.1.Final.jar:1.6.1.Final] at org.jboss.resteasy.plugins.providers.RegisterBuiltin.registerProviders(RegisterBuiltin.java:70) [resteasy-jaxrs-3.0.19.Final.jar:3.0.19.Final] at org.jboss.resteasy.plugins.providers.RegisterBuiltin.register(RegisterBuiltin.java:31) [resteasy-jaxrs-3.0.19.Final.jar:3.0.19.Final] at org.jboss.resteasy.spi.ResteasyDeployment.start(ResteasyDeployment.java:230) [resteasy-jaxrs-3.0.19.Final.jar:3.0.19.Final] at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.init(ServletContainerDispatcher.java:113) [resteasy-jaxrs-3.0.19.Final.jar:3.0.19.Final] at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.init(HttpServletDispatcher.java:36) [resteasy-jaxrs-3.0.19.Final.jar:3.0.19.Final] at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:117) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at org.wildfly.extension.undertow.security.RunAsLifecycleInterceptor.init(RunAsLifecycleInterceptor.java:78) at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:103) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.core.ManagedServlet$DefaultInstanceStrategy.start(ManagedServlet.java:250) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.core.ManagedServlet.getServlet(ManagedServlet.java:171) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:84) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) [undertow-servlet-1.4.0.Final.jar:1.4.0.Final] at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805) [undertow-core-1.4.0.Final.jar:1.4.0.Final] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [rt.jar:1.8.0_144] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [rt.jar:1.8.0_144] at java.lang.Thread.run(Thread.java:748) [rt.jar:1.8.0_144] 19:24:21,864 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-11) RESTEASY002142: Multiple resource methods match request "GET /microstories/recents". Selecting one. Matching methods: [public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoryById(java.lang.Long), public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.listRecentStories()] 19:24:22,066 INFO [org.hibernate.hql.internal.QueryTranslatorFactoryInitiator] (default task-11) HHH000397: Using ASTQueryTranslatorFactory Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ where story0_.published_at is not null order by story0_.published_at DESC, story0_.id DESC limit ? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select story0_.id as id1_0_0_, story0_.author as author6_0_0_, story0_.content as content2_0_0_, story0_.genre as genre3_0_0_, story0_.published_at as publishe4_0_0_, story0_.title as title5_0_0_, user1_.id as id1_3_1_, user1_.password as password2_3_1_, user1_.role as role3_3_1_, user1_.username as username4_3_1_ from story story0_ inner join user user1_ on story0_.author=user1_.id where story0_.id=? Hibernate: select views0_.story_id as story_id1_2_0_, views0_.viewed_at as viewed_a2_2_0_ from story_views views0_ where views0_.story_id=? Hibernate: insert into story_views (story_id, viewed_at) values (?, ?) Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select story0_.id as id1_0_0_, story0_.author as author6_0_0_, story0_.content as content2_0_0_, story0_.genre as genre3_0_0_, story0_.published_at as publishe4_0_0_, story0_.title as title5_0_0_, user1_.id as id1_3_1_, user1_.password as password2_3_1_, user1_.role as role3_3_1_, user1_.username as username4_3_1_ from story story0_ inner join user user1_ on story0_.author=user1_.id where story0_.id=? Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ where (story0_.published_at is not null) and (lower(story0_.title) like lower(?) or lower(story0_.content) like lower(?)) order by story0_.published_at DESC, story0_.id DESC limit ? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? 19:24:24,762 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-10) RESTEASY002142: Multiple resource methods match request "GET /microstories/filter". Selecting one. Matching methods: [public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoryById(java.lang.Long), public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoriesByFilter(es.uvigo.esei.microstories.domain.types.GenreType,es.uvigo.esei.microstories.domain.types.ThemeType,java.util.Date,int,int)] Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ where (story0_.published_at is not null) and story0_.genre=? order by story0_.published_at DESC, story0_.id DESC limit ? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? 19:24:24,993 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-15) RESTEASY002142: Multiple resource methods match request "GET /microstories/filter". Selecting one. Matching methods: [public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoryById(java.lang.Long), public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoriesByFilter(es.uvigo.esei.microstories.domain.types.GenreType,es.uvigo.esei.microstories.domain.types.ThemeType,java.util.Date,int,int)] 19:24:25,015 WARN [org.hibernate.orm.deprecation] (default task-15) HHH90000016: Found use of deprecated 'collection property' syntax in HQL/JPQL query [null.elements]; use collection function syntax instead [elements(null)]. Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ where (story0_.published_at is not null) and (? in (select themes1_.theme from story_themes themes1_ where story0_.id=themes1_.story_id)) order by story0_.published_at DESC, story0_.id DESC limit ? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? 19:24:25,263 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-19) RESTEASY002142: Multiple resource methods match request "GET /microstories/filter". Selecting one. Matching methods: [public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoryById(java.lang.Long), public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoriesByFilter(es.uvigo.esei.microstories.domain.types.GenreType,es.uvigo.esei.microstories.domain.types.ThemeType,java.util.Date,int,int)] Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ where (story0_.published_at is not null) and story0_.published_at>=? and story0_.published_at<=? order by story0_.published_at DESC, story0_.id DESC limit ? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? 19:24:25,594 WARN [org.jboss.resteasy.resteasy_jaxrs.i18n] (default task-25) RESTEASY002142: Multiple resource methods match request "GET /microstories/filter". Selecting one. Matching methods: [public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoryById(java.lang.Long), public javax.ws.rs.core.Response es.uvigo.esei.microstories.rest.StoryResource.getStoriesByFilter(es.uvigo.esei.microstories.domain.types.GenreType,es.uvigo.esei.microstories.domain.types.ThemeType,java.util.Date,int,int)] 19:24:25,610 WARN [org.hibernate.orm.deprecation] (default task-25) HHH90000016: Found use of deprecated 'collection property' syntax in HQL/JPQL query [null.elements]; use collection function syntax instead [elements(null)]. Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ where (story0_.published_at is not null) and story0_.genre=? and (? in (select themes1_.theme from story_themes themes1_ where story0_.id=themes1_.story_id)) and story0_.published_at>=? and story0_.published_at<=? order by story0_.published_at DESC, story0_.id DESC limit ? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ left outer join story_views views1_ on story0_.id=views1_.story_id where story0_.published_at is not null group by story0_.id order by SUM(case when views1_.viewed_at between ? and ? then 1 else 0 end) DESC, story0_.published_at DESC, story0_.id DESC Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select user0_.id as id1_3_0_, user0_.password as password2_3_0_, user0_.role as role3_3_0_, user0_.username as username4_3_0_ from user user0_ where user0_.id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select themes0_.story_id as story_id1_1_0_, themes0_.theme as theme2_1_0_ from story_themes themes0_ where themes0_.story_id=? Hibernate: select story0_.id as id1_0_, story0_.author as author6_0_, story0_.content as content2_0_, story0_.genre as genre3_0_, story0_.published_at as publishe4_0_, story0_.title as title5_0_ from story story0_ left outer join story_views views1_ on story0_.id=views1_.story_id where story0_.published_at is not null group by story0_.id order by SUM(case when views1_.viewed_at between ? and ? then 1 else 0 end) DESC, story0_.published_at DESC, story0_.id DESC Hibernate: select story0_.id as id1_0_0_, story0_.author as author6_0_0_, story0_.content as content2_0_0_, story0_.genre as genre3_0_0_, story0_.published_at as publishe4_0_0_, story0_.title as title5_0_0_, user1_.id as id1_3_1_, user1_.password as password2_3_1_, user1_.role as role3_3_1_, user1_.username as username4_3_1_ from story story0_ inner join user user1_ on story0_.author=user1_.id where story0_.id=? es.uvigo.esei.microstories.services.exceptions.EntityNotFoundException: Story not found with id: 9999 at es.uvigo.esei.microstories.services.StoryService.getStoryById(StoryService.java:67) 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 org.jboss.as.ee.component.ManagedReferenceMethodInterceptor.processInvocation(ManagedReferenceMethodInterceptor.java:52) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.doMethodInterception(Jsr299BindingsInterceptor.java:82) at org.jboss.as.weld.ejb.Jsr299BindingsInterceptor.processInvocation(Jsr299BindingsInterceptor.java:93) at org.jboss.as.ee.component.interceptors.UserInterceptorFactory$1.processInvocation(UserInterceptorFactory.java:63) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.invocationmetrics.ExecutionTimeInterceptor.processInvocation(ExecutionTimeInterceptor.java:43) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.jpa.interceptor.SBInvocationInterceptor.processInvocation(SBInvocationInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.InterceptorContext$Invocation.proceed(InterceptorContext.java:437) at org.jboss.weld.ejb.AbstractEJBRequestScopeActivationInterceptor.aroundInvoke(AbstractEJBRequestScopeActivationInterceptor.java:64) at org.jboss.as.weld.ejb.EjbRequestScopeActivationInterceptor.processInvocation(EjbRequestScopeActivationInterceptor.java:83) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ee.concurrent.ConcurrentContextInterceptor.processInvocation(ConcurrentContextInterceptor.java:45) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.InitialInterceptor.processInvocation(InitialInterceptor.java:21) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.interceptors.ComponentDispatcherInterceptor.processInvocation(ComponentDispatcherInterceptor.java:52) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.interceptors.NonPooledEJBComponentInstanceAssociatingInterceptor.processInvocation(NonPooledEJBComponentInstanceAssociatingInterceptor.java:59) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.tx.CMTTxInterceptor.invokeInOurTx(CMTTxInterceptor.java:275) at org.jboss.as.ejb3.tx.CMTTxInterceptor.required(CMTTxInterceptor.java:327) at org.jboss.as.ejb3.tx.CMTTxInterceptor.processInvocation(CMTTxInterceptor.java:239) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.interceptors.CurrentInvocationContextInterceptor.processInvocation(CurrentInvocationContextInterceptor.java:41) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.invocationmetrics.WaitTimeInterceptor.processInvocation(WaitTimeInterceptor.java:47) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.security.AuthorizationInterceptor.processInvocation(AuthorizationInterceptor.java:138) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.security.SecurityContextInterceptor.processInvocation(SecurityContextInterceptor.java:100) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.deployment.processors.StartupAwaitInterceptor.processInvocation(StartupAwaitInterceptor.java:22) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.interceptors.ShutDownInterceptorFactory$1.processInvocation(ShutDownInterceptorFactory.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.interceptors.LoggingInterceptor.processInvocation(LoggingInterceptor.java:67) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ee.component.NamespaceContextInterceptor.processInvocation(NamespaceContextInterceptor.java:50) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.as.ejb3.component.interceptors.AdditionalSetupInterceptor.processInvocation(AdditionalSetupInterceptor.java:54) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.ContextClassLoaderInterceptor.processInvocation(ContextClassLoaderInterceptor.java:64) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356) at org.wildfly.security.manager.WildFlySecurityManager.doChecked(WildFlySecurityManager.java:636) at org.jboss.invocation.AccessCheckingInterceptor.processInvocation(AccessCheckingInterceptor.java:61) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.InterceptorContext.run(InterceptorContext.java:356) at org.jboss.invocation.PrivilegedWithCombinerInterceptor.processInvocation(PrivilegedWithCombinerInterceptor.java:80) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.ViewService$View.invoke(ViewService.java:198) at org.jboss.as.ee.component.ViewDescription$1.processInvocation(ViewDescription.java:185) at org.jboss.invocation.InterceptorContext.proceed(InterceptorContext.java:340) at org.jboss.invocation.ChainedInterceptor.processInvocation(ChainedInterceptor.java:61) at org.jboss.as.ee.component.ProxyInvocationHandler.invoke(ProxyInvocationHandler.java:73) at es.uvigo.esei.microstories.services.StoryService$$$view1.getStoryById(Unknown Source) at es.uvigo.esei.microstories.rest.StoryResource.updateUserMicrostory(StoryResource.java:129) at es.uvigo.esei.microstories.rest.StoryResource$Proxy$_$$_WeldClientProxy.updateUserMicrostory(Unknown Source) 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 org.jboss.resteasy.core.MethodInjectorImpl.invoke(MethodInjectorImpl.java:139) at org.jboss.resteasy.core.ResourceMethodInvoker.invokeOnTarget(ResourceMethodInvoker.java:295) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:249) at org.jboss.resteasy.core.ResourceMethodInvoker.invoke(ResourceMethodInvoker.java:236) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:402) at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:209) at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:221) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:56) at org.jboss.resteasy.plugins.server.servlet.HttpServletDispatcher.service(HttpServletDispatcher.java:51) at javax.servlet.http.HttpServlet.service(HttpServlet.java:790) at io.undertow.servlet.handlers.ServletHandler.handleRequest(ServletHandler.java:85) at io.undertow.servlet.handlers.security.ServletSecurityRoleHandler.handleRequest(ServletSecurityRoleHandler.java:62) at io.undertow.servlet.handlers.ServletDispatchingHandler.handleRequest(ServletDispatchingHandler.java:36) at org.wildfly.extension.undertow.security.SecurityContextAssociationHandler.handleRequest(SecurityContextAssociationHandler.java:78) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.security.SSLInformationAssociationHandler.handleRequest(SSLInformationAssociationHandler.java:131) at io.undertow.servlet.handlers.security.ServletAuthenticationCallHandler.handleRequest(ServletAuthenticationCallHandler.java:57) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.security.handlers.AuthenticationConstraintHandler.handleRequest(AuthenticationConstraintHandler.java:53) at io.undertow.security.handlers.AbstractConfidentialityHandler.handleRequest(AbstractConfidentialityHandler.java:46) at io.undertow.servlet.handlers.security.ServletConfidentialityConstraintHandler.handleRequest(ServletConfidentialityConstraintHandler.java:64) at io.undertow.servlet.handlers.security.ServletSecurityConstraintHandler.handleRequest(ServletSecurityConstraintHandler.java:59) at io.undertow.security.handlers.AuthenticationMechanismsHandler.handleRequest(AuthenticationMechanismsHandler.java:60) at io.undertow.servlet.handlers.security.CachedAuthenticatedSessionHandler.handleRequest(CachedAuthenticatedSessionHandler.java:77) at io.undertow.security.handlers.NotificationReceiverHandler.handleRequest(NotificationReceiverHandler.java:50) at io.undertow.security.handlers.AbstractSecurityContextAssociationHandler.handleRequest(AbstractSecurityContextAssociationHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at org.wildfly.extension.undertow.security.jacc.JACCContextIdHandler.handleRequest(JACCContextIdHandler.java:61) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.server.handlers.PredicateHandler.handleRequest(PredicateHandler.java:43) at io.undertow.servlet.handlers.ServletInitialHandler.handleFirstRequest(ServletInitialHandler.java:292) at io.undertow.servlet.handlers.ServletInitialHandler.access$100(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:138) at io.undertow.servlet.handlers.ServletInitialHandler$2.call(ServletInitialHandler.java:135) at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:48) at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44) at io.undertow.servlet.handlers.ServletInitialHandler.dispatchRequest(ServletInitialHandler.java:272) at io.undertow.servlet.handlers.ServletInitialHandler.access$000(ServletInitialHandler.java:81) at io.undertow.servlet.handlers.ServletInitialHandler$1.handleRequest(ServletInitialHandler.java:104) at io.undertow.server.Connectors.executeRootHandler(Connectors.java:202) at io.undertow.server.HttpServerExchange$1.run(HttpServerExchange.java:805) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748) Hibernate: select story0_.id as id1_0_0_, story0_.author as author6_0_0_, story0_.content as content2_0_0_, story0_.genre as genre3_0_0_, story0_.published_at as publishe4_0_0_, story0_.title as title5_0_0_, user1_.id as id1_3_1_, user1_.password as password2_3_1_, user1_.role as role3_3_1_, user1_.username as username4_3_1_ from story story0_ inner join user user1_ on story0_.author=user1_.id where story0_.id=? Hibernate: select story0_.id as id1_0_0_, story0_.author as author6_0_0_, story0_.content as content2_0_0_, story0_.genre as genre3_0_0_, story0_.published_at as publishe4_0_0_, story0_.title as title5_0_0_, user1_.id as id1_3_1_, user1_.password as password2_3_1_, user1_.role as role3_3_1_, user1_.username as username4_3_1_ from story story0_ inner join user user1_ on story0_.author=user1_.id where story0_.id=? Hibernate: delete from story_themes where story_id=? Hibernate: delete from story_views where story_id=? Hibernate: delete from story where id=? 19:24:27,098 INFO [org.wildfly.extension.undertow] (ServerService Thread Pool -- 9) WFLYUT0022: Unregistered web context: /test 19:24:27,163 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0011: Stopping Persistence Unit (phase 2 of 2) Service 'test.war#test' 19:24:27,164 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 63) HHH000227: Running hbm2ddl schema export Hibernate: drop table story if exists Hibernate: drop table story_themes if exists Hibernate: drop table story_views if exists Hibernate: drop table user if exists 19:24:27,175 INFO [org.hibernate.tool.hbm2ddl.SchemaExport] (ServerService Thread Pool -- 63) HHH000230: Schema export complete 19:24:27,184 INFO [org.jboss.as.jpa] (ServerService Thread Pool -- 63) WFLYJPA0011: Stopping Persistence Unit (phase 1 of 2) Service 'test.war#test' 19:24:27,196 INFO [org.jboss.as.clustering.infinispan] (ServerService Thread Pool -- 63) WFLYCLINF0003: Stopped client-mappings cache from ejb container 19:24:27,231 INFO [org.jboss.as.server.deployment] (MSC service thread 1-1) WFLYSRV0028: Stopped deployment test.war (runtime-name: test.war) in 167ms 19:24:27,256 WARN [org.jboss.as.controller] (management-handler-thread - 3) WFLYCTL0357: Notification of type deployment-undeployed is not described for the resource at the address [] 19:24:27,262 INFO [org.jboss.as.repository] (management-handler-thread - 3) WFLYDR0002: Content removed from location /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/wildfly-10.1.0.Final/standalone/data/content/e5/2f6be760fb4d06b2d27c93263cc968a5599c97/content 19:24:27,263 INFO [org.jboss.as.server] (management-handler-thread - 3) WFLYSRV0009: Undeployed "test.war" (runtime-name: "test.war") [INFO] Tests run: 39, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 45.28 s - in es.uvigo.esei.microstories.rest.ResourceUnitTestSuite 19:24:27,277 WARNING [org.jboss.arquillian.core.spi.ObserverMethod] (main) Argument 2 for ArquillianServiceDeployer.undeploy is null. It won't be invoked. 19:24:27,293 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-1) WFLYJCA0010: Unbound data source [java:jboss/datasources/dgss2526/teamA/microstories] 19:24:27,295 INFO [org.jboss.as.connector.subsystems.datasources] (MSC service thread 1-4) WFLYJCA0010: Unbound data source [java:jboss/datasources/ExampleDS] 19:24:27,331 INFO [org.wildfly.extension.undertow] (MSC service thread 1-3) WFLYUT0019: Host default-host stopping 19:24:27,341 INFO [org.jboss.as.connector.deployers.jdbc] (MSC service thread 1-4) WFLYJCA0019: Stopped Driver service with driver-name = h2 19:24:27,370 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0008: Undertow HTTP listener default suspending 19:24:27,373 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0007: Undertow HTTP listener default stopped, was bound to 127.0.0.1:28080 19:24:27,379 INFO [org.wildfly.extension.undertow] (MSC service thread 1-4) WFLYUT0004: Undertow 1.4.0.Final stopping 19:24:27,426 INFO [org.jboss.as] (MSC service thread 1-1) WFLYSRV0050: WildFly Full 10.1.0.Final (WildFly Core 2.2.0.Final) stopped in 112ms [INFO] [INFO] Results: [INFO] [INFO] Tests run: 39, Failures: 0, Errors: 0, Skipped: 0 [INFO] [JENKINS] Recording test results [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:report (post-unit-test) @ dgss2526-teamA-microstories-rest --- [INFO] Loading execution data file /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/jacoco.exec [INFO] Analyzed bundle 'REST' with 3 classes [INFO] [INFO] --- maven-war-plugin:3.3.2:war (default-war) @ dgss2526-teamA-microstories-rest --- [INFO] Packaging webapp [INFO] Assembling webapp [dgss2526-teamA-microstories-rest] in [/var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT] [INFO] Processing war project [INFO] Copying webapp resources [/var/lib/jenkins/workspace/microstories-2526-teamA/rest/src/main/webapp] [INFO] Building war: /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT.war [INFO] [INFO] >>> maven-source-plugin:3.0.1:jar (attach-sources) > generate-sources @ dgss2526-teamA-microstories-rest >>> [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-test) @ dgss2526-teamA-microstories-rest --- [INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/jacoco.exec,classdumpdir=/var/lib/jenkins/workspace/microstories-2526-teamA/target/classes [WARNING] Failed to getClass for org.apache.maven.plugins.source.SourceJarMojo [INFO] [INFO] <<< maven-source-plugin:3.0.1:jar (attach-sources) < generate-sources @ dgss2526-teamA-microstories-rest <<< [INFO] [INFO] [INFO] --- maven-source-plugin:3.0.1:jar (attach-sources) @ dgss2526-teamA-microstories-rest --- [INFO] Building jar: /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT-sources.jar [INFO] [INFO] --- maven-javadoc-plugin:2.10.4:jar (attach-javadocs) @ dgss2526-teamA-microstories-rest --- [INFO] Loading source files for package es.uvigo.esei.microstories.annotations... Loading source files for package es.uvigo.esei.microstories.rest... Loading source files for package es.uvigo.esei.microstories.converters... Loading source files for package es.uvigo.esei.microstories.providers... Constructing Javadoc information... Standard Doclet version 1.8.0_144 Building tree for all the packages and classes... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/annotations/DateFormat.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/rest/StoryResource.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/converters/DateParamConverter.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/providers/DateParamConverterProvider.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/overview-frame.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/annotations/package-frame.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/annotations/package-summary.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/annotations/package-tree.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/converters/package-frame.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/converters/package-summary.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/converters/package-tree.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/providers/package-frame.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/providers/package-summary.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/providers/package-tree.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/rest/package-frame.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/rest/package-summary.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/rest/package-tree.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/constant-values.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/annotations/class-use/DateFormat.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/rest/class-use/StoryResource.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/converters/class-use/DateParamConverter.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/providers/class-use/DateParamConverterProvider.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/annotations/package-use.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/converters/package-use.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/providers/package-use.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/es/uvigo/esei/microstories/rest/package-use.html... Building index for all the packages and classes... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/overview-tree.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/index-all.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/deprecated-list.html... Building index for all classes... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/allclasses-frame.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/allclasses-noframe.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/index.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/overview-summary.html... Generating /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/apidocs/help-doc.html... [INFO] Building jar: /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT-javadoc.jar [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-integration-test) @ dgss2526-teamA-microstories-rest --- [INFO] argLine set to -javaagent:/var/lib/jenkins/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/jacoco.exec,classdumpdir=/var/lib/jenkins/workspace/microstories-2526-teamA/target/classes [INFO] [INFO] --- jacoco-maven-plugin:0.7.9:report (post-integration-test) @ dgss2526-teamA-microstories-rest --- [INFO] Loading execution data file /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/jacoco.exec [INFO] Analyzed bundle 'REST' with 3 classes [INFO] [INFO] --- maven-install-plugin:2.4:install (default-install) @ dgss2526-teamA-microstories-rest --- [INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT.war to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-rest/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT.war [INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/rest/pom.xml to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-rest/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT.pom [INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT-sources.jar to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-rest/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT-sources.jar [INFO] Installing /var/lib/jenkins/workspace/microstories-2526-teamA/rest/target/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT-javadoc.jar to /var/lib/jenkins/.m2/repository/es/uvigo/esei/dgss/teamA/microstories/dgss2526-teamA-microstories-rest/0.1.0-SNAPSHOT/dgss2526-teamA-microstories-rest-0.1.0-SNAPSHOT-javadoc.jar