LeeJiHy
124
2021-02-23 18:04:32
2
135

선생님들 제발 한번만 봐주세요..ㅠㅠ


안녕하세요 지금 혼자 쇼핑몰 프로젝트 해 보고 있는데.. 이미지 uploadPath경로 설정을 하고 multipartResolver 를  servlet-context에 설정하고 실행을 하면 이러한

근본 원인 (root cause)

java.lang.reflect.InaccessibleObjectException: Unable to make field public static final jdk.internal.PreviewFeature$Feature jdk.internal.PreviewFeature$Feature.TEXT_BLOCKS accessible: module java.base does not "exports jdk.internal" to unnamed module @174d7fbd
	java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:349)
	java.base/java.lang.reflect.AccessibleObject.checkCanSetAccessible(AccessibleObject.java:289)
	java.base/java.lang.reflect.Field.checkCanSetAccessible(Field.java:174)
	java.base/java.lang.reflect.Field.setAccessible(Field.java:168)
	org.springframework.util.ReflectionUtils.makeAccessible(ReflectionUtils.java:456)
	org.springframework.core.type.classreading.AbstractRecursiveAnnotationVisitor.getEnumValue(AbstractRecursiveAnnotationVisitor.java:87)
	org.springframework.core.type.classreading.AbstractRecursiveAnnotationVisitor.visitEnum(AbstractRecursiveAnnotationVisitor.java:77)
	org.springframework.asm.ClassReader.readAnnotationValue(ClassReader.java:2087)
	org.springframework.asm.ClassReader.readAnnotationValues(ClassReader.java:2012)
	org.springframework.asm.ClassReader.readMethod(ClassReader.java:1130)
	org.springframework.asm.ClassReader.accept(ClassReader.java:729)
	org.springframework.asm.ClassReader.accept(ClassReader.java:527)
	org.springframework.core.type.classreading.SimpleMetadataReader.<init>(SimpleMetadataReader.java:65)
	org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:103)
	org.springframework.core.type.classreading.CachingMetadataReaderFactory.getMetadataReader(CachingMetadataReaderFactory.java:123)
	org.springframework.core.type.classreading.SimpleMetadataReaderFactory.getMetadataReader(SimpleMetadataReaderFactory.java:81)
	org.springframework.context.annotation.ConfigurationClassUtils.checkConfigurationClassCandidate(ConfigurationClassUtils.java:101)
	org.springframework.context.annotation.ConfigurationClassPostProcessor.processConfigBeanDefinitions(ConfigurationClassPostProcessor.java:274)
	org.springframework.context.annotation.ConfigurationClassPostProcessor.postProcessBeanDefinitionRegistry(ConfigurationClassPostProcessor.java:233)
	org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanDefinitionRegistryPostProcessors(PostProcessorRegistrationDelegate.java:273)
	org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:93)
	org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:694)
	org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:532)
	org.springframework.web.servlet.FrameworkServlet.configureAndRefreshWebApplicationContext(FrameworkServlet.java:672)
	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:638)
	org.springframework.web.servlet.FrameworkServlet.createWebApplicationContext(FrameworkServlet.java:686)
	org.springframework.web.servlet.FrameworkServlet.initWebApplicationContext(FrameworkServlet.java:554)
	org.springframework.web.servlet.FrameworkServlet.initServletBean(FrameworkServlet.java:499)
	org.springframework.web.servlet.HttpServletBean.init(HttpServletBean.java:172)
	javax.servlet.GenericServlet.init(GenericServlet.java:158)
	org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:542)
	org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
	org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
	org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
	org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:374)
	org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
	org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:888)
	org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1597)
	org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
	java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1130)
	java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:630)
	org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
	java.base/java.lang.Thread.run(Thread.java:832)

500번 에러가 납니다..  찾아봐도 자료도 잘 안나오고..ㅠㅠㅠㅠ 왜 이러는지 알려주실 선생님 계신가요ㅠㅠㅠㅠ 제발 부탁 드립니다..ㅠㅠ



0
  • 답변 2

  • 열채
    2
    2021-02-23 20:04:39
    위 익셉션 메시지에
    java.base does not "exports jdk.internal" to unnamed module
    이라네요 혹시 짚이시는데가 있을까요 ㅎㅎ
  • LeeJiHy
    124
    2021-02-23 20:50:43

    열채 

    아니요 ㅠㅠ... 파일인가 해서 찾아도 봤는데 나오는것도 없고.. 제 지식이 부족한 거겠죠ㅠㅠ

  • 로그인을 하시면 답변을 등록할 수 있습니다.