Get 2024 Templates Mega Bundle!14 Bootstrap, Vue & React Templates + 3 Vector Sets
Get for 99$

Issue with Metronic Theme Installation - Internal Server Error (HTTP Status 500)


Dear members of the support forum,

I hope this message finds you all well. I am reaching out to seek assistance regarding an issue I encountered while installing the Metronic theme by following the guide provided at https://preview.keenthemes.com/spring/metronic/docs/getting-started. Despite carefully completing all the necessary steps, I have come across an unexpected problem that I am struggling to resolve.

To provide some context, here is a summary of the actions I took during the installation process:

Downloaded and installed the required software packages.
Configured the environment variables for JDK and Maven.
Successfully set up Yarn and Gulp as instructed.
However, upon executing the mvn spring-boot:run command and attempting to access the theme via localhost:8080 in my web browser, I encountered an HTTP Status 500 – Internal Server Error. Unfortunately, I do not have a clear understanding of the root cause behind this error, as it did not align with my expectations based on the installation guide.

In an effort to diagnose and resolve the issue, I examined the browser logs, and I am including them below for your reference:

Type Exception Report

Message Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/pages/dashboards/index.html]")

Description The server encountered an unexpected condition that prevented it from fulfilling the request.

Exception

org.springframework.web.util.NestedServletException: Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/pages/dashboards/index.html]")
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1014)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
Root Cause

org.thymeleaf.exceptions.TemplateInputException: An error happened during template parsing (template: "class path resource [templates/pages/dashboards/index.html]")
org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:241)
org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100)
org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666)
org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:366)
org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:190)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1404)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1148)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1087)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
Root Cause

org.attoparser.ParseException: Error resolving template [layout/metronic/demo1/default-dark-sidebar], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "pages/dashboards/index" - line 1, col 74)
org.attoparser.MarkupParser.parseDocument(MarkupParser.java:393)
org.attoparser.MarkupParser.parse(MarkupParser.java:257)
org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:230)
org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100)
org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666)
org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:366)
org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:190)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1404)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1148)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1087)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
Root Cause

