You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "Kevin Risden (Jira)" <ji...@apache.org> on 2023/03/31 17:06:00 UTC

[jira] [Commented] (SOLR-16728) ClassCastException while creating new collection using JDK17

    [ https://issues.apache.org/jira/browse/SOLR-16728?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17707357#comment-17707357 ] 

Kevin Risden commented on SOLR-16728:
-------------------------------------

FYI [~houston] 

I don't know if this is specifically related to SOLR-15955 upgrading Jetty or maybe related to SOLR-16158 where some of the jars were moved around.

I see https://github.com/apache/solr/commit/a18f5b3c7cf#diff-4a5004f51d5d785e4559ac42bfe2aa30af4a1f3e3df2985ab2bc0ddc05b184fdL83 that these dependencies changed:

{code:java}
  implementation 'org.eclipse.jetty:jetty-alpn-server'
  runtimeOnly('org.eclipse.jetty:jetty-alpn-java-server', {
    exclude group: "org.eclipse.jetty.alpn", module: "alpn-api"
  })
  jettyClientImplementation('org.eclipse.jetty:jetty-http')
{code}

not sure if thats related or not. It looksl ike some of these need to be in the server WEBINF lib maybe?


> ClassCastException while creating new collection using JDK17
> ------------------------------------------------------------
>
>                 Key: SOLR-16728
>                 URL: https://issues.apache.org/jira/browse/SOLR-16728
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: Server, SolrCloud
>    Affects Versions: 9.2
>            Reporter: Thomas Wöckinger
>            Priority: Critical
>
> Creating a new collection using CollectionAPI results in following error:
> 2023-03-31T08:22:34.574888544Z 2023-03-31 08:22:34.573 WARN  (httpShardExecutor-5-thread-3) [] o.e.j.i.ManagedSelector Could not accept java.nio.channels.SocketChannel[closed]: java.lang.ClassCastException: class org.eclipse.jetty.alpn.client.ALPNClientConnection cannot be cast to class org.eclipse.jetty.alpn.client.ALPNClientConnection (org.eclipse.jetty.alpn.client.ALPNClientConnection is in unnamed module of loader org.eclipse.jetty.start.Classpath$Loader @1f89ab83; org.eclipse.jetty.alpn.client.ALPNClientConnection is in unnamed module of loader org.eclipse.jetty.webapp.WebAppClassLoader @757f675c)
>  
> Tested with:
> Red Hat, Inc. OpenJDK 64-Bit Server VM 17.0.6 17.0.6+10-LTS
> Solr started in cloude mode with one node and embedded zookeeper
> /opt/solr/bin/solr start -c -Dsolr.ssl.checkPeerName=false
>  
>  
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org