当前位置:   article > 正文

未授权异常:FATAL ERROR in native method: Unauthorized_fatal error in native method: processing of -javaa

fatal error in native method: processing of -javaagent failed

异常:

  1. FATAL ERROR in native method: Unauthorized
  2.     at com.sunwayworld.boot.ApplicationConfiguration.customize(Native Method)
  3.     at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizerBeanPostProcessor.java:73)
  4.     at org.springframework.boot.context.embedded.EmbeddedServletContainerCustomizerBeanPostProcessor.postProcessBeforeInitialization(EmbeddedServletContainerCustomizerBeanPostProcessor.java:59)
  5.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsBeforeInitialization(AbstractAutowireCapableBeanFactory.java:409)
  6.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1620)
  7.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
  8.     at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
  9.     at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
  10.     at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
  11.     - locked <0x0000000087536c90> (a java.util.concurrent.ConcurrentHashMap)
  12.     at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
  13.     at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:202)
  14.     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.getEmbeddedServletContainerFactory(EmbeddedWebApplicationContext.java:199)
  15.     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.createEmbeddedServletContainer(EmbeddedWebApplicationContext.java:162)
  16.     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.onRefresh(EmbeddedWebApplicationContext.java:134)
  17.     at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
  18.     - locked <0x00000000875369f0> (a java.lang.Object)
  19.     at org.springframework.boot.context.embedded.EmbeddedWebApplicationContext.refresh(EmbeddedWebApplicationContext.java:122)
  20.     at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:693)
  21.     at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:360)
  22.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:303)
  23.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1118)
  24.     at org.springframework.boot.SpringApplication.run(SpringApplication.java:1107)
  25.     at com.sunwayworld.ec.SunwayApplication.main(SunwayApplication.java:13)
  26.     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  27.     at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
  28.     at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  29.     at java.lang.reflect.Method.invoke(Method.java:497)
  30.     at org.springframework.boot.maven.AbstractRunMojo$LaunchRunner.run(AbstractRunMojo.java:527)
  31.     at java.lang.Thread.run(Thread.java:745)

造成原因:

    没有授权

解决方法:

    将授权码写在application.properties配置文件中:

    sunway.app.license=1234567890=

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/136299
推荐阅读
相关标签
  

闽ICP备14008679号