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

modify EiEventService #23

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

modify EiEventService #23

wants to merge 1 commit into from

Conversation

kinichiro
Copy link

  1. setting request in VenTransactionLog
    in function handleOadrRequest(OadrRequestEvent oadrRequestEvent),
    venLog.request should be set
    because constraints of VenTransactionLog.groovy does not permit request nullable.
    This fix Exception No such property: UID #21 .

  2. check 'errors' contains what kind of object
    in function processEventResponses( OadrCreatedEvent oadrCreatedEvent ),
    I got groovy.lang.MissingMethodException when I sent Created event.
    Object kind in variable 'errors' should be checked.

1) setting request in VenTransactionLog
in function handleOadrRequest(OadrRequestEvent oadrRequestEvent),
venLog.request should be set
because constraints of VenTransactionLog.groovy does not permit request nullable.
This fix #21 .

2) check 'errors' contains what kind of object
in function processEventResponses( OadrCreatedEvent oadrCreatedEvent ),
I got groovy.lang.MissingMethodException when I sent Created event.
Object kind in variable 'errors' should be checked.
@kinichiro
Copy link
Author

Here is a full stack trace for fix 2).

2013-07-19 10:43:04,065 DEBUG vtn.EiEventService Event response 200 from VEN: test-customer-one, eventID: test-event-one/0, opt: optIn
2013-07-19 10:59:13,164 ERROR vtn.EiEventController Unexpected exception in EiEventController
groovy.lang.MissingMethodException: No signature of method: com.enernoc.open.oadr2.vtn.VenStatus.getAt() is applicable for argument types: (java.lang.Integer) values: [0]
Possible solutions: getAt(java.lang.String), getAll(), getId(), getAll(java.util.List), getAll([Ljava.lang.Long;), get(java.io.Serializable)
at com.enernoc.open.oadr2.vtn.EiEventService.processEventResponses(EiEventService.groovy:182)
at com.enernoc.open.oadr2.vtn.EiEventService.handleOadrCreated(EiEventService.groovy:92)
at com.enernoc.open.oadr2.vtn.EiEventService.handleOadrPayload(EiEventService.groovy:75)
at com.enernoc.open.oadr2.vtn.EiEventController.post(EiEventController.groovy:61)
at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:565)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1360)
at grails.plugin.cache.web.filter.PageFragmentCachingFilter.doFilter(PageFragmentCachingFilter.java:195)
at grails.plugin.cache.web.filter.AbstractFilter.doFilter(AbstractFilter.java:63)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:539)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:288)
at org.eclipse.jetty.server.Dispatcher.forward(Dispatcher.java:115)
at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1331)
at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:477)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:119)
at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:521)
at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:227)
at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1031)
at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:406)
at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:186)
at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:965)
at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:117)
at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:111)
at org.eclipse.jetty.server.Server.handle(Server.java:349)
at org.eclipse.jetty.server.AbstractHttpConnection.handleRequest(AbstractHttpConnection.java:449)
at org.eclipse.jetty.server.AbstractHttpConnection$RequestHandler.content(AbstractHttpConnection.java:925)
at org.eclipse.jetty.http.HttpParser.parseNext(HttpParser.java:857)
at org.eclipse.jetty.http.HttpParser.parseAvailable(HttpParser.java:235)
at org.eclipse.jetty.server.AsyncHttpConnection.handle(AsyncHttpConnection.java:76)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint.handle(SelectChannelEndPoint.java:609)
at org.eclipse.jetty.io.nio.SelectChannelEndPoint$1.run(SelectChannelEndPoint.java:45)
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:599)
at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:534)

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 this pull request may close these issues.

Exception No such property: UID
1 participant