cancel
Showing results for 
Search instead for 
Did you mean: 

Tomcat crashes on PDF upload (3.4a)

mhmorys
Champ in-the-making
Champ in-the-making
Hello,

I am facing a serious and reproducible problem with Alfresco 3.4a. Whenever I upload some specific PDF files, tomcat crashes with the following stdout_DATE.log:

10:08:44,415  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/repository.properties]
10:08:44,431  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from class path resource [alfresco/domain/transaction.properties]
10:08:44,446  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_dod5015\alfresco-global.properties]
10:08:44,462  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\org_alfresco_module_wcmquickstart\alfresco-global.properties]
10:08:44,462  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\test\alfresco-global.properties]
10:08:44,462  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from file [C:\Alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\module\tests\alfresco-global.properties]
10:08:44,462  INFO  [alfresco.config.JndiPropertiesFactoryBean] Loading properties file from URL [file:/C:/Alfresco/tomcat/shared/classes/alfresco-global.properties]
10:08:44,603  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:09:30,149  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'serviceBeans' being accessed! Ambiguous write methods found next to actually used [public void org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(java.lang.Object[])]: [public void org.apache.cxf.jaxrs.JAXRSServerFactoryBean.setServiceBeans(java.util.List)]
10:09:33,431  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor Repository Template Processor for extension ftl
10:09:33,431  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor Repository Script Processor for extension js
10:09:44,993  INFO  [domain.schema.SchemaBootstrap] Schema managed by database dialect org.hibernate.dialect.MySQLInnoDBDialect.
10:09:47,618  INFO  [domain.schema.SchemaBootstrap] No changes were made to the schema.
10:09:47,806  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'sysAdmin' subsystem, ID: [sysAdmin, default]
10:09:47,837  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:09:48,165  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'sysAdmin' subsystem, ID: [sysAdmin, default] complete
10:09:51,118  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'thirdparty' subsystem, ID: [thirdparty, default]
10:09:51,196  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:09:53,181  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'thirdparty' subsystem, ID: [thirdparty, default] complete
10:09:53,181  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'OOoDirect' subsystem, ID: [OOoDirect, default]
10:09:53,212  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:09:54,696  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'OOoDirect' subsystem, ID: [OOoDirect, default] complete
10:09:57,118  INFO  [repo.admin.ConfigurationChecker] The Alfresco root data directory ('dir.root') is: C:\Alfresco\alf_data
10:09:57,228  INFO  [admin.patch.PatchExecuter] Sucht nach anwendbaren Patches…
10:09:59,165  INFO  [admin.patch.PatchExecuter] Es sind keine Patches erforderlich
10:09:59,243 User:System INFO  [repo.module.ModuleServiceImpl] 4 Modul(e) gefunden.
10:09:59,384 User:System INFO  [repo.module.ModuleServiceImpl] Starte Modul 'org_alfresco_module_wcmquickstart' Version 1.0.
10:10:00,603 User:System INFO  [repo.module.ModuleServiceImpl] Starte Modul 'org_alfresco_module_dod5015' Version 1.0.
10:10:00,728 User:System INFO  [repo.module.ModuleServiceImpl] Starte Modul 'org.alfresco.module.vti' Version 1.2.
10:10:00,837 User:System INFO  [repo.module.ModuleServiceImpl] Starte Modul 'org.alfresco.module.quickr' Version 1.0.
10:10:00,884  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'fileServers' subsystem, ID: [fileServers, default]
10:10:01,056  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:02,103  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1]
10:10:02,165  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:02,556  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Authentication' subsystem, ID: [Authentication, managed, alfrescoNtlm1] complete
10:10:02,681  ERROR [org.alfresco.fileserver] Error accessing Win32 NetBIOS, check DLL is on the path
10:10:02,774  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'fileServers' subsystem, ID: [fileServers, default] complete
10:10:02,774  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'imap' subsystem, ID: [imap, default]
10:10:02,821  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:03,024  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'imap' subsystem, ID: [imap, default] complete
10:10:03,024  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, outbound]
10:10:03,056  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:03,321  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, outbound] complete
10:10:03,321  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'email' subsystem, ID: [email, inbound]
10:10:03,353  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:03,493  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'blockedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.lang.String)]: [public void org.alfresco.email.server.EmailServer.setBlockedSenders(java.util.List)]
10:10:03,493  WARN  [springframework.beans.GenericTypeAwarePropertyDescriptor] Invalid JavaBean property 'allowedSenders' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.util.List)]: [public void org.alfresco.email.server.EmailServer.setAllowedSenders(java.lang.String)]
10:10:03,540  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'email' subsystem, ID: [email, inbound] complete
10:10:03,540  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'googledocs' subsystem, ID: [googledocs, default]
10:10:03,618  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:05,634  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'googledocs' subsystem, ID: [googledocs, default] complete
10:10:05,634  INFO  [repo.usage.UserUsageTrackingComponent] Enabled - calculate missing user usages …
10:10:05,728  INFO  [repo.usage.UserUsageTrackingComponent] Found 0 users to recalculate
10:10:05,728  INFO  [repo.usage.UserUsageTrackingComponent] … calculated missing usages for 0 users
10:10:05,728  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Synchronization' subsystem, ID: [Synchronization, default]
10:10:05,790  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:07,181  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Synchronization' subsystem, ID: [Synchronization, default] complete
10:10:07,415  INFO  [service.descriptor.DescriptorService] Alfresco JVM - v1.6.0_18-b07; maximum heap size 455,125MB
10:10:07,415  WARN  [service.descriptor.DescriptorService] Alfresco JVM - WARNING - maximum heap size 455,125MB is less than recommended 512MB
10:10:07,415  INFO  [service.descriptor.DescriptorService] Alfresco started (Community): Current version 3.4.0 (a 3169) schema 4111 - Originally installed version 3.4.0 (a 3169) schema 4111
10:10:07,493  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'Replication' subsystem, ID: [Replication, default]
10:10:07,524  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:07,556  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'Replication' subsystem, ID: [Replication, default] complete
10:10:13,618  INFO  [module.vti.VtiServer] Vti server started successfully on port: 7070
10:10:20,353  INFO  [post.lookup.PostLookup] Update: 1 activity posts
10:10:50,384 User:System INFO  [extensions.webscripts.DeclarativeRegistry] Registered 443 Web Scripts (+0 failed), 694 URLs
10:10:50,384 User:System INFO  [extensions.webscripts.DeclarativeRegistry] Registered 2 Package Description Documents (+0 failed)
10:10:50,384 User:System INFO  [extensions.webscripts.DeclarativeRegistry] Registered 1 Schema Description Documents (+0 failed)
10:10:50,399 User:System INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Repository Web Script Container (in 20728.543ms)
10:10:50,399  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
10:10:50,399  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
10:10:51,149  INFO  [management.subsystems.ChildApplicationContextFactory] Starting 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default]
10:10:51,228  INFO  [alfresco.config.JndiPropertyPlaceholderConfigurer] Loading properties file from class path resource [alfresco/alfresco-shared.properties]
10:10:51,399  INFO  [management.subsystems.ChildApplicationContextFactory] Startup of 'wcm_deployment_receiver' subsystem, ID: [wcm_deployment_receiver, default] complete
10:10:51,618  INFO  [activities.feed.FeedTaskProcessor] >>> Generated 4 activity feed entries for 1 activity posts (in 1390 msecs)
10:11:18,665  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 301 Web Scripts (+0 failed), 309 URLs
10:11:18,665  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 8 Package Description Documents (+0 failed)
10:11:18,665  INFO  [extensions.webscripts.DeclarativeRegistry] Registered 0 Schema Description Documents (+0 failed)
10:11:19,118  INFO  [extensions.webscripts.AbstractRuntimeContainer] Initialised Spring Surf Container Web Script Container (in 5271.874ms)
10:11:19,290  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
10:11:19,462  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
10:11:19,743  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
10:11:19,743  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
10:11:20,134  INFO  [extensions.webscripts.TemplateProcessorRegistry] Registered template processor freemarker for extension ftl
10:11:20,134  INFO  [extensions.webscripts.ScriptProcessorRegistry] Registered script processor javascript for extension js
WARN : org.springframework.beans.GenericTypeAwarePropertyDescriptor - Invalid JavaBean property 'baseUrl' being accessed! Ambiguous write methods found next to actually used [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.net.URI)]: [public void org.alfresco.wcm.client.impl.WebScriptCallerImpl.setBaseUrl(java.lang.String) throws java.net.URISyntaxException]
WARN : net.sf.ehcache.config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml  found in the classpath: jar:file:/C:/Alfresco/tomcat/webapps/wcmqs/WEB-INF/lib/ehcache-core-2.0.0.jar!/ehcache-failsafe.xml
Exception in thread "Thread-64" org.apache.chemistry.opencmis.commons.exceptions.CmisRuntimeException: Unauthorized
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.convertStatusCode(AbstractAtomPubService.java:411)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.read(AbstractAtomPubService.java:483)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.AbstractAtomPubService.getRepositoriesInternal(AbstractAtomPubService.java:635)
   at org.apache.chemistry.opencmis.client.bindings.spi.atompub.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:68)
   at org.apache.chemistry.opencmis.client.bindings.impl.RepositoryServiceImpl.getRepositoryInfos(RepositoryServiceImpl.java:85)
   at org.apache.chemistry.opencmis.client.runtime.SessionFactoryImpl.getRepositories(SessionFactoryImpl.java:108)
   at org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl.getRepository(GuestSessionFactoryImpl.java:105)
   at org.alfresco.wcm.client.util.impl.GuestSessionFactoryImpl.run(GuestSessionFactoryImpl.java:115)
   at java.lang.Thread.run(Thread.java:619)

