EgovClntInfo 에서 getProperty method가 없거나 인자가 맞지 않을 때 나는 에러다.


The method getProperty(String) in the type EgovProperties is not applicable for the arguments (String, String)


String 인자를 2개 받아야 하는데 1개만 있는게 정의되어 있음.

src/main/java/egovframework/com/cmm/service/EgovProperties.java

해당 method의 주석 풀기.

다른데에서도 호출할 수 있도록 다른 method들도 다 푼다.

if (Globals.OS_TYPE.equals("UNIX")) {
    String[] command = { EgovProperties.getProperty(Globals.SHELL_FILE_PATH, "SHELL." + Globals.OS_TYPE + ".getDrctryByOwner"),
                            fullpath.substring(0, fullpath.lastIndexOf("/")), fullpath.substring(fullpath.lastIndexOf("/"), fullpath.length()), owner };
   p = Runtime.getRuntime().exec(command);
   p.waitFor();
} else if (Globals.OS_TYPE.equals("WINDOWS")) {
   String command = EgovProperties.getProperty(Globals.SHELL_FILE_PATH, "SHELL." + Globals.OS_TYPE + ".getDrctryByOwner");
   p = Runtime.getRuntime().exec(command);
   p.waitFor();
                } 


728x90
BLOG main image
"그게 뭐 어쨌다는 거냐?" 늘 누가 나에게 나에대한 말을할 때면 이말을 기억해라. by nobang

카테고리

nobang이야기 (1932)
Life With Gopro (7)
Life With Mini (79)
Diary (971)
너 그거 아니(do you know) (162)
난 그래 (158)
Study (290)
속지말자 (10)
Project (34)
Poem (15)
Song (0)
Photo (113)
낙서장 (45)
일정 (0)
C.A.P.i (2)
PodCast (0)
nobang (27)
고한친구들 (4)
recieve (0)
History (0)
android_app (2)

최근에 올라온 글

최근에 달린 댓글

최근에 받은 트랙백

Total :
Today : Yesterday :