Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NPE in the search window for LONG/INT identity id entities #47

Closed
andreysubbotin opened this issue Nov 13, 2018 · 2 comments
Closed

NPE in the search window for LONG/INT identity id entities #47

andreysubbotin opened this issue Nov 13, 2018 · 2 comments
Assignees
Labels
state: fixed Fixed by the developer type: regression ver: 6.10.4 Fixed in version ver: 7.0.0 Fixed in version
Milestone

Comments

@andreysubbotin
Copy link

andreysubbotin commented Nov 13, 2018

https://www.cuba-platform.com/discuss/t/nullpointerexception-in-fts-add-on-with-integer-based-identity/7155

Environment

  • Platform version: 6.10.0

Description of the bug or enhancement

  • Minimal reproducible example
  • Create long/int identity entity in the model using Studio
  • Enable FTS for project
  • Start application
  • Create several identity entities. Reindex entity.
  • Try to search by this entity
  • Actual behavior
    Exception:
Caused by: java.lang.NullPointerException: null
	at com.haulmont.fts.core.sys.DatabaseDataLoader.mergeSearchData(DatabaseDataLoader.java:76) ~[na:na]
	at com.haulmont.fts.core.app.FtsServiceBean.searchByTerm(FtsServiceBean.java:212) ~[na:na]
	at com.haulmont.fts.core.app.FtsServiceBean.search(FtsServiceBean.java:57) ~[na:na]
	at com.haulmont.fts.app.FtsService.search(FtsService.java:28) ~[fts-global-6.10-SNAPSHOT.jar:6.10-SNAPSHOT]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_144]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_144]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_144]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_144]
	at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:333) ~[spring-aop-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190) ~[spring-aop-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157) ~[spring-aop-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92) ~[spring-aop-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) ~[spring-aop-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:213) ~[spring-aop-4.3.18.RELEASE.jar:4.3.18.RELEASE]
	at com.sun.proxy.$Proxy258.search(Unknown Source) ~[na:na]
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.8.0_144]
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[na:1.8.0_144]
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[na:1.8.0_144]
	at java.lang.reflect.Method.invoke(Method.java:498) ~[na:1.8.0_144]
	at com.haulmont.cuba.core.sys.remoting.LocalServiceInvokerImpl.invoke(LocalServiceInvokerImpl.java:94) ~[na:na]
	at com.haulmont.cuba.web.sys.remoting.LocalServiceProxy$LocalServiceInvocationHandler.invoke(LocalServiceProxy.java:154) ~[cuba-web-6.10-SNAPSHOT.jar:6.10-SNAPSHOT]
	at com.sun.proxy.$Proxy60.search(Unknown Source) ~[na:na]
	at com.haulmont.fts.web.ui.results.SearchLauncher.call(SearchLauncher.java:45) ~[fts-web-6.10-SNAPSHOT.jar:6.10-SNAPSHOT]
	at com.haulmont.fts.web.ui.results.SearchLauncher.call(SearchLauncher.java:23) ~[fts-web-6.10-SNAPSHOT.jar:6.10-SNAPSHOT]
	at com.haulmont.cuba.gui.WindowManager.createWindowByScreenClass(WindowManager.java:721) ~[cuba-gui-6.10-SNAPSHOT.jar:6.10-SNAPSHOT]
@andreysubbotin andreysubbotin added the type: bug Something isn't working label Nov 13, 2018
@andreysubbotin andreysubbotin added this to the Release 6.10 milestone Nov 13, 2018
@andreysubbotin andreysubbotin self-assigned this Nov 13, 2018
@andreysubbotin andreysubbotin changed the title NPE in the search window for LONG/STRING/INT id entities NPE in the search window for LONG/INT identity id entities Nov 14, 2018
@haulmont-git haulmont-git added the ver: 6.10.4 Fixed in version label Nov 14, 2018
@haulmont-git
Copy link

Git changesets by subbotin:

35d36f29 in release_6_10 - NPE in the search window for LONG/INT identity id entities #47

@haulmont-git
Copy link

Git changesets by subbotin:

9bc592af in master - NPE in the search window for LONG/INT identity id entities #47

@andreysubbotin andreysubbotin added type: regression and removed type: bug Something isn't working labels Nov 15, 2018
@natfirst natfirst added the state: fixed Fixed by the developer label Nov 15, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
state: fixed Fixed by the developer type: regression ver: 6.10.4 Fixed in version ver: 7.0.0 Fixed in version
Projects
None yet
Development

No branches or pull requests

3 participants