Expand my Community achievements bar.

Maven Build failure - RepositoryException: Inaccessible value (500)

Avatar

Level 4

Hi,

I am facing an intermittent issue, sometimes maven build is getting failed and not able to install the packages. I can access package manager console and logged with admin creds. There is enough disk space on server. Any pointers?

AEM Version: AEM 6.2

Maven Version: Apache Maven 3.0.4

Error logs:

[ERROR] Request failed: org.apache.jackrabbit.vault.packaging.PackageException: javax.jcr.RepositoryException: Inaccessible value (500)

[INFO]

------------------------------------------------------------------------

[ERROR] Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:install (install-content-package) on project myproject-all: Error while installing package. Check log for details. -> [Help 1]

org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.day.jcr.vault:content-package-maven-plugin:0.0.20:install (install-content-package) on project myproject-all: Error while installing package. Check log for details.

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116)

at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80)

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:307)

at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193)

at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106)

at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863)

at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288)

at org.apache.maven.cli.MavenCli.main(MavenCli.java:199)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:606)

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.MojoFailureException: Error while installing package. Check log for details.

at com.day.jcr.vault.maven.mgr.PackageInstallMojo.uploadPackage(PackageInstallMojo.java:281)

at com.day.jcr.vault.maven.mgr.PackageInstallMojo.execute(PackageInstallMojo.java:200)

at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134)

at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207)

... 20 more

4 Replies

Avatar

Level 2

make sure that there is no debugger process attached .

Avatar

Level 1
Most likely the issue is due to debugger with Java 9 and above. From Java-9 and above when you attach debugger remotely , you need to specify the IP along with the port. If you attach the debugger correctly with JDK 9 and above then things should be working fine.

Avatar

Level 10

Maven version seems to be old.

Can you try with version 3.5.4 or greater than 3.3

Avatar

Level 4

Package is installed to author instance but not to publish.