[
https://issues.apache.org/jira/browse/SOLR-17032?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17775789#comment-17775789
]
Jason Gerlowski commented on SOLR-17032:
----------------------------------------
bq. Shouldn't branch_9x have been changed to 9.5.0-SNAPSHOT?
Eventually, yes. I imagine this is just an point-in-time issue though, as the
release only came out over this past weekend? Definitely something to revisit
if the version is still off in a week or so though...
----
bq. Have not been able to determine whether this is actually a problem or just
a harmless log entry.
It's "just a harmless log entry".
Some additional context on the original ticket for anyone not familiar with
Jersey/JAX-RS. JAX-RS offers the "MessageBodyWriter" interface as a way to
enable developers to plug various response content-types into their app. For
Solr's v2 APIs, we rely on the default Jackson-based writer to support JSON.
We register several other MBW's to support xml, javabin, etc (which are mostly
just thin wrappers around the underlying QueryResponseWriter).
This warning appears because Jersey has several "default" MBW's, and one of
those targets a class (javax.activation.DataSource) that cannot be found. This
is just a default though - Solr doesn't actually need this particular MBW or
the underlying DataSource class.
So if we really want to, we can silence this warning by adding a dep on
activation-api. But a better approach would probably be to disable or
unregister the default MBW entirely, if possible. We're not using it, so no
point in pulling more JARs on to the classpath just to silence a warning.
> Jersey MessagingBinders class logs "A class javax.activation.DataSource for a
> default provider MessageBodyWriter<javax.activation.DataSource> was not
> found" warning on startup
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-17032
> URL: https://issues.apache.org/jira/browse/SOLR-17032
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Affects Versions: 9.4
> Reporter: Shawn Heisey
> Priority: Minor
> Labels: startup
>
> Solr 9.4.0 on both Linux and Windows log the following:
> {code:java}
> 2023-10-16 13:07:54.191 WARN (main) [] o.g.j.m.i.MessagingBinders A class
> javax.activation.DataSource for a default provider
> MessageBodyWriter<javax.activation.DataSource> was not found. The provider is
> not available.
> {code}
> Research turns up that getting rid of this warning requires addingÂ
> {{jakarta.activation/jakarta.activation-api}} to dependencies.
> Have not been able to determine whether this is actually a problem or just a
> harmless log entry.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]