org.thymeleaf.exceptions.TemplateInputException: Error resolving template [layout/metronic/demo1/default-dark-sidebar], template might not exist or might not be accessible by any of the configured Template Resolvers (template: "pages/dashboards/index" - line 1, col 74)
org.thymeleaf.engine.TemplateManager.resolveTemplate(TemplateManager.java:869)
org.thymeleaf.engine.TemplateManager.parseStandalone(TemplateManager.java:250)
org.thymeleaf.engine.TemplateManager$parseStandalone.call(Unknown Source)
nz.net.ultraq.thymeleaf.layoutdialect.models.TemplateModelFinder.find(TemplateModelFinder.groovy:50)
nz.net.ultraq.thymeleaf.layoutdialect.models.TemplateModelFinder.find(TemplateModelFinder.groovy)
java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
java.base/java.lang.reflect.Method.invoke(Method.java:578)
org.codehaus.groovy.runtime.callsite.PlainObjectMetaMethodSite.doInvoke(PlainObjectMetaMethodSite.java:43)
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite$PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java:193)
org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent(PogoMetaMethodSite.java:61)
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:51)
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:171)
org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:185)
nz.net.ultraq.thymeleaf.layoutdialect.models.TemplateModelFinder.findTemplate(TemplateModelFinder.groovy:105)
nz.net.ultraq.thymeleaf.layoutdialect.models.TemplateModelFinder$findTemplate$0.call(Unknown Source)
org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:125)
org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:139)
nz.net.ultraq.thymeleaf.layoutdialect.decorators.DecorateProcessor.doProcess(DecorateProcessor.groovy:116)
org.thymeleaf.processor.element.AbstractAttributeModelProcessor.doProcess(AbstractAttributeModelProcessor.java:77)
org.thymeleaf.processor.element.AbstractElementModelProcessor.process(AbstractElementModelProcessor.java:98)
org.thymeleaf.util.ProcessorConfigurationUtils$ElementModelProcessorWrapper.process(ProcessorConfigurationUtils.java:649)
org.thymeleaf.engine.ProcessorTemplateHandler.handleOpenElement(ProcessorTemplateHandler.java:1510)
org.thymeleaf.engine.OpenElementTag.beHandled(OpenElementTag.java:205)
org.thymeleaf.engine.Model.process(Model.java:282)
org.thymeleaf.engine.Model.process(Model.java:290)
org.thymeleaf.engine.GatheringModelProcessable.process(GatheringModelProcessable.java:78)
org.thymeleaf.engine.ProcessorTemplateHandler.handleCloseElement(ProcessorTemplateHandler.java:1640)
org.thymeleaf.engine.TemplateHandlerAdapterMarkupHandler.handleCloseElementEnd(TemplateHandlerAdapterMarkupHandler.java:388)
org.thymeleaf.templateparser.markup.InlinedOutputExpressionMarkupHandler$InlineMarkupAdapterPreProcessorHandler.handleCloseElementEnd(InlinedOutputExpressionMarkupHandler.java:322)
org.thymeleaf.standard.inline.OutputExpressionInlinePreProcessorHandler.handleCloseElementEnd(OutputExpressionInlinePreProcessorHandler.java:220)
org.thymeleaf.templateparser.markup.InlinedOutputExpressionMarkupHandler.handleCloseElementEnd(InlinedOutputExpressionMarkupHandler.java:164)
org.attoparser.HtmlElement.handleCloseElementEnd(HtmlElement.java:169)
org.attoparser.HtmlMarkupHandler.handleCloseElementEnd(HtmlMarkupHandler.java:412)
org.attoparser.MarkupEventProcessorHandler.handleCloseElementEnd(MarkupEventProcessorHandler.java:473)
org.attoparser.ParsingElementMarkupUtil.parseCloseElement(ParsingElementMarkupUtil.java:201)
org.attoparser.MarkupParser.parseBuffer(MarkupParser.java:725)
org.attoparser.MarkupParser.parseDocument(MarkupParser.java:301)
org.attoparser.MarkupParser.parse(MarkupParser.java:257)
org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parse(AbstractMarkupTemplateParser.java:230)
org.thymeleaf.templateparser.markup.AbstractMarkupTemplateParser.parseStandalone(AbstractMarkupTemplateParser.java:100)
org.thymeleaf.engine.TemplateManager.parseAndProcess(TemplateManager.java:666)
org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1098)
org.thymeleaf.TemplateEngine.process(TemplateEngine.java:1072)
org.thymeleaf.spring5.view.ThymeleafView.renderFragment(ThymeleafView.java:366)
org.thymeleaf.spring5.view.ThymeleafView.render(ThymeleafView.java:190)
org.springframework.web.servlet.DispatcherServlet.render(DispatcherServlet.java:1404)
org.springframework.web.servlet.DispatcherServlet.processDispatchResult(DispatcherServlet.java:1148)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:1087)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:963)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:1006)
org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:898)
javax.servlet.http.HttpServlet.service(HttpServlet.java:655)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:883)
javax.servlet.http.HttpServlet.service(HttpServlet.java:764)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:53)
org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:100)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.FormContentFilter.doFilterInternal(FormContentFilter.java:93)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:201)
org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:117)
Note The full stack trace of the root cause is available in the server logs.

I kindly request your guidance and expertise in resolving this matter. Any insights, suggestions, or instructions on how to troubleshoot and overcome this error would be greatly appreciated.

Thank you for your time and support. I eagerly await your response.

