안녕하세요. 개발자님 수업을 듣다보니 조금 헷갈리는 부분이 있습니다. 수업에서 역할과 구현은 인터페이스와 클래스 또는 인터페이스와 클래스로 구현한 인스턴스를 지칭하는 것 같습니다. 근데 이것을 역할과 구현으로 표현하는게 약간 헷갈립니다. 자바에서 클래스라는 것 자체가 인스턴스들의 공통부분을 모아서 추상화 시킨 것이 아닌가요? 그렇다면 클래스와 인스턴스 간의 관계가 역할과 구현이 아닌가 싶습니다. 근데 클래스 or 클래스를 구현한 인스턴스와 인터페이스 관계가 역할과 구현/추상화라고 표현되는게 조금 헷갈립니다. 제가 알고 있는게 잘못된건지, 또는 제가 알고 있는 내용도 맞지만 더 나아가 클래스와 인터페이스 의 관계에서는 또다른 역할과 구현 + 추상화가 된 것을 표현하고 있는지에 대해서 궁금합니다. 좋은하루되시고 항상 답변해주셔서 감사합니다.
선생님 항상 좋은 강의 많은 도움이 되고있습니다. 감사합니다!! 우선 제 전체 코드는 다음주소에 (깃허브)에 올렸습니다. https://github.com/minkook92/jpahsop/tree/master/src 제 나름대로 상품주문 test-code를 작성하였으나, 오류가 납니다. 혹시 어디서 잘못 되었는지 봐 주시면 감사하겠습니다! package jpabook.jpashop.service; import jpabook.jpashop.domain.*; import jpabook.jpashop.domain.item.Book; import jpabook.jpashop.domain.item.Item; import jpabook.jpashop.repository.OrderRepository; import org.assertj.core.api.Assertions; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.test.context.SpringBootTest; import org.springframework.test.context.junit4.SpringRunner; import org.springframework.transaction.annotation.Transactional; import javax.persistence.EntityManager; import static org.junit.Assert.*; @RunWith(SpringRunner.class) @SpringBootTest @Transactional public class OrderServiceTest { @Autowired MemberService memberService; @Autowired ItemService itemService; @Autowired OrderService orderService; @Test public void 상품주문() throws Exception { //given //멤버저장 Member member = new Member(); member.setName("kim"); member.setAddress(new Address("city", "street", "zipcode")); memberService.join(member); //책 저장 Book book = new Book(); book.setIsbn("12345"); book.setAuthor("kim"); book.setStockQuantity(100); book.setPrice(10000); book.setName("바람과함께 사라지다."); itemService.saveItem(book); //when //멤버 찾기 Member findMember = memberService.findOne(member.getId()); //아이템 찾기 Item findItem = itemService.findOne(book.getId()); //배달 정보 저장 Delivery delivery = new Delivery(); delivery.setStatus(DeliveryStatus.READY); delivery.setAddress(member.getAddress()); //주문 아이템 저장 OrderItem orderItem = OrderItem.createOrderItem(findItem, findItem.getPrice(), 10); //주문 생성 Order order = Order.createOrder(findMember, delivery, orderItem); //주문 찾기 Long orderId = orderService.order(order.getMember().getId(), order.getOrderItems().get(0).getId(), order.getOrderItems().get(0).getCount()); Order findOrder = orderService.findOne(orderId); //then //재고 수량 검증 , 100개의 stockQuantity에서 주문을 10개를 하였고, 이를 주문에 반영하였으니, 주문을 한다면 stockQuantity는 90개가 되어야 함. Assertions.assertThat(findOrder.getOrderItems().get(0).getCount()).isEqualTo(90); } @Test public void 주문취소() throws Exception { //given //when //then } @Test public void 상품주문_재고수량초과() throws Exception{ //given //when //then } } 오류 내용 2021-06-07 05:47:02.587 INFO 9712 --- [ main] o.s.t.c.transaction.TransactionContext : Began transaction (1) for test context [DefaultTestContext@3f67593e testClass = OrderServiceTest, testInstance = jpabook.jpashop.service.OrderServiceTest@17541204, testMethod = 상품주문@OrderServiceTest, testException = [null], mergedContextConfiguration = [WebMergedContextConfiguration@1ab06251 testClass = OrderServiceTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@394df057, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@6ab778a, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@58ea606c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@63070bab, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@3098cf3b, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@1189dd52], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]]; transaction manager [org.springframework.orm.jpa.JpaTransactionManager@34001c5d]; rollback [true] 2021-06-07 05:47:03.188 DEBUG 9712 --- [ main] org.hibernate.SQL : select member0_.member_id as member_i1_2_, member0_.city as city2_2_, member0_.street as street3_2_, member0_.zipcode as zipcode4_2_, member0_.name as name5_2_ from member member0_ where member0_.name=? 2021-06-07 05:47:03.203 INFO 9712 --- [ main] p6spy : #1623012423203 | took 4ms | statement | connection 4| url jdbc:h2:mem:787fed49-3533-4ca4-b5e2-6e76bef929f6 select member0_.member_id as member_i1_2_, member0_.city as city2_2_, member0_.street as street3_2_, member0_.zipcode as zipcode4_2_, member0_.name as name5_2_ from member member0_ where member0_.name=? select member0_.member_id as member_i1_2_, member0_.city as city2_2_, member0_.street as street3_2_, member0_.zipcode as zipcode4_2_, member0_.name as name5_2_ from member member0_ where member0_.name='kim'; 2021-06-07 05:47:03.219 DEBUG 9712 --- [ main] org.hibernate.SQL : call next value for hibernate_sequence 2021-06-07 05:47:03.220 INFO 9712 --- [ main] p6spy : #1623012423220 | took 0ms | statement | connection 4| url jdbc:h2:mem:787fed49-3533-4ca4-b5e2-6e76bef929f6 call next value for hibernate_sequence call next value for hibernate_sequence; 2021-06-07 05:47:03.281 DEBUG 9712 --- [ main] org.hibernate.SQL : call next value for hibernate_sequence 2021-06-07 05:47:03.282 INFO 9712 --- [ main] p6spy : #1623012423282 | took 0ms | statement | connection 4| url jdbc:h2:mem:787fed49-3533-4ca4-b5e2-6e76bef929f6 call next value for hibernate_sequence call next value for hibernate_sequence; 2021-06-07 05:47:03.365 INFO 9712 --- [ main] p6spy : #1623012423365 | took 0ms | rollback | connection 4| url jdbc:h2:mem:787fed49-3533-4ca4-b5e2-6e76bef929f6 ; 2021-06-07 05:47:03.377 INFO 9712 --- [ main] o.s.t.c.transaction.TransactionContext : Rolled back transaction for test: [DefaultTestContext@3f67593e testClass = OrderServiceTest, testInstance = jpabook.jpashop.service.OrderServiceTest@17541204, testMethod = 상품주문@OrderServiceTest, testException = org.springframework.dao.InvalidDataAccessApiUsageException: id to load is required for loading; nested exception is java.lang.IllegalArgumentException: id to load is required for loading, mergedContextConfiguration = [WebMergedContextConfiguration@1ab06251 testClass = OrderServiceTest, locations = '{}', classes = '{class jpabook.jpashop.JpashopApplication}', contextInitializerClasses = '[]', activeProfiles = '{}', propertySourceLocations = '{}', propertySourceProperties = '{org.springframework.boot.test.context.SpringBootTestContextBootstrapper=true}', contextCustomizers = set[org.springframework.boot.test.autoconfigure.actuate.metrics.MetricsExportContextCustomizerFactory$DisableMetricExportContextCustomizer@394df057, org.springframework.boot.test.autoconfigure.properties.PropertyMappingContextCustomizer@0, org.springframework.boot.test.autoconfigure.web.servlet.WebDriverContextCustomizerFactory$Customizer@6ab778a, org.springframework.boot.test.context.filter.ExcludeFilterContextCustomizer@58ea606c, org.springframework.boot.test.json.DuplicateJsonObjectContextCustomizerFactory$DuplicateJsonObjectContextCustomizer@63070bab, org.springframework.boot.test.mock.mockito.MockitoContextCustomizer@0, org.springframework.boot.test.web.client.TestRestTemplateContextCustomizer@3098cf3b, org.springframework.boot.test.context.SpringBootTestArgs@1, org.springframework.boot.test.context.SpringBootTestWebEnvironment@1189dd52], resourceBasePath = 'src/main/webapp', contextLoader = 'org.springframework.boot.test.context.SpringBootContextLoader', parent = [null]], attributes = map['org.springframework.test.context.web.ServletTestExecutionListener.activateListener' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.populatedRequestContextHolder' -> true, 'org.springframework.test.context.web.ServletTestExecutionListener.resetRequestContextHolder' -> true, 'org.springframework.test.context.event.ApplicationEventsTestExecutionListener.recordApplicationEvents' -> false]] org.springframework.dao.InvalidDataAccessApiUsageException: id to load is required for loading; nested exception is java.lang.IllegalArgumentException: id to load is required for loading at org.springframework.orm.jpa.EntityManagerFactoryUtils.convertJpaAccessExceptionIfPossible(EntityManagerFactoryUtils.java:374) at org.springframework.orm.jpa.vendor.HibernateJpaDialect.translateExceptionIfPossible(HibernateJpaDialect.java:235) at org.springframework.orm.jpa.AbstractEntityManagerFactoryBean.translateExceptionIfPossible(AbstractEntityManagerFactoryBean.java:551) at org.springframework.dao.support.ChainedPersistenceExceptionTranslator.translateExceptionIfPossible(ChainedPersistenceExceptionTranslator.java:61) at org.springframework.dao.support.DataAccessUtils.translateIfNecessary(DataAccessUtils.java:242) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:152) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692) at jpabook.jpashop.repository.ItemRepository$$EnhancerBySpringCGLIB$$18b1a0a2.findOne(<generated>) at jpabook.jpashop.service.OrderService.order(OrderService.java:32) at jpabook.jpashop.service.OrderService$$FastClassBySpringCGLIB$$ad373727.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:388) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:119) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:186) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:692) at jpabook.jpashop.service.OrderService$$EnhancerBySpringCGLIB$$da7a4323.order(<generated>) at jpabook.jpashop.service.OrderServiceTest.상품주문(OrderServiceTest.java:64) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17) at org.springframework.test.context.junit4.statements.RunBeforeTestExecutionCallbacks.evaluate(RunBeforeTestExecutionCallbacks.java:74) at org.springframework.test.context.junit4.statements.RunAfterTestExecutionCallbacks.evaluate(RunAfterTestExecutionCallbacks.java:84) at org.springframework.test.context.junit4.statements.RunBeforeTestMethodCallbacks.evaluate(RunBeforeTestMethodCallbacks.java:75) at org.springframework.test.context.junit4.statements.RunAfterTestMethodCallbacks.evaluate(RunAfterTestMethodCallbacks.java:86) at org.springframework.test.context.junit4.statements.SpringRepeat.evaluate(SpringRepeat.java:84) at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:325) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:251) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.runChild(SpringJUnit4ClassRunner.java:97) at org.junit.runners.ParentRunner$3.run(ParentRunner.java:290) at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:71) at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:288) at org.junit.runners.ParentRunner.access$000(ParentRunner.java:58) at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:268) at org.springframework.test.context.junit4.statements.RunBeforeTestClassCallbacks.evaluate(RunBeforeTestClassCallbacks.java:61) at org.springframework.test.context.junit4.statements.RunAfterTestClassCallbacks.evaluate(RunAfterTestClassCallbacks.java:70) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.springframework.test.context.junit4.SpringJUnit4ClassRunner.run(SpringJUnit4ClassRunner.java:190) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:69) at com.intellij.rt.junit.IdeaTestRunner$Repeater.startRunnerWithArgs(IdeaTestRunner.java:33) at com.intellij.rt.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:220) at com.intellij.rt.junit.JUnitStarter.main(JUnitStarter.java:53) Caused by: java.lang.IllegalArgumentException: id to load is required for loading at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:96) at org.hibernate.event.spi.LoadEvent.<init>(LoadEvent.java:64) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.doLoad(SessionImpl.java:2783) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.lambda$load$1(SessionImpl.java:2767) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.perform(SessionImpl.java:2723) at org.hibernate.internal.SessionImpl$IdentifierLoadAccessImpl.load(SessionImpl.java:2767) at org.hibernate.internal.SessionImpl.find(SessionImpl.java:3322) at org.hibernate.internal.SessionImpl.find(SessionImpl.java:3284) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.base/java.lang.reflect.Method.invoke(Method.java:566) at org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:311) at com.sun.proxy.$Proxy96.find(Unknown Source) at jpabook.jpashop.repository.ItemRepository.findOne(ItemRepository.java:26) at jpabook.jpashop.repository.ItemRepository$$FastClassBySpringCGLIB$$dc3fed7a.invoke(<generated>) at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:218) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:779) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.proceed(CglibAopProxy.java:750) at org.springframework.dao.support.PersistenceExceptionTranslationInterceptor.invoke(PersistenceExceptionTranslationInterceptor.java:137) ... 48 more
풀스택을 위한 도커와 최신 서버 기술(리눅스, nginx, AWS, HTTPS, 배포까지) [풀스택 Part3]
다른 강의에서 도커 설치를 하는 것을 보고 갑자기 궁금해서 질문드립니다. centos 환경에서 도커설치시 yum install docker 이렇게 간단하게 설치하던데 ubuntu도 그냥 sudo apt-get install docker 이렇게 안하고 강의처럼 복잡?하게 설치하는 이유가 있을까요?
강사님 안녕하세요, 강의를 듣다 궁금한 점이 있어서 글 올립니다. 보통 ItemService 같은 서비스 클래스는 구현체를 만드는 것으로 알고 있는데, 혹시 강의처럼 ItemServiceImpl 클래스를 안만들고 바로 구현해도 크게 문제되지는 않는건지 궁금합니다. (JPA라서 그런건지 아니면 예제이기 때문에 단순화 시키신건지 등 ..) 답변 부탁드리겠습니다! 감사합니다!!
handleChangeInput 함수에서 handleReset 함수를 실행하는 것은 이해가 되는데요. 왜 return 구문을 쓰신건지 잘 모르겠습니다 ^^;; handleChangeInput 함수 자체도 별도의 return을 해주는 것이 없는것 같아서요. handleChangeInput(e) { const searchKeyword = e.target.value; if (searchKeyword.length <= 0) { return this.handleReset(); // 이 부분 입니다! } this.setState({ searchKeyword }); }
[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 28.021 s [INFO] Finished at: 2021-06-06T23:21:18+09:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project spring-petclinic: There are test failures. [ERROR] [ERROR] Please refer to C:\Users\User\JavaProject\spring-petclinic\target\surefire-reports for the individual test results. [ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream. [ERROR] The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-16\bin\java" -javaagent:C:\\Users\\User\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-run time.jar=destfile=C:\\Users\\User\\JavaProject\\spring-petclinic\\target\\jacoco.exec -jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750\surefirebooter17835205775616496 159.jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750 2021-06-06T23-21-16_829-jvmRun1 surefire6151291350789010891tmp surefire_012945399030963262607tmp" [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] org.apache.maven.surefire.booter.SurefireBooterForkException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called? [ERROR] Command was cmd.exe /X /C ""C:\Program Files\Java\jdk-16\bin\java" -javaagent:C:\\Users\\User\\.m2\\repository\\org\\jacoco\\org.jacoco.agent\\0.8.5\\org.jacoco.agent-0.8.5-run time.jar=destfile=C:\\Users\\User\\JavaProject\\spring-petclinic\\target\\jacoco.exec -jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750\surefirebooter17835205775616496 159.jar C:\Users\User\AppData\Local\Temp\surefire13409109640807335750 2021-06-06T23-21-16_829-jvmRun1 surefire6151291350789010891tmp surefire_012945399030963262607tmp" [ERROR] Error occurred in starting fork, check output in log [ERROR] Process Exit Code: 1 [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.fork(ForkStarter.java:669) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:282) [ERROR] at org.apache.maven.plugin.surefire.booterclient.ForkStarter.run(ForkStarter.java:245) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeProvider(AbstractSurefireMojo.java:1183) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked(AbstractSurefireMojo.java:1011) [ERROR] at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(AbstractSurefireMojo.java:857) [ERROR] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:137) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:210) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:156) [ERROR] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:148) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81) [ERROR] at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:56) [ERROR] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:305) [ERROR] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:192) [ERROR] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:105) [ERROR] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:957) [ERROR] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:289) [ERROR] at org.apache.maven.cli.MavenCli.main(MavenCli.java:193) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:567) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:282) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:225) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:406) [ERROR] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:347) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [ERROR] at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:78) [ERROR] at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.base/java.lang.reflect.Method.invoke(Method.java:567) [ERROR] at org.apache.maven.wrapper.BootstrapMainStarter.start(BootstrapMainStarter.java:39) [ERROR] at org.apache.maven.wrapper.WrapperExecutor.execute(WrapperExecutor.java:122) [ERROR] at org.apache.maven.wrapper.MavenWrapperMain.main(MavenWrapperMain.java:61) [ERROR] [ERROR] -> [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 안녕하세요. 프로젝트를 git clone한 뒤 mvnw package 명령어를 실행했는데 다음과 같은 에러가 발생했네요. JDK16버전을 지원을 하지 않나해서 JDK 11로 재설정하고 재실행했는데도 동일한 에러가 발생하네요.
안녕하세요! 기본문제는 직접풀고 강의까지 들었습니다! 이번에 자료구조, 알고리즘을 공부한지 얼마 안됬는데, 코딩테스트 까지 얼마 남지 않았습니다.(3주~한달) 테스트는 프로그래머스로 진행된다고하는데, 테스트 난이도가 프로그래머스 1~2 정도라고합니다. 어떤식으로 공부를 진행해야 빠르게 준비 할수 있을까요!! 강의를 먼저 들으면서, 각 강의에 해당되는 주제를 프로그래머스 문제에서 찾아서 푸려고하는데;; 개념 공부도 따로 해야하겠죠?ㅠㅠ 조언 부탁드립니다...
강의를 따라 도커 설치, minikube 설치 후 minikube version 명령어로 설치가 잘 되었나 확인했는데 "/usr/local/bin/minikube: line 1: syntax error near unexpected token '<' " 에러가 납니다 어떻게 해결하면 좋을지 잘 모르겠습니다. (vm ubuntu 20.04 버전 사용중입니다.)
Volatility Foundation Volatility Framework 2.4 *** Failed to import volatility.plugins.registry.dumpregistry (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.malware.svcscan (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.registry.lsadump (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로 그램이 아닙니다.) *** Failed to import volatility.plugins.apihooksdeep (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.registry.shellbags (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프 로그램이 아닙니다.) *** Failed to import volatility.plugins.registry.auditpol (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.ssdt (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.registry.registryapi (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.trustrecords (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램 이 아닙니다.) *** Failed to import volatility.plugins.mac.apihooks (ImportError: Error loading the diStorm dynamic library (or cannot load library into process).) *** Failed to import volatility.plugins.envars (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.registry.userassist (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.chromehistory (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.evtlogs (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아 닙니다.) *** Failed to import volatility.plugins.uninstallinfo (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.malware.threads (NameError: name 'distorm3' is not defined) *** Failed to import volatility.plugins.mac.apihooks_kernel (ImportError: Error loading the diStorm dynamic library (or cannot load library into process).) *** Failed to import volatility.plugins.getservicesids (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그 램이 아닙니다.) *** Failed to import volatility.plugins.mimikatz (ImportError: No module named construct) *** Failed to import volatility.plugins.registry.shimcache (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프 로그램이 아닙니다.) *** Failed to import volatility.plugins.linux.netscan (ImportError: No module named yara) *** Failed to import volatility.plugins.timeliner (ImportError: DLL load failed: %1은(는) 올바른 Win32 응용 프로그램이 아닙니다.) *** Failed to import volatility.plugins.malware.apihooks (NameError: name 'distorm3' is not defined) 이런 문구들이 반복적으로 나오면서 vol.py 가 꺼짐니다 어떻게 해결해야 하나요?
안녕하세요 루키즈님. 오류가 발생했는데, 해결되지 않아 질문 드립니다. NullReferenceException: Object reference not set to an instance of an object UI_Inven.Init () (at Assets/Scripts/UI/Scene/UI_Inven.cs:26) UI_Inven.Start () (at Assets/Scripts/UI/Scene/UI_Inven.cs:14) 현재 아래와 같은 오류가 발생했고, 디버그 모드를 통해 기존에 있던 UI_Inven_Item을 Destory 하는 중에 발생하고 있다는 것을 알게 되었습니다. public override void Init() { base.Init(); Bind<GameObject>(typeof(GameObjects)); GameObject gridPanel = Get<GameObject>( (int)GameObjects.GridPanel); // 있던 거 삭제 foreach (Transform child in gridPanel.transform) { // 내 트랜스 폼이 들고 있는 모든 자식들을 순회를 하는 코드 Managers.Resource.Destroy(child.gameObject); } //// 실제 인벤토리 정보를 참고해서 //for(int i =0; i< 8; i++) //{ // GameObject item = Managers.Resource.Instantiate("UI/Scene/UI_Inven_Item"); // item.transform.SetParent(gridPanel.transform); // 부모님 지정 // UI_Inven_Item invenitem = Util.GetOrAddComponent<UI_Inven_Item>(item); // invenitem.SetInfo("Bind"); //} } 혹시 원인을 알 수 있을 까요 ? 감사합니다.
회사에서나 학원에서나 배울때는 @Autowired private MemberService memberService; 이렇게 많이 썼습니다. 근데 강사님 경우에는 생성자에다가 쓰는걸 권유 하는것 같은데 이유를 초등학생 수준으로 알고 싶습니다. 생성자를 뜻을 모르는게 아닌게 언제 무엇을 위해서 쓰는지 궁금합니다.