java.lang.RuntimeException

Can not create resource releaser instance from resource: /org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser.class

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web19128

  • via MuleSoft JIRA by Damian Sima, 10 months ago
    Can not create resource releaser instance from resource: /org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser.class
  • via nabble.com by Unknown author, 1 year ago
    javax.naming.NamingException: Cannot create resource instance
  • via com.br by Unknown author, 1 year ago
    javax.naming.NamingException: Cannot create resource instance
  • Stack trace

    • java.lang.RuntimeException: Can not create resource releaser instance from resource: /org/mule/runtime/module/artifact/classloader/DefaultResourceReleaser.class at org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.createResourceReleaserInstance(MuleArtifactClassLoader.java:107)[mule-module-artifact-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.dispose(MuleArtifactClassLoader.java:86)[mule-module-artifact-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] at org.mule.munit.classloading.manager.ClassLoaderManager.restoreCurrentThreadClassLoader(ClassLoaderManager.java:47)[munit-maven-plugin-2.0.0-SNAPSHOT.jar:?] at org.mule.munit.MUnitMojo.runTests(MUnitMojo.java:243)[munit-maven-plugin-2.0.0-SNAPSHOT.jar:?] at org.mule.munit.MUnitMojo.doExecute(MUnitMojo.java:179)[munit-maven-plugin-2.0.0-SNAPSHOT.jar:?] at org.mule.munit.MUnitMojo.execute(MUnitMojo.java:129)[munit-maven-plugin-2.0.0-SNAPSHOT.jar:?] at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:101)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:209)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:84)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:59)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBuild(LifecycleStarter.java:183)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:161)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)[maven-core-3.0.5.jar:3.0.5] at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)[maven-embedder-3.0.5.jar:3.0.5] at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)[maven-embedder-3.0.5.jar:3.0.5] at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)[maven-embedder-3.0.5.jar:3.0.5] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)[?:1.8.0_92] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)[?:1.8.0_92] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)[?:1.8.0_92] at java.lang.reflect.Method.invoke(Method.java:498)[?:1.8.0_92] at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Launcher.java:290)[plexus-classworlds-2.4.jar:?] at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.java:230)[plexus-classworlds-2.4.jar:?] at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(Launcher.java:409)[plexus-classworlds-2.4.jar:?] at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:352)[plexus-classworlds-2.4.jar:?] Caused by: java.lang.ClassCastException: org.mule.runtime.module.artifact.classloader.DefaultResourceReleaser cannot be cast to org.mule.runtime.module.artifact.classloader.ResourceReleaser at org.mule.runtime.module.artifact.classloader.MuleArtifactClassLoader.createResourceReleaserInstance(MuleArtifactClassLoader.java:105)[mule-module-artifact-4.0-SNAPSHOT.jar:4.0-SNAPSHOT] ... 26 more

    Write tip

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

    Users with the same issue

    You’re the first here who have seen this exception.