SourceForge.net Logo
Main Overview Wiki Issues Forum Build Fisheye
Issue Details (XML | Word | Printable)

Key: CMP-944
Type: Bug Bug
Status: Open Open
Priority: Major Major
Assignee: Shay Banon
Reporter: oscar
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Compass

500.jsp java.lang.NullPointerException

Created: 12/Apr/14 07:19 AM   Updated: 12/Apr/14 07:19 AM
Component/s: None
Affects Version/s: 2.2.0 GA
Fix Version/s: None

Environment: Struts1 spring JPA Compass2.2.0


 Description  « Hide
Very crazy issue when I use Compass2.2.0

I use compass in my system. When I am doing the searching, all the results could come up. However, there is a 500.jsp java.lang.NullPointerException print in the console, which make me very crazy. I have tried both Compass2.1 and Compass2.2. The issue is always appeared.

Could anyone help me to solve the issue?

2);|2014-04-12 22:07:27,797 ERROR [500.jsp] - <>
java.lang.NullPointerException
at java.io.StringReader.<init>(StringReader.java:50)
at org.apache.lucene.queryParser.QueryParser.parse(QueryParser.java:167)

at org.compass.core.lucene.engine.queryparser.DefaultLuceneQueryParser.p
arse(DefaultLuceneQueryParser.java:96)
at org.compass.core.lucene.engine.query.LuceneSearchEngineQueryStringBui
lder.toQuery(LuceneSearchEngineQueryStringBuilder.java:99)
at org.compass.core.impl.DefaultCompassQueryBuilder$DefaultCompassQueryS
tringBuilder.toQuery(DefaultCompassQueryBuilder.java:179)
at org.compass.core.impl.DefaultCompassSession.find(DefaultCompassSessio
n.java:357)
at org.compass.core.impl.ExistingCompassSession.find(ExistingCompassSess
ion.java:301)
at cn.oscar.service.product.impl.ProductResultCallback.doInCompass(Produ
ctResultCallback.java:34)
at cn.oscar.service.product.impl.ProductResultCallback.doInCompass(Produ
ctResultCallback.java:16)
at org.compass.core.CompassTemplate.execute(CompassTemplate.java:133)
at cn.oscar.service.product.impl.ProductSearchServiceBean.search(Product
SearchServiceBean.java:38)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflecti
on(AopUtils.java:307)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJo
inpoint(ReflectiveMethodInvocation.java:182)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:149)
at org.springframework.transaction.interceptor.TransactionInterceptor.in
voke(TransactionInterceptor.java:106)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(
ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynami
cAopProxy.java:204)
at $Proxy681.search(Unknown Source)
at cn.oscar.web.action.product.ProductQueryAction.execute(ProductQueryAc
tion.java:49)
at org.apache.struts.action.RequestProcessor.processActionPerform(Reques
tProcessor.java:425)
at cn.oscar.web.action.privilege.PermissionProcessor.processActionPerfor
m(PermissionProcessor.java:35)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.ja
va:228)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:191
3)
at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:449)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:668)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:770)
at org.apache.catalina.core.StandardWrapper.service(StandardWrapper.java
:1550)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:343)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:217)
at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doF
ilterInternal(OpenEntityManagerInViewFilter.java:112)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerR
equestFilter.java:76)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:217)
at cn.oscar.web.filter.SetCodeFilter.doFilter(SetCodeFilter.java:46)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(Appl
icationFilterChain.java:256)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationF
ilterChain.java:217)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperV
alve.java:279)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextV
alve.java:175)
at org.apache.catalina.core.StandardPipeline.doInvoke(StandardPipeline.j
ava:655)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.jav
a:595)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.j
ava:161)
at org.apache.catalina.connector.CoyoteAdapter.doService(CoyoteAdapter.j
ava:331)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.jav
a:231)
at com.sun.enterprise.v3.services.impl.ContainerMapper$AdapterCallable.c
all(ContainerMapper.java:317)
at com.sun.enterprise.v3.services.impl.ContainerMapper.service(Container
Mapper.java:195)
at com.sun.grizzly.http.ProcessorTask.invokeAdapter(ProcessorTask.java:8
60)
at com.sun.grizzly.http.ProcessorTask.doProcess(ProcessorTask.java:757)
at com.sun.grizzly.http.ProcessorTask.process(ProcessorTask.java:1056)
at com.sun.grizzly.http.DefaultProtocolFilter.execute(DefaultProtocolFil
ter.java:229)
at com.sun.grizzly.DefaultProtocolChain.executeProtocolFilter(DefaultPro
tocolChain.java:137)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:104)
at com.sun.grizzly.DefaultProtocolChain.execute(DefaultProtocolChain.jav
a:90)
at com.sun.grizzly.http.HttpProtocolChain.execute(HttpProtocolChain.java
:79)
at com.sun.grizzly.ProtocolChainContextTask.doCall(ProtocolChainContextT
ask.java:54)
at com.sun.grizzly.SelectionKeyContextTask.call(SelectionKeyContextTask.
java:59)
at com.sun.grizzly.ContextTask.run(ContextTask.java:71)
at com.sun.grizzly.util.AbstractThreadPool$Worker.doWork(AbstractThreadP
ool.java:532)
at com.sun.grizzly.util.AbstractThreadPool$Worker.run(AbstractThreadPool
.java:513)
at java.lang.Thread.run(Thread.java:722)

#]


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
There are no comments yet on this issue.