Error in Rebuild Lucene Indexes

We tried to make OpenKM as intuitive as possible, but an advice is always welcome.
Forum rules
Please, before asking something see the documentation wiki or use the search feature of the forum. And remember we don't have a crystal ball or mental readers, so if you post about an issue tell us which OpenKM are you using and also the browser and operating system version. For more info read How to Report Bugs Effectively.
Post Reply
deep2468
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Nov 02, 2020 8:34 am

Error in Rebuild Lucene Indexes

Post by deep2468 »

Dear Friend,

I am not getting proper search results so I was trying to rebuild lucene index from administration tab however I am getting error after 4 %(Error Msg:=> Exception: Exception while calling bridge#set class: com.openkm.dao.bean.NodeDocument path: properties field bridge: properties )

Kindly help.
jllort
Moderator
Moderator
Posts: 11512
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Error in Rebuild Lucene Indexes

Post by jllort »

How many files do you have in the repository?
What is your current OpenKM version?
deep2468
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Nov 02, 2020 8:34 am

Re: Error in Rebuild Lucene Indexes

Post by deep2468 »

jllort wrote: Thu Mar 11, 2021 7:50 am How many files do you have in the repository?
What is your current OpenKM version?
OpenKM version = 6.3.10 (build: 1aaa1f2)

Number of file
I did not have much file right now in Openkm since I am using openkm just to learn how it work and what we can do with this.
however I have synchronized with my email.

Repository Properties SS attached
repository properties.png
repository properties.png (8.7 KiB) Viewed 675 times
deep2468
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Nov 02, 2020 8:34 am

Re: Error in Rebuild Lucene Indexes

Post by deep2468 »

Logcat

Code: Select all

1	2021-04-21 11:41:49,543 INFO BEGIN - Rebuild Lucene indexes
2	2021-04-21 11:41:49,715 INFO Number of NodeDocument: 3,849
3	2021-04-21 11:41:49,732 INFO Number of NodeFolder: 1,092
4	2021-04-21 11:41:49,780 INFO Number of NodeMail: 6,737
5	2021-04-21 11:41:50,078 INFO NodeDocument progress 0%%
6	2021-04-21 11:41:50,158 INFO NodeDocument progress 1%%
7	2021-04-21 11:41:50,160 INFO NodeDocument progress 2%%
8	2021-04-21 11:41:50,161 INFO NodeDocument progress 3%%
9	2021-04-21 11:41:50,162 INFO NodeDocument progress 4%%
10	2021-04-21 11:41:50,163 INFO NodeDocument progress 5%%
11	2021-04-21 11:41:50,164 INFO NodeDocument progress 6%%
12	2021-04-21 11:41:50,165 INFO NodeDocument progress 7%%
13	2021-04-21 11:41:50,171 INFO NodeDocument progress 8%%
14	2021-04-21 11:41:50,466 INFO NodeDocument progress 9%%
15	2021-04-21 11:41:50,467 INFO NodeDocument progress 10%%
16	2021-04-21 11:41:50,468 INFO NodeDocument progress 11%%
17	2021-04-21 11:41:50,469 INFO NodeDocument progress 12%%
18	2021-04-21 11:41:50,472 INFO NodeDocument progress 13%%
19	2021-04-21 11:41:50,473 INFO NodeDocument progress 14%%
20	2021-04-21 11:41:50,474 INFO NodeDocument progress 15%%
21	2021-04-21 11:41:50,765 INFO NodeDocument progress 16%%
22	2021-04-21 11:41:50,768 INFO NodeDocument progress 17%%
23	2021-04-21 11:41:50,769 INFO NodeDocument progress 18%%
24	2021-04-21 11:41:50,770 INFO NodeDocument progress 19%%
25	2021-04-21 11:41:50,772 INFO NodeDocument progress 20%%
26	2021-04-21 11:41:50,773 INFO NodeDocument progress 21%%
27	2021-04-21 11:41:50,774 INFO NodeDocument progress 22%%
28	2021-04-21 11:41:50,775 INFO NodeDocument progress 23%%
29	2021-04-21 11:41:51,563 INFO NodeDocument progress 24%%
30	2021-04-21 11:41:51,564 INFO NodeDocument progress 25%%
31	2021-04-21 11:41:51,564 INFO NodeDocument progress 26%%
32	2021-04-21 11:41:51,565 INFO NodeDocument progress 27%%
33	2021-04-21 11:41:51,565 INFO NodeDocument progress 28%%
34	2021-04-21 11:41:51,566 INFO NodeDocument progress 29%%
35	2021-04-21 11:41:51,567 INFO NodeDocument progress 30%%
36	2021-04-21 11:41:51,568 INFO NodeDocument progress 31%%
37	2021-04-21 11:41:51,991 INFO NodeDocument progress 32%%
38	2021-04-21 11:41:51,992 INFO NodeDocument progress 33%%
39	2021-04-21 11:41:51,994 INFO NodeDocument progress 34%%
40	2021-04-21 11:41:51,995 INFO NodeDocument progress 35%%
41	2021-04-21 11:41:51,995 INFO NodeDocument progress 36%%
42	2021-04-21 11:41:51,996 INFO NodeDocument progress 37%%
43	2021-04-21 11:41:51,997 INFO NodeDocument progress 38%%
44	2021-04-21 11:41:51,998 INFO NodeDocument progress 39%%
45	2021-04-21 11:41:52,213 ERROR org.hibernate.search.bridge.BridgeException: Exception while calling bridge#set
46	class: com.openkm.dao.bean.NodeDocument
47	path: properties
48	field bridge: properties
49	at org.hibernate.search.bridge.util.ContextualExceptionBridge.buildBridgeException(ContextualExceptionBridge.java:78)
50	at org.hibernate.search.bridge.util.ContextualExceptionBridge.set(ContextualExceptionBridge.java:86)
51	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.buildDocumentFields(DocumentBuilderIndexedEntity.java:481)
52	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.getDocument(DocumentBuilderIndexedEntity.java:443)
53	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.createAddWork(DocumentBuilderIndexedEntity.java:380)
54	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.addWorkToQueue(DocumentBuilderIndexedEntity.java:358)
55	at org.hibernate.search.engine.WorkPlan$PerEntityWork.enqueueLuceneWork(WorkPlan.java:456)
56	at org.hibernate.search.engine.WorkPlan$PerClassWork.enqueueLuceneWork(WorkPlan.java:257)
57	at org.hibernate.search.engine.WorkPlan.getPlannedLuceneWork(WorkPlan.java:150)
58	at org.hibernate.search.backend.WorkQueue.prepareWorkPlan(WorkQueue.java:134)
59	at org.hibernate.search.backend.impl.BatchedQueueingProcessor.prepareWorks(BatchedQueueingProcessor.java:124)
60	at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.flushWorks(PostTransactionWorkQueueSynchronization.java:127)
61	at org.hibernate.search.backend.impl.TransactionalWorker.flushWorks(TransactionalWorker.java:112)
62	at org.hibernate.search.impl.FullTextSessionImpl.flushToIndexes(FullTextSessionImpl.java:134)
63	at com.openkm.servlet.admin.RebuildIndexesServlet.luceneIndexesFlushToIndexes(RebuildIndexesServlet.java:239)
64	at com.openkm.servlet.admin.RebuildIndexesServlet.luceneIndexes(RebuildIndexesServlet.java:170)
65	at com.openkm.servlet.admin.RebuildIndexesServlet.doGet(RebuildIndexesServlet.java:92)
66	at com.openkm.servlet.admin.RebuildIndexesServlet.service(RebuildIndexesServlet.java:75)
67	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
68	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
69	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
70	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
71	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
72	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
73	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
74	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
75	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
76	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
77	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
78	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
79	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
80	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
81	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
82	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
83	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
84	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
85	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
86	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
87	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
88	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
89	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
90	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
91	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
92	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
93	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
94	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
95	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
96	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
97	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
98	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
99	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
100	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
101	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
102	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
103	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
104	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
105	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
106	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
107	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
108	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
109	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
110	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
111	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
112	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
113	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
114	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
115	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
116	at java.lang.Thread.run(Unknown Source)
117	Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was NUMBER at line 1 column 7
118	at com.google.gson.Gson.fromJson(Gson.java:815)
119	at com.google.gson.Gson.fromJson(Gson.java:768)
120	at com.google.gson.Gson.fromJson(Gson.java:717)
121	at com.google.gson.Gson.fromJson(Gson.java:689)
122	at com.openkm.module.db.stuff.SetPropertiesFieldBridge.set(SetPropertiesFieldBridge.java:71)
123	at org.hibernate.search.bridge.util.ContextualExceptionBridge.set(ContextualExceptionBridge.java:83)
124	... 66 more
125	Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was NUMBER at line 1 column 7
126	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338)
127	at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70)
128	at com.google.gson.Gson.fromJson(Gson.java:803)
129	... 71 more
130	
131	2021-04-21 11:41:52,214 INFO END - Rebuild Lucene indexes
132	2021-04-21 17:27:38,982 INFO BEGIN - Rebuild Lucene indexes
133	2021-04-21 17:27:39,163 INFO Number of NodeDocument: 3,851
134	2021-04-21 17:27:39,179 INFO Number of NodeFolder: 1,092
135	2021-04-21 17:27:39,229 INFO Number of NodeMail: 6,738
136	2021-04-21 17:27:39,518 INFO NodeDocument progress 0%%
137	2021-04-21 17:27:39,854 INFO NodeDocument progress 1%%
138	2021-04-21 17:27:39,856 INFO NodeDocument progress 2%%
139	2021-04-21 17:27:39,863 INFO NodeDocument progress 3%%
140	2021-04-21 17:27:39,865 INFO NodeDocument progress 4%%
141	2021-04-21 17:27:39,867 INFO NodeDocument progress 5%%
142	2021-04-21 17:27:39,870 INFO NodeDocument progress 6%%
143	2021-04-21 17:27:39,875 INFO NodeDocument progress 7%%
144	2021-04-21 17:27:39,877 INFO NodeDocument progress 8%%
145	2021-04-21 17:27:40,393 INFO NodeDocument progress 9%%
146	2021-04-21 17:27:40,396 INFO NodeDocument progress 10%%
147	2021-04-21 17:27:40,402 INFO NodeDocument progress 11%%
148	2021-04-21 17:27:40,404 INFO NodeDocument progress 12%%
149	2021-04-21 17:27:40,406 INFO NodeDocument progress 13%%
150	2021-04-21 17:27:40,409 INFO NodeDocument progress 14%%
151	2021-04-21 17:27:40,411 INFO NodeDocument progress 15%%
152	2021-04-21 17:27:40,870 INFO NodeDocument progress 16%%
153	2021-04-21 17:27:40,871 INFO NodeDocument progress 17%%
154	2021-04-21 17:27:40,873 INFO NodeDocument progress 18%%
155	2021-04-21 17:27:40,875 INFO NodeDocument progress 19%%
156	2021-04-21 17:27:40,877 INFO NodeDocument progress 20%%
157	2021-04-21 17:27:40,879 INFO NodeDocument progress 21%%
158	2021-04-21 17:27:40,880 INFO NodeDocument progress 22%%
159	2021-04-21 17:27:40,882 INFO NodeDocument progress 23%%
160	2021-04-21 17:27:41,376 INFO NodeDocument progress 24%%
161	2021-04-21 17:27:41,377 INFO NodeDocument progress 25%%
162	2021-04-21 17:27:41,378 INFO NodeDocument progress 26%%
163	2021-04-21 17:27:41,379 INFO NodeDocument progress 27%%
164	2021-04-21 17:27:41,380 INFO NodeDocument progress 28%%
165	2021-04-21 17:27:41,382 INFO NodeDocument progress 29%%
166	2021-04-21 17:27:41,383 INFO NodeDocument progress 30%%
167	2021-04-21 17:27:41,385 INFO NodeDocument progress 31%%
168	2021-04-21 17:27:41,767 INFO NodeDocument progress 32%%
169	2021-04-21 17:27:41,772 INFO NodeDocument progress 33%%
170	2021-04-21 17:27:41,776 INFO NodeDocument progress 34%%
171	2021-04-21 17:27:41,777 INFO NodeDocument progress 35%%
172	2021-04-21 17:27:41,779 INFO NodeDocument progress 36%%
173	2021-04-21 17:27:41,781 INFO NodeDocument progress 37%%
174	2021-04-21 17:27:41,782 INFO NodeDocument progress 38%%
175	2021-04-21 17:27:41,784 INFO NodeDocument progress 39%%
176	2021-04-21 17:27:41,995 ERROR org.hibernate.search.bridge.BridgeException: Exception while calling bridge#set
177	class: com.openkm.dao.bean.NodeDocument
178	path: properties
179	field bridge: properties
180	at org.hibernate.search.bridge.util.ContextualExceptionBridge.buildBridgeException(ContextualExceptionBridge.java:78)
181	at org.hibernate.search.bridge.util.ContextualExceptionBridge.set(ContextualExceptionBridge.java:86)
182	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.buildDocumentFields(DocumentBuilderIndexedEntity.java:481)
183	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.getDocument(DocumentBuilderIndexedEntity.java:443)
184	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.createAddWork(DocumentBuilderIndexedEntity.java:380)
185	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.addWorkToQueue(DocumentBuilderIndexedEntity.java:358)
186	at org.hibernate.search.engine.WorkPlan$PerEntityWork.enqueueLuceneWork(WorkPlan.java:456)
187	at org.hibernate.search.engine.WorkPlan$PerClassWork.enqueueLuceneWork(WorkPlan.java:257)
188	at org.hibernate.search.engine.WorkPlan.getPlannedLuceneWork(WorkPlan.java:150)
189	at org.hibernate.search.backend.WorkQueue.prepareWorkPlan(WorkQueue.java:134)
190	at org.hibernate.search.backend.impl.BatchedQueueingProcessor.prepareWorks(BatchedQueueingProcessor.java:124)
191	at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.flushWorks(PostTransactionWorkQueueSynchronization.java:127)
192	at org.hibernate.search.backend.impl.TransactionalWorker.flushWorks(TransactionalWorker.java:112)
193	at org.hibernate.search.impl.FullTextSessionImpl.flushToIndexes(FullTextSessionImpl.java:134)
194	at com.openkm.servlet.admin.RebuildIndexesServlet.luceneIndexesFlushToIndexes(RebuildIndexesServlet.java:239)
195	at com.openkm.servlet.admin.RebuildIndexesServlet.luceneIndexes(RebuildIndexesServlet.java:170)
196	at com.openkm.servlet.admin.RebuildIndexesServlet.doGet(RebuildIndexesServlet.java:92)
197	at com.openkm.servlet.admin.RebuildIndexesServlet.service(RebuildIndexesServlet.java:75)
198	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
199	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
200	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
201	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
202	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
203	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
204	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
205	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
206	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
207	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
208	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
209	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
210	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
211	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
212	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
213	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
214	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
215	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
216	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
217	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
218	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
219	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
220	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
221	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
222	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
223	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
224	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
225	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
226	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
227	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
228	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
229	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
230	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
231	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
232	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
233	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
234	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
235	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
236	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
237	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
238	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
239	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
240	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
241	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
242	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
243	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
244	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
245	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
246	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
247	at java.lang.Thread.run(Unknown Source)
248	Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was NUMBER at line 1 column 7
249	at com.google.gson.Gson.fromJson(Gson.java:815)
250	at com.google.gson.Gson.fromJson(Gson.java:768)
251	at com.google.gson.Gson.fromJson(Gson.java:717)
252	at com.google.gson.Gson.fromJson(Gson.java:689)
253	at com.openkm.module.db.stuff.SetPropertiesFieldBridge.set(SetPropertiesFieldBridge.java:71)
254	at org.hibernate.search.bridge.util.ContextualExceptionBridge.set(ContextualExceptionBridge.java:83)
255	... 66 more
256	Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was NUMBER at line 1 column 7
257	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338)
258	at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70)
259	at com.google.gson.Gson.fromJson(Gson.java:803)
260	... 71 more
261	
262	2021-04-21 17:27:41,996 INFO END - Rebuild Lucene indexes
263	2021-04-21 17:30:04,349 INFO BEGIN - Rebuild text extraction
264	2021-04-21 17:30:10,851 INFO NodeDocument progress 0%%
265	2021-04-21 17:30:13,409 INFO NodeDocument progress 1%%
266	2021-04-21 17:30:16,085 INFO NodeDocument progress 2%%
267	2021-04-21 17:30:20,284 INFO NodeDocument progress 3%%
268	2021-04-21 17:30:21,812 INFO NodeDocument progress 4%%
269	2021-04-21 17:30:22,443 INFO NodeDocument progress 5%%
270	2021-04-21 17:30:26,700 INFO NodeDocument progress 6%%
271	2021-04-21 17:30:28,047 INFO NodeDocument progress 7%%
272	2021-04-21 17:30:32,500 INFO NodeDocument progress 8%%
273	2021-04-21 17:30:33,780 INFO NodeDocument progress 9%%
274	2021-04-21 17:30:34,908 INFO NodeDocument progress 10%%
275	2021-04-21 17:30:37,906 INFO NodeDocument progress 11%%
276	2021-04-21 17:30:38,978 INFO NodeDocument progress 12%%
277	2021-04-21 17:30:41,507 INFO NodeDocument progress 13%%
278	2021-04-21 17:30:42,413 INFO NodeDocument progress 14%%
279	2021-04-21 17:30:43,424 INFO NodeDocument progress 15%%
280	2021-04-21 17:30:46,091 INFO NodeDocument progress 16%%
281	2021-04-21 17:30:47,175 INFO NodeDocument progress 17%%
282	2021-04-21 17:30:47,804 INFO NodeDocument progress 18%%
283	2021-04-21 17:30:50,254 INFO NodeDocument progress 19%%
284	2021-04-21 17:30:51,357 INFO NodeDocument progress 20%%
285	2021-04-21 17:30:53,492 INFO NodeDocument progress 21%%
286	2021-04-21 17:30:53,933 INFO NodeDocument progress 22%%
287	2021-04-21 17:30:54,887 INFO NodeDocument progress 23%%
288	2021-04-21 17:30:57,335 INFO NodeDocument progress 24%%
289	2021-04-21 17:30:57,912 INFO NodeDocument progress 25%%
290	2021-04-21 17:31:00,318 INFO NodeDocument progress 26%%
291	2021-04-21 17:31:01,236 INFO NodeDocument progress 27%%
292	2021-04-21 17:31:01,862 INFO NodeDocument progress 28%%
293	2021-04-21 17:31:03,979 INFO NodeDocument progress 29%%
294	2021-04-21 17:31:04,532 INFO NodeDocument progress 30%%
295	2021-04-21 17:31:05,322 INFO NodeDocument progress 31%%
296	2021-04-21 17:31:08,189 INFO NodeDocument progress 32%%
297	2021-04-21 17:31:08,605 INFO NodeDocument progress 33%%
298	2021-04-21 17:31:10,648 INFO NodeDocument progress 34%%
299	2021-04-21 17:31:11,132 INFO NodeDocument progress 35%%
300	2021-04-21 17:36:43,773 INFO BEGIN - Indexes optimization
301	2021-04-21 17:36:43,933 INFO END - Indexes optimization
302	2021-04-21 17:36:58,032 INFO BEGIN - Rebuild text extraction
303	2021-04-21 17:36:58,097 INFO END - Rebuild text extraction
304	2021-04-21 17:37:11,371 INFO BEGIN - Rebuild Lucene indexes
305	2021-04-21 17:37:11,485 INFO Number of NodeDocument: 3,851
306	2021-04-21 17:37:11,498 INFO Number of NodeFolder: 1,092
307	2021-04-21 17:37:11,553 INFO Number of NodeMail: 6,738
308	2021-04-21 17:37:11,808 INFO NodeDocument progress 0%%
309	2021-04-21 17:37:11,851 INFO NodeDocument progress 1%%
310	2021-04-21 17:37:11,852 INFO NodeDocument progress 2%%
311	2021-04-21 17:37:11,853 INFO NodeDocument progress 3%%
312	2021-04-21 17:37:11,855 INFO NodeDocument progress 4%%
313	2021-04-21 17:37:11,856 INFO NodeDocument progress 5%%
314	2021-04-21 17:37:11,857 INFO NodeDocument progress 6%%
315	2021-04-21 17:37:11,858 INFO NodeDocument progress 7%%
316	2021-04-21 17:37:11,859 INFO NodeDocument progress 8%%
317	2021-04-21 17:37:12,032 INFO NodeDocument progress 9%%
318	2021-04-21 17:37:12,033 INFO NodeDocument progress 10%%
319	2021-04-21 17:37:12,035 INFO NodeDocument progress 11%%
320	2021-04-21 17:37:12,036 INFO NodeDocument progress 12%%
321	2021-04-21 17:37:12,038 INFO NodeDocument progress 13%%
322	2021-04-21 17:37:12,038 INFO NodeDocument progress 14%%
323	2021-04-21 17:37:12,039 INFO NodeDocument progress 15%%
324	2021-04-21 17:37:12,184 INFO NodeDocument progress 16%%
325	2021-04-21 17:37:12,186 INFO NodeDocument progress 17%%
326	2021-04-21 17:37:12,187 INFO NodeDocument progress 18%%
327	2021-04-21 17:37:12,188 INFO NodeDocument progress 19%%
328	2021-04-21 17:37:12,189 INFO NodeDocument progress 20%%
329	2021-04-21 17:37:12,190 INFO NodeDocument progress 21%%
330	2021-04-21 17:37:12,191 INFO NodeDocument progress 22%%
331	2021-04-21 17:37:12,192 INFO NodeDocument progress 23%%
332	2021-04-21 17:37:12,365 INFO NodeDocument progress 24%%
333	2021-04-21 17:37:12,366 INFO NodeDocument progress 25%%
334	2021-04-21 17:37:12,367 INFO NodeDocument progress 26%%
335	2021-04-21 17:37:12,368 INFO NodeDocument progress 27%%
336	2021-04-21 17:37:12,370 INFO NodeDocument progress 28%%
337	2021-04-21 17:37:12,371 INFO NodeDocument progress 29%%
338	2021-04-21 17:37:12,371 INFO NodeDocument progress 30%%
339	2021-04-21 17:37:12,372 INFO NodeDocument progress 31%%
340	2021-04-21 17:37:13,307 INFO NodeDocument progress 32%%
341	2021-04-21 17:37:13,308 INFO NodeDocument progress 33%%
342	2021-04-21 17:37:13,309 INFO NodeDocument progress 34%%
343	2021-04-21 17:37:13,309 INFO NodeDocument progress 35%%
344	2021-04-21 17:37:13,310 INFO NodeDocument progress 36%%
345	2021-04-21 17:37:13,311 INFO NodeDocument progress 37%%
346	2021-04-21 17:37:13,312 INFO NodeDocument progress 38%%
347	2021-04-21 17:37:13,313 INFO NodeDocument progress 39%%
348	2021-04-21 17:37:13,450 ERROR org.hibernate.search.bridge.BridgeException: Exception while calling bridge#set
349	class: com.openkm.dao.bean.NodeDocument
350	path: properties
351	field bridge: properties
352	at org.hibernate.search.bridge.util.ContextualExceptionBridge.buildBridgeException(ContextualExceptionBridge.java:78)
353	at org.hibernate.search.bridge.util.ContextualExceptionBridge.set(ContextualExceptionBridge.java:86)
354	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.buildDocumentFields(DocumentBuilderIndexedEntity.java:481)
355	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.getDocument(DocumentBuilderIndexedEntity.java:443)
356	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.createAddWork(DocumentBuilderIndexedEntity.java:380)
357	at org.hibernate.search.engine.DocumentBuilderIndexedEntity.addWorkToQueue(DocumentBuilderIndexedEntity.java:358)
358	at org.hibernate.search.engine.WorkPlan$PerEntityWork.enqueueLuceneWork(WorkPlan.java:456)
359	at org.hibernate.search.engine.WorkPlan$PerClassWork.enqueueLuceneWork(WorkPlan.java:257)
360	at org.hibernate.search.engine.WorkPlan.getPlannedLuceneWork(WorkPlan.java:150)
361	at org.hibernate.search.backend.WorkQueue.prepareWorkPlan(WorkQueue.java:134)
362	at org.hibernate.search.backend.impl.BatchedQueueingProcessor.prepareWorks(BatchedQueueingProcessor.java:124)
363	at org.hibernate.search.backend.impl.PostTransactionWorkQueueSynchronization.flushWorks(PostTransactionWorkQueueSynchronization.java:127)
364	at org.hibernate.search.backend.impl.TransactionalWorker.flushWorks(TransactionalWorker.java:112)
365	at org.hibernate.search.impl.FullTextSessionImpl.flushToIndexes(FullTextSessionImpl.java:134)
366	at com.openkm.servlet.admin.RebuildIndexesServlet.luceneIndexesFlushToIndexes(RebuildIndexesServlet.java:239)
367	at com.openkm.servlet.admin.RebuildIndexesServlet.luceneIndexes(RebuildIndexesServlet.java:170)
368	at com.openkm.servlet.admin.RebuildIndexesServlet.doGet(RebuildIndexesServlet.java:92)
369	at com.openkm.servlet.admin.RebuildIndexesServlet.service(RebuildIndexesServlet.java:75)
370	at javax.servlet.http.HttpServlet.service(HttpServlet.java:742)
371	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:231)
372	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
373	at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)
374	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
375	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
376	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)
377	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)
378	at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)
379	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
380	at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)
381	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
382	at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)
383	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
384	at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)
385	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
386	at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:154)
387	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
388	at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)
389	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
390	at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)
391	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
392	at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:50)
393	at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:106)
394	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
395	at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)
396	at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)
397	at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)
398	at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)
399	at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:343)
400	at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:260)
401	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
402	at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
403	at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)
404	at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
405	at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:493)
406	at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)
407	at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:81)
408	at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:650)
409	at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)
410	at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:342)
411	at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:800)
412	at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)
413	at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:806)
414	at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1498)
415	at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
416	at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
417	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
418	at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
419	at java.lang.Thread.run(Unknown Source)
420	Caused by: com.google.gson.JsonSyntaxException: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was NUMBER at line 1 column 7
421	at com.google.gson.Gson.fromJson(Gson.java:815)
422	at com.google.gson.Gson.fromJson(Gson.java:768)
423	at com.google.gson.Gson.fromJson(Gson.java:717)
424	at com.google.gson.Gson.fromJson(Gson.java:689)
425	at com.openkm.module.db.stuff.SetPropertiesFieldBridge.set(SetPropertiesFieldBridge.java:71)
426	at org.hibernate.search.bridge.util.ContextualExceptionBridge.set(ContextualExceptionBridge.java:83)
427	... 66 more
428	Caused by: java.lang.IllegalStateException: Expected BEGIN_ARRAY but was NUMBER at line 1 column 7
429	at com.google.gson.stream.JsonReader.beginArray(JsonReader.java:338)
430	at com.google.gson.internal.bind.ArrayTypeAdapter.read(ArrayTypeAdapter.java:70)
431	at com.google.gson.Gson.fromJson(Gson.java:803)
432	... 71 more
433	
434	2021-04-21 17:37:13,451 INFO END - Rebuild Lucene indexes
Attachments
RebuildIndexesServlet_20210421.zip
(3.38 KiB) Downloaded 20 times
jllort
Moderator
Moderator
Posts: 11512
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Error in Rebuild Lucene Indexes

