Re: [OpenTripPlanner] error in building Graph.obj

106 views
Skip to first unread message

Laurent GRÉGOIRE

unread,
May 17, 2013, 11:27:35 AM5/17/13
to opentripp...@googlegroups.com
Hi,

On 17/05/2013 11:35, xura...@gmail.com wrote:
> Caused by: org.springframework.beans.PropertyBatchUpdateException;
> nested PropertyAccessExceptions (1) are:
>
> PropertyAccessException 1:
> org.springframework.beans.MethodInvocationException: Property
> 'defaultWayPropertySetSource' threw exception; nested exception is
> java.lang.Error: Unresolved compilation problem:
>
> The method setDefaultSpeed(float) is undefined for the type WayPropertySet


Reading at the log, it's caused by a compile error. Please check if your
application compile correctly (did you tried a maven compile?)

HTH,

--Laurent

Matt Conway

unread,
May 17, 2013, 10:29:29 PM5/17/13
to Laurent GRÉGOIRE, opentripp...@googlegroups.com

It could be caused by outdated .class or .jar files somewhere (try mvn clean or clean projects in your IDE). This method was added about 9 months ago IIRC.

Matt

Andrew Byrd

unread,
May 18, 2013, 6:53:14 AM5/18/13
to opentripp...@googlegroups.com
On 05/17/2013 11:35 AM, xura...@gmail.com wrote:
> PropertyAccessException 1:
> org.springframework.beans.MethodInvocationException: Property
> 'defaultWayPropertySetSource' threw exception; nested exception is
> java.lang.Error: Unresolved compilation problem:
>
> The method setDefaultSpeed(float) is undefined for the type WayPropertySet
...
> I don't know why, thanks for your help

The whole failure is caused by this missing method:
setDefaultSpeed(float). That method is created by the Lombok @Data
annotation on the class. Make sure you have Lombok installed in your IDE
or clean/rebuild OTP with Maven.

See:
https://github.com/openplans/OpenTripPlanner/wiki/Install
Section "Install Project Lombok". We started using Project Lombok for
OTP in July 2012.

Hope this helps,
Andrew
Reply all
Reply to author
Forward
0 new messages