Plugin Test Console page not found

Hi community!

I’m working on upgrading my project to depend on Confluence 8.0.0 jar and JDK 11:

<confluence.version>8.0.0</confluence.version>

<dependency>
            <groupId>com.atlassian.confluence</groupId>
            <artifactId>confluence</artifactId>
            <version>${confluence.version}</version>
            <scope>provided</scope>
<dependency>

<build>
        <plugins>
            <plugin>
                <groupId>com.atlassian.maven.plugins</groupId>
                <artifactId>confluence-maven-plugin</artifactId>
                <version>${amps.version}</version>
                <extensions>true</extensions>
                <configuration>
                    <productVersion>${confluence.test.version}</productVersion>
                    <productDataVersion>${confluence.data.version}</productDataVersion>
                    <jvmArgs>-Xmx4g -Xms2g -XX:-UseGCOverheadLimit -Dsynchrony.proxy.enabled=false</jvmArgs>

                    <allowGoogleTracking>false</allowGoogleTracking>
                    <extractDependencies>false</extractDependencies>
                    <compressResources>false</compressResources>
                    <enableQuickReload>true</enableQuickReload>

                    <systemPropertyVariables>
                        <atlassian.darkfeature.site-wide.synchrony.opt-in.disable>true</atlassian.darkfeature.site-wide.synchrony.opt-in.disable>
                        <atlassian.darkfeature.site-wide.shared-drafts.disable>true</atlassian.darkfeature.site-wide.shared-drafts.disable>
                    </systemPropertyVariables>
                    <testGroups>
                        <testGroup>
                            <id>confluence-integration</id>
                            <productIds>
                                <productId>confluence</productId>
                            </productIds>
                            <includes>
                                <include>it/**/wired/**/requiresformat/*Test.java</include>
                                <include>it/**/wired/**/theme/*Test.java</include>
                                <include>it/**/wired/**/upgradetasks/*IT.java</include>
                            </includes>
                        </testGroup>
                    </testGroups>
                    <instructions>
                        <Import-Package>
                            com.opensymphony.xwork;resolution:=optional,
                            com.opensymphony.xwork2;resolution:=optional,
                            com.opensymphony.webwork;resolution:=optional,
                            org.apache.struts2;resolution:=optional,
                            org.apache.struts2.dispatcher;resolution:=optional,
                            <!-- As needed by any other compatibility code -->
                            com.opensymphony.webwork.*;resolution:=optional,
                            org.opensymphony.xwork*;resolution:=optional,
                            org.apache.struts2.*;resolution:=optional,
                            com.adaptavist.confluence.trimcomments;version="${adaptavist.trimcomments.version}";resolution:=optional,
                            *;version="0.0";resolution:=optional
                        </Import-Package>

                        <Export-Package></Export-Package>
                        <Spring-Context>*</Spring-Context>
                    </instructions>

                    <pluginArtifacts>
                        <pluginArtifact>
                            <groupId>com.atlassian.labs.plugins</groupId>
                            <artifactId>quickreload</artifactId>
                            <version>${quick.reload.version}</version>
                        </pluginArtifact>
                    </pluginArtifacts>
                </configuration>
            </plugin>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <version>3.8.1</version>
                <configuration>
                    <source>11</source>
                    <target>11</target>
                </configuration>
            </plugin>
        </plugins>
    </build>

I encountered an issue which is the Plugin Test Console went missing when I started my Confluence 8.0 instance, usually we can access the console page from the toolbox located and the bottom on the page.


I’m running with amps v8.6.0

Hope I can get some help on this in terms of what could be the issue. Is the plugin test console no longer available for Confluence 8.0 onwards or it’s not working with JDK 11?

On the other hand, I also tried running the test via the command mvn integration-test but I got this error instead:

com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 1 path $

Any advise would be appreciated!

I just found a solution, we have to use v2.0.6 or later of atlassian-plugins-osgi-testrunner in order to start up the test runner properly with JDK 11. As the bundled module atlassian-plugins-osgi-testrunner-bundle has the dependency of org.w2.asm:asm:9.6, and JDK 11 required at least asm7 to start up correctly.