Post by jllort »

Seems caused by wrong metadata values. I suspect you have some metadata of type input or similar what later have been changed to select. Select values are stored in the database like ["value"] meanwhile input is stored as "value" ... I suspect that might be the reason why it is raising this error.

I suggest looking in the table OKM_NODE_PROPERY for fields of type select ( filter by them ) that do not start with [" and do not be empty maybe you'll discover the problematic file.

Also, clean the trash of the users, maybe old data that you do not pay attention to with these wrong values is located there.
deep2468
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Nov 02, 2020 8:34 am

Re: Error in Rebuild Lucene Indexes

Post by deep2468 »

Hi Jillort,

Thank you for your valuable reply

Yes as you said I have changed metadata from value to select.

Now as you directed I was looking for table OKM_NODE_PROPERY however I did not find it in my database

table name starting with OKM SS attached
Table starting with okm.png
kindly guide me to resolve this issue.
deep2468
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Nov 02, 2020 8:34 am

Re: Error in Rebuild Lucene Indexes

Post by deep2468 »

Sorry It was my bad
I found that tale and now looking for problematic file will update as it get resolve

Thank you.
deep2468
Fresh Boarder
Fresh Boarder
Posts: 12
Joined: Mon Nov 02, 2020 8:34 am

Re: Error in Rebuild Lucene Indexes

Post by deep2468 »

Index rebuilding completed!

Thank you so much problem resolved.
jllort
Moderator
Moderator
Posts: 11512
Joined: Fri Dec 21, 2007 11:23 am
Location: Sineu - ( Illes Balears ) - Spain
Contact:

Re: Error in Rebuild Lucene Indexes

Post by jllort »

We are happy you successfully solve the issue. The only problematic change for the indexer and OpenKM UI that should raise some error too is when you change XML definition to Select type -> that it requires migration.
Post Reply