On restart, I can access the site, but whenever I try to load the document library or the document itself, tomcat crashes again. The only solution is to delete the whole site.

I could not identify, what the problem is, since there are different PDF files causing the problem, having nothing special in common (no big size, text, pictures etc., some are to PDF converted PPT slides).  I tested this on two different machines (Windows Server 2008, XP), the problem occured on both.

I first thought, it would be a problem with Flash and mutliple file upload or not enough memory for the JVM. Uploading every single file in some directories lead me to those files causing the problem.

I installed 3.3g (which apperently has some issues regarding IE8 / Flash 10) and did not have the problem, uploading, preview etc. is working fine.

I found some (unsolved) threads with similar problems, but no solution yet. Can anybody help?
28 REPLIES 28

robert_kelly
Champ in-the-making
Champ in-the-making
So it looks like ALF-5190 was opened and closed because they couldn't reproduce it.

I am seeing the same JVM crash on Ubuntu 10.04 Serve LTS on Java 1.6.0_22 64-bit from their partner repository.
I also tried Java 1.6 u21 from Oracle directly with the same results.

This crash happens not on upload directly, but when a preview is being generated for certain PDF files.

It would seem unlikely that this is an Alfresco error since it's happening in native code, but this error is causing Alfresco to be unusable.

robert_kelly
Champ in-the-making
Champ in-the-making
Thinking that the preview was the trigger, I disabled the preview via:
 
