Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/cactoos/Scalar #1339

Closed
friji350 opened this issue Oct 19, 2024 · 8 comments
Assignees
Labels

Comments

@friji350
Copy link

$ java -Dfile.encoding=UTF-8 -cp takes.jar:. App

Error:

Exception in thread "main" java.lang.BootstrapMethodError: java.lang.NoClassDefFoundError: org/cactoos/Scalar
        at org.takes.facets.fork.FkRegex.<init>(FkRegex.java:175)
        at org.takes.facets.fork.FkRegex.<init>(FkRegex.java:151)
        at org.takes.facets.fork.FkRegex.<init>(FkRegex.java:107)
        at App.main(App.java:7)
Caused by: java.lang.NoClassDefFoundError: org/cactoos/Scalar
        ... 4 more
Caused by: java.lang.ClassNotFoundException: org.cactoos.Scalar
        at java.net.URLClassLoader.findClass(URLClassLoader.java:387)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:351)

@friji350
Copy link
Author

@yegor256 Check it please

yegor256 added a commit that referenced this issue Oct 29, 2024
yegor256 added a commit that referenced this issue Oct 29, 2024
@yegor256
Copy link
Owner

@rultor release, tag is 1.24.6

@rultor
Copy link
Collaborator

rultor commented Oct 29, 2024

@rultor release, tag is 1.24.6

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

@rultor
Copy link
Collaborator

rultor commented Oct 29, 2024

@rultor release, tag is 1.24.6

@friji350 @yegor256 Oops, I failed. You can see the full log here (spent 6min).

    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:73\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (\u001b[1mSingleThreadedBuilder.java:53\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute (\u001b[1mLifecycleStarter.java:118\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:261\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:173\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.execute (\u001b[1mDefaultMaven.java:101\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.execute (\u001b[1mMavenCli.java:906\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.doMain (\u001b[1mMavenCli.java:283\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.main (\u001b[1mMavenCli.java:206\u001b[m)
    \u001b[1mat\u001b[m jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m jdk.internal.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:77\u001b[m)
    \u001b[1mat\u001b[m jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:569\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:283\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:226\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:407\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:348\u001b[m)
\u001b[1mCaused by\u001b[m: org.apache.maven.plugin.MojoFailureException: \u001b[1;31m

Please refer to /home/r/repo/target/surefire-reports for the individual test results.
Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.\u001b[m
    \u001b[1mat\u001b[m org.apache.maven.plugin.surefire.SurefireHelper.throwException (\u001b[1mSurefireHelper.java:247\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.surefire.SurefireHelper.reportExecution (\u001b[1mSurefireHelper.java:159\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary (\u001b[1mSurefirePlugin.java:542\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPreconditionsChecked (\u001b[1mAbstractSurefireMojo.java:1117\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute (\u001b[1mAbstractSurefireMojo.java:939\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (\u001b[1mDefaultBuildPluginManager.java:126\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute2 (\u001b[1mMojoExecutor.java:328\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.doExecute (\u001b[1mMojoExecutor.java:316\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:212\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:174\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.access$000 (\u001b[1mMojoExecutor.java:75\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor$1.run (\u001b[1mMojoExecutor.java:162\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.plugin.DefaultMojosExecutionStrategy.execute (\u001b[1mDefaultMojosExecutionStrategy.java:39\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.MojoExecutor.execute (\u001b[1mMojoExecutor.java:159\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:105\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (\u001b[1mLifecycleModuleBuilder.java:73\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (\u001b[1mSingleThreadedBuilder.java:53\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.lifecycle.internal.LifecycleStarter.execute (\u001b[1mLifecycleStarter.java:118\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:261\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.doExecute (\u001b[1mDefaultMaven.java:173\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.DefaultMaven.execute (\u001b[1mDefaultMaven.java:101\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.execute (\u001b[1mMavenCli.java:906\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.doMain (\u001b[1mMavenCli.java:283\u001b[m)
    \u001b[1mat\u001b[m org.apache.maven.cli.MavenCli.main (\u001b[1mMavenCli.java:206\u001b[m)
    \u001b[1mat\u001b[m jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (\u001b[1mNative Method\u001b[m)
    \u001b[1mat\u001b[m jdk.internal.reflect.NativeMethodAccessorImpl.invoke (\u001b[1mNativeMethodAccessorImpl.java:77\u001b[m)
    \u001b[1mat\u001b[m jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (\u001b[1mDelegatingMethodAccessorImpl.java:43\u001b[m)
    \u001b[1mat\u001b[m java.lang.reflect.Method.invoke (\u001b[1mMethod.java:569\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (\u001b[1mLauncher.java:283\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.launch (\u001b[1mLauncher.java:226\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (\u001b[1mLauncher.java:407\u001b[m)
    \u001b[1mat\u001b[m org.codehaus.plexus.classworlds.launcher.Launcher.main (\u001b[1mLauncher.java:348\u001b[m)
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] Re-run Maven using the \u001b[1m-X\u001b[m switch to enable full debug logging.
[\u001b[1;31mERROR\u001b[m] 
[\u001b[1;31mERROR\u001b[m] For more information about the errors and possible solutions, please read the following articles:
[\u001b[1;31mERROR\u001b[m] \u001b[1m[Help 1]\u001b[m http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
\u001b[0m\u001b[0mcontainer 40717b76e09b250225373864e7197367ded4efc44e88ad2e25d21bcc8b3dc14c is dead
Tue Oct 29 05:35:08 UTC 2024

yegor256 added a commit that referenced this issue Oct 29, 2024
@yegor256
Copy link
Owner

@rultor release, tag is 1.24.6

@rultor
Copy link
Collaborator

rultor commented Oct 29, 2024

@rultor release, tag is 1.24.6

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

@rultor
Copy link
Collaborator

rultor commented Oct 29, 2024

@rultor release, tag is 1.24.6

@yegor256 Done! FYI, the full log is here (took me 10min).

@yegor256 yegor256 reopened this Oct 29, 2024
yegor256 added a commit that referenced this issue Oct 29, 2024
@yegor256
Copy link
Owner

@friji350 I fixed the README file, now it explains that you should use takes-1.24.6-jar-with-dependencies.jar I'm sure it will work. If not, open a new ticket please.

@yegor256 yegor256 self-assigned this Dec 16, 2024
@yegor256 yegor256 added the bug label Dec 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants