polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niclas Hedhman (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ZEST-23) Strange Serialization exception
Date Sat, 16 May 2015 03:43:59 GMT

    [ https://issues.apache.org/jira/browse/ZEST-23?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14546536#comment-14546536
] 

Niclas Hedhman commented on ZEST-23:
------------------------------------

Stack trace;


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)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
	at com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	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)
	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
	at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
	at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
	at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
	at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
	at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
	at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
	at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
	at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
	at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
	at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
	at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
	at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
	... 1 more


> Strange Serialization exception
> -------------------------------
>
>                 Key: ZEST-23
>                 URL: https://issues.apache.org/jira/browse/ZEST-23
>             Project: Zest
>          Issue Type: Bug
>            Reporter: Niclas Hedhman
>            Assignee: Paul Merlin
>         Attachments: ValueSerializationRegressionTest.java
>
>
> A very simple creation of a Value fails in the Serialization "copy" mechanism.
> See attached testcase.
> It could be related to that the ValueComposite has Associations in it... Not sure...



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message