Uploaded image for project: 'Marmotta'
  1. Marmotta
  2. MARMOTTA-547

Test Configuration fails when switching from h2 to postgres

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 3.2.1
    • Fix Version/s: None
    • Component/s: KiWi Triple Store
    • Labels:
      None
    • Environment:

      Windows 8.1 64bits, Java 7.0.67 32bits

      Description

      In order to improve performance, I wanted to switch to postrgres data base.

      1. I opened "Storage backend: KiWi > Database"
      2. Switch from h2 to postgres
      3. Click on Test Configuration

      I get a error message in Firefox:
      Internal Server Error(500):
      Could not find MessageBodyWriter for response object of type: org.apache.marmotta.platform.core.jaxrs.exceptionmappers.ErrorResponse of media type: application/octet-stream

      Here is the trace:

      Oct 04, 2014 2:23:17 AM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["http-bio-8080"]
      Oct 04, 2014 2:23:17 AM org.apache.coyote.AbstractProtocol init
      INFO: Initializing ProtocolHandler ["ajp-bio-8009"]
      Oct 04, 2014 2:23:17 AM org.apache.catalina.startup.Catalina load
      INFO: Initialization processed in 895 ms
      Oct 04, 2014 2:23:17 AM org.apache.catalina.core.StandardService startInternal
      INFO: Starting service Catalina
      Oct 04, 2014 2:23:17 AM org.apache.catalina.core.StandardEngine startInternal
      INFO: Starting Servlet Engine: Apache Tomcat/7.0.39
      Oct 04, 2014 2:23:17 AM org.apache.marmotta.splash.ProgressListener lifecycleEvent
      INFO: starting host instance
      Oct 04, 2014 2:23:17 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Users\colin\programs\marmotta\apache-tomcat-7.0.39\webapps\docs
      Oct 04, 2014 2:23:17 AM org.apache.marmotta.splash.common.MarmottaContext <init>
      INFO: instantiated new Marmotta/Tomcat webapp context (null)...
      Oct 04, 2014 2:23:17 AM org.apache.catalina.util.SessionIdGenerator createSecureRandom
      INFO: Creation of SecureRandom instance for session ID generation using [SHA1PRNG] took [135] milliseconds.
      Oct 04, 2014 2:23:18 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Users\colin\programs\marmotta\apache-tomcat-7.0.39\webapps\examples
      Oct 04, 2014 2:23:18 AM org.apache.marmotta.splash.common.MarmottaContext <init>
      INFO: instantiated new Marmotta/Tomcat webapp context (null)...
      Oct 04, 2014 2:23:18 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Users\colin\programs\marmotta\apache-tomcat-7.0.39\webapps\host-manager
      Oct 04, 2014 2:23:18 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Users\colin\programs\marmotta\apache-tomcat-7.0.39\webapps\manager
      Oct 04, 2014 2:23:18 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Users\colin\programs\marmotta\apache-tomcat-7.0.39\webapps\marmotta
      02:23:22.198 INFO - WELD-000900: 2.1.2 (Final)
      02:23:22.221 INFO - JNDI: registering Apache Marmotta JNDI implementation ...
      02:23:22.557 INFO - JNDI: initialising Apache Marmotta Context Factory ...
      02:23:22.562 INFO - JNDI: creating Apache Marmotta Initial Context ...
      02:23:22.719 INFO - WELD-000101: Transactional services not available. Injection of @Inject UserTransaction not available. Transactional observers wi
      ll be invoked synchronously.
      02:23:24.532 INFO - Tomcat 7+ detected, CDI injection will be available in Servlets and Filters. Injection into Listeners is not supported
      02:23:24.921 WARN - WELD-001700: Interceptor annotation class javax.ejb.PostActivate not found, interception based on it is not enabled
      02:23:24.923 WARN - WELD-001700: Interceptor annotation class javax.ejb.PrePassivate not found, interception based on it is not enabled
      02:23:25.377 INFO - Apache Marmotta Core Version 3.2.1 starting up ...
      02:23:25.378 INFO - Build Information:
      02:23:25.379 INFO - - Build User: Jakob Frank <jakob@apache.org>
      02:23:25.379 INFO - - Build Host: T440p
      02:23:25.381 INFO - - Build Time: Tue, 20 May 2014 09:45:37 CEST
      02:23:25.382 INFO - - Build OS: Linux 3.13.0-24-generic/amd64
      02:23:25.382 INFO - - Revision: git:1d73c3
      02:23:25.391 INFO - Configured working directory C:\Users\colin\programs\marmotta\marmotta-home from environment variable MARMOTTA_HOME
      02:23:25.392 INFO - Apache Marmotta Configuration Service starting up ...
      02:23:25.394 INFO - Apache Marmotta running on Apache Tomcat 7.x
      02:23:25.395 INFO - reading system configuration from existing configuration file C:\Users\colin\programs\marmotta\marmotta-home\system-config.proper
      ties
      02:23:25.403 INFO - reading system configuration metadata from existing configuration file C:\Users\colin\programs\marmotta\marmotta-home\system-meta
      .properties
      02:23:25.454 INFO - configuration successfully saved to C:\Users\colin\programs\marmotta\marmotta-home\system-config.properties
      02:23:25.458 INFO - configuration successfully saved to C:\Users\colin\programs\marmotta\marmotta-home\system-meta.properties
      02:23:25.463 INFO - Apache Marmotta Logging Service starting up ...
      02:23:25.599 INFO - - configured logging modules: Caching, CDI/Weld, Configuration, KiWi Backend, KiWi Reasoner, LDCache, LDClient, LDP, LDPath, Link
      ed Data, RestEasy, Security, Sesame, SPARQL, System, User
      02:23:25.602 INFO - - configured logging appenders: Syslog (LOCAL0), Marmotta Main Log, Marmotta Security Log, Marmotta Debug Log, Marmotta Console
      02:23:25.605 WARN - LOGGING: Switching to Apache Marmotta logging configuration; further output will be found in C:\Users\colin\programs\marmotta\mar
      motta-home\log*.log
      02:23:27.393 WARN - Apache Marmotta Core Version 3.2.1 has started up successfully!
      02:23:27.397 WARN - You can access the system now at the URL http://Ulysse:8080/marmotta/
      Oct 04, 2014 2:23:27 AM org.apache.catalina.startup.HostConfig deployDirectory
      INFO: Deploying web application directory C:\Users\colin\programs\marmotta\apache-tomcat-7.0.39\webapps\ROOT
      Oct 04, 2014 2:23:27 AM org.apache.marmotta.splash.common.MarmottaContext <init>
      INFO: instantiated new Marmotta/Tomcat webapp context (null)...
      Oct 04, 2014 2:23:27 AM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["http-bio-8080"]
      Oct 04, 2014 2:23:27 AM org.apache.coyote.AbstractProtocol start
      INFO: Starting ProtocolHandler ["ajp-bio-8009"]
      Oct 04, 2014 2:23:27 AM org.apache.catalina.startup.Catalina start
      INFO: Server startup in 10692 ms
      02:23:32.033 WARN - pattern (C:\Users\colin\programs\marmotta\marmotta-home/resources|http://ulysse:8080/marmotta/resource/|urn.* is not a valid re
      gular expression; disabling reader/writer filesystem (message was Illegal/unsupported escape sequence near index 4
      (C:\Users\colin\programs\marmotta\marmotta-home/resources|http://ulysse:8080/marmotta/resource/|urn.*
      ^)
      02:23:42.117 WARN - Failed executing POST /storage-kiwi/ping
      org.jboss.resteasy.core.NoMessageBodyWriterFoundFailure: Could not find MessageBodyWriter for response object of type: org.apache.marmotta.platform.co
      re.jaxrs.exceptionmappers.ErrorResponse of media type: application/octet-stream
      at org.jboss.resteasy.core.ServerResponseWriter.writeNomapResponse(ServerResponseWriter.java:67) ~[resteasy-jaxrs-3.0.6.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.writeResponse(SynchronousDispatcher.java:427) [resteasy-jaxrs-3.0.6.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.invoke(SynchronousDispatcher.java:376) [resteasy-jaxrs-3.0.6.Final.jar:na]
      at org.jboss.resteasy.core.SynchronousDispatcher.invokePropagateNotFound(SynchronousDispatcher.java:217) [resteasy-jaxrs-3.0.6.Final.jar:na]
      at org.jboss.resteasy.plugins.server.servlet.ServletContainerDispatcher.service(ServletContainerDispatcher.java:224) [resteasy-jaxrs-3.0.6.Fin
      al.jar:na]
      at org.jboss.resteasy.plugins.server.servlet.FilterDispatcher.doFilter(FilterDispatcher.java:62) [resteasy-jaxrs-3.0.6.Final.jar:na]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:186) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter.doFilter(ModuleResourceFilter.java:163) [marmotta-core-3.2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.filters.ModuleResourceFilter$Proxy$_$$_WeldClientProxy.doFilter(Unknown Source) [marmotta-core-3.2.1.jar:
      3.2.1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:183) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.filters.MarmottaServerNameFilter.doFilter(MarmottaServerNameFilter.java:104) [marmotta-core-3.2.1.jar:3.2
      .1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.filters.TemplatingFilter.doFilter(TemplatingFilter.java:176) [marmotta-core-3.2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.filters.TemplatingFilter$Proxy$_$$_WeldClientProxy.doFilter(Unknown Source) [marmotta-core-3.2.1.jar:3.2.
      1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter.doFilter(MarmottaAccessControlFilter.java:142) [marmotta-security
      -3.2.1.jar:3.2.1]
      at org.apache.marmotta.platform.security.filters.MarmottaAccessControlFilter$Proxy$_$$_WeldClientProxy.doFilter(Unknown Source) [marmotta-secu
      rity-3.2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter.doFilter(MarmottaAuthenticationFilter.java:163) [marmotta-user-3.2.1
      .jar:3.2.1]
      at org.apache.marmotta.platform.user.filters.MarmottaAuthenticationFilter$Proxy$_$$_WeldClientProxy.doFilter(Unknown Source) [marmotta-user-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter$LMFFilterChain.doFilter(MarmottaResourceFilter.java:181) [marmotta-core-3.
      2.1.jar:3.2.1]
      at org.apache.marmotta.platform.core.servlet.MarmottaResourceFilter.doFilter(MarmottaResourceFilter.java:132) [marmotta-core-3.2.1.jar:3.2.1]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39]
      at org.apache.marmotta.platform.core.servlet.MarmottaPreStartupFilter.doFilter(MarmottaPreStartupFilter.java:106) [marmotta-core-3.2.1.jar:3.2
      .1]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39]
      at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:169) [cors-filter-1.9.jar:1.9]
      at com.thetransactioncompany.cors.CORSFilter.doFilter(CORSFilter.java:232) [cors-filter-1.9.jar:1.9]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39]
      at org.apache.marmotta.platform.core.servlet.MarmottaOptionsFilter.doFilter(MarmottaOptionsFilter.java:83) [marmotta-core-3.2.1.jar:3.2.1]
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243) [catalina.jar:7.0.39]
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210) [catalina.jar:7.0.39]
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222) [catalina.jar:7.0.39]
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123) [catalina.jar:7.0.39]
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:472) [catalina.jar:7.0.39]
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171) [catalina.jar:7.0.39]
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:99) [catalina.jar:7.0.39]
      at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:947) [catalina.jar:7.0.39]
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118) [catalina.jar:7.0.39]
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408) [catalina.jar:7.0.39]
      at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1009) [tomcat-coyote.jar:7.0.39]
      at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:589) [tomcat-coyote.jar:7.0.39]
      at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:312) [tomcat-coyote.jar:7.0.39]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) [na:1.7.0_67]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) [na:1.7.0_67]
      at java.lang.Thread.run(Unknown Source) [na:1.7.0_67]

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              colinm Colin Maudry
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: