Spring Initializr Error in Intellij Idea and STS on mac os - spring

I have installed Intellij Idea on my macbook. When I going to create a Spring project using Spring Initializr and press "next" button, it prompts an alert window with the heading "Spring Initilizr Error", and with message body -
"Initialisation failed for 'https://start.spring.io'
Please check URL, Network and Proxy settings
Error Message
Cannot download 'https://start.spring.io':
Status 403".
I have used https://start.spring.io as Spring Initializr url, which is being set by default in Intellij Idea. I have also tried the url changing as http://start.spring.io, but it also haven't worked too.
I have tried to use Spring Tool Suit (STS) to create Spring Initializr project and got this message: "IOException: Server returned HTTP response code: 403 for URL: https://start.spring.io".
My network connection is ok and firewall is turned off too. If someone have already faced this issue, please help me with your overcoming steps. I am struggling too much with this problem and wasted enough time with it. Thanks in advance.

press Ctrl+Alt+S and search for proxy. This will show you the proxies you have set for IntelliJ; try to remove or add any.
Remember spring website will block tor.

Related

FF4j Web console is not displayed properly

I am new to FF4J and started with hello world application.
I wrote a sample spring boot project and added dependency for ff4j-spring-boot-starter and ff4j-web modules in my pom.xml.
However, when I run the application, the FF4J web console is displayed distracted.
Below is my pom.xml and web console screenshot.
Below is the web console that I see
I am not sure what is the mistake here.
Please check and help. Thanks.
Please add "/" at end of the URL in browser. So if, the ff4j-console url is http://localhost:8080/ff4j-console it should be changed to http://localhost:8080/ff4j-console/
This resolved my problem.

Can't get Netbeans Project to acknowledge existing Tomcat or Glassfish Server

I haven't been able to figure out what I'm missing here.
I've installed Tomcat and can spin it up fine. (Glassfish too, in my efforts, but I had removed it when I took the screenshot.)
So now I want to hook my project up to the Tomcat instance so I can have Netbeans deploy it for me automatically.
I right-click on my project, go down to Properties. In Project Properties I select 'Run' and go to the drop down to select my server. Only, there's no servers.
Why is it not showing up here? Am I going about this all wrong?
Thanks in advance for any help!
Other potentially useful notes:
* Using Gradle (for my first time)
* Using Spring Boot (for my first time)
* On Windows 10 (don't hate me, I don't love it either)
I was chasing the wrong problem. Spring-boot provides an embedded server so I had no need to install and provide my own.
My real problem was that I had dependencies declared for jpa, postgresql, etc. that I hadn't configured in application.properties. When I tried to run, I'd get an error saying "a problem occurred starting process /path/to/my/jdk/java.exe". I couldn't figure what was going on and, looking around, I saw the issue mentioned in my question about the server.
The solution was to simply comment out the dependencies in my build.gradle until I was ready for them. After I got my PostgreSQL DB set up and added the configureation to application.properties, I was able to un-comment them and it's working great.

Spring boot application crashing on starting:Togglz: java.lang.IllegalStateException: Could not find the FeatureManager

i'm using toggle feature with toggle dependencies but when i tried to bring up the services some times application startup is failing saying could not find FeatureManger.
I followed server approaches but none of them worked well. in this post the issue been highlited by updating jar dependecy, even that also not working.
Please suggest if you have other fix available for this issue.
https://github.com/togglz/togglz/commit/22b20ef7c8758dc5deadf0a6c4726e8c8d73cf5c

Cannot create "Spring Starter Project" with STS 3.9.4

I am unable to create a Spring Starter Project with STS 3.9.4. I see the following error.
I tried the following approaches:
I looked at proxy settings in STS and set the "Active Provider" to manual. The help -> dashboard successfully rendered implying that it was able to tunnel through the proxy but the spring-starter-project was still failing.
I cleared the local password storage but still ran into the same issue.
I tried various settings of the "Active Provider" and the errors for the Spring Starter Project varied implying that it was definitely using the proxy settings in STS but was failing for some reason.
After some digging I found this in Java SE release notes:
Disable Basic authentication for HTTPS tunneling
I realized immediately that I had upgraded the version of JDK a few days ago. I believe I had Java SE 8 u45 prior to the upgrade. I had upgraded it to Java SE 8 u111 and the above change was causing the issue.
I added the following line in STS.ini and it solved the problem.
-Djdk.http.auth.tunneling.disabledSchemes=""

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.
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.
This is what I did:
In eclipse go to -> window -> preferences -> General -> Network Connections.
In Network Connections, select 'Direct' for Active Provider. And click Apply.
Now try creating spring starter project with - https://start.spring.io/ url.
Edit the URL to https://start.spring.io instead of http://start.spring.io (HTTP ⟶ HTTP/S).
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.
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 ....
Changing the URL from http://start.spring.io to https://start.spring.io
works for me .
In my case, I am in a corporate, and for that first you need to set up the proxy in the eclipse IDE; only then will it work.
just do the eclipse update .
in eclipse menu: Help>> Check for update , accept and install .
I had this same issue. Just connect to internet first and restart the STS.
The inbuilt wizard uses internet web service to work. See if this works for you!
Maybe it's too late but I solved it adding
-Djavax.net.ssl.trustStore=/home/[user]/.sdkman/candidates/java/11.0.6-zulu/lib/security/cacerts line to STS.ini. I hope you can solve it too

Resources