oodt-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shi, Wei" <shi...@med.umich.edu>
Subject RE: filemgr-client script cannot delete product by id or name
Date Thu, 04 Feb 2016 17:14:54 GMT
I am using Sprint STS 3.6.4(Eclipse Luna SR1 (4.4.2)), JDK 1.7.0_75.
I imported oodt as a maven project


-----Original Message-----
From: Lewis John Mcgibbney [mailto:lewis.mcgibbney@gmail.com] 
Sent: Thursday, February 04, 2016 11:40 AM
To: dev@oodt.apache.org
Subject: Re: filemgr-client script cannot delete product by id or name

Ok well this has to be environment specific. OODT tests have never been that broken!
What environment e.g. platform, JDK, etc are you trying to compile and test the code on?
Our integration builds over at builds.apache.org prove that the code is compiling and testing
in a clean build environment.

On Thursday, February 4, 2016, Shi, Wei <shiwei@med.umich.edu> wrote:

> Here is the summary of cas-filemgr compile result:
>
> Tests in error:
>   TestDataSourceCatalog.testQuery:472 » Catalog
>   TestLuceneCatalog.testGetReducedMetadata:213 » Catalog Unable to 
> index product...
>   TestLuceneCatalog.testGetMetadata:198 » Catalog Unable to index product:
> [test...
>   TestLuceneCatalog.testGetReducedMetadataNull:227 » Catalog Unable to 
> index pro...
>   TestMappedDataSourceCatalog>TestDataSourceCatalog.testQuery:472 » Catalog
>   TestOrderedDataSourceCatalog>TestDataSourceCatalog.testQuery:472 » 
> Catalog
>   TestTypeHandler.testGetCatalogAndOrigValuesAndGetCatalogQuery:217 » 
> RepositoryManager
>   TestXmlRpcStructFactory.testProductMethods:119 » RepositoryManager 
> java.lang.E...
>   TestXmlRpcStructFactory.testProductTypeMethods:82 » 
> RepositoryManager java.lan...
>
> Tests run: 213, Failures: 72, Errors: 9, Skipped: 0
>
> -----Original Message-----
> From: Tom Barber [mailto:tom.barber@meteorite.bi <javascript:;>]
> Sent: Thursday, February 04, 2016 10:49 AM
> To: dev@oodt.apache.org <javascript:;>
> Subject: RE: filemgr-client script cannot delete product by id or name
>
> The tests always used to fail for me because for some reason they only 
> compiled with the system clock not set to GMT! But I don't think that 
> is your problem ;) what's the error?
> On 4 Feb 2016 3:29 pm, "Shi, Wei" <shiwei@med.umich.edu 
> <javascript:;>>
> wrote:
>
> > Separate question:
> > In order to compile it successfully, I have to skip tests.
> > Is there a way that I can also run tests successfully?
> >
> > -----Original Message-----
> > From: Tom Barber [mailto:tom.barber@meteorite.bi <javascript:;>]
> > Sent: Thursday, February 04, 2016 10:24 AM
> > To: dev@oodt.apache.org <javascript:;>
> > Subject: RE: filemgr-client script cannot delete product by id or 
> > name
> >
> > Thinking more about it its probably a fudged xmlrpc mapping which is 
> > why it still compiles. Joy!
> >
> > I'll get it fixed.
> >
> > Tom
> > On 4 Feb 2016 3:11 pm, "Tom Barber" <tom.barber@meteorite.bi
> <javascript:;>> wrote:
> >
> > > Hey Wei
> > >
> > > I'm just getting back from trip, when I reach my next hotel in an 
> > > hour or so,  I'll investigate properly for you.
> > >
> > > Tom
> > > On 4 Feb 2016 2:46 pm, "Shi, Wei" <shiwei@med.umich.edu 
> > > <javascript:;>>
> wrote:
> > >
> > >> Thank you Tom and Lewis.
> > >>
> > >> I've downloaded 0.11 source and compiled project cas-filemgr. I 
> > >> unzipped cas-filemgr-0.11-dist.zip.
> > >> I was able to add products, but got same error while trying to 
> > >> delete a product.
> > >>
> > >> Command:
> > >> ./filemgr-client -op --deleteProductById --productId
> > >> e36b0c35-1e3b-4f70-8c7e-d57826d8a052 --url http://localhost:9000
> > >>
> > >> Error:
> > >> ERROR: Failed to delete product
> > >> 'org.apache.oodt.cas.filemgr.structs.Product@1475d8e' :
> > >> org.apache.xmlrpc.XmlRpcException: java.lang.NoSuchMethodException:
> > >> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.removeProduc
> > >> t(
> > >> ja
> > >> va.util.Hashtable)
> > >>
> > >>
> > >> Could that be caused by incorrect property settings?
> > >>
> > >> Wei
> > >>
> > >> -----Original Message-----
> > >> From: Tom Barber [mailto:magicaltrout@apache.org <javascript:;>]
> > >> Sent: Wednesday, February 03, 2016 7:42 PM
> > >> To: Lewis John Mcgibbney
> > >> Cc: dev@oodt.apache.org <javascript:;>
> > >> Subject: Re: filemgr-client script cannot delete product by id or 
> > >> name
> > >>
> > >> There was a passing test I submitted in 0.11 to "ensure" the 
> > >> deletion works, technically... its fine.
> > >>
> > >> Tom
> > >>
> > >> On Wed, Feb 3, 2016 at 8:39 PM, Lewis John Mcgibbney < 
> > >> lewis.mcgibbney@gmail.com <javascript:;>> wrote:
> > >>
> > >> > Thanks Tom.
> > >> > @Wei,
> > >> > I wonder if you can upgrade to OODT to 0.11 to try again?
> > >> >
> > >> > On Wed, Feb 3, 2016 at 12:35 PM, Tom Barber 
> > >> > <magicaltrout@apache.org <javascript:;>>
> > >> > wrote:
> > >> >
> > >> >> That is similar, but to me this looks like a jar file mismatch

