You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@usergrid.apache.org by "Malaka Mahanama (JIRA)" <ji...@apache.org> on 2014/05/11 18:11:21 UTC

[jira] [Comment Edited] (USERGRID-62) NPE when service is invoked via query

    [ https://issues.apache.org/jira/browse/USERGRID-62?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13994594#comment-13994594 ] 

Malaka Mahanama edited comment on USERGRID-62 at 5/11/14 4:10 PM:
------------------------------------------------------------------

This should be resolved with my PR for Usergrid-22 (https://github.com/usergrid/usergrid/pull/105/). Already reviewed and merged. Saw a few changes have happened after that as well. 
(Attached screenshot shows the error checking done). Marking as resolved for confirmation.

Regards, 
Malaka



was (Author: malaka):
This should be resolved with my PR for Usergrid-22 (https://github.com/usergrid/usergrid/pull/105/). Already reviewed and merged. Saw a few changes have happened after that as well. 
(Attached screenshot shows the error checking done).

Regards, 
Malaka


> NPE when service is invoked via query
> -------------------------------------
>
>                 Key: USERGRID-62
>                 URL: https://issues.apache.org/jira/browse/USERGRID-62
>             Project: Usergrid
>          Issue Type: Story
>          Components: Stack
>            Reporter: Rod Simpson
>            Assignee: Malaka Mahanama
>             Fix For: 1.1
>
>         Attachments: usergrid-62.png
>
>
> "Not sure where this comes from. Here's the stack trace on the server 
> {code} 
> java.lang.NullPointerException 
> at org.usergrid.persistence.Query.containsUuidIdentifersOnly(Query.java:464) 
> at org.usergrid.persistence.Query.containsSingleUuidIdentifier(Query.java:453) 
> at org.usergrid.services.ServiceContext.isByUuid(ServiceContext.java:269) 
> at org.usergrid.services.ServiceContext.isByQuery(ServiceContext.java:277) 
> at org.usergrid.services.AbstractService.invoke(AbstractService.java:593) 
> at org.usergrid.services.AbstractService.invoke(AbstractService.java:509) 
> at org.usergrid.services.ServiceRequest.execute(ServiceRequest.java:186) 
> at org.usergrid.services.ServiceRequest.invokeMultiple(ServiceRequest.java:229) 
> at org.usergrid.services.ServiceRequest.execute(ServiceRequest.java:189) 
> at org.usergrid.services.ServiceRequest.execute(ServiceRequest.java:175) 
> at org.usergrid.rest.applications.ServiceResource.executeServiceRequest(ServiceResource.java:206) 
> at org.usergrid.rest.applications.ServiceResource.executePost(ServiceResource.java:298) 
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) 
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> at java.lang.reflect.Method.invoke(Method.java:597) 
> at com.sun.jersey.spi.container.JavaMethodInvokerFactory$1.invoke(JavaMethodInvokerFactory.java:60) 
> at com.sun.jersey.server.impl.model.method.dispatch.AbstractResourceMethodDispatchProvider$TypeOutInvoker._dispatch(AbstractResourceMethodDispatchProvider.java:185) 
> at com.sun.jersey.server.impl.model.method.dispatch.ResourceJavaMethodDispatcher.dispatch(ResourceJavaMethodDispatcher.java:75) 
> at com.sun.jersey.server.impl.uri.rules.HttpMethodRule.accept(HttpMethodRule.java:288) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> at com.sun.jersey.server.impl.uri.rules.RightHandPathRule.accept(RightHandPathRule.java:147) 
> at com.sun.jersey.server.impl.uri.rules.SubLocatorRule.accept(SubLocatorRule.java:134) 
> : 
> {code} 
> "



--
This message was sent by Atlassian JIRA
(v6.2#6252)