Change By: Christoph Jaehnigen (13/Aug/12 2:21 PM)
Affects Version/s: current
Environment: HPUX Jenkins 1.477 ,  Windows 2003 Server, JRE  copyartifacts  1. 6.0.04-jinteg_28_apr_2009_04_46-b00 22
Master: Linux
Slave: Windows XP Pro
Description: Hi,

I have security enabled Master (HPUX) - Slave (Win2003Srv) configuration on Jenkins, 1.408. I
We ' m re experiencing the following exception when  trying to copy artifacts  from "Latest successful build" build job 1 (master) to build job 2 (slave).

I get this console output error while building job
:

Building remotely on XXXXXXX {code}
ERROR: Failed to copy artifacts from
 YYYYYYY  PROJECT_1  with filter:  deploy/  * */* . gz *
hudson.util.IOException2:
 java  Failed to copy /var/lib/jenkins/jobs/PROJECT_1/builds/2012-04-04_09-44-14/archive/deploy/some_file . lang.IllegalAccessError txt to c :  class hudson \jenkins\workspace\PROJECT_2\deploy\some_file . remoting.Pipe$ConnectCommand cannot access its superclass hudson.remoting.Command txt
at hudson.
FilePath plugins . copyRecursiveTo(FilePath copyartifact . java:1526)
at hudson
FingerprintingCopyMethod . FilePath.copyRecursiveTo copyOne ( FilePath FingerprintingCopyMethod .java: 1451 91 )
at hudson.plugins.copyartifact.
FilePathCopyMethod FingerprintingCopyMethod .copyAll( FilePathCopyMethod FingerprintingCopyMethod .java: 51 63 )
at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:
225 243 )
at hudson.plugins.copyartifact.CopyArtifact.perform(CopyArtifact.java:
199 215 )
at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:19)
at hudson.model.AbstractBuild$
AbstractRunner AbstractBuildExecution .perform(AbstractBuild.java: 649 717 )
at hudson.model.Build$
RunnerImpl BuildExecution .build(Build.java: 177 199 )
at hudson.model.Build$
RunnerImpl BuildExecution .doRun(Build.java: 139 160 )
at hudson.model.AbstractBuild$
AbstractRunner AbstractBuildExecution .run(AbstractBuild.java: 423 499 )
at hudson.model.Run.
run execute (Run.java: 1362 1502 )
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:46)
at hudson.model.ResourceController.execute(ResourceController.java:88)
at hudson.model.Executor.run(Executor.java:
145 236 )
Caused by:
 java  hudson .util. concurrent.ExecutionException IOException2 :  java.lang.IllegalAccessError  remote file operation failed :  class hudson  c:\jenkins\workspace\PROJECT_2\deploy\some_file . remoting.Pipe$ConnectCommand cannot access its superclass txt at  hudson.remoting. Command Channel@30e16a97:TW-FEQS-XP-LON
at hudson.
remoting FilePath . Channel$2.adapt act ( Channel FilePath .java: 676 838 )
at hudson.
remoting FilePath . Channel$2.adapt act ( Channel FilePath .java: 671 824 )
at hudson.
remoting FilePath . FutureAdapter.get touch ( FutureAdapter FilePath .java: 55 1170 )
at hudson.
FilePath plugins . copyRecursiveTo copyartifact.FingerprintingCopyMethod.copyOne ( FilePath FingerprintingCopyMethod .java: 1524 79 )
...
 13  12  more
Caused by: java.
lang io . IllegalAccessError IOException :  class hudson  Failed to set the timestamp of c:\jenkins\workspace\PROJECT_2\deploy\some_file . remoting.Pipe$ConnectCommand cannot access its superclass hudson.remoting.Command txt to 1333525392000
at
 java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at
 hudson. remoting FilePath$19 . RemoteClassLoader.loadClassFile invoke ( RemoteClassLoader FilePath .java: 151 1176 )
at hudson.
remoting FilePath$19 . RemoteClassLoader.findClass invoke ( RemoteClassLoader FilePath .java: 131 1170 )
at
 java  hudson . lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.Class.getDeclaredFields0(Native Method)
at java.lang.Class.privateGetDeclaredFields(Unknown Source)
at java.lang.Class.getDeclaredField(Unknown Source)
at java.io.ObjectStreamClass.getDeclaredSUID(Unknown Source)
at java.io.ObjectStreamClass.access
FilePath $ 700(Unknown Source)
at java
FileCallableWrapper . io.ObjectStreamClass$2.run call ( Unknown Source)
at java
FilePath . security.AccessController.doPrivileged(Native Method)
at
 java .io.ObjectStreamClass.<init>(Unknown Source)
at java.io.ObjectStreamClass.lookup(Unknown Source)
at java.io.ObjectStreamClass.initNonProxy(Unknown Source)
at java.io.ObjectInputStream.readNonProxyDesc(Unknown Source)
at java.io.ObjectInputStream.readClassDesc(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.defaultReadFields(Unknown Source)
at java.io.ObjectInputStream.readSerialData(Unknown Source)
at java.io.ObjectInputStream.readOrdinaryObject(Unknown Source)
at java.io.ObjectInputStream.readObject0(Unknown Source)
at java.io.ObjectInputStream.readObject(Unknown Source)
at hudson.remoting.UserRequest.deserialize(UserRequest.java
: 178 2196 )
at hudson.remoting.UserRequest.perform(UserRequest.java:
98 118 )
at hudson.remoting.UserRequest.perform(UserRequest.java:48)
at hudson.remoting.Request$2.run(Request.java:
270 287 )
at
 java  hudson . util remoting . concurrent.Executors InterceptingExecutorService $ RunnableAdapter 1 .call( Unknown Source InterceptingExecutorService.java:72 )
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at hudson.remoting.Engine$1$1.run(Engine.java:
59 60 )
at java.lang.Thread.run(Unknown Source)
Finished: FAILURE Build step 'Copy artifacts from another project' marked build as failure
{code}

   We followed the workaround mentioned in issue 9456. Be aware that the master is a Linux machine and the slave is Windows.
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to