You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Mengying Wang (JIRA)" <ji...@apache.org> on 2014/10/28 23:29:33 UTC

[jira] [Updated] (OODT-766) java.lang.NullPointerException occurs when no result returned from the query_tool script

     [ https://issues.apache.org/jira/browse/OODT-766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Mengying Wang updated OODT-766:
-------------------------------
    Summary: java.lang.NullPointerException occurs when no result returned from the query_tool script  (was: java.lang.NullPointerException occurs when using the query_tool script for a new product type)

> java.lang.NullPointerException occurs when no result returned from the query_tool script
> ----------------------------------------------------------------------------------------
>
>                 Key: OODT-766
>                 URL: https://issues.apache.org/jira/browse/OODT-766
>             Project: OODT
>          Issue Type: Bug
>          Components: file manager
>    Affects Versions: 0.6
>         Environment: Mac OS.X 10.9.2
>            Reporter: Mengying Wang
>            Priority: Minor
>
> According to the tutorial
> http://oodt.apache.org/components/maven/curator/user/basic.html, I added a
> new JSON product type to my file manager. However, if I run the query_tool
> script before any json files ingested, it will raise some errors, as shown
> here:
> $ ./query_tool --url http://localhost:9000 --sql -query "SELECT * FROM JSON"
> Oct 27, 2014 11:52:07 PM org.apache.oodt.cas.filemgr.catalog.LuceneCatalog
> paginateQuery
> WARNING: Query: [q=] for Product Type: [urn:example:JSON] returned no
> results
> java.lang.NullPointerException
> at
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.complexQuery(XmlRpcFileManager.java:602)
> at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:606)
> at org.apache.xmlrpc.Invoker.execute(Invoker.java:130)
> at org.apache.xmlrpc.XmlRpcWorker.invokeHandler(XmlRpcWorker.java:84)
> at org.apache.xmlrpc.XmlRpcWorker.execute(XmlRpcWorker.java:146)
> at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:139)
> at org.apache.xmlrpc.XmlRpcServer.execute(XmlRpcServer.java:125)
> at org.apache.xmlrpc.WebServer$Connection.run(WebServer.java:761)
> at org.apache.xmlrpc.WebServer$Runner.run(WebServer.java:642)
> at java.lang.Thread.run(Thread.java:744)
> org.apache.xmlrpc.XmlRpcException: java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Failed to
> perform complex query : null
> at
> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeException(XmlRpcClientResponseProcessor.java:104)
> at
> org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClientResponseProcessor.java:71)
> at org.apache.xmlrpc.XmlRpcClientWorker.execute(XmlRpcClientWorker.java:73)
> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:194)
> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:185)
> at org.apache.xmlrpc.XmlRpcClient.execute(XmlRpcClient.java:178)
> at
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.complexQuery(XmlRpcFileManagerClient.java:990)
> at
> org.apache.oodt.cas.filemgr.tools.QueryTool.performSqlQuery(QueryTool.java:252)
> at org.apache.oodt.cas.filemgr.tools.QueryTool.main(QueryTool.java:242)
> Exception in thread "main"
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException:
> java.lang.Exception:
> org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Failed to
> perform complex query : null
> at
> org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient.complexQuery(XmlRpcFileManagerClient.java:996)
> at
> org.apache.oodt.cas.filemgr.tools.QueryTool.performSqlQuery(QueryTool.java:252)
> at org.apache.oodt.cas.filemgr.tools.QueryTool.main(QueryTool.java:242)
> By the way, if some files with the product type JSON are already ingested
> in my file manager, then the query_tool script works very well.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)