JodaTimeSerializer/customSerializer errors when upgrading from lift-json 2.4M4 to M5

25 views
Skip to first unread message

Tommy Chheng

unread,
Dec 14, 2011, 2:17:46 PM12/14/11
to lif...@googlegroups.com
I recently upgraded from lift-json 2.4M4 to 2.4M5 but hit this error in the JodaTimeSerializer:

java.lang.NoClassDefFoundError: net/liftweb/json/CustomSerializer
	at java.lang.ClassLoader.defineClass1(Native Method)
	at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
	at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
	at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
	at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
	at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
	at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
	at java.security.AccessController.doPrivileged(Native Method)
	at java.net.URLClassLoader.findClass(URLClassLoader.java:190)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:247)
	at net.liftweb.json.ext.JodaTimeSerializers$.all(JodaTimeSerializer.scala:25)

Joni Freeman

unread,
Dec 15, 2011, 2:29:36 AM12/15/11
to lif...@googlegroups.com
Hi Tommy,

Usually these kind of problems are related to CLASSPATH problems. Certainly CustomSerializer is
packaged to jar:

$ unzip -l lift-json_2.9.1-2.4-M5.jar|grep CustomSerializer
    13137  2011-11-10 17:15   net/liftweb/json/CustomSerializer$$anonfun$deserialize$2.class
     3167  2011-11-10 17:15   net/liftweb/json/CustomSerializer.class

Can you double check that you upgraded all lift-json related jars correctly and there's no
old versions of jars laying around your CLASSPATH. If that doesn't solve the issue could
you send us a small runnable example which shows the problem. We can then debug it.

Cheers Joni
Reply all
Reply to author
Forward
0 new messages