본문 바로가기

intellij +springboot/오류정리

(31)
AWS 무료서버 사용법 / 프리티어 putty 접속 1. 인스턴스 시작 클릭 2. 이미지는 맘에드는거 아무거나 3. 키페어 생성해주고 4. 스토리지는 30 GB 까지 프리티어니 30으로 맞춰준다 5. 그리고 인스턴스 시작 6. 인스턴스 > 빨간색 마스킬 부분 클릭 7. 보안 탭에 보안그룹 클릭 8 . 인바운드 규칙 편집에서 http(인터넷 접속),https(인터넷접속2),ssh(외부접속),smtp(메일관련 프로토콜) 포트를 열어준다 9. 인스턴스로 돌아가서 연결 > 연결 (콘솔창 접속) 10 . root 비밀번호와 ubuntu 비밀번호 생성 (초기에는 root/.ssh 에 ubuntu 계정으로만 접속하도록 셋팅돼있다) 10-1. root 비밀번호 생성하기 ubuntu@ip-172-31-3-41:~$ sudo passwd root Enter new UNIX..
Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character (' ' (code 160)): was expecting double-quote to start field name] Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Unexpected character (' ' (code 160)): was expecting double-quote to start field name] postman 으로 api 호출시 json 파싱 할때 문제가 생긴듯 하다 알아보니 JSON 콘텐츠에는 JSON을 들여쓰기하는 데 사용된 JSON(일반적으로 웹페이지에서)을 복사하여 붙여넣었을 가능성이 있는 줄바꿈 없는 공백(문자 코드 160, 일반적으로 )이 포함되어 있습니다 라고 한다 이쁘게 보려고 탭을 넣으게 문제인듯 탭을 다 지우고 다시 전송하니까 보이는 새로운 에러 Resol..
httpclient 사용 시 메이븐 war 파일 빌드 안될때 로컬에서는 잘 실행 되는데 빌드만 하면 에러.. 기존 httpclient -4.5.2.jar 를 사용중 이었는데 maven 에서 뭐가 맘에 안드는지 의존성을 따로 추가해 줘야 빌드가 된다 java.lang.IllegalStateException: Failed to load ApplicationContext for [WebMergedContextConfiguration@2be21396 testClass = com.raresoft.vc.RaresoftApplicationTests, locations = [], classes = [com.raresoft.vc.RaresoftApplication], contextInitializerClasses = [], activeProfiles = [], propertySo..
For each MvcRequestMatcher, call MvcRequestMatcher#setServletPath to indicate the servlet path. Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'filterChain' defined in class path resource [com/raresoft/vc For each MvcRequestMatcher, call MvcRequestMatcher#setServletPath to indicate the servlet path. at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$AutowiredMethodElement.resolveMethodArguments(AutowiredAnnotationBeanPostProcessor.java:875) ~[spring-beans-6.0.13.jar:6.0.13] at org.springframework.beans.factory.annotation.AutowiredAnnotationBeanPostProcessor$Autow..
yarn : 이 시스템에서 스크립트를 실행할 수 없으므로 C:\Users\inter\AppData\Roaming\npm\yarn.ps1 파일을 로드할 수 없습니다. 자세한 내용은 about_Execution_Policies(https://go.microsoft.com/fwlink/?LinkID=135170)를 참.. git으로 새롭게 클론을 받았는데 갑자이 이런 에러가 뜬다. yarn 빌드를 할때 만난 에러 헤결 방법은 PowerShell 로 Set-ExecutionPolicy RemoteSigned 명령어 입력 후 Y(예) 해주기면 된다고 하는데 Set-ExecutionPolicy : 레지스트리 키 'HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PowerShell\1\ShellIds\Microsoft.PowerShell' 에 대한 액세스가 거부되었습니다. 기본(LocalMachine) Scope에 대한 실행 정책을 변경하려면 "관리자 권한으로 실행" 옵션으로 Windows PowerShell을 시작하십시오. 현재 사용자에 대한 실행 정책을 변경하려면 "Set-ExecutionPolicy -S..
Error running <>. Command line is too long. Shorten the command line and rerun. Error running . Command line is too long. Shorten the command line and rerun. 어디서 많이 본듯한 에러 https://fishcoding.tistory.com/57 Command line is too long 하길레 Error running 'AppAdminApplication': Command line is too long. Shorten command line for AppAdminApplication or also for Spring Boot default configuration. 랑 헷갈려서 dynamic.classpath 추가해줬으나 해결되지 않았다 ..... 좀 더 찾아보니 ... 평소에 Intellij에서 작업하던 프로젝트의 테스..
Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.22.2:test (default-test) on project adjuster: There are test failures. djusterApplicationTests.contextLoads ? IllegalState Failed to load Applicatio. 2022-10-24 15:24:09.132 INFO 34736 --- [ main] o.hibernate.jpa.internal.util.LogHelper : HHH000204: Processing PersistenceUnitInfo [name: default] 2022-10-24 15:24:09.858 INFO 34736 --- [ main] org.hibernate.Version : HHH000412: Hibernate ORM core version 5.6.11.Final 2022-10-24 15:24:11.600 INFO 34736 --- [ main] o.h..
ava.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors:1) Error injecting constructor, java.la java.lang.RuntimeException: java.lang.RuntimeException: org.codehaus.plexus.component.repository.exception.ComponentLookupException: com.google.inject.ProvisionException: Unable to provision, see the following errors: 1) Error injecting constructor, java.lang.NoSuchMethodError: org.apache.maven.model.validation.DefaultModelValidator: method 'void ()' not found at org.jetbrains.idea.maven.server...