<config evaluator="string-compare" condition="DocumentDetails">
      <document-details>
         <!– display web previewer on document details page –>
         <display-web-preview>false</display-web-preview>
      </document-details>
   </config>
in share-config.xml.
Even without the preview enabled, when that document page is accessed, the JVM crashes.

Any suggestions for a work-around?
I'd really like to keep the site from crashing. At this point, I really don't care what other features we need to turn off to keep this running.

robert_kelly
Champ in-the-making
Champ in-the-making
Looks like a nasty Sun JVM bug.
I switched to OpenJDK
apt-get install openjdk-6-jre
and all is well.

goldmar
Champ in-the-making
Champ in-the-making
Hello!

Same problem here (with Ubuntu 10.04 Server LTS and Java 1.6.0_22 64-bit from the partner repository). It crashed 5 times today - but it seems to only happen with certain pdf files - because we did not have a crash for weeks.

I'll try switching to OpenJDK, too…

mhmorys
Champ in-the-making
Champ in-the-making
I deinstalled JDK 1.6.0_22 and installed OpenJDK  (jdk-7-ea-bin-b117) on windows. Tomcat keeps crashing…

leonk
Champ in-the-making
Champ in-the-making
We're experiencing the same problem with Community edition ver. 3.4.b and 3.4.a

I reckon this bug should be urgently resolved by developers.
Single PDF can bring down the whole system.

Thanks to Guy-Pierre Boucher I could resolve the crashes - https://issues.alfresco.com/jira/browse/ALF-5423

I looks like it is caused by PDFbox
Renaming ./alfresco/WEB-INF/lib/pdfbox-1.2.1.jar.off and
./alfresco/WEB-INF/lib/fontbox-1.2.1.jar.off
and copying
./alfresco/WEB-INF/lib/pdfbox-1.3.0.jar
./alfresco/WEB-INF/lib/fontbox-1.3.0.jar
Did stop the fatal error. However, I do known that I'll have to modify some Alfresco classes to really use 1.3.0.

jriker1
Champ in-the-making
Champ in-the-making
Samo here.  3.4.a and 3.4.b both crash randomly when PDF's are uploaded to the system.  Brings down the entire environment.  Was the Jira reopened or does someone else need to submit one? 

Thanks.

JR

goldmar
Champ in-the-making
Champ in-the-making
Switching to OpenJDK solved it for me (with Alfresco CE 3.4 a).

jriker1
Champ in-the-making
Champ in-the-making
Switching to OpenJDK solved it for me (with Alfresco CE 3.4 a).

Is that supported?

mthomas
Champ in-the-making
Champ in-the-making
I'm on 3.4a community.  Same problem.
I have had to tell my users to stop uploading pdfs for the time being.
It sure would be nice to have this fixed soon.