Details
-
Type:
Bug
-
Status:
New
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 3.1.1
-
Fix Version/s: None
-
Component/s: Installation/Deployment
-
Security Level: Public
-
- Environment:
- -
Attachments
Activity
| Field | Original Value | New Value |
|---|---|---|
| Priority | Major [ 3 ] | |
| Description |
Running the validation tests about component life-cycle Ant tasks, the following error occurs sometimes:
{code} [Petals.JBI-Management.InstallationServiceImpl]-SEVERE 2011-06-20 20:55:13,625 Unable to load a new installer at location 'file:/home/cdeneux/.m2/repository/org/ow2/petals/petals-bc-soap/4.1-SNAPSHOT/petals-bc-soap-4.1-SNAPSHOT.zip' java.lang.Exception: java.io.IOException: Failed to copy full contents from '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/work/petals-bc-soap-4.1-SNAPSHOT.zip' to '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/installed/petals-bc-soap-4.1-SNAPSHOT.zip' at org.ow2.petals.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:322) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1074) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:955) at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203) at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:447) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Failed to copy full contents from '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/work/petals-bc-soap-4.1-SNAPSHOT.zip' (19245224) to '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/installed/petals-bc-soap-4.1-SNAPSHOT.zip' (0) at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:696) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:653) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607) at org.ow2.petals.jbi.management.task.CopyArchiveToInstalledDirTask.execute(CopyArchiveToInstalledDirTask.java:57) at org.ow2.petals.jbi.management.TaskProcessor.process(TaskProcessor.java:78) at org.ow2.petals.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:319) ... 38 more {code} |
The following error occurs sometimes when running the validation tests about component lifecycle Ant tasks:
{code} [Petals.JBI-Management.InstallationServiceImpl]-SEVERE 2011-06-20 20:55:13,625 Unable to load a new installer at location 'file:/home/cdeneux/.m2/repository/org/ow2/petals/petals-bc-soap/4.1-SNAPSHOT/petals-bc-soap-4.1-SNAPSHOT.zip' java.lang.Exception: java.io.IOException: Failed to copy full contents from '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/work/petals-bc-soap-4.1-SNAPSHOT.zip' to '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/installed/petals-bc-soap-4.1-SNAPSHOT.zip' at org.ow2.petals.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:322) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:37) at sun.reflect.GeneratedMethodAccessor45.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:244) at javax.management.modelmbean.RequiredModelMBean.invokeMethod(RequiredModelMBean.java:1074) at javax.management.modelmbean.RequiredModelMBean.invoke(RequiredModelMBean.java:955) at mx4j.server.interceptor.InvokerMBeanServerInterceptor.invoke(InvokerMBeanServerInterceptor.java:221) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.SecurityMBeanServerInterceptor.invoke(SecurityMBeanServerInterceptor.java:84) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:120) at mx4j.server.interceptor.ContextClassLoaderMBeanServerInterceptor.invoke(ContextClassLoaderMBeanServerInterceptor.java:203) at mx4j.server.MX4JMBeanServer.invoke(MX4JMBeanServer.java:1043) at com.sun.jmx.remote.security.MBeanServerAccessController.invoke(MBeanServerAccessController.java:447) at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1427) at javax.management.remote.rmi.RMIConnectionImpl.access$200(RMIConnectionImpl.java:72) at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1265) at java.security.AccessController.doPrivileged(Native Method) at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1367) at javax.management.remote.rmi.RMIConnectionImpl.invoke(RMIConnectionImpl.java:788) at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:305) at sun.rmi.transport.Transport$1.run(Transport.java:159) at java.security.AccessController.doPrivileged(Native Method) at sun.rmi.transport.Transport.serviceCall(Transport.java:155) at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:535) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:790) at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:649) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) at java.lang.Thread.run(Thread.java:662) Caused by: java.io.IOException: Failed to copy full contents from '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/work/petals-bc-soap-4.1-SNAPSHOT.zip' (19245224) to '/home/cdeneux/workspace/petals-enterprise-3.1.x/petals/container/petals-platform/target/petals-platform-3.1.2-SNAPSHOT/petals-platform-3.1.2-SNAPSHOT/installed/petals-bc-soap-4.1-SNAPSHOT.zip' (0) at org.apache.commons.io.FileUtils.doCopyFile(FileUtils.java:696) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:653) at org.apache.commons.io.FileUtils.copyFile(FileUtils.java:607) at org.ow2.petals.jbi.management.task.CopyArchiveToInstalledDirTask.execute(CopyArchiveToInstalledDirTask.java:57) at org.ow2.petals.jbi.management.TaskProcessor.process(TaskProcessor.java:78) at org.ow2.petals.jbi.management.installation.InstallationServiceImpl.loadNewInstaller(InstallationServiceImpl.java:319) ... 38 more {code} |
| Attachment | strace.zip [ 10613 ] |
| Link | This issue blocks COMMONS-60 [ COMMONS-60 ] |

The exception is thrown by commons-io:1.4 in method FileUtils.doCopyFile because size of the both source and target file are different.
Adding traces into the commons-io:1.4, we can see that the target file size is 0.