java – joda新问题DateTime(int,int,int,int,int,int)
发布时间:2020-12-15 00:42:35 所属栏目:Java 来源:网络整理
导读:嗨我用weblogic 11g创建战争应用程序,我有joda时间的方法的问题 new DateTime(int,int,int); 这个抛出的nosuchmethodException 但是当我使用新的DateTime(int,int);(一个更多的int)它工作正常 更新: DateTime start = new DateTime(1990,1,0); this doesnt
嗨我用weblogic 11g创建战争应用程序,我有joda时间的方法的问题
new DateTime(int,int,int); 这个抛出的nosuchmethodException DateTime start = new DateTime(1990,1,0); this doesnt works DateTime start = new DateTime(1990,0); this works 知道哪里有问题? 解决方法
在Joda-Time 2.0中添加了具有5和6个整数参数的构造函数. 7整数参数构造函数已经存在很长时间了.
检查您的Joda-Time版本. 您可能正在使用较早的版本. 更新为了响应有关它在JUnit中工作的注释而不是在WebLogic中部署时,我只能支持version参数. 在WebLogic中,检查您的jar(使用jar -tf).查看旧的Joda-Time版本.也许WebLogic默认将它们放在那里.或者如果不在jar中,请查看WebLogic的容器类库.检查您的类路径或JRE扩展目录.随处可见,因为,版本论证是有道理的.如何发生NoSuchMethodError? (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |