java.lang.NoSuchMethodError: org.joda.time.format.DateTimeFormatterBuilder.appendFixedDecimal

521 views
Skip to first unread message

krob...@edmc.edu

unread,
Jan 14, 2015, 7:13:55 PM1/14/15
to json-schem...@googlegroups.com
Hello -

I'm facing an issue with the json schema library v2.2.6, but only under Weblogic:

java.lang.NoSuchMethodError: org.joda.time.format.DateTimeFormatterBuilder.appendFixedDecimal
at com.github.fge.jsonschema.format.common.DateTimeAttribute.<clinit>(DateTimeAttribute.java:56)
        at com.github.fge.jsonschema.library.format.CommonFormatAttributesDictionary.<clinit>(CommonFormatAttributesDictionary.java:52)
        at com.github.fge.jsonschema.library.format.DraftV3FormatAttributesDictionary.<clinit>(DraftV3FormatAttributesDictionary.java:47)
...lots more

which ultimately traces back to the JsonSchemaFactory.byDefault method.

Under a standalone test case, this runs fine. However, when deployed to weblogic, this error results. I have verified that joda-time is packaged in my ear.

We had previously used json schema in the 2.0.1 and not seen any such issue.

Any thoughts?

Thanks,

Ken

Francis Galiegue

unread,
Jan 14, 2015, 7:37:20 PM1/14/15
to json-schem...@googlegroups.com
Hello,
There is probably an older version of Joda Time loaded by Weblogic. I
have already seen this error...

In a similar vein I've had more than one report about an
IncompatibleClassChangeError when Weblogic used an older version of
Guava.

I don't know Weblogic at all, but try and see in the jars loaded prior
to the webapp being deployed.

--
Francis Galiegue, fgal...@gmail.com, https://github.com/fge
JSON Schema in Java: http://json-schema-validator.herokuapp.com
Parsers in pure Java: https://github.com/parboiled1/grappa
Reply all
Reply to author
Forward
0 new messages