Our JVM kept crashing as soon as we went to the ‘Document Library’ within Alfresco 4.3.d
We tracked the issue down to a uploaded PDF file which contained metadata that the shipped version of PDFBox 1.2.1 (pdfbox-1.2.1.jar) chokes on and takes out the JVM.
By replacing the pdfbox.jar with the latest version pdfbox-1.7.1.jar our issues seem to have gone.
Replace old file with new in : /alfresco-3.4.d/tomcat/webapps/alfresco/WEB-INF/lib/
Random error we where receiving in ‘catalina.out’ shown below:
# A fatal error has been detected by the Java Runtime Environment:
# SIGSEGV (0xb) at pc=0x59ee264a, pid=4534, tid=1553988496
# JRE version: 6.0_18-b07
# Java VM: Java HotSpot(TM) Server VM (16.0-b13 mixed mode linux-x86 )
# Problematic frame:
# C [libfontmanager.so+0x2464a]
# An error report file with more information is saved as:
# If you would like to submit a bug report, please visit:
# The crash happened outside the Java Virtual Machine in native code.
# See problematic frame for where to report the bug.
Having issues uploading to Alfresco Share using its Adobe flash up-loader?
As weird as this sounds, try updating your installation of Internet Explorer.
Even if your not using Internet Explorer, lets be honest who still is! 🙂
This has solved issues that we’ve been having, machines which still had IE6 on them, when updated to IE8 the up-loader would work in both Firefox and Chrome.
It also allowed us to use Primefaces 2.2 fileUpload on the machine it wasn’t working on, after updating IE.
We’re running Alfresco 3.4d on Glassfish 3.1 / Redhat 5.7
We noticed last week that ‘Java SE Development Kit 6 Update 26’ was occasionally crashing the JVM by using all the available memory, when Alfresco was using resources outside of the JVM.
We solved this by installing ‘Java SE Development Kit 6 Update 29’.
Just thought that we would post that out there, just in case your facing similar issues and haven’t a clue what is causing them, when the JVM crashes it doesn’t post its issues into the Glassfish server.log file, as that has crashed milliseconds beforehand.
Getting Alfresco Share to correctly display document previews can be a royal pain, hopefully the following information will help you get yours to work.
The headless Open Office packages which come with RHEL5 don’t work correctly, if your using the same O/S
remove the existing installed packages & install the whole program on your server from www.openoffice.org
– This was a big part of our issues.
There are no reasons behind this, just a little bit of information here
Next install the required packages :
Change so it reads:
# External locations
Now check to see if these files that you’ve just installed in ‘/usr/local/bin’ are running correctly, we were having issues, see below:
[root@server bin]# /usr/local/bin/pdf2swf
./pdf2swf: error while loading shared libraries: libjpeg.so.7: cannot open shared object file: No such file or directory
This was because the library wasn’t been located, so we deleted/recreated any links to the missing files in both the below locations (just to make sure, as wasnt sure where each program was looking for its required library)
[root@server /]# find ./ -name libjpeg.so.7
libjpeg.so.7 -> /usr/local/lib/libjpeg.so.7
libjpeg.so.7 -> libjpeg.so.7.0.0
And ‘just like that’ it was working, make sure you also check where ‘convert’ is working.
It took us hours to figure out what was going wrong, so I hope this shines some light on your dark day.
pdf2swf is required for Alfresco global setting. We need to install swftools.
error message when try to install swftools:
. . .
freetype/config/ ftheader.h: No such file or directory
. . .
Freetype has been install at /usr/local/include/, ftheader.h is located in /usr/local/include/freetype2/freetype/config
Add a symbolic link
ln -s /usr/local/include/freetype2/freetype /usr/include/freetype
Want to know how to create your own custom Alfresco Share theme ?
Follow this guide:
Copy an existing themes folder & files, such as
Change where it mentions ‘Default Blue’ to a title of your choosing, change ‘
theme.default‘ to ‘
Change all occurrences of ‘
Change all occurrences of ‘
The above 2 steps can be easily done using a find and replace function in any text editor.
Now select your new theme within Share under the Admin Console.
Now edit the .css files and images to your hearts content, refreshing the browser to see your changes.
Need to know how to get LDAP working with your Alfresco installation?
Confused by all of what you’ve read on forums and wikis?
Then follow this guide :
/YOUR_Glassfish/domains/domain1/lib/classes/alfresco-global.properties, let alfresco use LDAP authentication chain:
2. Create folder
3. Copy file
4. Copy the two files (
/YOUR_Glassfish/domains/domain1/lib/classes/alfresco/subsystems/Authentication/ldap/ldap1/ldap-authentication.properties for ldap setting:
# This flag enables use of this LDAP subsystem for authentication. It may be
# that this subsytem should only be used for synchronization, in which case
# this flag should be set to false.
# The authentication mechanism to use
# The default principal to use (only used for LDAP sync)
# The password for the default principal (only used for LDAP sync)
# How to map the user id entered by the user to that passed through to LDAP
# - simple
# - this must be a DN and would be something like
# - digest
# - usually pass through what is entered
# If not set, an LDAP query involving ldap.synchronization.personQuery and
# ldap.synchronization.userIdAttributeName will
# be performed to resolve the DN dynamically.
# The URL to connect to the LDAP server
ldap.authentication.java.naming.provider.url=Your LDAP URL
# This flag enables use of this LDAP subsystem for user and group
# synchronization. It may be that this subsytem should only be used for
# authentication, in which case this flag should be set to false.
# The query to select all objects that represent the groups to import.
# The group search base restricts the LDAP group query to a sub section of tree on the LDAP server.
ldap.synchronization.groupSearchBase=Your search base
# If positive, this property indicates that range retrieval should be used to fetch
# multi-valued attributes (such as member) in batches of the specified size.
# Overcomes any size limits imposed by Active Directory.
# The query to select all objects that represent the users to import.
# The user search base restricts the LDAP user query to a sub section of tree on the LDAP server.
ldap.synchronization.userSearchBase=Your user search base
# The attribute name on people objects found in LDAP to use as the uid in Alfresco, depend on your LDAP server
# The timestamp format. Unfortunately, this varies between directory servers.
# The attribute on person objects in LDAP to map to the email property in Alfresco,depend on your LDAP server
# The attribute on person objects in LDAP to map to the first name property in Alfresco, depend on your LDAP server
# The attribute on person objects in LDAP to map to the last name property in Alfresco,depend on your LDAP server
# The default home folder provider to use for people created via LDAP import,depend on your LDAP server
6. Restart glassfish. Alfresco Explorer and Share should now work with your LDAP server.