Here exception:
SEVERE: org.apache.solr.common.SolrException: missing content stream
this exception usually happens when the post body (the XML) for an
operation is empty. I don't see any reason in your supplied code why
that should happen though, so I'd like to get some more information
from you:
what version of solr?
what version of the php solr client?
which call is the exception occurring (addDocument, commit, or
optimize)?
- donovan
Solr: 1.4.0
php solr client: SolrPhpClient.r22.2009-11-09
exception occur in addDocument
Here request in the logs:
Dec 24, 2009 1:25:05 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=json&<add
allowDups="false"+overwritePending%3D"true"+overwriteCommitted
%3D"true"><doc><field+name%3D"id"+boost%3D"2">XVT3</field><field+name
%3D"name"+boost%3D"2">Popular+item</field></doc></add>} status=400
QTime=4
Here error:
Fatal error: Uncaught exception 'Exception' with message '"400"
Status: Bad Request' in /usr/local/lib/Solr/Apache/Solr/Service.php:
385 Stack trace: #0 /usr/local/lib/Solr/Apache/Solr/Service.php(821):
Apache_Solr_Service->_sendRawPost('http://localhos...', NULL, 3600)
#1 /usr/local/lib/Solr/Apache/Solr/Service.php(903):
Apache_Solr_Service->delete(NULL, 3600) #2 /var/www/clean.php(8):
Apache_Solr_Service->deleteByQuery('*:*') #3 {main} thrown in /usr/
local/lib/Solr/Apache/Solr/Service.php on line 385
logs:
SEVERE: org.apache.solr.common.SolrException: missing content stream
....
Dec 26, 2009 8:26:46 AM org.apache.solr.core.SolrCore execute
INFO: [] webapp=/solr path=/update params={wt=json} status=400 QTime=3
Can you help me? Thank you...
- Donovan
--
You received this message because you are subscribed to the Google Groups "PHP Solr Client" group.
To post to this group, send email to php-sol...@googlegroups.com.
To unsubscribe from this group, send email to php-solr-clie...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/php-solr-client?hl=en.
[29-Dec-2009 01:45:42] PHP Fatal error: Uncaught exception
'Exception' with message '"400" Status: Bad Request' in /usr/local/lib/
Solr/Apache/Solr/Service.php:385
Stack trace:
#0 /usr/local/lib/Solr/Apache/Solr/Service.php(821):
Apache_Solr_Service->_sendRawPost('http://localhos...', '<delete
fromPen...', 3600)
#1 /usr/local/lib/Solr/Apache/Solr/Service.php(899):
Apache_Solr_Service->delete('<delete fromPen...', 3600)
#2 /var/www/clean.php(9): Apache_Solr_Service->deleteByQuery('*:*')
#3 {main}
thrown in /usr/local/lib/Solr/Apache/Solr/Service.php on line 385
(java -jar start.jar ):
[29-Dec-2009 01:54:58] PHP Fatal error: Uncaught exception
'Exception' with message '"400" Status: missing_content_stream' in /
usr/local/lib/Solr/Apache/Solr/Service.php:385
Stack trace:
#0 /usr/local/lib/Solr/Apache/Solr/Service.php(821):
Apache_Solr_Service->_sendRawPost('http://localhos...', '<delete
fromPen...', 3600)
#1 /usr/local/lib/Solr/Apache/Solr/Service.php(899):
Apache_Solr_Service->delete('<delete fromPen...', 3600)
#2 /var/www/clean.php(9): Apache_Solr_Service->deleteByQuery('*:*')
#3 {main}
thrown in /usr/local/lib/Solr/Apache/Solr/Service.php on line 385
And when I start solr, I noticed :
Dec 29, 2009 2:02:12 AM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: solr home defaulted to 'solr/' (could not find system property
or JNDI)
Dec 29, 2009 2:02:12 AM org.apache.solr.servlet.SolrServlet init
INFO: SolrServlet.init() done
Dec 29, 2009 2:02:12 AM org.apache.solr.core.SolrResourceLoader
locateSolrHome
INFO: JNDI not configured for solr (NoInitialContextEx)
Here is this client
http://github.com/andreisavu/solr-php-client-curl
I hope this will help you ...
i am getting following error on using $solr->commit();
exception 'Apache_Solr_HttpTransportException' with message ''400' Status: Bad Request' in C:\wamp\www\solr_test\SolrPhpClient\Apache\Solr\Service.php:364
Stack trace:
#0 C:\wamp\www\solr_test\SolrPhpClient\Apache\Solr\Service.php(830): Apache_Solr_Service->_sendRawPost('http://localhos...', 'commit()
#2 {main}--
You received this message because you are subscribed to the Google Groups "PHP Solr Client" group.
To view this discussion on the web visit https://groups.google.com/d/msg/php-solr-client/-/Nnk3_LHAKO4J.
To post to this group, send email to php-solr-client@googlegroups.com.
To unsubscribe from this group, send email to php-solr-client+unsubscribe@googlegroups.com.