2017-01-17 4 views
1

응용 프로그램 제거 프로그램의 경우 JAR 파일 중 하나에서 버전을 가져와야합니다. 그래서 나는 다음과 같은 옵션이있는 ExtractZipFileAction 생성 :install4j JAR 파일 예외 추출

Property mode: 644 
Property destinationDirectory: . 
Property destinationRoot: Installation directory 
Property dirMode: 755 
Property fileFilter: 
Property showProgress: false 
Property zipFile: OurJarFile-1.0-SNAPSHOT-plugin.jar 
Property zipRoot: Installation directory 
Property rollbackSupported: true 

을하지만 실행이 ClassCastException (오류 로그에서 스택 추적) 즉시 취소 : 우리는 제거에있어

[ERROR] com.install4j.runtime.beans.actions.files.ExtractZipFileAction [ID 541]: java.lang.ClassCastException: com.install4j.runtime.installer.helper.comm.impl.UninstallerHelperContextImpl cannot be cast to com.install4j.api.context.InstallerContext 
java.lang.ClassCastException: com.install4j.runtime.installer.helper.comm.impl.UninstallerHelperContextImpl cannot be cast to com.install4j.api.context.InstallerContext 
    at com.install4j.runtime.beans.actions.files.AbstractZipFileAction.zipActions(AbstractZipFileAction.java:89) 
    at com.install4j.runtime.beans.actions.files.AbstractZipFileAction.execute(AbstractZipFileAction.java:79) 
    at com.install4j.runtime.beans.actions.SystemInstallOrUninstallAction.uninstall(SystemInstallOrUninstallAction.java:35) 
    at com.install4j.runtime.installer.ContextImpl$7.executeAction(ContextImpl.java:1670) 
    at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1659) 
    at com.install4j.runtime.installer.ContextImpl$7.fetchValue(ContextImpl.java:1656) 
    at com.install4j.runtime.installer.helper.comm.actions.FetchObjectAction.execute(FetchObjectAction.java:14) 
    at com.install4j.runtime.installer.helper.comm.HelperCommunication.executeActionWrapper(HelperCommunication.java:367) 
    at com.install4j.runtime.installer.helper.comm.HelperCommunication.access$200(HelperCommunication.java:33) 
    at com.install4j.runtime.installer.helper.comm.HelperCommunication$1.run(HelperCommunication.java:98)` 

주, 설치 프로그램이 아니지만 UninstallerHelperContextImplInstallerContext으로 전송하면 예외가 발생합니다. JAR 파일에 문제가있을 수 있습니까?

또한 프로그램 폴더의 설치 디렉토리에있는 파일을 추출하려는 경우 작업 표고 유형을 Elevate to maximum available privileges으로 설정합니다.

답변

1

이것은 버그이며 6.1.5에서 수정 될 예정입니다. 이 문제가 해결 된 빌드를 얻으려면 [email protected]에 문의하십시오.