Bug#867648: jruby-maven-plugins: FTBFS: RailsService.java:[26, 20] variable session might not have been initialized

Lucas Nussbaum lucas at debian.org
Sat Jul 8 06:26:01 UTC 2017


Source: jruby-maven-plugins
Version: 1.1.5+ds1-1
Severity: serious
Tags: stretch sid
User: debian-qa at lists.debian.org
Usertags: qa-ftbfs-20170707 qa-ftbfs
Justification: FTBFS on amd64

Hi,

During a rebuild of all packages in sid, your package failed to build on
amd64.

Relevant part (hopefully):
> make[1]: Entering directory '/<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1'
> dh_auto_build -- install
> 	/usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5\+ds1 -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5\+ds1/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5\+ds1/debian -Dmaven.repo.local=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5\+ds1/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US
> [INFO] Scanning for projects...
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Build Order:
> [INFO] 
> [INFO] JRuby Maven Mojos
> [INFO] Mojo Parent
> [INFO] Ruby Tools
> [INFO] JRuby Maven Mojo
> [INFO] Gem Maven Mojo
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building JRuby Maven Mojos 1.1.5
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ jruby-maven-plugins ---
> [INFO] Installing /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/pom.xml to /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/debian/maven-repo/de/saumya/mojo/jruby-maven-plugins/1.1.5/jruby-maven-plugins-1.1.5.pom
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Mojo Parent 1.1.5
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-plugin-plugin:3.5:helpmojo (default) @ parent-mojo ---
> [WARNING] Unsupported packaging type pom, execution skipped
> [INFO] 
> [INFO] >>> maven-source-plugin:2.4:jar (default) > generate-sources @ parent-mojo >>>
> [INFO] 
> [INFO] <<< maven-source-plugin:2.4:jar (default) < generate-sources @ parent-mojo <<<
> [INFO] 
> [INFO] 
> [INFO] --- maven-source-plugin:2.4:jar (default) @ parent-mojo ---
> [INFO] Skipping source per configuration.
> [INFO] 
> [INFO] --- maven-install-plugin:2.5.2:install (default-install) @ parent-mojo ---
> [INFO] Installing /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/parent-mojo/pom.xml to /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/debian/maven-repo/de/saumya/mojo/parent-mojo/1.1.5/parent-mojo-1.1.5.pom
> [INFO] 
> [INFO] ------------------------------------------------------------------------
> [INFO] Building Ruby Tools 1.1.5
> [INFO] ------------------------------------------------------------------------
> [INFO] 
> [INFO] --- maven-dependency-plugin:2.8:copy (copy jruby) @ ruby-tools ---
> [INFO] Configured Artifact: org.jruby:jruby-complete:debian:jar
> [INFO] Copying jruby-complete-debian.jar to /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/target/jruby-complete-debian.jar
> [INFO] 
> [INFO] --- maven-dependency-plugin:2.8:copy-dependencies (copy gems) @ ruby-tools ---
> [INFO] 
> [INFO] --- maven-resources-plugin:2.6:resources (default-resources) @ ruby-tools ---
> [INFO] Using 'UTF-8' encoding to copy filtered resources.
> [INFO] Copying 18 resources
> [INFO] 
> [INFO] --- exec-maven-plugin:1.1.1:exec (install gems) @ ruby-tools ---
> [INFO] 
> [INFO] --- maven-compiler-plugin:3.6.1:compile (default-compile) @ ruby-tools ---
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-api:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [WARNING] The POM for org.codehaus.plexus:plexus-compiler-javac:jar:2.x is invalid, transitive dependencies (if any) will not be available, enable debug logging for more details
> [INFO] Changes detected - recompiling the module!
> [INFO] Compiling 45 source files to /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/target/classes
> Use of target 1.5 is no longer supported, switching to 1.7
> Use of source 1.5 is no longer supported, switching to 1.7
> [INFO] /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/src/main/java/de/saumya/mojo/ruby/gems/DefaultGemManager.java: /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/src/main/java/de/saumya/mojo/ruby/gems/DefaultGemManager.java uses or overrides a deprecated API.
> [INFO] /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/src/main/java/de/saumya/mojo/ruby/gems/DefaultGemManager.java: Recompile with -Xlint:deprecation for details.
> [INFO] -------------------------------------------------------------
> [ERROR] COMPILATION ERROR : 
> [INFO] -------------------------------------------------------------
> [ERROR] /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/src/main/java/de/saumya/mojo/ruby/rails/RailsService.java:[26,20] variable session might not have been initialized
> [INFO] 1 error
> [INFO] -------------------------------------------------------------
> [INFO] ------------------------------------------------------------------------
> [INFO] Reactor Summary:
> [INFO] 
> [INFO] JRuby Maven Mojos .................................. SUCCESS [  0.130 s]
> [INFO] Mojo Parent ........................................ SUCCESS [  0.449 s]
> [INFO] Ruby Tools ......................................... FAILURE [  3.439 s]
> [INFO] JRuby Maven Mojo ................................... SKIPPED
> [INFO] Gem Maven Mojo ..................................... SKIPPED
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
> [INFO] ------------------------------------------------------------------------
> [INFO] Total time: 4.122 s
> [INFO] Finished at: 2017-07-07T20:26:34Z
> [INFO] Final Memory: 29M/795M
> [INFO] ------------------------------------------------------------------------
> [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.6.1:compile (default-compile) on project ruby-tools: Compilation failure
> [ERROR] /<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/ruby-tools/src/main/java/de/saumya/mojo/ruby/rails/RailsService.java:[26,20] variable session might not have been initialized
> [ERROR] 
> [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
> [ERROR] 
> [ERROR] After correcting the problems, you can resume the build with the command
> [ERROR]   mvn <goals> -rf :ruby-tools
> dh_auto_build: /usr/lib/jvm/default-java/bin/java -noverify -cp /usr/share/maven/boot/plexus-classworlds-2.x.jar:/usr/lib/jvm/default-java/lib/tools.jar -Dmaven.home=/usr/share/maven -Dmaven.multiModuleProjectDirectory=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1 -Dclassworlds.conf=/etc/maven/m2-debian.conf -Dproperties.file.manual=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/debian/maven.properties org.codehaus.plexus.classworlds.launcher.Launcher -s/etc/maven/settings-debian.xml -Ddebian.dir=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/debian -Dmaven.repo.local=/<<BUILDDIR>>/jruby-maven-plugins-1.1.5+ds1/debian/maven-repo install -DskipTests -Dnotimestamp=true -Dlocale=en_US returned exit code 1
> debian/rules:9: recipe for target 'override_dh_auto_build' failed
> make[1]: *** [override_dh_auto_build] Error 1

The full build log is available from:
   http://aws-logs.debian.net/2017/07/07/jruby-maven-plugins_1.1.5+ds1-1_unstable.log

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

About the archive rebuild: The rebuild was done on EC2 VM instances from
Amazon Web Services, using a clean, minimal and up-to-date chroot. Every
failed build was retried once to eliminate random failures.



More information about the pkg-java-maintainers mailing list