opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.21k stars 1.03k forks source link

ClassNotFoundException for org.opentripplanner.analyst.batch.IndividualFactory #898

Closed kejstephen closed 4 years ago

kejstephen commented 12 years ago

Hello,

Attempting to process a set of origins and destinations through batch analyst. However, when running my project, I receive the exception:

Caused by: java.lang.ClassNotFoundException: org.opentripplanner.analyst.batch.IndividualFactory

I see that there is no IndividualFactory resource. Is IndividualFactory supposed to be drawn from SampleFactory somehow? Do I need to edit SampleFactory?

abyrd commented 11 years ago

On 11/08/2012 03:08 AM, kejstephen wrote:

I see that there is no IndividualFactory resource. Is IndividualFactory supposed to be drawn from SampleFactory somehow? Do I need to edit SampleFactory?

It once existed and was injected into the SampleFactory. This is no longer the case. I see that there is still a tag that attempts to instantiate an IndividualFactory in the demo config XML. I will fix that.

Just remove this line:

from your config.

kejstephen commented 11 years ago

Dear Andrew:

Thanks!

Best, Stephen

On Thu, Nov 8, 2012 at 3:45 AM, Andrew Byrd notifications@github.comwrote:

On 11/08/2012 03:08 AM, kejstephen wrote:

I see that there is no IndividualFactory resource. Is IndividualFactory supposed to be drawn from SampleFactory somehow? Do I need to edit SampleFactory?

It once existed and was injected into the SampleFactory. This is no longer the case. I see that there is still a tag that attempts to instantiate an IndividualFactory in the demo config XML. I will fix that.

Just remove this line:

from your config.

— Reply to this email directly or view it on GitHubhttps://github.com/openplans/OpenTripPlanner/issues/898#issuecomment-10181696.

abyrd commented 11 years ago

By the way, if you're applying the analyst batch processor to a big project, try out current master -- it is parallelized and about 4x faster on a 4 core machine in my experience.

On 11/08/2012 10:34 PM, kejstephen wrote:

Dear Andrew:

Thanks!

Best, Stephen

On Thu, Nov 8, 2012 at 3:45 AM, Andrew Byrd notifications@github.comwrote:

On 11/08/2012 03:08 AM, kejstephen wrote:

I see that there is no IndividualFactory resource. Is IndividualFactory supposed to be drawn from SampleFactory somehow? Do I need to edit SampleFactory?

It once existed and was injected into the SampleFactory. This is no longer the case. I see that there is still a tag that attempts to instantiate an IndividualFactory in the demo config XML. I will fix that.

Just remove this line:

from your config.

— Reply to this email directly or view it on GitHubhttps://github.com/openplans/OpenTripPlanner/issues/898#issuecomment-10181696.

— Reply to this email directly or view it on GitHub https://github.com/openplans/OpenTripPlanner/issues/898#issuecomment-10205876.