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

Exception No such property: UID #21

Open
kinichiro opened this issue Jul 11, 2013 · 2 comments · May be fixed by #23
Open

Exception No such property: UID #21

kinichiro opened this issue Jul 11, 2013 · 2 comments · May be fixed by #23

Comments

@kinichiro
Copy link

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.

@thom-nic
Copy link
Contributor

Thanks, I think this was actually fixed in 41eaaf1 develop. It's been merged into master now, let me know if it still doesn't work.

@kinichiro
Copy link
Author

Hi,
Thanks for merging your develop branch.
"No such property: UID ..." exception had gone away.
But, "Couldn't validate VEN TXN!" warning message still remains.

In public OadrDistributeEvent handleOadrRequest(OadrRequestEvent oadrRequestEvent) function
of EiEventService.groovy, venLog.request should be set something.
(ex. venLog.request = oadrRequestEvent.toString() )
Because constraints of VenTransactionLog.groovy does not permit request nullable.

Thanks.

@kinichiro kinichiro linked a pull request Jul 19, 2013 that will close this issue
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

Successfully merging a pull request may close this issue.

2 participants