Foren

Home » Liferay Portal » English » 3. Development

Kombinierte Ansicht Flache Ansicht Baumansicht
Threads [ Zurück | Nächste ]
toggle
rajiv jackz
NullPointerException at search.lucene.IndexAccessorImpl._write
10. August 2011 20:42
Antwort

rajiv jackz

Rang: Junior Member

Nachrichten: 89

Eintrittsdatum: 18. Mai 2011

Neue Beiträge

Hi
when i add new portlet using SearchEngineUtil.Search with boolean query

I get following error? why? how to overcome this? i get this error for few portlets name. All portlet dispappeared



[#|2011-08-11T04:46:28.448+0300|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=13;_ThreadName=liferay/search_writer;|04:46:28,447 ERROR [SearchWriterMessageListener:36] Unable to process message {destinationName=liferay/search_writer, responseDestinationName=null, responseId=null, payload={searchEngineCommand=UPDATE, companyId=0, id=PluginPackageIndexer_PORTLET_liferay-ee/google-maps-portlet/5.2.6.1/war, document={uid=[PluginPackageIndexer_PORTLET_liferay-ee/google-maps-portlet/5.2.6.1/war], moduleId=[liferay-ee/google-maps-portlet/5.2.6.1/war], installedVersion=, status=, tag=, artifactId=[google-maps-portlet], osi-approved-license=, type=, modified=[20100226205210], version=[5.2.6.1], content=[Google Maps Liferay, Inc. This portlet allows easy integration with Google Maps. ], groupId=[liferay-ee], author=[Liferay, Inc.], title=[Google Maps], repositoryURL=[http://plugins.liferay.com/enterprise], shortDescription=[This portlet allows easy integration with Google Maps.], portletId=[PluginPackageIndexer], license=, changeLog=[Adapted for the latest version of Liferay.]}, query=null, sorts=null, start=0, end=0}, values=null}
java.lang.NullPointerException
at com.liferay.portal.search.lucene.IndexAccessorImpl._write(IndexAccessorImpl.java:503)

at com.liferay.portal.search.lucene.IndexAccessorImpl.updateDocument(IndexAccessorImpl.java:171)
at com.liferay.portal.search.lucene.LuceneHelperImpl.updateDocument(LuceneHelperImpl.java:245)
at com.liferay.portal.search.lucene.LuceneHelperUtil.updateDocument(LuceneHelperUtil.java:200)
at com.liferay.portal.search.lucene.LuceneIndexWriterImpl.updateDocument(LuceneIndexWriterImpl.java:89)
at com.liferay.portal.kernel.search.messaging.SearchWriterMessageListener.doReceive(SearchWriterMessageListener.java:70)
at com.liferay.portal.kernel.search.messaging.SearchWriterMessageListener.receive(SearchWriterMessageListener.java:33)
at com.liferay.portal.kernel.messaging.InvokerMessageListener.receive(InvokerMessageListener.java:65)
at com.liferay.portal.kernel.messaging.ParallelDestination$1.run(ParallelDestination.java:63)
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:619)
|#]



and also i get error for all portlet like

