1. 멀티미디어 등록

2. 멀티미디어 등록 저장 버튼 클릭후

3. 멀티미디어 등록 에러 내용
2025-01-27 19:00:05,520 DEBUG [org.egovframe.rte.fdl.cmmn.exception.manager.DefaultExceptionHandleManager] pm.match(pattern, thisPackageName) = true
2025-01-27 19:00:05,520 ERROR [egovframework.com.cmm.EgovComExcepHndlr] egovframework.mbl.com.mlt.service.impl.EgovMultimediaServiceImpl.copyFileToRelativePath
java.lang.StringIndexOutOfBoundsException: begin 0, end -1, length 108
at java.lang.String.checkBoundsBeginEnd(String.java:3319) ~[?:?]
at java.lang.String.substring(String.java:1874) ~[?:?]
at egovframework.mbl.com.mlt.service.impl.EgovMultimediaServiceImpl.copyFileToRelativePath(EgovMultimediaServiceImpl.java:164) ~[classes/:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:?]
at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:?]
at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]
at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:344) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:198) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163) ~[spring-aop-5.3.20.jar:5.3.20]
at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:123) ~[spring-tx-5.3.20.jar:5.3.20]
4. 프로그램 수정
/프로젝트/src/main/java/egovframework/mbl/com/mlt/service/impl/EgovMultimediaServiceImpl.java
public void copyFileToRelativePath(List<FileVO> fileList) throws Exception {
// 수정전
absolutePath =
currPath.substring(0, currPath.lastIndexOf("WEB-INF"))
+ "multimedia";
수정후
absolutePath =
currPath.substring(0, currPath.lastIndexOf("classes"))
+ "multimedia";
}
5. 멀티미디어 등록 저장 정상 확인
6. 생성된 폴더 위치 확인(windows 기준)
/workspace/프로젝트/target/multimedia
'전자정부프레임워크' 카테고리의 다른 글
전자정부프레임워크 4.1 멀티미디어 등록 대상 조회시 /cmm/fms/selectFileInfs.do]은(는) 가용하지 않습니다. (목록, 조회, 수정, 삭제 시 에러.) (0) | 2025.01.29 |
---|