Sincerely,
Yordan


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(

Replies (16)


Hi,

Thank you for reaching out to us.

I am sorry to hear that you faced this error.

Could you please specify the followings?


  • Your Metronic version.

  • Your Java version (check it with command java --version)

  • Your Maven version (check it with mvn --version)



We checked this in the latest Metronic Spring Starterkit, unfortunately, we were not able to reproduce these errors by using Java version: 18.0.2.1 and Maven: 3.8.6.

Regards,
Lauris Stepanovs,
Keenthemes Support Team

Hello Lauris,

Thank you for your response.

These are the versions:


  • Metronic - metronic_spring_v8.1.8_demo1

  • Java - java 20.0.1 2023-04-18

  • Maven - 3.9.2


Sincerely,
Yordan

Hi Yordan,

Thank you for specifying this,

I will install the same versions and will check the installation. I will get back to you as soon as possible.

I guess this error could be related to your Java version, we haven't tried to use Java 20 yet with our theme yet. As a workaround, you can try to downgrade your Java version to 18.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Lauris,

Thank you for your answer.

I downgraded my Java to version 18 but the errors did not go away. I also opened the metronic_spring_v8.1.8_demo1 package in my Intellij and tried to run it and I got the following error:

Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dashboardController': Unsatisfied dependency expressed through field 'settings'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settings' defined in class path resource [com/theme/starterkit/config/ThemeConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.theme.starterkit.libs.config.KTThemeBaseConfig]: Factory method 'settings' threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.22.jar:5.3.22]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.22.jar:5.3.22]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.3.jar:2.7.3]
at com.theme.starterkit.StarterkitApplication.main(StarterkitApplication.java:11) ~[classes/:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:577) ~[na:na]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.7.3.jar:2.7.3]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settings' defined in class path resource [com/theme/starterkit/config/ThemeConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.theme.starterkit.libs.config.KTThemeBaseConfig]: Factory method 'settings' threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656) ~[spring-beans-5.3.22.jar:5.3.22]
... 23 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.theme.starterkit.libs.config.KTThemeBaseConfig]: Factory method 'settings' threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.22.jar:5.3.22]
... 36 common frames omitted
Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at com.theme.starterkit.libs.config.KTThemeSettings.<init>(KTThemeSettings.java:16) ~[classes/:na]
at com.theme.starterkit.config.ThemeConfig.settings(ThemeConfig.java:21) ~[classes/:na]
at com.theme.starterkit.config.ThemeConfig$$EnhancerBySpringCGLIB$$46190941.CGLIB$settings$0(<generated>) ~[classes/:na]
at com.theme.starterkit.config.ThemeConfig$$EnhancerBySpringCGLIB$$46190941$$FastClassBySpringCGLIB$$abfdc75.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.22.jar:5.3.22]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.22.jar:5.3.22]
at com.theme.starterkit.config.ThemeConfig$$EnhancerBySpringCGLIB$$46190941.settings(<generated>) ~[classes/:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:577) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.22.jar:5.3.22]
... 37 common frames omitted
Caused by: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method) ~[na:na]
at java.base/java.io.FileInputStream.open(FileInputStream.java:216) ~[na:na]
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:157) ~[na:na]
at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:1029) ~[jackson-core-2.13.3.jar:2.13.3]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3494) ~[jackson-databind-2.13.2.jar:2.13.2]
at com.theme.starterkit.libs.config.KTThemeSettings.<init>(KTThemeSettings.java:14) ~[classes/:na]
... 46 common frames omitted


I checked the themesettings.json and it seems like the location of the file if fine - _keenthemes/config/themesettings.json. I tried moving it to the src/main/resources but the error did not go away.

Greetings,
Yordan



Hi Yordan,

We are sorry you faced this issue.

A few days ago we released an update for Spring and in the release, layoutDir property in _keenthemes/config/themesettings.json was changed. Now it is pointing to a non-existing layout folder.

To fix the error you need to change layoutDir property from

"layoutDir":"layout/metronic/demo1/",

to

"layoutDir":"layout/",


We will release a new update with a fix in a few days.

Please don't hesitate to reach out if you need anything more from us.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Dear Lauris,

I hope this message finds you well.

Regrettably, despite making the suggested modification to the property in question, replacing it with "layoutDir":"layout/" instead of "layoutDir":"layout/metronic/demo1/" and re-running and building the application, I have encountered no noticeable change in the outcome. I got the exact same error.

