Also, if it sheds any light, before this error started appearing, I was running into some OOM errors with PHP. Before that, I had reloaded Solr a couple of times, since I updated schema.xml. All I did in schema.xml was remove some fields, though.

On 10/3/2013 9:03 PM, Brian Robinson wrote:
Hi Shawn,
Thanks for responding. Just saw this email. I did go to the logging tab in the admin page, but it never finished loading. I'm using collection1, and I'm using the traditional config. Here is my complete code, with $options omitted for security:


$options = array
(
    'hostname' => 'localhost',
    'login'    => 'XXXXX',
    'password' => 'XXXXX',
    'port'     => '8080',
);

$client = new SolrClient($options);

   $lastUpdate = '2013-09-31';
   $prod_result = $db_connect->query("
SELECT DISTINCT p.id, p.prodName, p.brand, bi.brandName, p.description, p.lastUpdate
       FROM product_CJ p
       INNER JOIN brands_inactive bi ON bi.feedID = p.brand
       WHERE p.showProd='Y' AND p.lastUpdate > ? LIMIT 0, 1",
       array($lastUpdate)
   );

   $docArray = array();
   while ($prod_row = $prod_result->fetchRow(DB_FETCHMODE_ASSOC)) {
       $docArray[$prod_row['id']] = $prod_row;
   }

   $solrDocs = array();
   foreach ($docArray AS $prod_row) {
         $tmpProdID = $prod_row['id'];
         $doc = new SolrInputDocument();
         $doc->addField('id', $tmpProdID);
         $doc->addField('prodName', $prod_row['prodName']);
         $doc->addField('brand', $prod_row['brand']);
         $doc->addField('brandName', $prod_row['brandName']);
         $doc->addField('description', $prod_row['description']);
         $tmpUpdate = $prod_row['lastUpdate']."T00:00:00Z";
         $doc->addField('lastUpdate', $tmpUpdate);
         $solrDocs[] = $doc;
   }

   foreach (array_chunk($solrDocs, 500) AS $solrChunk) {
        $client->addDocuments($solrChunk);
   }



On 10/3/2013 8:46 PM, Shawn Heisey wrote:
On 10/3/2013 6:02 PM, Brian Robinson wrote:
I'm using PHP Pecl to create my index, and am getting an error that I
can't figure out. I'm using Solr version 4.3.1.

I know I'm supposed to provide the log errors, but strangely, I checked
solr.log in the apache-tomcat/logs/ directory, and the
apache-tomcat/logs/logs/ directory, and neither had an entry for the
errors I saw today. I also checked the catalina.2013-10-03.log, and that
also showed no errors. Is there another log I should be checking?

The way I'm triggering this is by having my browser hit a PHP page with
the code. When I do that, a "Filter execution threw an exception" error
is shown on the page. Please let me know if I need to give further
information. Any help I can get would be appreciated.
Checking your source code in the previous thread, I do not see how you
created your solr client object.  A bunch of questions follow:

Can you share your code that creates the client and the base URL that it
uses?  Feel free to hide the hostname, but leave the rest of it alone so
we can tell what's going on.  Are you using "collection1" or have you
created your own?  Is it SolrCloud or a traditional config?

Do you see anything in the Logging tab in the Solr UI?  It's not as
useful as the actual log, but if you aren't seeing anything elsewhere,
you might need to look there.

Thanks,
Shawn





Reply via email to