Ravi Ranjan Jha created SOLR-17370: -------------------------------------- Summary: Search with facets throws IllegalAccessException if some string fields contain numeric values Key: SOLR-17370 URL: https://issues.apache.org/jira/browse/SOLR-17370 Project: Solr Issue Type: Bug Security Level: Public (Default Security Level. Issues are Public) Affects Versions: 9.6.1, 9.5 Reporter: Ravi Ranjan Jha
Search with facets throws IllegalAccessException if some string fields contain numeric values. Below is example of one such field defined in the schema <field name="dv_device_code" type="string" termOffsets="false" stored="true" termPositions="false" docValues="false" termVectors="false" multiValued="true" storeOffsetsWithPositions="false"/> The same search with other facets works fine if this field is removed from the facet fields list. Unfortunately the client can't pinpoint the exact value of the attribute which causes the below exception but it seems to be more of a reflective call to method that is not accessible or non-existent. Full stack trace: 2024-07-05 07:46:18.887 ERROR (qtp1613627715-23-ds-solr-0.solr-headless.onedoc-ns1-420) [c:ccb067d9-cf19-4d05-b067-d9cf191d05d2 s:shard1 r:core_node4 x:ccb067d9-cf19-4d05-b067-d9cf191d05d2_shard1_replica_n2 t:ds-solr-0.solr-headless.onedoc-ns1-420] o.a.s.s.HttpSolrCall 500 Exception => java.lang.RuntimeException: java.lang.IllegalAccessException: access violation: class org.apache.lucene.document.LongPoint$1, from public Lookup at org.apache.solr.common.util.Utils.getReflectWriter(Utils.java:879) java.lang.RuntimeException: java.lang.IllegalAccessException: access violation: class org.apache.lucene.document.LongPoint$1, from public Lookup at org.apache.solr.common.util.Utils.getReflectWriter(Utils.java:879) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:276) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeNamedList(JavaBinCodec.java:252) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:360) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeArray(JavaBinCodec.java:796) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:376) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeNamedList(JavaBinCodec.java:252) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:360) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeArray(JavaBinCodec.java:796) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:376) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeNamedList(JavaBinCodec.java:252) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:360) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeNamedList(JavaBinCodec.java:252) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:360) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeNamedList(JavaBinCodec.java:252) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeKnownType(JavaBinCodec.java:360) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.writeVal(JavaBinCodec.java:257) ~[?:?] at org.apache.solr.common.util.JavaBinCodec.marshal(JavaBinCodec.java:167) ~[?:?] at org.apache.solr.response.BinaryResponseWriter.write(BinaryResponseWriter.java:58) ~[?:?] at org.apache.solr.response.QueryResponseWriterUtil.writeQueryResponse(QueryResponseWriterUtil.java:59) ~[?:?] at org.apache.solr.servlet.HttpSolrCall.writeResponse(HttpSolrCall.java:996) ~[?:?] at org.apache.solr.servlet.HttpSolrCall.call(HttpSolrCall.java:586) ~[?:?] at org.apache.solr.servlet.SolrDispatchFilter.dispatch(SolrDispatchFilter.java:262) ~[?:?] at org.apache.solr.servlet.SolrDispatchFilter.lambda$doFilter$0(SolrDispatchFilter.java:219) ~[?:?] at org.apache.solr.servlet.ServletUtils.traceHttpRequestExecution2(ServletUtils.java:249) ~[?:?] at org.apache.solr.servlet.ServletUtils.rateLimitRequest(ServletUtils.java:215) ~[?:?] at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:213) ~[?:?] at org.apache.solr.servlet.SolrDispatchFilter.doFilter(SolrDispatchFilter.java:195) ~[?:?] at org.eclipse.jetty.servlet.FilterHolder.doFilter(FilterHolder.java:210) ~[jetty-servlet-10.0.19.jar:10.0.19] at org.eclipse.jetty.servlet.ServletHandler$Chain.doFilter(ServletHandler.java:1635) ~[jetty-servlet-10.0.19.jar:10.0.19] at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:527) ~[jetty-servlet-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:131) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:598) ~[jetty-security-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:223) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1580) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:221) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1384) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:176) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:484) ~[jetty-servlet-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1553) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:174) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1306) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:129) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:149) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.InetAccessHandler.handle(InetAccessHandler.java:228) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.HandlerCollection.handle(HandlerCollection.java:141) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.rewrite.handler.RewriteHandler.handle(RewriteHandler.java:301) ~[jetty-rewrite-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.gzip.GzipHandler.handle(GzipHandler.java:822) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:122) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.Server.handle(Server.java:563) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.HttpChannel$RequestDispatchable.dispatch(HttpChannel.java:1598) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:753) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:501) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:461) ~[jetty-server-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.produce(AdaptiveExecutionStrategy.java:193) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.http2.HTTP2Connection.produce(HTTP2Connection.java:208) ~[http2-common-10.0.20.jar:10.0.20] at org.eclipse.jetty.http2.HTTP2Connection.onFillable(HTTP2Connection.java:155) ~[http2-common-10.0.20.jar:10.0.20] at org.eclipse.jetty.http2.HTTP2Connection$FillableCallback.succeeded(HTTP2Connection.java:450) ~[http2-common-10.0.20.jar:10.0.20] at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:100) ~[jetty-io-10.0.19.jar:10.0.19] at org.eclipse.jetty.io.SelectableChannelEndPoint$1.run(SelectableChannelEndPoint.java:53) ~[jetty-io-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.runTask(AdaptiveExecutionStrategy.java:421) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.consumeTask(AdaptiveExecutionStrategy.java:390) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.tryProduce(AdaptiveExecutionStrategy.java:277) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.strategy.AdaptiveExecutionStrategy.run(AdaptiveExecutionStrategy.java:199) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:411) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:969) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.doRunJob(QueuedThreadPool.java:1194) ~[jetty-util-10.0.19.jar:10.0.19] at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1149) ~[jetty-util-10.0.19.jar:10.0.19] at java.base/java.lang.Thread.run(Thread.java:840) [?:?] Caused by: java.lang.IllegalAccessException: access violation: class org.apache.lucene.document.LongPoint$1, from public Lookup at java.base/java.lang.invoke.MethodHandles$Lookup.makeAccessException(MethodHandles.java:2835) ~[?:?] at java.base/java.lang.invoke.MethodHandles$Lookup.accessClass(MethodHandles.java:2913) ~[?:?] at org.apache.solr.common.util.Utils.addTraditionalFieldWriters(Utils.java:972) ~[?:?] at org.apache.solr.common.util.Utils.getReflectData(Utils.java:931) ~[?:?] at org.apache.solr.common.util.Utils.getReflectWriter(Utils.java:866) ~[?:?] ... 80 more -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@solr.apache.org For additional commands, e-mail: issues-h...@solr.apache.org