polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject ZEST-23 shows a strange error...
Date Sat, 16 May 2015 03:42:47 GMT
A very simple testcase fails in 'develop', and I can't dig into the
serialization code to figure out why an Array is expected but an Object is
given/found.

Trimmed exception below.

java.lang.IllegalStateException: Could not serialize-copy Value
    at
org.qi4j.runtime.value.ValueBuilderWithPrototype.<init>(ValueBuilderWithPrototype.java:55)
    at
org.qi4j.runtime.value.ValueBuilderInstance.newInstance(ValueBuilderInstance.java:76)
    at
org.qi4j.runtime.value.ValueSerializationRegressionTest.givenNewValueWhenConvertingToEntityExpectNewEntityInStore(ValueSerializationRegressionTest.java:40)
    <snip/>
    at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
Caused by: org.qi4j.api.value.ValueSerializationException: Expected an
array but got {}
    at
org.qi4j.valueserialization.orgjson.OrgJsonValueDeserializer.putArrayNodeInMap(OrgJsonValueDeserializer.java:431)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.deserializeNodeMap(ValueDeserializerAdapter.java:864)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.doDeserializeInputNodeValue(ValueDeserializerAdapter.java:758)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.access$100(ValueDeserializerAdapter.java:96)
    at
org.qi4j.spi.value.ValueDeserializerAdapter$20.map(ValueDeserializerAdapter.java:708)
    at
org.qi4j.valueserialization.orgjson.OrgJsonValueDeserializer.getObjectFieldValue(OrgJsonValueDeserializer.java:396)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.deserializeValueComposite(ValueDeserializerAdapter.java:687)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.deserializeNodeValueComposite(ValueDeserializerAdapter.java:608)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.deserializeValueComposite(ValueDeserializerAdapter.java:586)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.doDeserialize(ValueDeserializerAdapter.java:502)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.deserializeRoot(ValueDeserializerAdapter.java:474)
    at
org.qi4j.spi.value.ValueDeserializerAdapter.deserialize(ValueDeserializerAdapter.java:396)
    at
org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
<snip/>

-- 
Niclas Hedhman, Software Developer
http://zest.apache.org - New Energy for Java

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message