Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-7583

Export XAR fails in a minimal wiki setup

    XMLWordPrintable

Details

    • Unknown
    • N/A
    • N/A

    Description

      To reproduce, create a Maven module with:

      <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
        <modelVersion>4.0.0</modelVersion>
        <parent>
          <groupId>org.xwiki.platform</groupId>
          <artifactId>xwiki-platform-core</artifactId>
          <version>4.0-SNAPSHOT</version>
        </parent>
        <artifactId>xwiki-platform-minimaltest</artifactId>
        <name>Test</name>
        <packaging>functional-test</packaging>
        <description>Test</description>
        <properties>
          <xwikiCfgSuperadminPassword>pass</xwikiCfgSuperadminPassword>
        </properties>
        <dependencies>
          <!-- Test dependencies -->
          <dependency>
            <groupId>org.xwiki.platform</groupId>
            <artifactId>xwiki-platform-test</artifactId>
            <version>${project.version}</version>
            <scope>test</scope>
          </dependency>
        </dependencies>
        <build>
          <testSourceDirectory>src/test/it</testSourceDirectory>
          <plugins>
            <!-- Even though the functional-test packaging ensures that the packager plugin will execute we still need to
                 redefine it here in order to make sure the right version is used as otherwise Maven will use the last
                 released version which may be the wrong one. -->
            <plugin>
              <groupId>org.xwiki.platform</groupId>
              <artifactId>xwiki-platform-tool-packager-plugin</artifactId>
              <version>${project.version}</version>
            </plugin>
          </plugins>
          <extensions>
            <!-- Needed to add support for the "functional-test" packaging -->
            <extension>
              <groupId>org.xwiki.platform</groupId>
              <artifactId>xwiki-platform-tool-functional-test-lifecycle</artifactId>
              <version>${project.version}</version>
            </extension>
          </extensions>
        </build>
      </project>
      

      Then run "mvn install".
      Then go in target/xwiki/ and start XWiki from there: "sh start_xwiki.sh"
      Login as superadmin, create a page and try to export it

      It'll give:

      Detailed information:
          Error number 11015 in 11: Exception while exporting
      Wrapped Exception: null
      com.xpn.xwiki.XWikiException: Error number 11015 in 11: Exception while exporting
      Wrapped Exception: null
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:72)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352)
      	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
      	at org.eclipse.jetty.server.Server.handle(Server.java:346)
      	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
      	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
      	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
      	at java.lang.Thread.run(Thread.java:680)
      Caused by: java.lang.NullPointerException
      	at com.xpn.xwiki.web.ExportAction.exportXAR(ExportAction.java:241)
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:65)
      	... 42 more
      
      
      Wrapped Exception:
      
      java.lang.NullPointerException
      	at com.xpn.xwiki.web.ExportAction.exportXAR(ExportAction.java:241)
      	at com.xpn.xwiki.web.ExportAction.render(ExportAction.java:65)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:231)
      	at com.xpn.xwiki.web.XWikiAction.execute(XWikiAction.java:116)
      	at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:431)
      	at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:236)
      	at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1196)
      	at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:414)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:707)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
      	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:538)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1352)
      	at com.xpn.xwiki.web.ActionFilter.doFilter(ActionFilter.java:128)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.xwiki.wysiwyg.server.filter.ConversionFilter.doFilter(ConversionFilter.java:144)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at com.xpn.xwiki.plugin.webdav.XWikiDavFilter.doFilter(XWikiDavFilter.java:68)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.xwiki.container.servlet.filters.internal.SavedRequestRestorerFilter.doFilter(SavedRequestRestorerFilter.java:217)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.xwiki.container.servlet.filters.internal.SetCharacterEncodingFilter.doFilter(SetCharacterEncodingFilter.java:109)
      	at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1323)
      	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:476)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
      	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:517)
      	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:225)
      	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:937)
      	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
      	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:183)
      	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:871)
      	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
      	at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:247)
      	at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:149)
      	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:110)
      	at org.eclipse.jetty.server.Server.handle(Server.java:346)
      	at org.eclipse.jetty.server.HttpConnection.handleRequest(HttpConnection.java:589)
      	at org.eclipse.jetty.server.HttpConnection$RequestHandler.headerComplete(HttpConnection.java:1048)
      	at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:601)
      	at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:214)
      	at org.eclipse.jetty.server.HttpConnection.handle(HttpConnection.java:411)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:535)
      	at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:40)
      	at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:529)
      	at java.lang.Thread.run(Thread.java:680)
      

      Attachments

        Activity

          People

            vmassol Vincent Massol
            vmassol Vincent Massol
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: