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

[email protected] commented on OODT-413:
----------------------------------------------------


-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/4374/
-----------------------------------------------------------

Review request for oodt, Chris Mattmann, brian Foster, Paul Ramirez, and Thomas 
Bennett.


Summary
-------

filemgr query throws NPE when some products have undefined metadata values


This addresses bug OODT-413.
    https://issues.apache.org/jira/browse/OODT-413


Diffs
-----

  
trunk/filemgr/src/main/java/org/apache/oodt/cas/filemgr/catalog/LuceneCatalog.java
 1300633 

Diff: https://reviews.apache.org/r/4374/diff


Testing
-------

tested at CHLA with command:

./filemgr-client -u $FILEMGR_URL -op -sql -of '$VpsEpisodeStartTime' -q "SELECT 
VpsEpisodeStartTime FROM CernerEvents"


Thanks,

Ricky


                
> 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

        

Reply via email to