Reputation: 17
when I start any spring boot project java.net.MalformedURLException has been shown What can I do with this exception?
this the messsege Error: Exception thrown by the agent : java.net.MalformedURLException: Service URL contains non-ASCII character 0x665 jdk.internal.agent.AgentConfigurationError: java.net.MalformedURLException: Service URL contains non-ASCII character 0x665 at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.startRemoteConnectorServer(Unknown Source) at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Unknown Source) at jdk.management.agent/jdk.internal.agent.Agent.startAgent(Unknown Source) Caused by: java.net.MalformedURLException: Service URL contains non-ASCII character 0x665 at java.management/javax.management.remote.JMXServiceURL.(Unknown Source) at jdk.management.agent/sun.management.jmxremote.ConnectorBootstrap.exportMBeanServer(Unknown Source) ... 3 more
Upvotes: 1
Views: 2505
Reputation: 45475
My windows locale was set to show numbers in non English format. Changing to English format fix the issue.
It seems that java can not start server on port ۸۰۸۰
only 8080
is accepted
Upvotes: 1
Reputation: 2355
For future seekers who are using Spring in IntelliJ :
I assume that you are not using a non-ascii character in your URLs, yet you are getting this message.
JMX Agent is enabled by default and if you have a non iso-8859 codepage (i.e. windows locale) you get this error.
Set up your JMX and eliminate the usage of non-ascii characters (numbers maybe for a port!)
or
Just disable it if you do not want to use it (looks like you don't)
Goto Edit Configuration and Disable JMX Agent like below :
Re-run your project and it is working now :
For Eclipse users it shouldn't be different.
Note: you see the non-ascii characters in the following pictures too!!
Upvotes: 4