Thanks for reporting this Angela. It would be great if you can file an issue for this in JIRA? Does this happen with the SQL Query only, or does it do so also with Lucene?
Cheers, Chris ------------------------ Chris Mattmann [email protected] -----Original Message----- From: Mengying Wang <[email protected]> Reply-To: <[email protected]> Date: Tuesday, October 28, 2014 at 12:10 AM To: <[email protected]> Subject: Error occurs when using the query_tool script of the file manager for a new product type >Hi Everyone, > >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(XmlRpcFi >leManager.java:602) >at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source) >at >sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm >pl.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(XmlRpcClie >ntResponseProcessor.java:104) >at >org.apache.xmlrpc.XmlRpcClientResponseProcessor.decodeResponse(XmlRpcClien >tResponseProcessor.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(Xm >lRpcFileManagerClient.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(Xm >lRpcFileManagerClient.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. > >Thanks. >Mengying (Angela) Wang