> > >> >> because that error is a missing method, but the method can't 
> > >> >> be missing, other wise it surely wouldn't compile?
> > >> >>
> > >> >> Tom
> > >> >>
> > >> >> On Wed, Feb 3, 2016 at 8:17 PM, Lewis John Mcgibbney < 
> > >> >> lewis.mcgibbney@gmail.com <javascript:;>> wrote:
> > >> >>
> > >> >>> Tom,
> > >> >>> Is this issue not then one which was raised prior to the 0.11
> > release?
> > >> >>> Lewis
> > >> >>>
> > >> >>> On Wed, Feb 3, 2016 at 10:54 AM, Shi, Wei 
> > >> >>> <shiwei@med.umich.edu <javascript:;>>
> > >> wrote:
> > >> >>>
> > >> >>>> Hi,
> > >> >>>> I've setup an oodt test instance and followed "Solr File

> > >> >>>> Manger Quick Start Guide" to deployed Solr.
> > >> >>>>
> > >> >>>> Now I can ingest files and query data using Solr query
such as:
> > >> >>>> http://localhost:8080/solr/select/?q=*:*
> > >> >>>>
> > >> >>>> The only problem I have is deleting a product. Neither

> > >> >>>> delete by id, nor delete by name works.
> > >> >>>>
> > >> >>>> After execution, the file in archive folder seems to be

> > >> >>>> deleted, but the folder is still there.  All metadata
can 
> > >> >>>> still be seen via OPS UI interface. And the error message
shows:
> > >> >>>>
> > >> >>>> -------------------
> > >> >>>> ERROR: Failed to delete product 
> > >> >>>> 'org.apache.oodt.cas.filemgr.structs.Product@a4fc7' :
> > >> >>>> java.lang.NoSuchMethodException:
> > >> >>>> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.removeP
> > >> >>>> ro
> > >> >>>> du
> > >> >>>> ct(
> > >> >>>> java.util.Hashtable)
> > >> >>>> --------------------
> > >> >>>>
> > >> >>>> I double checked,  cas-filemgr-0.10.jar file, which should

> > >> >>>> have class 
> > >> >>>> org.apache.oodt.cas.filemgr.system.XmlRpcFileManager.removeP
> > >> >>>> ro du ct is in library folder. I also tried to recompile

> > >> >>>> version
> > >> >>>> 0.12
> > >> (cas-filemgr-0.12-SNAPSHOT.jar), same error occurred.
> > >> >>>>
> > >> >>>> Can the files and metadata also be deleted manually via

> > >> >>>> command line interface?
> > >> >>>>
> > >> >>>> Any suggestion is appreciated,
> > >> >>>>
> > >> >>>> Wei Shi, M.B.A., M.S.
> > >> >>>> Architect
> > >> >>>> UM Comprehensive Cancer Center NCRC 100/134
> > >> >>>> O: 734-763-8440 C: 248-835-8453 shiwei@med.umich.edu
> <javascript:;>
> > >> >>>>
> > >> >>>>
> > >> >>>>
> > >> >>>> **********************************************************
> > >> >>>> Electronic Mail is not secure, may not be read every day,

> > >> >>>> and should not be used for urgent or sensitive issues
> > >> >>>>
> > >> >>>
> > >> >>>
> > >> >>>
> > >> >>> --
> > >> >>> *Lewis*
> > >> >>>
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >> > --
> > >> > *Lewis*
> > >> >
> > >> **********************************************************
> > >> Electronic Mail is not secure, may not be read every day, and 
> > >> should not be used for urgent or sensitive issues
> > >>
> > >
> > **********************************************************
> > Electronic Mail is not secure, may not be read every day, and should 
> > not be used for urgent or sensitive issues
> >
> **********************************************************
> Electronic Mail is not secure, may not be read every day, and should 
> not be used for urgent or sensitive issues
>


--
*Lewis*
**********************************************************
Electronic Mail is not secure, may not be read every day, and should not be used for urgent
or sensitive issues 
Mime
View raw message