I appreciate your assistance in this matter and would welcome any further insights or recommendations you may have.

Thank you once again.

Warm regards,
Yordan



Hi Yordan,

Did you move themesettings.json to a different location?

themesettings.json should be inside _keenthemes/config/ or you need to update config path in starterkit/libs/config/KTThemeSettings.java.

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hello Lauris,

I did not move the themesettings.json. This is its location:

https://ibb.co/JyKs5WK

The path in the KTThemeSettings.java looks good to me, here is a snip of it:

https://ibb.co/K030G5m

I appreciate your assistance in this matter and would welcome any further insights or recommendations you may have.

Thank you once again.

Warm regards,
Yordan



Hi Yordan,

Do you still have the same error?

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Lauris,

Yes, I am receiving the same error:

Application run failed

org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'dashboardController': Unsatisfied dependency expressed through field 'settings'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settings' defined in class path resource [com/theme/starterkit/config/ThemeConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.theme.starterkit.libs.config.KTThemeBaseConfig]: Factory method 'settings' threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:659) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.inject(AutowiredAnnotationBeanPostProcessor.java:639) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.InjectionMetadata.inject(InjectionMetadata.java:119) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor.postProcessProperties(AutowiredAnnotationBeanPostProcessor.java:399) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1431) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:619) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:955) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:918) ~[spring-context-5.3.22.jar:5.3.22]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:583) ~[spring-context-5.3.22.jar:5.3.22]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:147) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:734) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:408) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:308) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1306) ~[spring-boot-2.7.3.jar:2.7.3]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1295) ~[spring-boot-2.7.3.jar:2.7.3]
at com.theme.starterkit.StarterkitApplication.main(StarterkitApplication.java:11) ~[classes/:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:578) ~[na:na]
at org.springframework.boot.devtools.restart.RestartLauncher.run(RestartLauncher.java:49) ~[spring-boot-devtools-2.7.3.jar:2.7.3]
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'settings' defined in class path resource [com/theme/starterkit/config/ThemeConfig.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.theme.starterkit.libs.config.KTThemeBaseConfig]: Factory method 'settings' threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:658) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:486) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1352) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1195) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:582) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:542) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.lambda$doGetBean$0(AbstractBeanFactory.java:335) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:234) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:333) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:208) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.config.DependencyDescriptor.resolveCandidate(DependencyDescriptor.java:276) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doResolveDependency(DefaultListableBeanFactory.java:1391) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.DefaultListableBeanFactory.resolveDependency(DefaultListableBeanFactory.java:1311) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredFieldElement.resolveFieldValue(AutowiredAnnotationBeanPostProcessor.java:656) ~[spring-beans-5.3.22.jar:5.3.22]
... 23 common frames omitted
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.theme.starterkit.libs.config.KTThemeBaseConfig]: Factory method 'settings' threw exception; nested exception is java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:185) ~[spring-beans-5.3.22.jar:5.3.22]
at org.springframework.beans.factory.support.ConstructorResolver.instantiate(ConstructorResolver.java:653) ~[spring-beans-5.3.22.jar:5.3.22]
... 36 common frames omitted
Caused by: java.lang.IllegalStateException: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at com.theme.starterkit.libs.config.KTThemeSettings.<init>(KTThemeSettings.java:16) ~[classes/:na]
at com.theme.starterkit.config.ThemeConfig.settings(ThemeConfig.java:21) ~[classes/:na]
at com.theme.starterkit.config.ThemeConfig$$EnhancerBySpringCGLIB$$2c456b3.CGLIB$settings$0(<generated>) ~[classes/:na]
at com.theme.starterkit.config.ThemeConfig$$EnhancerBySpringCGLIB$$2c456b3$$FastClassBySpringCGLIB$$4697b930.invoke(<generated>) ~[classes/:na]
at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:244) ~[spring-core-5.3.22.jar:5.3.22]
at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:331) ~[spring-context-5.3.22.jar:5.3.22]
at com.theme.starterkit.config.ThemeConfig$$EnhancerBySpringCGLIB$$2c456b3.settings(<generated>) ~[classes/:na]
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104) ~[na:na]
at java.base/java.lang.reflect.Method.invoke(Method.java:578) ~[na:na]
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:154) ~[spring-beans-5.3.22.jar:5.3.22]
... 37 common frames omitted
Caused by: java.io.FileNotFoundException: _keenthemes\config\themesettings.json (The system cannot find the path specified)
at java.base/java.io.FileInputStream.open0(Native Method) ~[na:na]
at java.base/java.io.FileInputStream.open(FileInputStream.java:219) ~[na:na]
at java.base/java.io.FileInputStream.<init>(FileInputStream.java:158) ~[na:na]
at com.fasterxml.jackson.core.JsonFactory.createParser(JsonFactory.java:1029) ~[jackson-core-2.13.3.jar:2.13.3]
at com.fasterxml.jackson.databind.ObjectMapper.readValue(ObjectMapper.java:3494) ~[jackson-databind-2.13.2.jar:2.13.2]
at com.theme.starterkit.libs.config.KTThemeSettings.<init>(KTThemeSettings.java:14) ~[classes/:na]
... 46 common frames omitted

