2017-12-03 20 views
3

10.13 나는 양조를 사용하여 이동 경로를 설치하고 난 포스트 그레스에 대한 마이그레이션을 실행하기 위해 노력하고있어 나는이 오류 받고 있어요 : Boxfuse이동 경로 오류 : 맥 시에라에로드 할 수 없습니다

에 의해

이동 경로 4.2.0

ERROR :이 경로를 확인했는데 디렉토리와 파일이 존재 /usr/local/Cellar/flyway/4.2.0/libexec/drivers/postgresql-9.4.1208.jre6.jar

를로드 할 수 없습니다 .

제안 사항?

답변

0

이 5.x 버전으로 해결 된 이동 경로 4.x의 알려진 문제 (1545)입니다

솔루션 : 5.x 버전을 설치 - 나는 공식을 업데이트 할 브루하는 pull request 제출


근본 원인은 ClassCastException입니다 - 자바 (9) 변경 (issue 3) 관련.

-X 플래그 실행이 진짜 문제 공개 볼 수 :

$ flyway info -X 
Flyway 4.2.0 by Boxfuse 

DEBUG: Java 9.0.1 (Oracle Corporation) 
DEBUG: Mac OS X 10.13.1 x86_64 

DEBUG: Loading config file: /usr/local/Cellar/flyway/4.2.0/libexec/conf/flyway.conf 
DEBUG: Unable to load config file: /Users/sdc/flyway.conf 
DEBUG: Loading config file: /Users/sdc/code/flytest/flyway.conf 
DEBUG: Using configuration: 
DEBUG: flyway.jarDirs -> /usr/local/Cellar/flyway/4.2.0/libexec/jars 
DEBUG: flyway.driver -> com.mysql.jdbc.Driver 
DEBUG: flyway.locations -> filesystem:/usr/local/Cellar/flyway/4.2.0/libexec/sql 
DEBUG: flyway.url -> jdbc:mysql://localhost:3306/eddydb 
DEBUG: flyway.user -> root 
DEBUG: flyway.password -> ********* 
DEBUG: Adding location to classpath: /usr/local/Cellar/flyway/4.2.0/libexec/drivers/postgresql-9.4.1208.jre6.jar 
ERROR: Unexpected error 
org.flywaydb.core.api.FlywayException: Unable to load /usr/local/Cellar/flyway/4.2.0/libexec/drivers/postgresql-9.4.1208.jre6.jar 
    at org.flywaydb.core.internal.util.ClassUtils.addJarOrDirectoryToClasspath(ClassUtils.java:156) 
    at org.flywaydb.commandline.Main.loadJdbcDrivers(Main.java:305) 
    at org.flywaydb.commandline.Main.main(Main.java:95) 
Caused by: java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader cannot be cast to java.base/java.net.URLClassLoader 
    at org.flywaydb.core.internal.util.ClassUtils.addJarOrDirectoryToClasspath(ClassUtils.java:151) 
    ... 2 more