windows - Kan ikke oprette spring boot initialzr projekt (En org.springframework.web.client.HttpClientErrorException undtagelse er opstået)

Indlæg af Hanne Mølgaard Plasc

Problem



Jeg har fulgt denne vejledning, men kan ikke oprette et springboot-projekt:
https://jaxenter.com/playing-with-spring-boot-docker-in-netbeans-ide-127672.html[3]


Jeg får følgende fejl, når jeg prøver at oprette et springboot-projekt:


Caused: org.springframework.web.client.HttpClientErrorException: 400 Bad Request; nested exception is 
    at org.springframework.web.client.DefaultResponseErrorHandler.handleError(DefaultResponseErrorHandler.java:91)
    at org.springframework.web.client.RestTemplate.handleResponse(RestTemplate.java:700)
    at org.springframework.web.client.RestTemplate.doExecute(RestTemplate.java:653)
    at org.springframework.web.client.RestTemplate.execute(RestTemplate.java:628)
    at org.springframework.web.client.RestTemplate.exchange(RestTemplate.java:590)
    at com.github.alexfalappa.nbspringboot.projects.initializr.InitializrService.getMetadata(InitializrService.java:68)
    at com.github.alexfalappa.nbspringboot.projects.initializr.InitializrProjectWizardPanel1.getInitializrMetadata(InitializrProjectWizardPanel1.java:122)
[catch] at com.github.alexfalappa.nbspringboot.projects.initializr.InitializrProjectPanelVisual1.construct(InitializrProjectPanelVisual1.java:332)
    at org.openide.util.AsyncInitSupport.run(AsyncInitSupport.java:168)
    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:1443)
    at org.netbeans.modules.openide.util.GlobalLookup.execute(GlobalLookup.java:68)
    at org.openide.util.lookup.Lookups.executeWith(Lookups.java:303)
    at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:2058)


Jeg bruger følgende værktøjer:
Docker værktøjskasse til vinduer
, NetBeans IDE Build 201701260001
, Oracle VM VirtualBox 5.1.4 (nyeste version)
, nb-springboot-1.4


Docker synes at løbe smootly uden problemer, så jeg tror ikke problemet ligger der.
På den anden side er netbeans docker service container og billeder tomme, men jeg er i stand til at oprette forbindelse til tjenesten.
Docker hurtigstart terminal:


Running pre-create checks...
Creating machine...
(default) Copying C:UsersHung.dockermachinecacheoot2docker.iso to C:UsersHung.dockermachinemachinesdefaultoot2docker.iso...
(default) Creating VirtualBox VM...
(default) Creating SSH key...
(default) Starting the VM...
(default) Check network to re-create if needed...
(default) Waiting for an IP...
Waiting for machine to be running, this may take a few minutes...
Detecting operating system of created instance...
Waiting for SSH to be available...
Detecting the provisioner...
Provisioning with boot2docker...
Copying certs to the local machine directory...
Copying certs to the remote machine...
Setting Docker configuration on the remote daemon...
Checking connection to Docker...
Docker is up and running!
To see how to connect your Docker Client to the Docker Engine running on this virtual machine, run: C:Program FilesDocker Toolboxdocker-machine.exe env default



                        ##         .
                  ## ## ##        ==
               ## ## ## ## ##    ===
           /"""""""""""""""""\_\_\_/ ===
      ~~~ {~~ ~~~~ ~~~ ~~~~ ~~~ ~ /  ===- ~~~
           \_\_\_\_\_\_ o           \_\_/
                          \_\_/
              \_\_\_\_\_\_\_\_\_\_\_/

docker is configured to use the default machine with IP 192.168.99.102
For help getting started, check out the docs at https://docs.docker.com

Start interactive shell

Hung@DESKTOP-7MFR98J MINGW64 ~
$


Opdatering: Jeg kunne ikke løse problemet, men kunne skabe spring boot-projekt fra http://start.spring.io. [4]

Bedste reference