Regards,
Yordan



Hi Yordan,

From your error, it seems like your app cannot find _keenthemes\config\themesettings.json.

Could you please make sure that file exists and you are using correct file name?

Regards,
Lauris Stepanovs,
Keenthemes Support Team



Hi Lauris,

The file exists and it has the correct name. Take a look at this snip:

https://ibb.co/NNh92Kq

This is the code inside the themesettings.json:

{
"name": "metronic",
"layoutDir":"layout/",
"direction": "ltr",
"modeSwitchEnabled": true,
"modeDefault": "light",
"assetsDir": "/assets/",
"iconType": "duotone",
"defaultLayout": "default-dark-sidebar",
"assets": {
"favicon": "media/logos/favicon.ico",
"fonts": [
"https://fonts.googleapis.com/css?family=Inter:300,400,500,600,700"
],
"css" : [
"plugins/global/plugins.bundle.css",
"css/style.bundle.css"
],
"js" : [
"plugins/global/plugins.bundle.js",
"js/scripts.bundle.js"
]
},
"vendors": {
"datatables": {
"Css": [
"plugins/custom/datatables/datatables.bundle.css"
],
"Js": [
"plugins/custom/datatables/datatables.bundle.js"
]
},
"formrepeater": {
"Js": [
"plugins/custom/formrepeater/formrepeater.bundle.js"
]
},
"fullcalendar": {
"Css": [
"plugins/custom/fullcalendar/fullcalendar.bundle.css"
],
"Js": [
"plugins/custom/fullcalendar/fullcalendar.bundle.js"
]
},
"flotcharts": {
"Js": [
"plugins/custom/flotcharts/flotcharts.bundle.js"
]
},
"google-jsapi": {
"Js": [
"//www.google.com/jsapi"
]
},
"tinymce": {
"Js": [
"plugins/custom/tinymce/tinymce.bundle.js"
]
},
"ckeditor-classic": {
"Js": [
"plugins/custom/ckeditor/ckeditor-classic.bundle.js"
]
},
"ckeditor-inline": {
"Js": [
"plugins/custom/ckeditor/ckeditor-inline.bundle.js"
]
},
"ckeditor-balloon": {
"Js": [
"plugins/custom/ckeditor/ckeditor-balloon.bundle.js"
]
},
"ckeditor-balloon-block": {
"Js": [
"plugins/custom/ckeditor/ckeditor-balloon-block.bundle.js"
]
},
"ckeditor-document": {
"Js": [
"plugins/custom/ckeditor/ckeditor-document.bundle.js"
]
},
"draggable": {
"Js": [
"plugins/custom/draggable/draggable.bundle.js"
]
},
"fslightbox": {
"Js": [
"plugins/custom/fslightbox/fslightbox.bundle.js"
]
},
"jkanban": {
"Css": [
"plugins/custom/jkanban/jkanban.bundle.css"
],
"Js": [
"plugins/custom/jkanban/jkanban.bundle.js"
]
},
"typedjs": {
"Js": [
"plugins/custom/typedjs/typedjs.bundle.js"
]
},
"cookiealert": {
"Css": [
"plugins/custom/cookiealert/cookiealert.bundle.css"
],
"Js": [
"plugins/custom/cookiealert/cookiealert.bundle.js"
]
},
"cropper": {
"Css": [
"plugins/custom/cropper/cropper.bundle.css"
],
"Js": [
"plugins/custom/cropper/cropper.bundle.js"
]
},
"vis-timeline": {
"Css": [
"plugins/custom/vis-timeline/vis-timeline.bundle.css"
],
"Js": [
"plugins/custom/vis-timeline/vis-timeline.bundle.js"
]
},
"jstree": {
"Css": [
"plugins/custom/jstree/jstree.bundle.css"
],
"Js": [
"plugins/custom/jstree/jstree.bundle.js"
]
},
"prismjs": {
"Css": [
"plugins/custom/prismjs/prismjs.bundle.css"
],
"Js": [
"plugins/custom/prismjs/prismjs.bundle.js"
]
},
"leaflet": {
"Css": [
"plugins/custom/leaflet/leaflet.bundle.css"
],
"Js": [
"plugins/custom/leaflet/leaflet.bundle.js"
]
},
"amcharts": {
"Js": [
"https://cdn.amcharts.com/lib/5/index.js",
"https://cdn.amcharts.com/lib/5/xy.js",
"https://cdn.amcharts.com/lib/5/percent.js",
"https://cdn.amcharts.com/lib/5/radar.js",
"https://cdn.amcharts.com/lib/5/themes/Animated.js"
]
},
"amcharts-maps": {
"Js": [
"https://cdn.amcharts.com/lib/5/index.js",
"https://cdn.amcharts.com/lib/5/map.js",
"https://cdn.amcharts.com/lib/5/geodata/worldLow.js",
"https://cdn.amcharts.com/lib/5/geodata/continentsLow.js",
"https://cdn.amcharts.com/lib/5/geodata/usaLow.js",
"https://cdn.amcharts.com/lib/5/geodata/worldTimeZonesLow.js",
"https://cdn.amcharts.com/lib/5/geodata/worldTimeZoneAreasLow.js",
"https://cdn.amcharts.com/lib/5/themes/Animated.js"
]
},
"amcharts-stock": {
"Js": [
"https://cdn.amcharts.com/lib/5/index.js",
"https://cdn.amcharts.com/lib/5/xy.js",
"https://cdn.amcharts.com/lib/5/themes/Animated.js"
]
},
"bootstrap-select": {
"Css": [
"plugins/custom/bootstrap-select/bootstrap-select.bundle.css"
],
"Js": [
"plugins/custom/bootstrap-select/bootstrap-select.bundle.js"
]
}
}
}


