java.lang.Error: Unresolved compilation problem解决方案
来源:互联网 发布:js input file value 编辑:程序博客网 时间:2024/05/22 14:21
Caused by: java.lang.Error: Unresolved compilation problem:
Multi-catch parameters are not allowed for source level below 1.7
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy89.ValueCommon(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy90.ValueCommon(Unknown Source)
at com.rd.p2p.web.bankcustody.BankCustodyUserAction.balanceQuery(BankCustodyUserAction.java:817)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892)
Multi-catch parameters are not allowed for source level below 1.7
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:90)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy89.ValueCommon(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at com.sun.proxy.$Proxy90.ValueCommon(Unknown Source)
at com.rd.p2p.web.bankcustody.BankCustodyUserAction.balanceQuery(BankCustodyUserAction.java:817)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at ognl.OgnlRuntime.invokeMethod(OgnlRuntime.java:892)
at ognl.OgnlRuntime.callAppropriateMethod(OgnlRuntime.java:1294)
问题:maven项目编译打包后,程序代码加解密异常,其他功能正常
原因:由于电脑上面有多个jdk版本,而Myeclipse IDE使用默认版本,使得 IDE 的Compiler Compliance level 与 Installed JREs 版本不对应而导致错误。
解决方案:将 IDE 的Compiler Compliance level 与 Installed JREs 版本修改为一致。(例如:Compiler Compliance level 使用1.5时,Installed JREs版本则使用jdk1.5.0 )
图解:Compiler Compliance level:
Installed JREs:
阅读全文
1 0
- java.lang.Error: Unresolved compilation problem解决方案
- java.lang.Error: Unresolved compilation problem.
- java.lang.Error: Unresolved compilation problem:
- java.lang.Error: Unresolved compilation problems:解决方案
- java.lang.Error: Unresolved compilation problems:解决方案
- java.lang.Error: Unresolved compilation problems:解决方案
- Exception in thread main java.lang.Error Unresolved compilation problem
- Exception in thread "main" java.lang.Error: Unresolved compilation problem
- 静态变量错误 java.lang.Error: Unresolved compilation problem:
- Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- Exception in thread main java.lang.Error Unresolved compilation problem
- Exception in thread "main" java.lang.Error: Unresolved compilation problem
- Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- java.lang.Error: Unresolved compilation problems:
- java.lang.Error: Unresolved compilation problem: The import org.junit cannot be resolved
- java.lang.Error: Unresolved compilation problem: Cannot make a static reference to the non-static
- Atitit. Exception in thread "main" java.lang.Error: Unresolved compilation problem:
- 【Python】互斥锁
- Ubuntu Linux下安装JDK,Android SDK,Android Studio以及NDK
- 《Head First 设计模式》【PDF】下载
- yii入门
- MySQL拼音首字母查询
- java.lang.Error: Unresolved compilation problem解决方案
- 从0开始学习SpringCould(5)--SpringBoot 集成Mybatis使用Druid数据源
- java提高篇(四)-----抽象类与接口
- [转载] Java word 模板操作poi-tl中文文档wiki
- 一派胡言!敢说我们程序员是出轨率最高的群体?
- 【Spring+SpringMVC+MyBatis深入学习及搭建】10.MyBatis逆向工程
- 前端开发必备25个知识点
- 从零搭建ELK实时日志分析平台(ElasticSearch, Logstash, Kibana)
- Eclipse中Maven-web项目创建且运行流程