cancel
Showing results for 
Search instead for 
Did you mean: 

Problem executing SampleRunnable and ProgrammeRunnable class

davix
Champ in-the-making
Champ in-the-making
Hi,

I was trying to run these two classes –SampleRunnable and ProgrammeRunnable. I'm on Windows XP and using Alfresco 3.4

Now, when I run SampleRunnable, I get two files
(1)dep-record-7b468de4-bc30-42b3-a620-df08b53812fe and
(2)dep-record-41b11a6a-ff50-4f7c-96c4-1b6a3ad1e9f4.
Are these the expected outputs of SampleRunnable?

Next, I'm running ProgrammeRunnable. Here is my configuration.

<bean id="sampleProgramRunnable" class="org.alfresco.deployment.ProgramRunnable">
         <property name="program"><value>C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\goafinalportal\\goa</value></property>
        
         <property name="arguments">
             <list>
                 <value>C:\Dump.txt</value>
             </list>
         </property>

         <property name="directory"><value>C:\\Program Files (x86)\\Apache Software Foundation\\Apache2.2\\htdocs\\goafinalportal\\goa</value></property>
     </bean>

Now, when I start deployment, I get this error – 02280000 Error thrown in prepare; rolled back. When I checked the deployment.log it says Error thrown in prepare; rolled back
java.lang.NullPointerException

Am I giving any properties wrong? Please let me know. Thanks!
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
SampleRunnable - yes that looks correct.

ProgramRunnable - can't guess from what you have posted what is wrong.    Do notice that you have a missing '\' on the argument's value.   Is there more information such as a stack trace.

davix
Champ in-the-making
Champ in-the-making
Thanks for your reply.

About the outputs of SampleRunnable, I see that there's nothing in those files. Shouldn't they contain deployment logs.

I added the missing '\' on argument's value and get the same error again. Here's the stack trace.


15:54:52,081 INFO  [org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget] Prepare ticket: 2e3b6d5d-60a5-44d3-90c5-af37889e3656
15:54:53,175 ERROR [org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget] Error thrown in prepare; rolled back
java.lang.NullPointerException
   at java.io.File.<init>(File.java:222)
   at org.alfresco.deployment.ProgramRunnable.run(ProgramRunnable.java:120)
   at org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget.prepare(FileSystemDeploymentTarget.java:293)
   at org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl.prepare(DeploymentReceiverEngineImpl.java:354)
   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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy0.prepare(Unknown Source)
   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 org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)
   at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
   at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)
   at org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:73)
   at org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrapper.java:72)
   at sun.reflect.GeneratedMethodAccessor2.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:619)
15:54:53,191 ERROR [org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl] error in prepare ticket:{1}
org.alfresco.deployment.impl.DeploymentException: 02280000 Error thrown in prepare; rolled back
   at org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget.prepare(FileSystemDeploymentTarget.java:305)
   at org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl.prepare(DeploymentReceiverEngineImpl.java:354)
   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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy0.prepare(Unknown Source)
   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 org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)
   at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
   at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)
   at org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:73)
   at org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrapper.java:72)
   at sun.reflect.GeneratedMethodAccessor2.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:619)
Caused by: java.lang.NullPointerException
   at java.io.File.<init>(File.java:222)
   at org.alfresco.deployment.ProgramRunnable.run(ProgramRunnable.java:120)
   at org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget.prepare(FileSystemDeploymentTarget.java:293)
   … 34 more
15:54:53,191 WARN  [org.springframework.remoting.support.RemoteInvocationTraceInterceptor] Processing of RmiServiceExporter remote call resulted in fatal exception: org.alfresco.deployment.DeploymentReceiverService.prepare
org.alfresco.deployment.impl.DeploymentException: 02280000 Error thrown in prepare; rolled back
   at org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget.prepare(FileSystemDeploymentTarget.java:305)
   at org.alfresco.deployment.impl.server.DeploymentReceiverEngineImpl.prepare(DeploymentReceiverEngineImpl.java:354)
   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 org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:307)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150)
   at org.springframework.remoting.support.RemoteInvocationTraceInterceptor.invoke(RemoteInvocationTraceInterceptor.java:77)
   at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202)
   at $Proxy0.prepare(Unknown Source)
   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 org.springframework.remoting.support.RemoteInvocation.invoke(RemoteInvocation.java:205)
   at org.springframework.remoting.support.DefaultRemoteInvocationExecutor.invoke(DefaultRemoteInvocationExecutor.java:38)
   at org.springframework.remoting.support.RemoteInvocationBasedExporter.invoke(RemoteInvocationBasedExporter.java:78)
   at org.springframework.remoting.rmi.RmiBasedExporter.invoke(RmiBasedExporter.java:73)
   at org.springframework.remoting.rmi.RmiInvocationWrapper.invoke(RmiInvocationWrapper.java:72)
   at sun.reflect.GeneratedMethodAccessor2.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:619)
Caused by: java.lang.NullPointerException
   at java.io.File.<init>(File.java:222)
   at org.alfresco.deployment.ProgramRunnable.run(ProgramRunnable.java:120)
   at org.alfresco.deployment.impl.fsr.FileSystemDeploymentTarget.prepare(FileSystemDeploymentTarget.java:293)
   … 34 more

mrogers
Star Contributor
Star Contributor
R.E.   The SampleRunnable.   Have you deployed anything?   The deployment stuff only deploys deltas.

davix
Champ in-the-making
Champ in-the-making
Hmm, I was actually redeploying a recent snapshot, so that's why there was nothing in those files! I deployed a new snapshot and the deployment log shows up in those two files. Thanks! Smiley Happy

But I still can't quite figure out whats wrong with ProgramRunnable.
Getting started

Tags


Find what you came for

We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.