ieb/sparsemapcontent — Issue #172: StringType save doesnt like json null values.
Author: ieb
Created: 2012-02-28 04:12:04+00:00
State: open

13.02.2012 18:08:03.186 *ERROR* [127.0.0.1 [1329156483112] POST /p/k69piJiUaa/id5545089 HTTP/1.1] org.sakaiproject.nakamura.resource.lite.servlet.post.operations.ImportOperation Exception during response processing. java.lang.ClassCastException: org.apache.sling.commons.json.JSONObject$Null cannot be cast to java.lang.String
at org.sakaiproject.nakamura.lite.types.StringType.save(StringType.java:18)
at org.sakaiproject.nakamura.lite.types.Types.writeMapToStream(Types.java:205)
at org.sakaiproject.nakamura.lite.types.Types.storeMapToStream(Types.java:167)
at org.sakaiproject.nakamura.lite.storage.jdbc.JDBCStorageClient.insert(JDBCStorageClient.java:313)
at org.sakaiproject.nakamura.lite.CachingManager.putCached(CachingManager.java:181)
at org.sakaiproject.nakamura.lite.content.ContentManagerImpl.update(ContentManagerImpl.java:442)
at org.sakaiproject.nakamura.api.resource.lite.LiteJsonImporter.internalImportConten