error: java.lang.IllegalStateException: Invalid object ID 7 iota=17
Env:
RTC - 5.0.2
RHEL Server
Jenkins version - 1.625.3.1
RTC Jenkins plugin version - 1.1.9.9
jdk version on the build slave - jdk 1.7.0_51
Maven release plugin - 2.5.2
Note:
We also have GIT-Stash repositories and GIT-plugin and Maven release builds works just fine there.
This was working fine with RTC too ( unstable and used to fail sometimes ) but doesn't work at all now.
Running maven release builds ( dry run) fails with this message ( or rather hangs till aborted) - After aborting this is the error:
*****
[INFO] ------------------------------------------------------------------------ [ERROR] Internal error: java.lang.IllegalStateException: Invalid object ID 7 iota=17: Object was recently deallocated [ERROR] #7 (ref.0) : object=null type=com.sun.proxy.$Proxy107 interfaces=[hudson.maven.MavenBuildProxy2] [ERROR] Created at Thu May 26 16:36:29 EDT 2016 [ERROR] at hudson.remoting.ExportTable$Entry.<init>(ExportTable.java:99) [ERROR] at hudson.remoting.ExportTable.export(ExportTable.java:305) [ERROR] at hudson.remoting.Channel.internalExport(Channel.java:629) [ERROR] at hudson.remoting.Channel.export(Channel.java:620) [ERROR] at hudson.remoting.Channel.export(Channel.java:590) [ERROR] at hudson.maven.MavenBuild$ProxyImpl2.writeReplace(MavenBuild.java:751) [ERROR] at sun.reflect.GeneratedMethodAccessor12572.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:497) [ERROR] at java.io.ObjectStreamClass.invokeWriteReplace(ObjectStreamClass.java:1075) [ERROR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1136) [ERROR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) [ERROR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) [ERROR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) [ERROR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) [ERROR] at java.util.HashMap.internalWriteEntries(HashMap.java:1777) [ERROR] at java.util.HashMap.writeObject(HashMap.java:1354) [ERROR] at sun.reflect.GeneratedMethodAccessor156.invoke(Unknown Source) [ERROR] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) [ERROR] at java.lang.reflect.Method.invoke(Method.java:497) [ERROR] at java.io.ObjectStreamClass.invokeWriteObject(ObjectStreamClass.java:988) [ERROR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1496) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) [ERROR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) [ERROR] at java.io.ObjectOutputStream.defaultWriteFields(ObjectOutputStream.java:1548) [ERROR] at java.io.ObjectOutputStream.writeSerialData(ObjectOutputStream.java:1509) [ERROR] at java.io.ObjectOutputStream.writeOrdinaryObject(ObjectOutputStream.java:1432) [ERROR] at java.io.ObjectOutputStream.writeObject0(ObjectOutputStream.java:1178) [ERROR] at java.io.ObjectOutputStream.writeObject(ObjectOutputStream.java:348) [ERROR] at hudson.remoting.UserRequest._serialize(UserRequest.java:157) [ERROR] at hudson.remoting.UserRequest.serialize(UserRequest.java:166) [ERROR] at hudson.remoting.UserRequest.<init>(UserRequest.java:62) [ERROR] at hudson.remoting.Channel.call(Channel.java:779) [ERROR] at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) [ERROR] at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:853) [ERROR] at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) [ERROR] at hudson.model.Run.execute(Run.java:1741) [ERROR] at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) [ERROR] at hudson.model.ResourceController.execute(ResourceController.java:98) [ERROR] at hudson.model.Executor.run(Executor.java:408) [ERROR] Released at Thu May 26 22:38:54 EDT 2016 [ERROR] at hudson.remoting.ExportTable$Entry.release(ExportTable.java:131) [ERROR] at hudson.remoting.ExportTable$ExportList.release(ExportTable.java:247) [ERROR] at hudson.remoting.UserRequest.releaseExports(UserRequest.java:192) [ERROR] at hudson.remoting.UserRequest.releaseExports(UserRequest.java:188) [ERROR] at hudson.remoting.Channel.call(Channel.java:798) [ERROR] at hudson.maven.ProcessCache$MavenProcess.call(ProcessCache.java:161) [ERROR] at hudson.maven.MavenModuleSetBuild$MavenModuleSetBuildExecution.doRun(MavenModuleSetBuild.java:853) [ERROR] at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:537) [ERROR] at hudson.model.Run.execute(Run.java:1741) [ERROR] at hudson.maven.MavenModuleSetBuild.run(MavenModuleSetBuild.java:531) [ERROR] at hudson.model.ResourceController.execute(ResourceController.java:98) [ERROR] at hudson.model.Executor.run(Executor.java:408): ReleasedAt [ERROR] -> [Help 1]
*****
--> Here is the ./scm version command:
*****
cd /rtc/rtc_cli/5.0.2/jazz/scmtools/eclipse
[build@vc2c eclipse]$ ./scm version
Build Id: RTC-I20141031-0926
com.ibm.team.filesystem.cli.core, version 3.2.400.v20141011_0139
Provides Subcommands:
daemon, daemon/stop, daemon/register, daemon/start, daemon/deregister
com.ibm.team.filesystem.cli.client, version 3.2.400.v20141016_0123
Provides Subcommands:
*****
One answer
Well, I had to manually specify the build user credentials when run. This, even though I am passing the credentials as env variables. It never takes the env variables all the time.
[INFO] Verifying that there are no local modifications... [INFO] ignoring changes on: **/pom.xml.backup, **/release.properties, **/pom.xml.branch, **/pom.xml.next, **/pom.xml.releaseBackup, **/pom.xml.tag [INFO] Executing: /bin/sh -c cd /apps/vc2coma2061193n/workspace/FI/REL/PR000029/AP002231/FIT-Margin-CommonsPOM-Development_ITECJenkins/margin-commons-pom && scm status --username buildeng --password '*****' [INFO] Working directory: /apps/vc2coma2061193n/workspace/FI/REL/PR000029/AP002231/FIT-Margin-CommonsPOM-Development_ITECJenkins/margin-commons-pom[INFO] Checking dependencies and plugins for snapshots ...--> Is there a way to store the password for scm commands manually so Maven release build when run can look into that location for credentials and execute than having to provide manually.
Comments
Sumant Renukarya
May 26 '16, 11:23 p.m.This always hangs here and using jdk 1.8 on the build slave + for maven build did not help either.
David Lafreniere
FORUM MODERATOR / JAZZ DEVELOPER Jun 01 '16, 4:22 p.m.Nothing in the stack trace is RTC related so you might have better luck asking this question in some Maven / Release-plugin forum / email (I do not know where that is though).