Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid meta-data if Sagan does not provide a default boot version #267

Closed
tan9 opened this issue Jul 29, 2016 · 19 comments
Closed

Invalid meta-data if Sagan does not provide a default boot version #267

tan9 opened this issue Jul 29, 2016 · 19 comments
Assignees
Milestone

Comments

@tan9
Copy link

tan9 commented Jul 29, 2016

I can not create new Spring Boot Starter projects from my IDE:

IntelliJ IDEA:
sts

STS:
sts

And I paste the full url generated by STS:
http://start.spring.io/starter.zip?name=demo&groupId=com.example&artifactId=demo&version=0.0.1-SNAPSHOT&description=Demo+project+for+Spring+Boot&packageName=com.example&type=maven-project&packaging=jar&javaVersion=1.8&language=java

to browser, I got white label error page:

whitelabel

saying:

boot version must not be null

@snicoll
Copy link
Contributor

snicoll commented Jul 29, 2016

Investigating....

@snicoll snicoll self-assigned this Jul 29, 2016
@snicoll
Copy link
Contributor

snicoll commented Jul 29, 2016

I think I've fixed production and I know what is going on. Can you try again please?

@snicoll snicoll added status: waiting-for-feedback We need additional information before we can continue type: bug labels Jul 29, 2016
@snicoll snicoll changed the title http://start.spring.io/ services seem broken for IntelliJ IDEA and STS Invalid meta-data if Sagan does not provide a default boot version Jul 29, 2016
@tan9
Copy link
Author

tan9 commented Jul 29, 2016

@snicoll Both IDEs can create start projects without problem! 👍

@snicoll
Copy link
Contributor

snicoll commented Jul 29, 2016

OK so the problem was that when we released 1.4.0 we forgot to tick the default value. Sagan was giving us 4 boot versions to use but none was declared as the default. It turns out that because we don't know what the default is, we won't set it if none is provided (that's the STS issue). If no default boot version is provided in the meta-data, IJ crashes. I've created an issue in their tracker for that.

On my side, I am changing the code so that it never happens again. We'll select the first version in the list as the default if non is provided.

@snicoll snicoll removed the status: waiting-for-feedback We need additional information before we can continue label Jul 29, 2016
@snicoll snicoll added this to the 0.2.0 milestone Jul 29, 2016
@Codingshare
Copy link

We an see the same issue again.
Initialization failed for 'https://start.spring.io'

@hussain21j
Copy link

The issue still remains

@wilkinsona
Copy link
Contributor

wilkinsona commented Jun 28, 2018

It works for me. That's what I'd expect given the fix in d018782 and the presence of a default version (current being true) in the current metadata:

        {
            "apiDocUrl": "http://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/api/",
            "artifactId": "spring-boot",
            "current": true,
            "generalAvailability": true,
            "groupId": "org.springframework.boot",
            "preRelease": false,
            "refDocUrl": "http://docs.spring.io/spring-boot/docs/2.0.3.RELEASE/reference/htmlsingle/",
            "releaseStatus": "GENERAL_AVAILABILITY",
            "snapshot": false,
            "version": "2.0.3.RELEASE",
            "versionDisplayName": "2.0.3"
        }

You may have an issue, @hussain21j, but I don't think it's this one.

@Codingshare
Copy link

That error is probably due to proxy setting.

@caozongpeng
Copy link

image

@snicoll
Copy link
Contributor

snicoll commented Jul 13, 2018

@caozongpeng please see the comment just before yours.

@tonskton
Copy link

tonskton commented Jun 1, 2020

Done setting the proxy but still encountering the error.

@mahmutemrahsari
Copy link

Hi I have same problem with Intellij IDEA Ultimate 20201.1. Both windows and mac versions don`t work, @snicoll

Capture

@wilkinsona
Copy link
Contributor

wilkinsona commented Jun 1, 2020

It would appear that there's a hardcoded assumption about the format of Spring Boot's version number which is changing in 2.4 from 2.4.0.BUILD-SNAPSHOT to 2.4.0-SNAPSHOT. When this assumption is invalid, it breaks parsing of the metadata:

2020-06-01 18:09:41,937 [  18467]   INFO - arters.WebStarterOptionsLoader - Error processing JSON response from https://start.spring.io 
com.intellij.spring.boot.initializr.Version$InvalidVersionException: Could not determine version based on '2.4.0-M1': version format is Minor.Major.Patch.Qualifier (i.e. 1.0.5.RELEASE
        at com.intellij.spring.boot.initializr.Version.parse(Version.java:99)
        at com.intellij.spring.boot.initializr.VersionRange.parse(VersionRange.java:128)
        at com.intellij.spring.boot.initializr.SpringInitializrOptionsLoader.lambda$static$0(SpringInitializrOptionsLoader.java:47)
        at com.intellij.spring.boot.initializr.SpringInitializrOptionsLoader.createOptions(SpringInitializrOptionsLoader.java:195)
        at com.intellij.spring.boot.initializr.SpringInitializrOptionsLoader.parseDependencies(SpringInitializrOptionsLoader.java:153)
        at com.intellij.spring.boot.initializr.SpringInitializrOptionsLoader.parseJson(SpringInitializrOptionsLoader.java:118)
        at com.intellij.spring.boot.initializr.SpringInitializrModuleBuilder.parseOptionsDataJson(SpringInitializrModuleBuilder.java:229)
        at com.intellij.spring.boot.initializr.SpringInitializrModuleBuilder.parseOptionsDataJson(SpringInitializrModuleBuilder.java:46)
        at com.intellij.frameworks.starters.WebStarterOptionsLoader$1.process(WebStarterOptionsLoader.java:54)
        at com.intellij.frameworks.starters.WebStarterOptionsLoader$1.process(WebStarterOptionsLoader.java:34)
        at com.intellij.util.io.HttpRequests.doProcess(HttpRequests.java:516)
        at com.intellij.util.io.HttpRequests.process(HttpRequests.java:498)
        at com.intellij.util.io.HttpRequests.access$100(HttpRequests.java:56)
        at com.intellij.util.io.HttpRequests$RequestBuilderImpl.connect(HttpRequests.java:349)
        at com.intellij.frameworks.starters.WebStarterOptionsLoader.loadOptions(WebStarterOptionsLoader.java:34)
        at com.intellij.frameworks.starters.WebStarterApplicationInfoStep.lambda$loadOptions$4(WebStarterApplicationInfoStep.java:102)
        at com.intellij.util.RunnableCallable.call(RunnableCallable.java:20)
        at com.intellij.util.RunnableCallable.call(RunnableCallable.java:11)
        at com.intellij.openapi.application.impl.ApplicationImpl$1.call(ApplicationImpl.java:255)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:834)

I've temporarily removed 2.4.0-SNAPSHOT from the versions of Spring Boot that start.spring.io will offer. This will take a little while to update. Once 2.4 is no longer offered at https://start.spring.io, things should work again in IntelliJ IDEA.

@KevinWu97
Copy link

image

Having the same issue. Spring Initializr doesn't work.

@MirekKrenc
Copy link

I have the same issue

@DimaGilyov
Copy link

I have the same issue
image

@Sebastianmueller22
Copy link

For me it was a transient error. Switched my wifi off and on again and now it works. Had internet the whole time though and no proxy active

@MathlouthiKhitem
Copy link

i have this error :Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings. Error message: Cannot download 'https://start.spring.io': Connect timed out

@snicoll
Copy link
Contributor

snicoll commented Jun 16, 2023

@MathlouthiKhitem this is likely to be a network problem on your end.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests