06-01-2011 04:29 AM
java -Xmx128M -jar alfresco-bm-3.3.jar –username=admin –password=admin –config=test.properties
I get the error:
A failure prevented proper execution.
java.lang.NullPointerException
at java.io.File.<init>(File.java:222)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.makeSession(FileFolderRemoteLoader.java:164)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.initialize(FileFolderRemoteLoader.java:69)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.main(FileFolderRemoteLoader.java:386)
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 com.simontuffs.onejar.Boot.run(Boot.java:287)
at com.simontuffs.onejar.Boot.main(Boot.java:137)
session.name=TEST
Session.sourceDir=/opt/jboss/actuacion/loadTest/test
session.rmiUrls=rmi://localhost:50500/
session.storeIdentifiers=workspaceStore
session.folderProfile=1, 5
test.load.upload.fast=2, 0, 1, 2, true, 1
test.load.totals.basic=1, 15000, 0, 1, true
06-01-2011 05:04 AM
06-01-2011 10:32 AM
Is probably due to your upper case 'S' in session.
It's clearly a small bug, the configuration file should be validated and you should get a sensible error message.
java -Xmx128M -jar alfresco-bm-3.3.jar –username=admin –password=admin –config=test.properties
ERROR: Failed to establish connection to server:
Server: rmi://localhost:50500/
Error: org/aopalliance/intercept/MethodInterceptor
java.lang.NoClassDefFoundError: org/aopalliance/intercept/MethodInterceptor
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at com.simontuffs.onejar.JarClassLoader.defineClass(JarClassLoader.java:626)
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:532)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at com.simontuffs.onejar.JarClassLoader.defineClass(JarClassLoader.java:626)
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:532)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.alfresco.repo.remote.FileFolderRemoteClient.connect(FileFolderRemoteClient.java:61)
at org.alfresco.repo.remote.FileFolderRemoteClient.<init>(FileFolderRemoteClient.java:55)
at org.alfresco.repo.model.filefolder.loader.LoaderSession.connect(LoaderSession.java:189)
at org.alfresco.repo.model.filefolder.loader.LoaderSession.initialize(LoaderSession.java:122)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.makeSession(FileFolderRemoteLoader.java:226)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.initialize(FileFolderRemoteLoader.java:69)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.main(FileFolderRemoteLoader.java:386)
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 com.simontuffs.onejar.Boot.run(Boot.java:287)
at com.simontuffs.onejar.Boot.main(Boot.java:137)
Caused by: java.lang.ClassNotFoundException: org.aopalliance.intercept.MethodInterceptor
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:535)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
… 27 more
No remote servers are available
netstat -a | grep 50500
tcp 0 0 *:50500 *:* LISTEN
cat bm-remote-loader-context.xml
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING/DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
<beans>
<!– Remote FileFolderService exposure –>
<bean id="fileFolderRemoteServer" class="org.alfresco.repo.remote.FileFolderRemoteServer">
<property name="transactionService">
<ref bean="TransactionService"/>
</property>
<property name="fileFolderService">
<ref bean="FileFolderService"/>
</property>
<property name="authenticationService">
<ref bean="AuthenticationService"/>
</property>
<property name="mimetypeService">
<ref bean="MimetypeService"/>
</property>
</bean>
<bean id="fileFolderRemoteRMI" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="service">
<ref bean="fileFolderRemoteServer"/>
</property>
<property name="serviceInterface">
<value>org.alfresco.service.cmr.remote.FileFolderRemote</value>
</property>
<property name="serviceName">
<value>org.alfresco.FileFolderRemote</value>
</property>
<property name="registryPort">
<value>${alfresco.rmi.services.port}</value>
</property>
</bean>
<!– Remote Loader exposure –>
<bean id="loaderRemoteServer" class="org.alfresco.repo.remote.LoaderRemoteServer">
<property name="transactionService">
<ref bean="TransactionService"/>
</property>
<property name="authenticationService">
<ref bean="AuthenticationService"/>
</property>
<property name="nodeService">
<ref bean="NodeService"/>
</property>
<property name="nodeDaoService">
<ref bean="nodeDaoService"/>
</property>
<property name="fileFolderService">
<ref bean="FileFolderService"/>
</property>
<property name="mimetypeService">
<ref bean="MimetypeService"/>
</property>
<property name="checkOutCheckInService">
<ref bean="CheckoutCheckinService"/>
</property>
<property name="fileFolderRemote">
<ref bean="fileFolderRemoteServer"/>
</property>
</bean>
<bean id="loaderRemoteServerRMI" class="org.springframework.remoting.rmi.RmiServiceExporter">
<property name="service">
<ref bean="loaderRemoteServer"/>
</property>
<property name="serviceInterface">
<value>org.alfresco.service.cmr.remote.LoaderRemote</value>
</property>
<property name="serviceName">
<value>org.alfresco.LoaderRemote</value>
</property>
<property name="registryPort">
<value>${alfresco.rmi.services.port}</value>
</property>
</bean>
</beans>
06-01-2011 11:20 AM
06-02-2011 05:50 AM
Issue ALF-2224. You need to add aopalliance.jar to your classpath.
java -classpath '.:/opt/jboss/actuacion/loadTest/aopalliance.jar:/opt/jboss/actuacion/loadTest/alfresco-bm-3.3.jar' com.simontuffs.onejar.Boot –username=admin
–password=admin –config=test.properties
ERROR: Failed to establish connection to server:
Server: rmi://localhost:60600/
Error: Could not find RMI service [rmi://localhost:60600/org.alfresco.FileFolderRemote] in RMI registry; nested exception is java.rmi.NotBoundException: org.alfresco.FileFolderRemote
org.springframework.remoting.RemoteLookupFailureException: Could not find RMI service [rmi://localhost:60600/org.alfresco.FileFolderRemote] in RMI registry; nested exception is java.rmi.NotBoundException: org.alfresco.FileFolderRemote
at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:211)
at org.springframework.remoting.rmi.RmiClientInterceptor.prepare(RmiClientInterceptor.java:147)
at org.springframework.remoting.rmi.RmiClientInterceptor.afterPropertiesSet(RmiClientInterceptor.java:135)
at org.springframework.remoting.rmi.RmiProxyFactoryBean.afterPropertiesSet(RmiProxyFactoryBean.java:68)
at org.alfresco.repo.remote.FileFolderRemoteClient.connect(FileFolderRemoteClient.java:65)
at org.alfresco.repo.remote.FileFolderRemoteClient.<init>(FileFolderRemoteClient.java:55)
at org.alfresco.repo.model.filefolder.loader.LoaderSession.connect(LoaderSession.java:189)
at org.alfresco.repo.model.filefolder.loader.LoaderSession.initialize(LoaderSession.java:122)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.makeSession(FileFolderRemoteLoader.java:226)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.initialize(FileFolderRemoteLoader.java:69)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.main(FileFolderRemoteLoader.java:386)
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 com.simontuffs.onejar.Boot.run(Boot.java:287)
at com.simontuffs.onejar.Boot.main(Boot.java:137)
Caused by: java.rmi.NotBoundException: org.alfresco.FileFolderRemote
at sun.rmi.registry.RegistryImpl.lookup(RegistryImpl.java:106)
at sun.rmi.registry.RegistryImpl_Skel.dispatch(Unknown Source)
at sun.rmi.server.UnicastServerRef.oldDispatch(UnicastServerRef.java:386)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:250)
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)
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(StreamRemoteCall.java:255)
at sun.rmi.transport.StreamRemoteCall.executeCall(StreamRemoteCall.java:233)
at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:359)
at sun.rmi.registry.RegistryImpl_Stub.lookup(Unknown Source)
at java.rmi.Naming.lookup(Naming.java:84)
at org.springframework.remoting.rmi.RmiClientInterceptor.lookupStub(RmiClientInterceptor.java:200)
… 16 more
No remote servers are available
06-02-2011 07:42 AM
06-02-2011 08:13 AM
06-08-2011 04:30 AM
Why are you trying to connect to 60600? Your config above was for the default value of 50500.
http://forums.alfresco.com/es/viewtopic … 749#p13749 same question on spanish forum
06-09-2011 03:14 AM
06-01-2012 10:40 AM
[root@alfrescotest indexing]# java -Xmx128M -jar bin/alfresco-bm.jar –username=controlRole –password=1234 –config=test.properties
A failure prevented proper execution.
java.lang.NoClassDefFoundError: org/alfresco/repo/security/permissions/PermissionCheckValue
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:632)
at java.lang.ClassLoader.defineClass(ClassLoader.java:616)
at com.simontuffs.onejar.JarClassLoader.defineClass(JarClassLoader.java:626)
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:532)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.makeSession(FileFolderRemoteLoader.java:216)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.initialize(FileFolderRemoteLoader.java:69)
at org.alfresco.repo.model.filefolder.loader.FileFolderRemoteLoader.main(FileFolderRemoteLoader.java:386)
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 com.simontuffs.onejar.Boot.run(Boot.java:287)
at com.simontuffs.onejar.Boot.main(Boot.java:137)
Caused by: java.lang.ClassNotFoundException: org.alfresco.repo.security.permissions.PermissionCheckValue
at com.simontuffs.onejar.JarClassLoader.findClass(JarClassLoader.java:535)
at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
… 16 more
session.name=TEST
session.sourceDir=/opt
session.rmiUrls=rmi://localhost:50500/
session.storeIdentifiers=TEST-01, TEST-02, TEST-03, TEST-04, TEST-05
session.folderProfile=1, 10, 10, 10, 10, 10
test.load.upload.fast=2, 0, 10000, 6, false, 1
#test.load.totals.basic=1, 15000, 0, 1, true
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.