zengkid / SmartTomcat

The Tomcat plugin for Intellij IDEA
Apache License 2.0
122 stars 56 forks source link

SSL & java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Element.setAttribute(String, String)" because "portE" is null #114

Closed sgorbenko closed 9 months ago

sgorbenko commented 11 months ago

When running IntelliJ SmartTomcat, I get this error:

java.lang.NullPointerException: Cannot invoke "org.w3c.dom.Element.setAttribute(String, String)" because "portE" is null

I believe it is due to the fact that I have SSL enabled in server.config: image

IntelliJ IDEA 2023.2.1 (Community Edition) Build #IC-232.9559.62, built on August 23, 2023 Runtime version: 17.0.8+7-b1000.8 amd64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. Windows 11.0 GC: G1 Young Generation, G1 Old Generation Memory: 4086M Cores: 16 Registry: ide.experimental.ui=true

Non-Bundled Plugins: com.poratu.idea.plugins.tomcat (4.7.0)

yuezk commented 11 months ago

You could keep the non-SSL configuration even though the SSL is enabled.

OnelSarmiento commented 10 months ago

Is there any workaround for this?

yuezk commented 9 months ago

Fixed in #119