When I send httpRequest1.xml by curl, I've got error like this.
C:\oadr2-vtn-new\xmpp-http-tests>\temp\curl\curl -v -d @httpRequest1.xml -H "Accept:application/xml" -H "Content-Type:application/xml" http://localhost:8080/oadr2-vtn-groovy/OpenADR2/Simple/EiEvent
- Adding handle: conn: 0x65d8e8
- Adding handle: send: 0
- Adding handle: recv: 0
- Curl_addHandleToPipeline: length: 1
- - Conn 0 (0x65d8e8) send_pipe: 1, recv_pipe: 0
- About to connect() to localhost port 8080 (#0)
- Trying 127.0.0.1...
- Connected to localhost (127.0.0.1) port 8080 (#0)
POST /oadr2-vtn-groovy/OpenADR2/Simple/EiEvent HTTP/1.1
User-Agent: curl/7.31.0
Host: localhost:8080
Accept:application/xml
Content-Type:application/xml
Content-Length: 692
- upload completely sent off: 692 out of 692 bytes
< HTTP/1.1 500 Server Error
< Content-Type: text/plain;charset=UTF-8
< Transfer-Encoding: chunked
- Server Jetty(7.6.0.v20120127) is not blacklisted
< Server: Jetty(7.6.0.v20120127)
<
class groovy.lang.MissingPropertyException: No such property: UID for class: com.enernoc.open.oadr2.vtn.VenTransactionLog
Possible solutions: id, uri, venID, all* Connection #0 to host localhost left intact
The enhance in develop branch will fix this error.
And in EiEventService.groovy,
public OadrDistributeEvent handleOadrRequest(OadrRequestEvent oadrRequestEvent)
returns "Couldn't validate VEN TXN!" warning.
Setting value to venLog.request will resolve this issue,
because constraints of VenTransactionLog.groovy does not permit request nullable.
Thanks.
When I send httpRequest1.xml by curl, I've got error like this.
C:\oadr2-vtn-new\xmpp-http-tests>\temp\curl\curl -v -d @httpRequest1.xml -H "Accept:application/xml" -H "Content-Type:application/xml" http://localhost:8080/oadr2-vtn-groovy/OpenADR2/Simple/EiEvent
< HTTP/1.1 500 Server Error
< Content-Type: text/plain;charset=UTF-8
< Transfer-Encoding: chunked
< Server: Jetty(7.6.0.v20120127)
<
class groovy.lang.MissingPropertyException: No such property: UID for class: com.enernoc.open.oadr2.vtn.VenTransactionLog
Possible solutions: id, uri, venID, all* Connection #0 to host localhost left intact
The enhance in develop branch will fix this error.
And in EiEventService.groovy,
public OadrDistributeEvent handleOadrRequest(OadrRequestEvent oadrRequestEvent)
returns "Couldn't validate VEN TXN!" warning.
Setting value to venLog.request will resolve this issue,
because constraints of VenTransactionLog.groovy does not permit request nullable.
Thanks.