Regards,
Yordan



Dear Lauris,

I have completed all the tasks you requested, but I am currently facing a serious roadblock that hampers my progress. For over a week, I have been unable to utilize the purchased theme due to persistent technical difficulties.

Despite following the installation instructions diligently, I have encountered specific technical intricacies that I cannot resolve independently. As a result, I am unable to make any headway and utilize the theme effectively. The
themesettings.json is inside _keenthemes/config/ and the config path is in starterkit/libs/config/KTThemeSettings.java. The "layoutDir":"layout/metronic/demo1/", is changed to "layoutDir":"layout/",. I also tried with Java 18 and nothing worked.

The theme is crucial for the project's functionality and aesthetics, and its inoperability is hindering my ability to meet our objectives. I kindly request your assistance in resolving this issue. If there is a technical support team or someone knowledgeable who can guide me through the necessary steps, it would be greatly appreciated. Alternatively, any temporary solutions or workarounds would be helpful.

Your support in overcoming this obstacle would be invaluable to the project's success. I eagerly await your response and the resolution of this issue so that I can continue my work without further delay.

Thank you for your understanding and prompt attention.

Best regards,
Yordan



Hi Yordan,

We are so sorry you have experienced these issues in using our theme, we will do our best to prevent those errors in the future.

We were able to reproduce this error by changing a config path to something nonexisting.

