java.io.BufferedInputStream cannot be cast to org.omg.CORBA.portable.InputStream
2018-01-27 17:02
1796 查看
在开发中出现 错误 java.io.BufferedInputStream cannot be cast to org.omg.CORBA.portable.InputStream
java中有两个包都包含InputStream,而在使用IDE工具时可能会默认把org.omg.CORBA.portable.InputStream这个包放在前面的。
解决方法:1 手动把org.omg.CORBA.portable.InputStream包换成 java.io.InputStream
或者 2 在使用IDE自动补全时向下选择 java.io.InputStream中的InputStream
java中有两个包都包含InputStream,而在使用IDE工具时可能会默认把org.omg.CORBA.portable.InputStream这个包放在前面的。
解决方法:1 手动把org.omg.CORBA.portable.InputStream包换成 java.io.InputStream
或者 2 在使用IDE自动补全时向下选择 java.io.InputStream中的InputStream
相关文章推荐
- 文件下载之java.io.FileInputStream cannot be cast to java.lang.String
- struts2 下载问题java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast to
- struts2下载文件时出错提示:java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast to java.l
- java.io.fileinputstream cannot be cast to java.io.file
- struts2下载文件时出现:java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast to 错误
- 不能从 java.io.InputStream 转换为 org.omg.CORBA.portable.InputStream
- struts2下载文件时出现:java.lang.ClassCastException: java.io.ByteArrayInputStream cannot be cast to 错误
- org.hibernate.impl.QueryImpl cannot be cast to java.util.List
- tomcat启动报错:java.lang.ClassCastException: org.apache.jasper.runtime.ELContextImpl cannot be cast to o
- Hadoop: LongWritable cannot be cast to org.apache.hadoop.io.IntWritable
- Caused by: java.lang.ClassCastException: org.hibernate.type.StringType cannot be cast to org.hiberna
- Validator问题及解决办法——java.lang.ClassCastException: org.apache.struts.validator.ValidatorForm cannot be cast to forms.RegisterForm
- java.lang.ClassCastException: org.apache.catalina.util.DefaultAnnotationProcessor cannot be cast to
- cannot be cast to java.io.Serializable
- Java 向Hbase表插入数据报(org.apache.hadoop.hbase.client.HTablePool$PooledHTable cannot be cast to org.apac)
- java.lang.ClassCastException: org.apache.taglibs.standard.tlv.JstlCoreTLV cannot be cast to javax.se
- 在maven项目中使用apache cxf中遇到异常 java.lang.ClassCastException: org.springframework.web.filter.CharacterEncodingFilter cannot be cast to javax.servlet.Filter
- java.lang.ClassCastException: io.dcloud.HBuilder.xinhuaexpress.XHSApplication cannot be cast to and
- java.lang.ClassCastException: org.hibernate.impl.SessionFactoryImpl cannot be cast to org.springfram