Hello, I'm trying to use the v2
https://solr.apache.org/guide/solr/latest/deployment-guide/collection-management.html#collectionprop
API. v1 works fine, but v2 fails with a glassfish error. I won't paste the
full stacktrace here because it's mostly noise.

I assume it's because org.apache.solr.handler.admin.api.CollectionProperty
doesn't have an @Inject annotation on its constructor
<https://github.com/apache/solr/blob/main/solr/core/src/java/org/apache/solr/handler/admin/api/CollectionProperty.java#L41>
- and I guess that there's no tests for going through the v2 API? Or is it
tested, and I'm missing something?

----

>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> *2025-01-08 14:29:13.089 WARN  (qtp1429351083-106-localhost-1) [c: s: r:
> x: t:localhost-1] o.g.j.s.ServerRuntime$Responder An exception mapping did
> not successfully produce and processed a response. Logging the exception
> propagated to the default exception mapper. => MultiException stack 1 of
> 1java.lang.NoSuchMethodException: Could not find a suitable constructor in
> org.apache.solr.handler.admin.api.CollectionProperty
> class.org.glassfish.hk2.api.MultiException: A MultiException has 1
> exceptions.  They are:1. java.lang.NoSuchMethodException: Could not find a
> suitable constructor in
> org.apache.solr.handler.admin.api.CollectionProperty class. at
> org.jvnet.hk2.internal.Collector.throwIfErrors(Collector.java:65)
> ~[?:?]...Caused by: java.lang.NoSuchMethodException: Could not find a
> suitable constructor in
> org.apache.solr.handler.admin.api.CollectionProperty class. at
> org.glassfish.jersey.inject.hk2.JerseyClassAnalyzer.getConstructor(JerseyClassAnalyzer.java:168)
> ~[?:?] at
> org.jvnet.hk2.internal.Utilities.getConstructor(Utilities.java:157) ~[?:?]
> at org.jvnet.hk2.internal.Utilities.justCreate(Utilities.java:1043) ~[?:?]
> ... 71 more2025-01-08 14:29:13.106 WARN  (qtp1429351083-106-localhost-1)
> [c: s: r: x: t:localhost-1] o.g.j.i.Errors The following warnings have been
> detected: WARNING: HK2 service reification failed for
> [org.apache.solr.handler.admin.api.CollectionProperty] with an
> exception:MultiException stack 1 of 2java.lang.NoSuchMethodException: Could
> not find a suitable constructor in
> org.apache.solr.handler.admin.api.CollectionProperty class. at
> org.glassfish.jersey.inject.hk2.JerseyClassAnalyzer.getConstructor(JerseyClassAnalyzer.java:168)...MultiException
> stack 2 of 2java.lang.IllegalArgumentException: Errors were discovered
> while reifying SystemDescriptor(
> implementation=org.apache.solr.handler.admin.api.CollectionProperty
> contracts={org.apache.solr.handler.admin.api.CollectionProperty}
> scope=org.glassfish.jersey.process.internal.RequestScoped qualifiers={}
> descriptorType=CLASS descriptorVisibility=NORMAL metadata= rank=0
> loader=null proxiable=null proxyForSameScope=null analysisName=null id=137
> locatorId=0 identityHashCode=1799286651 reified=false) at
> org.jvnet.hk2.internal.SystemDescriptor.reify(SystemDescriptor.java:684)
> ...*
>

Reply via email to