Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Joda DateTime #17

Open
RichardHightower opened this issue Jun 8, 2016 · 1 comment
Open

Joda DateTime #17

RichardHightower opened this issue Jun 8, 2016 · 1 comment

Comments

@RichardHightower
Copy link
Member

Ever seen issues with stackOverflow error and DateTime in json parsing?
Boon/QBit fail in a horrible way if you use a JODA DateTime.

Exception in thread "WebSocketProtocolEncoder-4" java.lang.StackOverflowError

at io.advantageous.boon.json.serializers.impl.FieldSerializerUseAnnotationsImpl.serializeField(FieldSerializerUseAnnotationsImpl.java:118)
at io.advantageous.boon.json.serializers.impl.JsonSerializerImpl.serializeField(JsonSerializerImpl.java:181)
at io.advantageous.boon.json.serializers.impl.InstanceSerializerImpl.serializeSubtypeInstance(InstanceSerializerImpl.java:84)
at io.advantageous.boon.json.serializers.impl.JsonSerializerImpl.serializeSubtypeInstance(JsonSerializerImpl.java:240)
at io.advantageous.boon.json.serializers.impl.FieldSerializerUseAnnotationsImpl.serializeField(FieldSerializerUseAnnotationsImpl.java:374)
at io.advantageous.boon.json.serializers.impl.JsonSerializerImpl.serializeField(JsonSerializerImpl.java:181)
at io.advantageous.boon.json.serializers.impl.InstanceSerializerImpl.serializeSubtypeInstance(InstanceSerializerImpl.java:84)
@revelfire
Copy link

Note that the StackOverflow was not a consistent thing, and specifically happened in the context not of Boon serialization itself but over the websocket in the context of QBit.

E.G. This works, but the response is crazy big and I wonder if it is related to this.

public class BoonDateTimeBugTest {

@Test
public void testBoonDateTimeBug() {

    System.out.println(io.advantageous.boon.json.JsonFactory.toJson(org.joda.time.DateTime.now()));
}

}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants