Closed (fixed)
Project:
Recommender API
Version:
7.x-4.0-alpha4
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
11 Nov 2011 at 18:42 UTC
Updated:
1 Dec 2011 at 13:40 UTC
Having trouble getting Recommender API to work at all. I'm using fivestar_rec to test that basic functionality is working. After setting config, running drupal crop, and executing run.sh, I'm presented with the following error:
Nov 11, 2011 1:32:52 PM org.drupal.project.async_command.CommandLineLauncher launch
INFO: DrupalApp VERSION: 7_1_1
Nov 11, 2011 1:32:52 PM org.drupal.project.async_command.CommandLineLauncher handleSettings
INFO: Set configuration file as: /home/msepjobs/public_html/sites/all/modules/recommender/../async_command/config.properties
Nov 11, 2011 1:32:52 PM org.drupal.project.async_command.DrupalConnection testConnection
INFO: Database connection successful: MySQL5.0.92-community
Nov 11, 2011 1:32:52 PM org.drupal.project.async_command.GenericDrupalApp runSerial
INFO: Total number of commands to run: 1
Nov 11, 2011 1:32:52 PM org.drupal.project.async_command.GenericDrupalApp runSerial
INFO: Executing command: RunRecommender
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender processTable
INFO: Using {recommender_preference_staging} table. Loading data.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl run
INFO: Initializing data model, similarity and recommender.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl initDataModel
INFO: Initializing data model.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl initDataModel
INFO: Switching to MEMORY mode. Load all data from database into memory first.
Nov 11, 2011 1:32:52 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Loading new JDBC delegate data...
Nov 11, 2011 1:32:52 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: Processed 2 users
Nov 11, 2011 1:32:52 PM org.slf4j.impl.JCLLoggerAdapter info
INFO: New data loaded.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl run
INFO: Using similarity class: org.apache.mahout.cf.taste.impl.similarity.PearsonCorrelationSimilarity
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl run
INFO: Using recommender class: org.apache.mahout.cf.taste.impl.recommender.GenericItemBasedRecommender
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl run
INFO: Computing and saving similarity data.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl genericComputeSave
INFO: Start computing recommendation and saving results.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl genericComputeSave
INFO: Computing done. Waiting for data to be saved to database. Records#: 0
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl genericComputeSave
INFO: Done saving data.
Nov 11, 2011 1:32:52 PM org.drupal.project.recommender.RunRecommender$AlgorithmImpl run
INFO: Computing and saving prediction data.
Exception in thread "main" java.lang.NullPointerException
at org.drupal.project.recommender.RunRecommender$AlgorithmImpl.genericComputeSave(RunRecommender.java:457)
at org.drupal.project.recommender.RunRecommender$AlgorithmImpl.computeSavePrediction(RunRecommender.java:528)
at org.drupal.project.recommender.RunRecommender$AlgorithmImpl.run(RunRecommender.java:552)
at org.drupal.project.recommender.RunRecommender.run(RunRecommender.java:277)
at org.drupal.project.async_command.GenericDrupalApp.runSerial(GenericDrupalApp.java:184)
at org.drupal.project.async_command.GenericDrupalApp.run(GenericDrupalApp.java:157)
at org.drupal.project.async_command.CommandLineLauncher.handleExecutables(CommandLineLauncher.java:95)
at org.drupal.project.async_command.CommandLineLauncher.launch(CommandLineLauncher.java:63)
at org.drupal.project.recommender.RecommenderApp.main(RecommenderApp.java:26)
Any idea what could be causing this?
Comments
Comment #1
danithaca commentedIn run.sh, use the following "java" command:
logging.properties is like this:
Use this to turn on all the debugging info, and then I'll take a look.
Comment #2
grasmash commentedThanks for helping out. I d/led the file and ran the command (with the -c flag). The output is:
Comment #3
danithaca commentedthanks for the report. confirmed as bug, and fixed in 7.x-4.0-alpha4.