Ardesco / driver-binary-downloader-maven-plugin

A Maven plugin that will download the WebDriver stand alone server executables for use in your mavenised Selenium project.
Apache License 2.0
92 stars 52 forks source link

version 1.0.13 causes NPE #57

Closed SiKing closed 7 years ago

SiKing commented 7 years ago

I am using just the vanilla “default usage” - nothing fancy. Version 1.0.13 running on either Mac or Linux produces NPE:

[ERROR] Failed to execute goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.13:selenium (default) on project ldc-integrationtests: Execution default of goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.13:selenium failed.: NullPointerException -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.13:selenium (default) on project ldc-integrationtests: Execution default of goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.13:selenium failed.
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:213)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:154)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:146)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:117)
    at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:81)
    at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:309)
    at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:194)
    at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:107)
    at org.apache.maven.cli.MavenCli.execute(MavenCli.java:993)
    at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:345)
    at org.apache.maven.cli.MavenCli.main(MavenCli.java:191)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:498)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:289)
    at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:229)
    at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:415)
    at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:356)
Caused by: org.apache.maven.plugin.PluginExecutionException: Execution default of goal com.lazerycode.selenium:driver-binary-downloader-maven-plugin:1.0.13:selenium failed.
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:145)
    at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:208)
    ... 20 more
Caused by: java.lang.NullPointerException
    at sun.misc.MetaIndex.mayContain(MetaIndex.java:242)
    at sun.misc.URLClassPath$JarLoader.getResource(URLClassPath.java:1032)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:239)
    at sun.misc.URLClassPath.getResource(URLClassPath.java:292)
    at java.lang.ClassLoader.getBootstrapResource(ClassLoader.java:1264)
    at java.lang.ClassLoader.getResource(ClassLoader.java:1093)
    at org.codehaus.plexus.classworlds.realm.ClassRealm.getResource(ClassRealm.java:287)
    at org.codehaus.plexus.resource.loader.ThreadContextClasspathResourceLoader.getResource(ThreadContextClasspathResourceLoader.java:64)
    at org.codehaus.plexus.resource.DefaultResourceManager.getResource(DefaultResourceManager.java:157)
    at org.codehaus.plexus.resource.DefaultResourceManager.getResourceAsFile(DefaultResourceManager.java:81)
    at com.lazerycode.selenium.SeleniumServerMojo.getRepositoryMapFile(SeleniumServerMojo.java:289)
    at com.lazerycode.selenium.SeleniumServerMojo.setRepositoryMapFile(SeleniumServerMojo.java:304)
    at com.lazerycode.selenium.SeleniumServerMojo.execute(SeleniumServerMojo.java:205)
    at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)
    ... 21 more
Ardesco commented 7 years ago

@rultor release, tag is 1.0.14

rultor commented 7 years ago

@rultor release, tag is 1.0.14

@ardesco OK, I will release it now. Please check the progress here

rultor commented 7 years ago

@rultor release, tag is 1.0.14

@ardesco @siking Oops, I failed. You can see the full log here (spent 2hr)

