You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@oodt.apache.org by "Ricky Nguyen (Resolved) (JIRA)" <ji...@apache.org> on 2012/03/19 06:11:36 UTC

[jira] [Resolved] (OODT-413) filemgr query throws NPE when some products have undefined metadata values

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

Ricky Nguyen resolved OODT-413.
-------------------------------

    Resolution: Fixed
    
> filemgr query throws NPE when some products have undefined metadata values
> --------------------------------------------------------------------------
>
>                 Key: OODT-413
>                 URL: https://issues.apache.org/jira/browse/OODT-413
>             Project: OODT
>          Issue Type: Bug
>          Components: catalog, file manager
>    Affects Versions: 0.3
>            Reporter: Ricky Nguyen
>             Fix For: 0.4
>
>
> We have a product type called CernerEvents. Some products of this type have values defined for met key "VpsEpisodeStartTime" and some products do not.
> When we run the query:
> {noformat}
> ./filemgr-client -u $FILEMGR_URL -op -sql -of '$VpsEpisodeStartTime' -q "SELECT VpsEpisodeStartTime FROM CernerEvents"
> {noformat}
> Then the following exception is seen (on XML-RPC server side):
> {noformat}
> java.lang.NullPointerException
> 	at java.util.Vector.addAll(Unknown Source)
> 	at org.apache.oodt.cas.metadata.Metadata$Group.addValues(Metadata.java:499)
> 	at org.apache.oodt.cas.metadata.Metadata.addMetadata(Metadata.java:124)
> 	at org.apache.oodt.cas.filemgr.catalog.LuceneCatalog.getReducedMetadata(LuceneCatalog.java:623)
> 	at org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.getReducedMetadata(XmlRpcFileManager.java:1178)
> 	at org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.complexQuery(XmlRpcFileManager.java:606)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> 	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
> 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
> 	at java.lang.reflect.Method.invoke(Unknown Source)
> 	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(Unknown Source)
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira