我正在尝试更新org.scala-lang:scala-library:jar:2.7.7,从版本2.7.7到2.10.7,在我的项目中它抛出异常 启动服务器时 -
Caused by: java.lang.NoClassDefFoundError: Could not initialize class com.sun.proxy.$Proxy171
at sun.reflect.GeneratedConstructorAccessor126.newInstance(Unknown Source)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(Unknown Source)
at java.lang.reflect.Constructor.newInstance(Unknown Source)
at java.lang.reflect.Proxy.newProxyInstance(Unknown Source)
at org.springframework.aop.framework.JdkDynamicAopProxy.getProxy(JdkDynamicAopProxy.java:122)
at org.springframework.aop.framework.ProxyFactory.getProxy(ProxyFactory.java:109)
at org.springframework.aop.framework.AbstractSingletonProxyFactoryBean.afterPropertiesSet(AbstractSingletonProxyFactoryBean.java:178)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1648)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1585)
如何解决这个问题?
如果需要任何其他细节,请告诉我。
答案 0 :(得分:2)
您不能像这样更新Scala运行时jar:使用Scala编写的应用程序的任何依赖项都需要更新为2.10兼容版本,并且需要使用Scala重新编译应用程序的Scala代码2.10也是。