You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Mike Mozaffari (Jira)" <ji...@apache.org> on 2021/10/07 03:06:00 UTC
[jira] [Updated] (CXF-8604) CXF warning logs: equal candidates for
handling the request which can lead to unpredictable results
[ https://issues.apache.org/jira/browse/CXF-8604?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Mike Mozaffari updated CXF-8604:
--------------------------------
Description:
I have the following GET method:
{code:java}
@GET
@Produces("application/json")
@Path("getpoolinfo")
public String getPoolInfo(@QueryParam("userid") int userid) {
return requestHandler.getPoolList(userid);
}
{code}
In the logs I see a lot of warning messages:
{code:java}
2021-10-06 20:27:37,860 WARN [qtp1072377306-76] [JAXRSUtils] Both
com.package.name.ClassName#getPoolInfo and
com.package.name.ClassName#getPoolInfo
are equal candidates for handling the current request which can lead to unpredictable results
{code}
Please note that it is pointing to the same method of the same class.
I am using the following libraries of CXF:
{code:java}
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>3.4.3</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>3.4.3</version>
</dependency>
{code}
was:
I have the following GET method:
{code:java}
@GET
@Produces("application/json")
@Path("getpoolinfo")
public String getPoolInfo(@QueryParam("userid") int userid) {
return requestHandler.getPoolList(userid);
}
{code}
In the logs I see a lot of warning messages:
{code:java}
2021-10-06 20:27:37,860 WARN [qtp1072377306-76] [JAXRSUtils] Both
com.package.name.ClassName#getPoolInfo and
com.package.name.ClassName#getPoolInfo
are equal candidates for handling the current request which can lead to unpredictable results
{code}
Please note that it is pointing to the same method of the same class.
I am using the following libraries of CXF:
{code:java}
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-frontend-jaxrs</artifactId>
<version>3.4.3</version>
</dependency>
<dependency>
<groupId>org.apache.cxf</groupId>
<artifactId>cxf-rt-transports-http-jetty</artifactId>
<version>3.4.3</version>
</dependency>
{code}
> CXF warning logs: equal candidates for handling the request which can lead to unpredictable results
> ---------------------------------------------------------------------------------------------------
>
> Key: CXF-8604
> URL: https://issues.apache.org/jira/browse/CXF-8604
> Project: CXF
> Issue Type: Bug
> Components: JAX-RS
> Affects Versions: 3.4.3
> Reporter: Mike Mozaffari
> Priority: Major
>
> I have the following GET method:
> {code:java}
> @GET
> @Produces("application/json")
> @Path("getpoolinfo")
> public String getPoolInfo(@QueryParam("userid") int userid) {
> return requestHandler.getPoolList(userid);
> }
> {code}
> In the logs I see a lot of warning messages:
> {code:java}
> 2021-10-06 20:27:37,860 WARN [qtp1072377306-76] [JAXRSUtils] Both
> com.package.name.ClassName#getPoolInfo and
> com.package.name.ClassName#getPoolInfo
> are equal candidates for handling the current request which can lead to unpredictable results
> {code}
> Please note that it is pointing to the same method of the same class.
> I am using the following libraries of CXF:
> {code:java}
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-frontend-jaxrs</artifactId>
> <version>3.4.3</version>
> </dependency>
> <dependency>
> <groupId>org.apache.cxf</groupId>
> <artifactId>cxf-rt-transports-http-jetty</artifactId>
> <version>3.4.3</version>
> </dependency>
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)