flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chesnay Schepler (JIRA)" <j...@apache.org>
Subject [jira] [Closed] (FLINK-11155) HadoopFreeFsFactoryTest fails with ClassCastException
Date Wed, 03 Apr 2019 09:29:00 GMT

     [ https://issues.apache.org/jira/browse/FLINK-11155?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Chesnay Schepler closed FLINK-11155.
------------------------------------
       Resolution: Fixed
    Fix Version/s: 1.9.0

master: b1b2e3946eea41ce97d7c44f088dcf011b614e33

> HadoopFreeFsFactoryTest fails with ClassCastException
> -----------------------------------------------------
>
>                 Key: FLINK-11155
>                 URL: https://issues.apache.org/jira/browse/FLINK-11155
>             Project: Flink
>          Issue Type: Sub-task
>          Components: FileSystems, Tests
>    Affects Versions: 1.8.0
>            Reporter: Gary Yao
>            Assignee: Chesnay Schepler
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.9.0
>
>          Time Spent: 20m
>  Remaining Estimate: 0h
>
> {{HadoopFreeFsFactoryTest#testHadoopFactoryInstantiationWithoutHadoop}} fails with a
ClassCastException because we try to cast the result of {{getClassLoader}} to {{URLClassLoader}}
(also see https://stackoverflow.com/questions/46694600/java-9-compatability-issue-with-classloader-getsystemclassloader)
> {noformat}
> java.lang.ClassCastException: java.base/jdk.internal.loader.ClassLoaders$AppClassLoader
cannot be cast to java.base/java.net.URLClassLoader
> 	at org.apache.flink.runtime.fs.hdfs.HadoopFreeFsFactoryTest.testHadoopFactoryInstantiationWithoutHadoop(HadoopFreeFsFactoryTest.java:46)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
> 	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> 	at java.base/java.lang.reflect.Method.invoke(Method.java:564)
> {noformat}
> One should also look for other instances where we cast to {{URLClassLoader}}.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message