Come for the products,
stay for the community

The Atlassian Community can help you and your team get more value out of Atlassian products and practices.

Atlassian Community about banner
4,364,648
Community Members
 
Community Events
168
Community Groups

Bamboo JavaSpec error: IllegalArgumentException: Expected authority at index 7: http://

Edited

Hi

My Bamboo version: 6.6.2 build 60606

I was following https://confluence.atlassian.com/bamboo/tutorial-bamboo-java-specs-stored-in-bitbucket-server-938641946.html guide.

And on the step step 5 "Bamboo will checkout your project, compile it and execute Bamboo Specs in a sandbox environment.": got an error:

Processing Specs within Docker containerjava.lang.IllegalArgumentException: Expected authority at index 7: http:// 

Full log:

Content of pom.xml used:
<?xml version="1.0" encoding="UTF-8" standalone="no"?><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">
    <!--Edit template at BAMBOO_INSTALL/atlassian-bamboo/WEB-INF/classes/bamboo-specs-pom.xml-->
    <modelVersion>4.0.0</modelVersion>
    <parent>
        <groupId>com.atlassian.bamboo</groupId>
        <artifactId>bamboo-specs-parent</artifactId>
        <version>6.6.2</version>
        <relativePath/>
    </parent>

    <artifactId>bamboo-specs-generator</artifactId>
    <version>1.0.0</version>
    <packaging>jar</packaging>
    <dependencies>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>bamboo-specs-api</artifactId>
    </dependency>
    <dependency>
      <groupId>com.atlassian.bamboo</groupId>
      <artifactId>bamboo-specs</artifactId>
    </dependency>

    <!-- Test dependencies -->
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <scope>test</scope>
    </dependency>
  </dependencies>
    <build>
        <plugins>
            <plugin>
                <groupId>org.apache.maven.plugins</groupId>
                <artifactId>maven-compiler-plugin</artifactId>
                <configuration>
                    <compilerArgs>
                        <compilerArg>-proc:none</compilerArg>
                    </compilerArgs>
                </configuration>
            </plugin>
        </plugins>
    </build>
</project>
Processing Specs within Docker containerjava.lang.IllegalArgumentException: Expected authority at index 7: http://
java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Expected authority at index 7: http://
	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.generateBambooYamlsFromSpecs(RepositoryStoredSpecsServiceImpl.java:492)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.processSpecs(RepositoryStoredSpecsServiceImpl.java:388)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.runBambooSpecs(RepositoryStoredSpecsServiceImpl.java:278)
	at com.atlassian.bamboo.configuration.external.RssDetectionServiceImpl.runRssDetection(RssDetectionServiceImpl.java:262)
	at com.atlassian.bamboo.configuration.external.detection.RssDetectionRunnable.run(RssDetectionRunnable.java:42)
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
	at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
	at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
	at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
	at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
	at java.lang.Thread.run(Thread.java:748)
Caused by: java.lang.IllegalArgumentException: Expected authority at index 7: http://
	at java.net.URI.create(URI.java:852)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.getProxyUri(ApacheConnector.java:415)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnector.<init>(ApacheConnector.java:254)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.apache.connector.ApacheConnectorProvider.getConnector(ApacheConnectorProvider.java:115)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientConfig$State.initRuntime(ClientConfig.java:425)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientConfig$State.access$000(ClientConfig.java:90)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientConfig$State$3.get(ClientConfig.java:122)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientConfig$State$3.get(ClientConfig.java:119)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.internal.util.collection.Values$LazyValueImpl.get(Values.java:340)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientConfig.getRuntime(ClientConfig.java:733)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.ClientRequest.getConfiguration(ClientRequest.java:286)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.validateHttpMethodAndEntity(JerseyInvocation.java:135)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:105)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:101)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation.<init>(JerseyInvocation.java:92)
	at com.spotify.docker.client.shaded.org.glassfish.jersey.client.JerseyInvocation$AsyncInvoker.method(JerseyInvocation.java:620)
	at com.spotify.docker.client.DefaultDockerClient.request(DefaultDockerClient.java:2631)
	at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:1250)
	at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:1227)
	at com.spotify.docker.client.DefaultDockerClient.pull(DefaultDockerClient.java:1221)
	at com.atlassian.bamboo.configuration.external.RepositoryStoredSpecsServiceImpl.lambda$runSpecsWithDocker$8(RepositoryStoredSpecsServiceImpl.java:688)
	... 8 more
Caused by: java.net.URISyntaxException: Expected authority at index 7: http://
	at java.net.URI$Parser.fail(URI.java:2848)
	at java.net.URI$Parser.failExpecting(URI.java:2854)
	at java.net.URI$Parser.parseHierarchical(URI.java:3102)
	at java.net.URI$Parser.parse(URI.java:3053)
	at java.net.URI.<init>(URI.java:588)
	at java.net.URI.create(URI.java:850)
	... 28 more


Do you need help? Please visit the http://docs.atlassian.com/bamboo/docs-0606/Bamboo+Specs+troubleshooting page.

I cant find anything related to this error...

Has anybody seen this? Am I missing someting maybe?

Thanks!

1 answer

1 accepted

0 votes
Answer accepted

Hello @Oleksii S_ Malakhov, welcome to the Atlassian Community :)

From what you described, it looks like the answer for your problem is the same answer you can find here. In short, Bamboo by default tries to run Specs inside Docker, so you need to either install Docker on the server that hosts Bamboo, or disable the feature at Bamboo Administration > Security > Edit > Process Bamboo Specs in Docker.

Did it help you?

Victor

Yup, it did the trick. Thanks a lot!

Like Victor Debone likes this

Suggest an answer

Log in or Sign up to answer
TAGS

Atlassian Community Events