java.lang.AssertionError

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

Check your pattern declaration or check your assert declaration.


rafaelrafael

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 3615#229979073
    via GitHub by jsirois
    ,
  • GitHub comment 183#77323698
    via GitHub by smarthi
    ,
  • GitHub comment 51#125303049
    via GitHub by bermud
    ,
  • GitHub comment 3832#141981559
    via GitHub by hasancelik
    ,
    • java.lang.AssertionError: Problem running ./pants bundle testprojects/src/java/org/pantsbuild/testproject/runner:pants-runner-testproject - exited with 1: STDOUT: 11:32:52 00:00 [main] (To run a reporting server: ./pants server) 11:32:52 00:00 [setup] 11:32:52 00:00 [parse] Executing tasks in goals: bootstrap -> imports -> unpack-jars -> deferred-sources -> gen -> jvm-platform-validate -> resolve -> resources -> compile -> binary -> apk -> sign -> bundle 11:32:52 00:00 [bootstrap] 11:32:52 00:00 [substitute-aliased-targets] 11:32:52 00:00 [jar-dependency-management] 11:32:52 00:00 [bootstrap-jvm-tools] 11:32:52 00:00 [provide-tools-jar] 11:32:52 00:00 [imports] 11:32:52 00:00 [ivy-imports] 11:32:52 00:00 [unpack-jars] 11:32:52 00:00 [unpack-jars] 11:32:52 00:00 [unpack-libs] 11:32:52 00:00 [deferred-sources] 11:32:52 00:00 [deferred-sources] 11:32:52 00:00 [gen] 11:32:52 00:00 [thrift] 11:32:52 00:00 [protoc] 11:32:52 00:00 [antlr] 11:32:52 00:00 [ragel] 11:32:52 00:00 [jaxb] 11:32:52 00:00 [wire] 11:32:52 00:00 [aapt] 11:32:52 00:00 [go-thrift] 11:32:52 00:00 [scrooge] 11:32:52 00:00 [jvm-platform-validate] 11:32:52 00:00 [jvm-platform-validate] Invalidated 3 targets. 11:32:52 00:00 [resolve] 11:32:52 00:00 [ivy] 11:32:52 00:00 [go] 11:32:52 00:00 [scala-js-compile] 11:32:52 00:00 [scala-js-link] 11:32:52 00:00 [node] 11:32:52 00:00 [resources] 11:32:52 00:00 [prepare] 11:32:52 00:00 [services] 11:32:52 00:00 [compile] 11:32:52 00:00 [compile-jvm-prep-command] 11:32:52 00:00 [jvm_prep_command] 11:32:52 00:00 [compile-prep-command] 11:32:52 00:00 [compile] 11:32:52 00:00 [zinc] Invalidated 2 targets. 11:32:52 00:00 [isolation-zinc-pool-bootstrap] [1/2] Compiling 1 zinc source in 1 target (testprojects/src/java/org/pantsbuild/testproject/runner:dependent-class). 11:32:52 00:00 [compile] 11:32:52 00:00 [zinc] [info] Compiling 1 Java source to /Users/jenkins/slave/workspace/pantsbuild/pants/master/.pants.d/compile/zinc/252d64521cf9/testprojects.src.java.org.pantsbuild.testproject.runner.dependent-class/current/classes... [warn] bootstrap class path not set in conjunction with -source 1.6 [info] Compile success at Jul 1, 2016 11:32:52 AM [0.112s] 11:32:52 00:00 [unused-check] [2/2] Compiling 1 zinc source in 1 target (testprojects/src/java/org/pantsbuild/testproject/runner:main-class). 11:32:52 00:00 [compile] 11:32:52 00:00 [zinc] [info] Compiling 1 Java source to /Users/jenkins/slave/workspace/pantsbuild/pants/master/.pants.d/compile/zinc/252d64521cf9/testprojects.src.java.org.pantsbuild.testproject.runner.main-class/current/classes... [warn] bootstrap class path not set in conjunction with -source 1.6 [info] Compile success at Jul 1, 2016 11:32:53 AM [0.148s] 11:32:53 00:01 [unused-check] 11:32:53 00:01 [jvm-dep-check] 11:32:53 00:01 [checkstyle] Invalidated 2 targets. 11:32:53 00:01 [checkstyle] 11:32:53 00:01 [scalastyle] 11:32:53 00:01 [cpp] 11:32:53 00:01 [findbugs] 11:32:53 00:01 [go] 11:32:53 00:01 [gofmt] 11:32:53 00:01 [python-eval] 11:32:53 00:01 [pythonstyle] 11:32:53 00:01 [binary] 11:32:53 00:01 [binary-jvm-prep-command] 11:32:53 00:01 [jvm_prep_command] 11:32:53 00:01 [binary-prep-command] 11:32:53 00:01 [python-binary-create] 11:32:53 00:01 [jvm] creating dist/pants-runner-testproject.jar 11:32:53 00:01 [create-monolithic-jar] 11:32:53 00:01 [add-internal-classes] 11:32:53 00:01 [add-dependency-jars] 11:32:53 00:01 [cache] 11:32:53 00:01 [bootstrap-jar-tool] 11:32:54 00:02 [jar-tool] 11:32:54 00:02 [dup] 11:32:54 00:02 [dex] 11:32:54 00:02 [cpplib] 11:32:54 00:02 [cpp-library] 11:32:54 00:02 [cpp] 11:32:54 00:02 [cpp-binary] 11:32:54 00:02 [go] 11:32:54 00:02 [apk] 11:32:54 00:02 [apk] 11:32:54 00:02 [sign] 11:32:54 00:02 [sign] 11:32:54 00:02 [bundle] 11:32:54 00:02 [jvm] Invalidated 1 target. 11:32:54 00:02 [create-monolithic-jar] 11:32:54 00:02 [jar-tool] 11:32:55 00:03 [complete] FAILURE STDERR: .Exception caught: (<type 'exceptions.OSError'>) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/pants_exe.py", line 50, in <module> main() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/pants_exe.py", line 44, in main PantsRunner(exiter).run() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/pants_runner.py", line 57, in run options_bootstrapper=options_bootstrapper) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/pants_runner.py", line 46, in _run return LocalPantsRunner(exiter, args, env, options_bootstrapper=options_bootstrapper).run() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/local_pants_runner.py", line 53, in run self._maybe_profiled(self._run) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/local_pants_runner.py", line 50, in _maybe_profiled runner() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/local_pants_runner.py", line 95, in _run result = goal_runner.run() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/goal_runner.py", line 245, in run result = self._execute_engine() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/bin/goal_runner.py", line 234, in _execute_engine result = engine.execute(self._context, self._goals) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/engine/legacy_engine.py", line 26, in execute self.attempt(context, goals) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/engine/round_engine.py", line 224, in attempt goal_executor.attempt(explain) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/engine/round_engine.py", line 47, in attempt task.execute() File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/backend/jvm/tasks/bundle_create.py", line 171, in execute self._store_results(vt, bundle_dir, archive_path, app) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/backend/jvm/tasks/bundle_create.py", line 108, in _store_results absolute_symlink(bundle_dir, bundle_copy) File "/Users/jenkins/slave/workspace/pantsbuild/pants/master/src/python/pants/util/dirutil.py", line 261, in absolute_symlink os.unlink(target_path) Exception message: [Errno 1] Operation not permitted: '/Users/jenkins/slave/workspace/pantsbuild/pants/master/dist/testprojects.src.java.org.pantsbuild.testproject.runner.pants-runner-testproject-bundle' expected:<0> but was:<1> at org.junit.Assert.fail(Assert.java:88) at org.junit.Assert.failNotEquals(Assert.java:834) at org.junit.Assert.assertEquals(Assert.java:645) at org.pantsbuild.tools.runner.PantsRunnerTest.setUpClass(PantsRunnerTest.java:82) 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.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:50) at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12) at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:47) at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:24) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.CompositeRequestRunner.runChild(CompositeRequestRunner.java:66) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentCompositeRequestRunner$1$1.run(ConcurrentCompositeRequestRunner.java:37) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentRunnerScheduler.finished(ConcurrentRunnerScheduler.java:95) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConcurrentCompositeRequestRunner$1.evaluate(ConcurrentCompositeRequestRunner.java:46) at org.junit.runners.ParentRunner.run(ParentRunner.java:363) at org.junit.runner.JUnitCore.run(JUnitCore.java:137) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.runLegacy(ConsoleRunnerImpl.java:502) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.run(ConsoleRunnerImpl.java:420) at __shaded_by_pants__.org.pantsbuild.tools.junit.impl.ConsoleRunnerImpl.main(ConsoleRunnerImpl.java:795) at org.pantsbuild.tools.junit.ConsoleRunner.main(ConsoleRunner.java:12)

    Users with the same issue

    pulse00pulse00
    4 times, last one,
    jf-astjf-ast
    3 times, last one,
    DunmerDunmer
    74 times, last one,
    MoYaproMoYapro
    3 times, last one,
    richard77richard77
    1 times, last one,
    95 more bugmates