Problems running the benchmark in Alfresco 3.3
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 04:29 AM
I'm trying to run the benchmark following the steps listed on page: http://wiki.alfresco.com/wiki/Server_Benchmarks
When I run the jar (alfresco-bm-3.3.jar):
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)
test.properties file has the following parameters:
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
What am I doing wrong?
Thanks!
- Labels:
-
Archive
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 05:04 AM
It's clearly a small bug, the configuration file should be validated and you should get a sensible error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
Thank you very much, the problem was the upper case 'S'. I checked the file a thousand times and I did not see the error.
Now I have another error:
java -Xmx128M -jar alfresco-bm-3.3.jar –username=admin –password=admin –config=test.propertiesERROR: Failed to establish connection to server: Server: rmi://localhost:50500/ Error: org/aopalliance/intercept/MethodInterceptorjava.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 moreNo remote servers are available
But the RMI port is listening:
netstat -a | grep 50500tcp 0 0 *:50500 *:* LISTEN
To enable RMI API, I followed the steps in the wiki (http://wiki.alfresco.com/wiki/Server_Benchmarks) and added to the folder '/ WEB-INF/classes/alfresco /
extension / ' the following xml: bm-remote-loader-context.xml
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>
Any ideas?
Regards!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2011 11:20 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 05:50 AM
Issue ALF-2224. You need to add aopalliance.jar to your classpath.
You're right, adding the library solves the problem, thank you very much.
Now appears another error. I think it's another bug (ALF-5733😞
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.propertiesERROR: 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.FileFolderRemoteorg.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 moreNo remote servers are available
Maybe I should try the 3.4 benchmark. I hope not to get in trouble for running alfresco-bm-3.4.jar on alfresco 3.3 server.
Regards,
Juanma
[EDIT]
Using the version of alfresco-bm obtained from alfresco-community-3.4.d.zip I have the same fault.
Any ideas to help me to launch the benchmark?
Thanks !!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 07:42 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-02-2011 08:13 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2011 04:30 AM
Why are you trying to connect to 60600? Your config above was for the default value of 50500.
Also changed the port in the config. I wanted to verify that the problem was not the port.
http://forums.alfresco.com/es/viewtopic … 749#p13749 same question on spanish forum
I asked on both forums, hopefully not a problem. Normally in this forum will get more answers

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-09-2011 03:14 AM
Now I have the problem of not being able to connect from another machine, but I understand that this is another problem.
Thank you very much for the help!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-01-2012 10:40 AM
this is what i am doing
[root@alfrescotest indexing]# java -Xmx128M -jar bin/alfresco-bm.jar –username=controlRole –password=1234 –config=test.propertiesA 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
I have enabled bm-remote-loader-context.xml
my test.properties have values taken from http://wiki.alfresco.com/wiki/Server_Benchmarks
session.name=TESTsession.sourceDir=/optsession.rmiUrls=rmi://localhost:50500/session.storeIdentifiers=TEST-01, TEST-02, TEST-03, TEST-04, TEST-05session.folderProfile=1, 10, 10, 10, 10, 10test.load.upload.fast=2, 0, 10000, 6, false, 1#test.load.totals.basic=1, 15000, 0, 1, true
