cancel
Showing results for 
Search instead for 
Did you mean: 

AIX + Websphere installation (Lucene Alfresco stack problem)

jmgab
Champ in-the-making
Champ in-the-making
Hy,

we are trying to deploy Alfresco 1.4 on AIX (5.3) for Websphere (6.1).

Unfortunately, we encounter the following exception (the cause is in bold) :

[21/02/07 15:51:41:384 GMT] 00000042 WebApp        E   Exception caught while initializing context
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed

com.ibm.io.async.AbstractAsyncFuture.invokeCallback(AbstractAsyncFuture.java:213)
   at com.ibm.io.async.AsyncChannelFuture$1.run(AsyncChannelFuture.java:163)
   at com.ibm.ws.util.ThreadPool$Worker.run(ThreadPool.java:1469)
Caused by: java.nio.BufferUnderflowException
   at java.nio.Buffer.nextGetIndex(Buffer.java:419)
   at java.nio.DirectByteBuffer.getLong(DirectByteBuffer.java:783)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.setStatusFromFile(IndexInfo.java:1489)
   at
org.alfresco.repo.search.impl.lucene.index.IndexInfo.setStatusFromFile(IndexInfo.java:1298)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.access$32(IndexInfo.java:1294)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo$2.doWork(IndexInfo.java:348)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.doWithFileLock(IndexInfo.java:1742)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.<init>(IndexInfo.java:344)
   at org.alfresco.repo.search.impl.lucene.index.IndexInfo.getIndexInfo(IndexInfo.java:243)
   at org.alfresco.repo.search.impl.lucene.LuceneBase2.initialise(LuceneBase2.java:97)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerImpl2.getUpdateIndexer(LuceneIndexerImpl2.java:477)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.createIndexer(LuceneIndexerAndSearcherFactory2.java:352)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.getThreadLocalIndexer(LuceneIndexerAndSearcherFactory2.java:309)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.getIndexer(LuceneIndexerAndSearcherFactory2.java:293)
   at org.alfresco.repo.search.impl.lucene.LuceneIndexerAndSearcherFactory2.getIndexer(LuceneIndexerAndSearcherFactory2.java:72)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:213)
   at $Proxy17.getIndexer(Unknown Source)
   at org.alfresco.repo.search.IndexerComponent.updateNode(IndexerComponent.java:51)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:335)
   at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:165)
   at $Proxy57.updateNode(Unknown Source)
   at org.alfresco.repo.node.index.NodeIndexer.onUpdateNode(NodeIndexer.java:96)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   at org.alfresco.repo.policy.JavaBehaviour$JavaMethodInvocationHandler.invoke(JavaBehaviour.java:243)
   at $Proxy60.onUpdateNode(Unknown Source)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   at org.alfresco.repo.policy.PolicyFactory$MultiHandler.invoke(PolicyFactory.java:243)
   at org.alfresco.repo.policy.$Proxy76.onUpdateNode(Unknown Source)
   at org.alfresco.repo.node.AbstractNodeServiceImpl.invokeOnUpdateNode(AbstractNodeServiceImpl.java:267)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.setProperties(DbNodeServiceImpl.java:889)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.addAspect(DbNodeServiceImpl.java:589)
   at org.alfresco.repo.node.db.DbNodeServiceImpl.createStore(DbNodeServiceImpl.java:193)
   at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
   at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:64)
   at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
   at java.lang.reflect.Method.invoke(Method.java:615)
   at org.alfresco.repo.service.StoreRedirectorProxyFactory$RedirectorInvocationHandler.invoke(StoreRedirectorProxyFactory.java:213)
   at $Proxy13.createStore(Unknown Source)
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:358)
   … 100 more

now, we don't know if it comes from the AIX file management system or from the IBM Jdk.

Anybody can give us some advices ?

For instance, it is possible to avoir Lucene index file locking ? (if it may be the effective cause …)

thanks a lot

JM

ps : it's working on Windows XP for the same Websphere (6.1).
14 REPLIES 14

jperez
Champ in-the-making
Champ in-the-making
Hi

Would you please tell me the steeps you did to deploy Alfresco 2 or 2.1 to WAS 6.1

I’m trying to deploy but I have this exception when I try to start the application:

[6/12/07 17:05:31:171 COT] 00000028 WebApp        A   SRVE0180I: [alfresco_war#alfresco.war] [/alfresco] [Servlet.LOG]: Loading Spring root
WebApplicationContext
[6/12/07 17:05:36:500 COT] 00000028 SystemOut     O 17:05:36,406 ERROR [web.context.ContextLoader] Context initialization failed
java.lang.NullPointerException
        at org.alfresco.util.RuntimeSystemPropertiesSetter.postProcessBeanFactory(RuntimeSystemPropertiesSetter.java:68)
        at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:38
0)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:302)
        at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableWebApplicationContext
.java:134)
        at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:246)
        at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:184)
        at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:49)
        at com.ibm.ws.wswebcontainer.webapp.WebApp.notifyServletContextCreated(WebApp.java:635)
        at com.ibm.ws.webcontainer.webapp.WebApp.commonInitializationFinish(WebApp.java:279)

Thanks in advance

andy
Champ on-the-rise
Champ on-the-rise
Hi

The steps are going on the wiki.

I have not seen you issue - my guess is it has something to do with logging. Make sure remove the commons-logging stuff in the alfresco distribution as it foes not agree with WAS.

I am still getting jsp error on mixed jstl/jsf pages

Andy

vipul
Champ in-the-making
Champ in-the-making
Hiya,

I am also having the exception (java.nio.BufferUnderflowException) on AIX/WebSphere7/DB2/Alfresc2.1.1E.
Can somebody suggest a solution for this issue?

I am gonna try "useNIOMemoryMapping = false;". But i am really concerned if it will have major side effect. (On load testing, clustering).
It will be great if anyone can suggest on this as well.

dward
Champ on-the-rise
Champ on-the-rise
See notes on http://wiki.alfresco.com/wiki/Installing_on_WebSphere

It is very important that before commencing installation, you update Websphere with all applicable service packs, including WASSDK (embedded JDK) patches. This is because Alfresco's optimized I/O code requires the very latest patches available from IBM and will not function on an unpatched Websphere 7 installation.

vipul
Champ in-the-making
Champ in-the-making
Thanks dward.
The wiki link is more on Alfresco 3.x releases on WebSphere 7, since I am using Alfresco 2.1.1 Enterprise, will it still require to have patched websphere?
The other link on wiki about installing older version of Alfresco, has instructions with reference to WebSphere 6.1
It will be great If you can also highlight effect on clustering and load testing using "useNIOMemoryMapping =false"