Is your Solr server running on port 8080 or another port? Which version of Solr are you running?
On Tue, Feb 9, 2016 at 8:19 AM, Shi, Wei <shi...@med.umich.edu> wrote: > Hi Every, > I tried to setup the OODT on SuSe Linux server. The installation went > well. I also installed Solr. > Now the ingest test failed because of Bad Request. > I am using jdk 8. > > Any ideas? I attached error message below. > > ./filemgr-client --url http://localhost:9000 --operation --ingestProduct > --productName test.txt --productStructure Flat --productTypeName > GenericFile --metadataFile file:///tmp/test.txt.met --refs > file:///tmp/test.txt > > log4j:WARN No appenders could be found for logger > (org.springframework.context.support.FileSystemXmlApplicationContext). > log4j:WARN Please initialize the log4j system properly. > Feb 09, 2016 11:05:55 AM > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient <init> > INFO: Loading File Manager Configuration Properties from: > [../etc/filemgr.properties] > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.catalog.solr.SolrCatalog addProduct > INFO: Adding product:test.txt > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index > INFO: Posting message:<add><doc><field > name="id">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12</field><field > name="CAS.ProductId">b69ee1e0-f9f4-4cf0-80e8-232f74e31d12</field><field > name="CAS.ProductName">test.txt</field><field > name="CAS.ProductTypeName">GenericFile</field><field > name="CAS.ProductReceivedTime">2016-02-09T11:05:56Z</field><field > name="CAS.ProductTypeId">urn:oodt:GenericFile</field><field > name="CAS.ProductStructure">Flat</field><field > name="CAS.ProductTransferStatus">TRANSFERING</field></doc></add> to URL: > http://localhost:8080/solr/update > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient index > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager catalogProduct > SEVERE: ingestProduct: CatalogException when adding Product: test.txt to > Catalog: Message: HTTP method failed: HTTP/1.1 400 Bad Request > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.system.XmlRpcFileManager ingestProductCore > SEVERE: HTTP method failed: HTTP/1.1 400 Bad Request > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.system.XmlRpcFileManagerClient ingestProduct > SEVERE: Failed to ingest product [ name:test.txt] :java.lang.Exception: > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error > ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24] > : HTTP method failed: HTTP/1.1 400 Bad Request -- rolling back ingest > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.catalog.solr.SolrClient delete > INFO: Posting message:<delete><query>id:null</query></delete> to URL: > http://localhost:8080/solr/update?commit=true > Feb 09, 2016 11:05:56 AM > org.apache.oodt.cas.filemgr.cli.action.IngestProductCliAction execute > SEVERE: java.lang.Exception: > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error > ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24] > : HTTP method failed: HTTP/1.1 400 Bad Request > ERROR: Failed to ingest product 'test.txt' : java.lang.Exception: > org.apache.oodt.cas.filemgr.structs.exceptions.CatalogException: Error > ingesting product [org.apache.oodt.cas.filemgr.structs.Product@469d4b24] > : HTTP method failed: HTTP/1.1 400 Bad Request > > > Thanks, > > Wei Shi, M.B.A., M.S. > Architect > UM Comprehensive Cancer Center > NCRC 100/134 > O: 734-763-8440 C: 248-835-8453 > shi...@med.umich.edu > > > > ********************************************************** > Electronic Mail is not secure, may not be read every day, and should not > be used for urgent or sensitive issues > -- *Lewis*