[#|2011-08-11T04:46:39.945+0300|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=10;_ThreadName=main;|04:46:39,942 ERROR [PortletHotDeployListener:664] org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/opt/liferay/server/glassfish/domains/domain1/generated/jsp/j2ee-modules/web-forms/loader/ehcache-failsafe.xml. Initial cause was /opt/liferay/server/glassfish/domains/domain1/generated/jsp/j2ee-modules/web-forms/loader/ehcache-failsafe.xml (No such file or directory)
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [spring/applicationContext-jdbc.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: Error configuring from file:/opt/liferay/server/glassfish/domains/domain1/generated/jsp/j2ee-modules/web-forms/loader/ehcache-failsafe.xml. Initial cause was /opt/liferay/server/glassfish/domains/domain1/generated/jsp/j2ee-modules/web-forms/loader/ehcache-failsafe.xml (No such file or directory)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1412)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:519)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:291)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:288)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:190)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:557)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:276)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:197)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:47)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4655)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:5364)
at com.sun.enterprise.web.WebModule.start(WebModule.java:345)
at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
at com.sun.enterprise.web.VirtualServer.startChildren(VirtualServer.java:1762)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1244)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:971)
at com.sun.enterprise.web.LifecycleStarter.doRun(LifecycleStarter.java:58)
at com.sun.appserv.management.util.misc.RunnableBase.runSync(RunnableBase.java:304)
at com.sun.appserv.management.util.misc.RunnableBase._submit(RunnableBase.java:176)
at com.sun.appserv.management.util.misc.RunnableBase.submit(RunnableBase.java:192)
at com.sun.enterprise.web.EmbeddedWebContainer$WebEngine.startChildren(EmbeddedWebContainer.java:497)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1244)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:549)
at org.apache.catalina.startup.Embedded.start(Embedded.java:945)
at com.sun.enterprise.web.WebContainer.start(WebContainer.java:873)
at com.sun.enterprise.web.PEWebContainer.startInstance(PEWebContainer.java:793)
at com.sun.enterprise.web.PEWebContainerLifecycle.onStartup(PEWebContainerLifecycle.java:89)
at com.sun.enterprise.server.ApplicationServer.onStartup(ApplicationServer.java:449)
at com.sun.enterprise.server.ondemand.OnDemandServer.onStartup(OnDemandServer.java:134)
at com.sun.enterprise.server.PEMain.run(PEMain.java:409)
at com.sun.enterprise.server.PEMain.main(PEMain.java:336)
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.sun.enterprise.server.PELaunch.main(PELaunch.java:415)
Caused by: net.sf.ehcache.CacheException: Error configuring from file:/opt/liferay/server/glassfish/domains/domain1/generated/jsp/j2ee-modules/web-forms/loader/ehcache-failsafe.xml. Initial cause was /opt/liferay/server/glassfish/domains/domain1/generated/jsp/j2ee-modules/web-forms/loader/ehcache-failsafe.xml (No such file or directory)
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:95)
at net.sf.ehcache.config.ConfigurationFactory.parseConfiguration(ConfigurationFactory.java:131)
at net.sf.ehcache.CacheManager.parseConfiguration(CacheManager.java:241)
at net.sf.ehcache.CacheManager.init(CacheManager.java:190)
at net.sf.ehcache.CacheManager.<init>(CacheManager.java:157)
at net.sf.ehcache.CacheManager.create(CacheManager.java:413)
at net.sf.ehcache.hibernate.SingletonEhCacheProvider.start(SingletonEhCacheProvider.java:134)
at org.hibernate.impl.SessionFactoryImpl.<init>(SessionFactoryImpl.java:183)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1291)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:855)
at org.springframework.orm.hibernate3.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:774)
at org.springframework.orm.hibernate3.AbstractSessionFactoryBean.afterPropertiesSet(AbstractSessionFactoryBean.java:211)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1469)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1409)
... 42 more
|#]

and also i get

[#|2011-08-11T05:05:30.860+0300|INFO|sun-appserver2.1|javax.enterprise.system.stream.out|_ThreadID=19;_ThreadName=httpSSLWorkerThread-8080-3;|05:05:30,857 ERROR [PortletImpl:2130]
java.lang.IllegalArgumentException: Community Guest is not a regular role
at com.liferay.portal.service.impl.RoleLocalServiceImpl.hasUserRole(RoleLocalServiceImpl.java:329)
at com.liferay.portal.service.impl.RoleLocalServiceImpl.hasUserRoles(RoleLocalServiceImpl.java:355)
at sun.reflect.GeneratedMethodAccessor587.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)


same error repeatedly displayed for all portlets deployed.

How to overcome this , pls help me


Thanks
neelam bhandari
RE: NullPointerException at search.lucene.IndexAccessorImpl._write
12. Januar 2012 05:56
Antwort

neelam bhandari

Rang: Regular Member

Nachrichten: 102

Eintrittsdatum: 16. August 2011

Neue Beiträge

Hi ,
I am facing the same issue.Any solution?

Thanks and Regards
Neelam Bhandari
Miguel Ángel Júlvez
RE: NullPointerException at search.lucene.IndexAccessorImpl._write
29. Februar 2012 08:46
Antwort

Miguel Ángel Júlvez

Rang: Junior Member

Nachrichten: 56

Eintrittsdatum: 29. März 2011

Neue Beiträge

Hi all,

I got this error too. Do you know how fix it?

Regards
Hitoshi Ozawa
RE: NullPointerException at search.lucene.IndexAccessorImpl._write
29. Februar 2012 18:33
Antwort

Hitoshi Ozawa

Rang: Liferay Legend

Nachrichten: 7990

Eintrittsdatum: 23. März 2010

Neue Beiträge

Is this happening with you deploy a portlet you've developed or a portlet bundled with Liferay?

When you say that all portlet disappear, do you mean from a page or from a server (i.e. are undeployed)?
Are you able to drag & drop portlets back on to a page?