I would suggest you try to do the followings steps:


  1. Download a fresh spring theme from Metronic Download page.

  2. Open _keenthemes\config\themesettings.json and change layoutDir property to "layout/"

  3. In your terminal open _keenthemes/tools and execute yarn command to install npm dependencies and gulp command to build theme assets.

  4. Open your terminal in starterkit folder and execute mvn spring-boot:run.



If after those instructions you will still have the same error let me know so I will provide you further instructions.

Regards,
Lauris Stepanovs,
Keenthemes Support Team

Hi Lauris,

I downloaded a fresh spring theme, opened the _keenthemes\config\themesettings.json and changed layoutDir property to "layout/"

Here are my terminal logs:
C:\Users\YordanChulev\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit\_keenthemes\tools>yarn
yarn install v1.22.19
info No lockfile found.
[1/4] Resolving packages...
warning datatables.net-plugins > prettier-plugin-x > x-formatter > @prettier-x/formatter-2021-01 > @brodybits/remark-parse > trim@0.0.3: Use String.prototype.trim() instead
warning datatables.net-plugins > prettier-plugin-x > x-formatter > @prettier-x/formatter-2021-01 > postcss-selector-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning datatables.net-plugins > prettier-plugin-x > x-formatter > @prettier-x/formatter-2021-01 > postcss-values-parser > flatten@1.0.3: flatten is deprecated in favor of utility frameworks such as lodash.
warning npm > readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
warning npm > @npmcli/ci-detect@3.0.2: this package has been deprecated, use `ci-info` instead
warning pdfmake > @foliojs-fork/pdfkit > @foliojs-fork/fontkit > brfs > static-module > magic-string > sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
warning css-minimizer-webpack-plugin > cacache > @npmcli/move-file@1.1.2: This functionality has been moved to @npmcli/fs
warning css-minimizer-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo@1.3.2: This SVGO version is no longer supported. Upgrade to v2.x.x.
warning css-minimizer-webpack-plugin > cssnano > cssnano-preset-default > postcss-svgo > svgo > stable@0.1.8: Modern JS already guarantees Array#sort() is a stable sort, so this library is deprecated. See the compatibility table on MDN: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/sort#browser_compatibility
warning extract-loader > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning extract-loader > babel-core > babel-register > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning gulp > glob-watcher > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning gulp > glob-watcher > chokidar > fsevents@1.2.13: The v1 package contains DANGEROUS / INSECURE binaries. Upgrade to safe fsevents v2
warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
warning gulp > glob-watcher > anymatch > micromatch > snapdragon > source-map-resolve > urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
warning gulp-sourcemaps > css > source-map-resolve@0.6.0: See https://github.com/lydell/source-map-resolve#deprecated
warning rtlcss-webpack-plugin > babel-runtime > core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
warning webpack-dev-server > chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
warning webpack-dev-server > webpack-log > uuid@3.4.0: Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.
[2/4] Fetching packages...
[3/4] Linking dependencies...
warning " > @yaireo/tagify@4.17.8" has unmet peer dependency "prop-types@^15.7.2".
warning "bootstrap-maxlength > bootstrap@4.6.2" has unmet peer dependency "popper.js@^1.16.1".
warning "datatables.net-plugins > prettier-plugin-x@0.0.10" has unmet peer dependency "prettier@^2.0.0".
warning "datatables.net-plugins > prettier-plugin-x > x-formatter > @prettier-x/formatter-2021-01 > remark-math@1.0.6" has unmet peer dependency "remark-parse@^3.0.0 || ^4.0.0 || ^5.0.0 || ^6.0.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "@egjs/hammerjs@^2.0.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "component-emitter@^1.3.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "keycharm@^0.2.0 || ^0.3.0 || ^0.4.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "propagating-hammerjs@^1.4.0 || ^2.0.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "uuid@^3.4.0 || ^7.0.0 || ^8.0.0 || ^9.0.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "vis-data@^6.3.0 || ^7.0.0".
warning " > vis-timeline@7.7.2" has unmet peer dependency "vis-util@^5.0.1".
warning " > vis-timeline@7.7.2" has unmet peer dependency "xss@^1.0.0".
warning " > postcss-loader@4.3.0" has unmet peer dependency "postcss@^7.0.0 || ^8.0.1".
warning Workspaces can only be enabled in private projects.
[4/4] Building fresh packages...
success Saved lockfile.
Done in 164.31s.