Digest: sha256:0efba4c78258da590a8e93a3289579700f99d1e763039d947d0a4de2c57fa572
Status: Image is up to date for yegor256/rultor:latest
+ docker ps --filter=status=exited
+ grep --quiet '\sardesco_selenium-standalone-server-plugin_57\s*$'
+ ls -al .
total 344
drwx--x--x  3 rultor rultor   4096 May 26 00:23 .
drwxrwxrwt 10 root   root     4096 May 26 00:23 ..
-rw-rw-r--  1 rultor rultor    444 May 26 00:23 end.sh
-rwxrwxr-x  1 rultor rultor    338 May 26 00:23 entry.sh
-rw-rw-r--  1 rultor rultor      6 May 26 00:23 pid
-rw-rw-r--  1 rultor rultor 287323 May 26 00:23 pubring.gpg
drwxrwxr-x  4 rultor rultor   4096 May 26 00:23 repo
-rwxrwxr-x  1 rultor rultor   6434 May 26 00:23 run.sh
-rw-rw-r--  1 rultor rultor    577 May 26 00:23 script.sh
-rw-rw-r--  1 rultor rultor  10050 May 26 00:23 secring.gpg
-rw-rw-r--  1 rultor rultor    569 May 26 00:23 settings.xml
-rw-rw-r--  1 rultor rultor   7947 May 26 00:23 stdout
++ pwd
++ pwd
+ docker run -t --rm -v /tmp/rultor-6CYs:/main --env=head=git@github.com:Ardesco/selenium-standalone-server-plugin.git --env=head_branch=master --env=tag=1.0.14 '--env=scripts=( '\''export '\''\'\'''\''head=git@github.com:Ardesco/selenium-standalone-server-plugin.git'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''head_branch=master'\''\'\'''\'''\'' '\'';'\'' '\''export '\''\'\'''\''tag=1.0.14'\''\'\'''\'''\'' '\'';'\'' '\''sudo apt-get install gsettings-desktop-schemas'\'' '\'';'\'' '\''mkdir /home/r/gpg'\'' '\'';'\'' '\''mv /home/r/pubring.gpg /home/r/gpg/pubring.gpg'\'' '\'';'\'' '\''mv /home/r/secring.gpg /home/r/gpg/secring.gpg'\'' '\'';'\'' '\''sudo chmod -R 700 /home/r/gpg'\'' '\'';'\'' '\''mvn versions:set "-DnewVersion=${tag}"'\'' '\'';'\'' '\''git commit -am "${tag}"'\'' '\'';'\'' '\''mvn clean deploy -Prelease --settings /home/r/settings.xml'\'' '\'';'\'' )' --hostname=docker --privileged --memory=6g --memory-swap=16g --oom-kill-disable --cidfile=/tmp/rultor-6CYs/cid -w=/main --name=ardesco_selenium-standalone-server-plugin_57 yegor256/rultor /main/entry.sh
WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap.
+ set -e
+ set -o pipefail
+ shopt -s dotglob
+ useradd -m -G sudo r
+ echo '%sudo ALL=(ALL) NOPASSWD:ALL'
+ cp -R /root/.bashrc /root/.composer /root/.gem /root/.gnupg /root/.m2 /root/.npm /root/.profile /root/texmf /root/tmp /home/r
+ cp -R ./cid ./end.sh ./entry.sh ./pid ./pubring.gpg ./repo ./run.sh ./script.sh ./secring.gpg ./settings.xml ./stdout /home/r
+ rm -rf repo
+ chown -R r:r /home/r
+ chmod a+x /home/r/script.sh
+ su --login r --command /home/r/script.sh
+ set -e
+ set -o pipefail
+ shopt -s expand_aliases
+ alias 'sudo=sudo -i'
+ export HOME=/home/r
+ HOME=/home/r
+ cd /home/r/repo
+ export head=git@github.com:Ardesco/selenium-standalone-server-plugin.git
+ head=git@github.com:Ardesco/selenium-standalone-server-plugin.git
+ export head_branch=master
+ head_branch=master
+ export tag=1.0.14
+ tag=1.0.14
+ sudo -i apt-get install gsettings-desktop-schemas

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 0%

Reading package lists... 1%

Reading package lists... 1%

Reading package lists... 1%

Reading package lists... Done

Building dependency tree... 0%

Building dependency tree... 0%

Building dependency tree... 50%

Building dependency tree... 50%

Building dependency tree       

Reading state information... 0%

Reading state information... 0%

Reading state information... Done

The following extra packages will be installed:
  dconf-gsettings-backend dconf-service libdconf1
The following NEW packages will be installed:
  dconf-gsettings-backend dconf-service gsettings-desktop-schemas libdconf1
0 upgraded, 4 newly installed, 0 to remove and 5 not upgraded.
Need to get 102 kB of archives.
After this operation, 616 kB of additional disk space will be used.
Do you want to continue? [Y/n] eabc6c9993a3e94e339c20423d18d85b5b26b454888d560d6c8010e2c98a7b4b
'pid' file is absent, something was broken