Log warning for Gradebook on statup of demo version of 2.6.3

Description

On startup in the catalina.out log the following message is seen:

WARN main org.sakaiproject.entity.impl.EntityManagerComponent - Entity Producer does not provide a root reference :org.sakaiproject.tool.gradebook.facades.sakai2impl.GradebookEntityProducer@7895d8

This is unrelated to entity broker and is in fact only related to the legacy entity system

Activity

Aaron Zeckoski December 28, 2010 at 1:30 PM

It looks like this was fixed along the way. Here is the current code and I am not seeing this error in trunk anymore.

package org.sakaiproject.tool.gradebook.facades.sakai2impl;
...
public class BaseEntityProducer implements EntityProducer {
//private static final Log log = LogFactory.getLog(BaseEntityProducer.class);

protected String label; // This should always be set.
protected String referenceRoot = "/gradebook"; // stupid default but OK since it is not used
protected String serviceName = null;
protected EntityManager entityManager;

public void setEntityManager(EntityManager entityManager) {
this.entityManager = entityManager;
}

/**

  • Register this class as an EntityProducer.
    */
    public void init() {
    entityManager.registerEntityProducer(this, referenceRoot);
    }
    ...

Cannot Reproduce

Details

Priority

Affects versions

Fix versions

Components

Assignee

Reporter

Environment

Demo version of 2.6.3 branch

Created August 6, 2010 at 12:03 AM
Updated March 27, 2012 at 10:12 AM
Resolved December 28, 2010 at 1:30 PM