incubator-etch-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jason Wiseman <rjwi...@gmail.com>
Subject IllegalArgumentException with Datetime field
Date Wed, 10 Jun 2009 02:58:47 GMT
I am using Etch 1.0.2 with Java bindings and am getting the following
IllegalArgumentException for the Datetime type when running my test
application:


java.lang.IllegalArgumentException: validator class java.util.Date[0] failed
for type User(207995872) field created(-64659165): value 2009-06-02
21:58:03.005
at etch.bindings.java.msg.StructValue.put(StructValue.java:142)
at com.test.etch.ValueFactoryAPI$3.exportValue(API.java:159)
at
etch.bindings.java.support.DefaultValueFactory.exportCustomValue(DefaultValueFactory.java:332)
at
etch.bindings.java.transport.fmt.binary.BinaryTaggedDataOutput.writeValue(BinaryTaggedDataOutput.java:296)
at
etch.bindings.java.transport.fmt.binary.BinaryTaggedDataOutput.writeKeysAndValues(BinaryTaggedDataOutput.java:111)
at
etch.bindings.java.transport.fmt.binary.BinaryTaggedDataOutput.writeMessage(BinaryTaggedDataOutput.java:79)
at
etch.bindings.java.transport.Messagizer.transportMessage(Messagizer.java:142)
at
etch.bindings.java.transport.PlainMailboxManager.transportMessage(PlainMailboxManager.java:125)
at
etch.bindings.java.transport.DefaultDeliveryService.transportMessage(DefaultDeliveryService.java:137)
at com.test.APIServer$2.run(APIServer.java:89)
at com.test.APIServer$2.run(APIServer.java:71)
at etch.bindings.java.support.StubBase.sessionMessage(StubBase.java:110)
at
etch.bindings.java.transport.DefaultDeliveryService.sessionMessage(DefaultDeliveryService.java:116)
at
etch.bindings.java.transport.PlainMailboxManager.sessionMessage(PlainMailboxManager.java:109)
at
etch.bindings.java.transport.Messagizer.sessionPacket(Messagizer.java:121)
at etch.util.core.io.Packetizer.sessionData(Packetizer.java:183)
at etch.util.core.io.TcpTransport.fireData(TcpTransport.java:231)
at etch.util.core.io.TcpConnection.readSocket(TcpConnection.java:143)
at etch.util.core.io.Connection.run0(Connection.java:128)
at etch.util.Runner.run(Runner.java:77)
at java.lang.Thread.run(Thread.java:637)


I have defined my etch object as such:

struct User (

long id,

string login,

string firstName,

string lastName,

string country,

string email,

Datetime created,

Datetime lastModified

)


>From reading the forums and documention, Etch is supposed to support this as
an extended type.  There isn't any java documentation / examples on the
wiki, but the csharp documentation suggests that it is supported.

Any suggestions as to what the issue may be?

Thanks,
jason

Mime
View raw message