Problem with joda new DateTime (int, int, int, int, int, int)

Hi, I am creating a military application using weblogic 11g and I have a problem with joda time method

new DateTime(int, int, int, int, int, int); 

this is an abandoned exception exception but when I use new DateTime(int, int, int, int, int, int, int); (one int more), it works great update:

 DateTime start = new DateTime(1990, 1, 1, 0, 0, 0); this doesnt works DateTime start = new DateTime(1990, 1, 1, 0, 0, 0, 0); this works 

Any idea where the problem is? THX

+7
source share
1 answer

Constructors with 5 and 6 integer arguments were added in Joda-Time 2.0. The argument 7 serial constructor has been there for a long time.

Check out the Joda-Time version.

You may be using an earlier version.

UPDATE In response to a comment about working in JUnit, but not when deploying to WebLogic, I can only support the version argument.

In WebLogic, research your jar (use jar -tf ). Check out old versions of Joda-Time. Perhaps WebLogic put them there by default. Or, if not in your bank, look in the WebLogic container class library. Check your path directory or JRE extension directory. Look wherever you can, because, well, the version argument makes sense. How else would a NoSuchMethodError be raised?

+6
source

All Articles