C:\Users\YordanChulev\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit\_keenthemes\tools>gulp
Using gulp config file: "../../gulp.config.js"
[10:13:16] Using gulpfile ~\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit\_keenthemes\tools\gulpfile.js
[10:13:16] Starting 'default'...
[10:13:16] Starting 'cleanTask'...
[10:13:17] Finished 'cleanTask' after 643 ms
[10:13:17] Starting 'buildBundleTask'...
[10:13:17] Finished 'buildBundleTask' after 356 ms
[10:13:17] Finished 'default' after 1.01 s

C:\Users\YordanChulev\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit\_keenthemes\tools>cd C:\Users\YordanChulev\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit

C:\Users\YordanChulev\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit>mvn spring-boot:run
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------< com.theme:starterkit >------------------------
[INFO] Building starterkit 0.0.1-SNAPSHOT
[INFO] from pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] >>> spring-boot:2.7.3:run (default-cli) > test-compile @ starterkit >>>
[INFO]
[INFO] --- resources:3.2.0:resources (default-resources) @ starterkit ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Using 'UTF-8' encoding to copy filtered properties files.
[INFO] Copying 1 resource
[INFO] Copying 2734 resources
[INFO]
[INFO] --- compiler:3.10.1:compile (default-compile) @ starterkit ---
[INFO] Changes detected - recompiling the module!
[INFO] Compiling 11 source files to C:\Users\YordanChulev\Downloads\metronic_spring_v8.1.8_demo1\spring_demo1\starterkit\target\classes
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 16.101 s
[INFO] Finished at: 2023-06-21T10:16:46+03:00
[INFO] ------------------------------------------------------------------------
[WARNING]
[WARNING] Plugin validation issues were detected in 2 plugin(s)
[WARNING]
[WARNING] * org.apache.maven.plugins:maven-resources-plugin:3.2.0
[WARNING] * org.apache.maven.plugins:maven-compiler-plugin:3.10.1
[WARNING]
[WARNING] For more or less details, use 'maven.plugin.validation' property with one of the values (case insensitive): [BRIEF, DEFAULT, VERBOSE]
[WARNING]
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.10.1:compile (default-compile) on project starterkit: Fatal error compiling: error: invalid target release: 18 -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoExecutionException

Regards,
Yordan



Hi Yordan,

Sorry for the delay in the reply.

We didn't get this error. Try to execute mvn clean install command from starterkit folder.

Then run the app with the command mvn spring-boot:run.

Regards,
Lauris Stepanovs,
Keenthemes Support Team


Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(
Text formatting options
Submit
Here's a how to add some HTML formatting to your comment:
  • <pre></pre> for JS codes block
  • <pre lang="html"></pre> for HTML code block
  • <pre lang="scss"></pre> for SCSS code block
  • <pre lang="php"></pre> for PHP code block
  • <code></code> for single line of code
  • <strong></strong> to make things bold
  • <em></em> to emphasize
  • <ul><li></li></ul>  to make list
  • <ol><li></li></ol>  to make ordered list
  • <h3></h3> to make headings
  • <a></a> for links
  • <img> to paste in an image
  • <blockquote></blockquote> to quote somebody
  • happy  :)
  • shocked  :|
  • sad  :(