Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't create a spring starter project in spring tool suite

JSONException: A JSONObject text must begin with { at character 0

I used spring-tool-suite-3.9.1.RELEASE-e4.7.1a-win32-x86_64, why can't I create a project directly in File->New->Spring Starter Project

I got the screenshot below.

enter image description here

like image 235
董嘉鹏 Avatar asked Nov 20 '17 11:11

董嘉鹏


5 Answers

It may be late, but others might find it useful. I faced the same issue when I was trying to create a project in eclipse using Spring Starter Project.

What I did was change the Service Url from http://start.spring.io/ to https://start.spring.io/. I just changed the http to https and it worked. I don't know if it is a security related error or what, but I was able to create a project.

like image 184
Sree Avatar answered Nov 20 '22 07:11

Sree


This is what I did:

  1. In eclipse go to -> window -> preferences -> General -> Network Connections.
  2. In Network Connections, select 'Direct' for Active Provider. And click Apply.
  3. Now try creating spring starter project with - https://start.spring.io/ url.

image

like image 30
Sirish Narayana Kommavarapu Avatar answered Nov 20 '22 08:11

Sirish Narayana Kommavarapu


Edit the URL to https://start.spring.io instead of http://start.spring.io (HTTP ⟶ HTTP/S).

like image 20
sunil maurya Avatar answered Nov 20 '22 06:11

sunil maurya


This looks like a connection problem with start.spring.io (or a proxy in between your machine and start.spring.io) - or a temporary problem on start.spring.io.

If this problem persists, you can easily workaround it by using your browser, go to http://start.spring.io, select the boot modules you would like to use, and download a ZIP of the project. Then unpack it locally and import it using "Import -> Maven -> Import as Existing Maven Project" into STS.

like image 3
Martin Lippert Avatar answered Nov 20 '22 08:11

Martin Lippert


  • Go to http://start.spring.io/ and generate the project there; pull down the zip and extract into a folder (preferably with the top-most dir being the same as the Artifact)
  • Import the project

That worked for me ....

like image 1
Isaac Riley Avatar answered Nov 20 '22 06:11

Isaac Riley