opentripplanner / OpenTripPlanner

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

Build failure: cannot find symbols in TimeGridWs.java #1708

Closed kalon33 closed 4 years ago

kalon33 commented 9 years ago

Besides outputting various warnings, since the latests commits (today), otp building is failing in master:

nicolas@darwin:~/packaging/sources/OpenTripPlanner$ mvn clean package -DskipTests[INFO] Scanning for projects... [WARNING] [WARNING] Some problems were encountered while building the effective model for org.opentripplanner:otp:jar:1.0.0-SNAPSHOT [WARNING] 'build.plugins.plugin.version' for org.apache.maven.plugins:maven-source-plugin is missing. @ line 141, column 21 [WARNING] [WARNING] It is highly recommended to fix these problems because they threaten the stability of your build. [WARNING] [WARNING] For this reason, future Maven versions might no longer support building such malformed projects. [WARNING] [INFO]

[INFO] ------------------------------------------------------------------------ [INFO] Building OpenTripPlanner 1.0.0-SNAPSHOT [INFO] ------------------------------------------------------------------------ [INFO] [INFO] --- maven-clean-plugin:2.5:clean (default-clean) @ otp --- [INFO] Deleting /home/nicolas/packaging/sources/OpenTripPlanner/target [INFO] [INFO] --- git-commit-id-plugin:2.1.7:revision (default) @ otp --- [info] dotGitDirectory /home/nicolas/packaging/sources/OpenTripPlanner/.git [info] [info] [info] [info] git.build.user.name Unknown [info] git.build.user.email kalon33@***.org [info] git.branch master . . . (snipping to skip email addresses in github web interface) [INFO] --- maven-compiler-plugin:3.1:compile (default-compile) @ otp --- [INFO] Changes detected - recompiling the module! [INFO] Compiling 818 source files to /home/nicolas/packaging/sources/OpenTripPlanner/target/classes [INFO] ------------------------------------------------------------- [WARNING] COMPILATION WARNING : [INFO] ------------------------------------------------------------- [WARNING] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/com/conveyal/gtfs/model/Service.java:[30,34] com.sun.org.apache.xerces.internal.impl.dv.xs.DateTimeDV is internal proprietary API and may be removed in a future release [WARNING] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/model/json_serialization/SerializerUtils.java: Some input files use or override a deprecated API. [WARNING] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/model/json_serialization/SerializerUtils.java: Recompile with -Xlint:deprecation for details. [WARNING] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/routing/graph/Edge.java: Some input files use unchecked or unsafe operations. [WARNING] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/routing/graph/Edge.java: Recompile with -Xlint:unchecked for details. [INFO] 5 warnings [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------- [ERROR] COMPILATION ERROR : [INFO] ------------------------------------------------------------- [ERROR] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/api/resource/TimeGridWs.java:[112,49] cannot find symbol symbol: variable sampleGridRenderer location: variable otpServer of type org.opentripplanner.standalone.OTPServer [ERROR] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/api/resource/TimeGridWs.java:[140,26] cannot find symbol symbol: variable sampleGridRenderer location: variable otpServer of type org.opentripplanner.standalone.OTPServer [INFO] 2 errors [INFO] ------------------------------------------------------------- [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 58.658s [INFO] Finished at: Wed Jan 21 12:39:03 CET 2015 [INFO] Final Memory: 35M/356M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.1:compile (default-compile) on project otp: Compilation failure: Compilation failure: [ERROR] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/api/resource/TimeGridWs.java:[112,49] cannot find symbol [ERROR] symbol: variable sampleGridRenderer [ERROR] location: variable otpServer of type org.opentripplanner.standalone.OTPServer [ERROR] /home/nicolas/packaging/sources/OpenTripPlanner/src/main/java/org/opentripplanner/api/resource/TimeGridWs.java:[140,26] cannot find symbol [ERROR] symbol: variable sampleGridRenderer [ERROR] location: variable otpServer of type org.opentripplanner.standalone.OTPServer [ERROR] -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Could you fix this? Thanks for your help.

kalon33 commented 9 years ago

P.S. : my master branch in github.com/kalon33/OpenTripPlanner is identical to yours.

buma commented 9 years ago

It compiles fine. I tested last commit ( 53b64d8c2959788b1971caec8e)

laurentg commented 9 years ago

@kalon33 Is this issue still valid? I think we can close this now.