polygene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Niclas Hedhman <nic...@hedhman.org>
Subject Re: Strange exception
Date Sat, 21 Nov 2015 16:24:10 GMT
And for the record, if I change to JacksonValueSerialization, then the
issue goes away.

I suspect that there is a mismatch in the start and end of tokens in
OrgJson, somewhere....

On Sat, Nov 21, 2015 at 10:32 PM, Niclas Hedhman <niclas@hedhman.org> wrote:

> I realize it wasn't the full stacktrace...
>
> org.apache.zest.spi.entitystore.EntityStoreException:
> org.apache.zest.api.value.ValueSerializationException: Could not serialize
> value
>
>     at
> org.apache.zest.spi.entitystore.helpers.JSONEntityState.setPropertyValue(JSONEntityState.java:174)
>     at
> org.apache.zest.library.scheduler.JobStoreMixin.storeJob(JobStoreMixin.java:69)
>     at
> org.apache.zest.api.unitofwork.concern.UnitOfWorkConcern.invokeWithCommit(UnitOfWorkConcern.java:129)
>     at
> org.apache.zest.api.unitofwork.concern.UnitOfWorkConcern.invoke(UnitOfWorkConcern.java:76)
>     at
> org.quartz.simpl.RAMJobStore.storeJobAndTrigger(RAMJobStore.java:251)
>     at
> org.quartz.core.QuartzScheduler.scheduleJob(QuartzScheduler.java:886)
>     at org.quartz.impl.StdScheduler.scheduleJob(StdScheduler.java:249)
>     at
> org.apache.library.scheduler.SchedulerTest.givenSchedulerWhenScheduleJobExpectJobExecuted(SchedulerTest.java:71)
>     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.runners.Suite.runChild(Suite.java:127)
>     at org.junit.runners.Suite.runChild(Suite.java:26)
>     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:117)
>     at
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:234)
>     at
> com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:74)
> Caused by: org.apache.zest.api.value.ValueSerializationException: Could
> not serialize value
>     at
> org.apache.zest.spi.value.ValueSerializerAdapter.serialize(ValueSerializerAdapter.java:197)
>     at
> org.apache.zest.spi.value.ValueSerializerAdapter.serialize(ValueSerializerAdapter.java:178)
>     at
> org.apache.zest.spi.entitystore.helpers.JSONEntityState.setPropertyValue(JSONEntityState.java:154)
>     ... 34 more
> Caused by: org.json.JSONException: Value out of sequence.
>     at org.json.JSONWriter.append(JSONWriter.java:129)
>     at org.json.JSONWriter.value(JSONWriter.java:325)
>     at
> org.apache.zest.valueserialization.orgjson.OrgJsonValueSerializer.onValue(OrgJsonValueSerializer.java:110)
>     at
> org.apache.zest.valueserialization.orgjson.OrgJsonValueSerializer.onValue(OrgJsonValueSerializer.java:30)
>     at
> org.apache.zest.spi.value.ValueSerializerAdapter.serializeBase64Serializable(ValueSerializerAdapter.java:505)
>     at
> org.apache.zest.spi.value.ValueSerializerAdapter.doSerialize(ValueSerializerAdapter.java:325)
>     at
> org.apache.zest.spi.value.ValueSerializerAdapter.serializeRoot(ValueSerializerAdapter.java:270)
>     at
> org.apache.zest.spi.value.ValueSerializerAdapter.serialize(ValueSerializerAdapter.java:188)
>     ... 36 more
>
>
> On Sat, Nov 21, 2015 at 10:25 PM, Niclas Hedhman <niclas@hedhman.org>
> wrote:
>
>> Hi,
>> I just got this awkward exception (below) from "ordinary" entity
>> manipulation.
>>
>> I am working on Quartz integration, where I implement the Quartz SPI
>> (reasonably well defined, with JobStore, JobFactory and other interfaces).
>> And the entity being saved has a single Property<JobDetail>, where
>> JobDetail is a Quartz class.
>> So I guess I am dealing with Pojo serialization of some kind, which used
>> to be Java Serialization, but is it now something else?
>>
>>
>> Any ideas?
>>
>> Caused by: org.json.JSONException: Value out of sequence.
>>     at org.json.JSONWriter.append(JSONWriter.java:129)
>>     at org.json.JSONWriter.value(JSONWriter.java:325)
>>     at
>> org.apache.zest.valueserialization.orgjson.OrgJsonValueSerializer.onValue(OrgJsonValueSerializer.java:110)
>>     at
>> org.apache.zest.valueserialization.orgjson.OrgJsonValueSerializer.onValue(OrgJsonValueSerializer.java:30)
>>     at
>> org.apache.zest.spi.value.ValueSerializerAdapter.serializeBase64Serializable(ValueSerializerAdapter.java:505)
>>     at
>> org.apache.zest.spi.value.ValueSerializerAdapter.doSerialize(ValueSerializerAdapter.java:325)
>>     at
>> org.apache.zest.spi.value.ValueSerializerAdapter.serializeRoot(ValueSerializerAdapter.java:270)
>>     at
>> org.apache.zest.spi.value.ValueSerializerAdapter.serialize(ValueSerializerAdapter.java:188)
>>     ... 36 more
>>
>>
>> --
>> Niclas Hedhman, Software Developer
>> http://zest.apache.org - New Energy for Java
>>
>
>
>
> --
> Niclas Hedhman, Software Developer
> http://zest.apache.org - New Energy for Java
>



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

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