[jira] [Created] (CXF-9049) JAXRSUtils: Logging Improvements

2024-08-30 Thread Kai Zander (Jira)
Kai Zander created CXF-9049:
---

 Summary: JAXRSUtils: Logging Improvements
 Key: CXF-9049
 URL: https://issues.apache.org/jira/browse/CXF-9049
 Project: CXF
  Issue Type: Wish
  Components: JAX-RS
Affects Versions: 4.0.5
Reporter: Kai Zander


Currently, during a write error _of any kind_, {{JAXRSUtils}} logs ERRORs like 
this:
{code:none}
JAXRSUtils - Problem with writing the data, class com.acme.MyResponseType, 
ContentType: application/json
{code}
We have the following issues with this:
# Because there's no stack trace, this error doesn't help us in identifying 
what went wrong.
# The log level is always ERROR, even for errors that aren't actionable, like 
when the client aborts the request before the server could send the response.

This issue is related to CXF-7389, with the distinction of that issue being 
about log levels for API responses with HTTP error status codes. But here, I'd 
like to request a similar improvement but for response handling errors. This 
could allow us to maybe configure a property {{IOException.class.getName() + 
".log.level"}} to reduce the log level for exceptions of our choosing.
The logic that checks for these properties should then have to consider the 
type hierarchy to properly deal with subclasses of {{IOException}}, something 
like this snippet:
{code:java}
Level determineLogLevel(Exception ex, Message m) {
  Class exType = ex.getClass();
  do {
String key = exType.getName() + ".log.level";
if (m.containsKey(key)) {
  return Level.parseLevel(m.get(key).toString());
}
exType = exType.getSuperClass();
  } while (exType != Object.class);
  return someDefaultLevelPossiblyError;
}
{code}



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


[jira] [Commented] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-30 Thread John Tal (Jira)


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

John Tal commented on CXF-8931:
---

Hi [~reta]  - are we still thinking these versions for solution 
release/packaging? -> 
[4.1.0|https://issues.apache.org/jira/issues/?jql=project+%3D+CXF+AND+fixVersion+%3D+4.1.0],
 
[3.6.5|https://issues.apache.org/jira/issues/?jql=project+%3D+CXF+AND+fixVersion+%3D+3.6.5],
 
[4.0.6|https://issues.apache.org/jira/issues/?jql=project+%3D+CXF+AND+fixVersion+%3D+4.0.6]

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



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


[jira] [Commented] (CXF-8931) HttpClientHTTPConduit can't disable the http chunk mode

2024-08-30 Thread Andriy Redko (Jira)


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

Andriy Redko commented on CXF-8931:
---

Hi [~bodhione] , yes

> HttpClientHTTPConduit can't disable the http chunk mode
> ---
>
> Key: CXF-8931
> URL: https://issues.apache.org/jira/browse/CXF-8931
> Project: CXF
>  Issue Type: Bug
>Reporter: Jim Ma
>Assignee: Andriy Redko
>Priority: Major
> Fix For: 4.1.0, 3.6.5, 4.0.6
>
>
> This works with URLConnectionHttpConduit, but this doesn't work with the new 
> HttpClientHTTPConduit. When set the HttpClientPolicy.setAllowChunking(false)
>  



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


[jira] [Updated] (CXF-9050) Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

2024-08-30 Thread Dmitry (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry updated CXF-9050:

Description: 
cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
But *DefaultApplicationFactory.class* have {*}javax{*}.ws.rs.core.Application 
import instead of jakarta.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: *Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application*
"""

_Thank Apache team for your work and support!_

  was:
cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
But DefaultApplicationFactory.class have {*}javax{*}.ws.rs.core.Application 
import instead of jakarta.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application
"""

_Thank Apache team for your work and support!_


> Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import
> 
>
> Key: CXF-9050
> URL: https://issues.apache.org/jira/browse/CXF-9050
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 3.6.4
>Reporter: Dmitry
>Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
> But *DefaultApplicationFactory.class* have {*}javax{*}.ws.rs.core.Application 
> import instead of jakarta.
> As a result, an error occurs when 
> org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
> .createServer() method:
> """
> Error creating bean with name 'jaxRsServer' defined in class path resource 
> [org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
> instantiate [org.apache.cxf.endpoint.Server]: *Factory method 'jaxRsServer' 
> threw exception with message: javax/ws/rs/core/Application*
> """
> _Thank Apache team for your work and support!_



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


[jira] [Created] (CXF-9050) Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

2024-08-30 Thread Dmitry (Jira)
Dmitry created CXF-9050:
---

 Summary: Apache CXF JAX RS Service Description Swagger » 3.6.4 | 
Wrong import
 Key: CXF-9050
 URL: https://issues.apache.org/jira/browse/CXF-9050
 Project: CXF
  Issue Type: Bug
  Components: JAX-RS
Affects Versions: 3.6.4
Reporter: Dmitry


cxf-rt-rs-service-description-swagger imports jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
instead of javax.

As a result, an error occurs when SpringComponentScanServer try to call 
createServer method:Error creating bean with name 'jaxRsServer' defined in 
class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application



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


[jira] [Updated] (CXF-9050) Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

2024-08-30 Thread Dmitry (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry updated CXF-9050:

Description: 
cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
instead of javax.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application
"""

_Thank Apache team for your work and support!_

  was:
cxf-rt-rs-service-description-swagger imports jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
instead of javax.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application
"""

_Thank Apache team for your work and support!_


> Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import
> 
>
> Key: CXF-9050
> URL: https://issues.apache.org/jira/browse/CXF-9050
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 3.6.4
>Reporter: Dmitry
>Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
> But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
> instead of javax.
> As a result, an error occurs when 
> org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
> .createServer() method:
> """
> Error creating bean with name 'jaxRsServer' defined in class path resource 
> [org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
> instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
> threw exception with message: javax/ws/rs/core/Application
> """
> _Thank Apache team for your work and support!_



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


[jira] [Updated] (CXF-9050) Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

2024-08-30 Thread Dmitry (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry updated CXF-9050:

Priority: Major  (was: Minor)

> Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import
> 
>
> Key: CXF-9050
> URL: https://issues.apache.org/jira/browse/CXF-9050
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 3.6.4
>Reporter: Dmitry
>Priority: Major
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
> But *DefaultApplicationFactory.class* have {*}javax{*}.ws.rs.core.Application 
> import instead of jakarta.
> As a result, an error occurs when 
> org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
> .createServer() method:
> """
> Error creating bean with name 'jaxRsServer' defined in class path resource 
> [org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
> instantiate [org.apache.cxf.endpoint.Server]: *Factory method 'jaxRsServer' 
> threw exception with message: javax/ws/rs/core/Application*
> """
> _Thank Apache team for your work and support!_



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


[jira] [Updated] (CXF-9050) Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

2024-08-30 Thread Dmitry (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry updated CXF-9050:

Description: 
cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
But DefaultApplicationFactory.class have {*}javax{*}.ws.rs.core.Application 
import instead of jakarta.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application
"""

_Thank Apache team for your work and support!_

  was:
cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
instead of javax.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application
"""

_Thank Apache team for your work and support!_


> Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import
> 
>
> Key: CXF-9050
> URL: https://issues.apache.org/jira/browse/CXF-9050
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 3.6.4
>Reporter: Dmitry
>Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> cxf-rt-rs-service-description-swagger depends on jakarta.ws.rs.core
> But DefaultApplicationFactory.class have {*}javax{*}.ws.rs.core.Application 
> import instead of jakarta.
> As a result, an error occurs when 
> org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
> .createServer() method:
> """
> Error creating bean with name 'jaxRsServer' defined in class path resource 
> [org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
> instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
> threw exception with message: javax/ws/rs/core/Application
> """
> _Thank Apache team for your work and support!_



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


[jira] [Updated] (CXF-9050) Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import

2024-08-30 Thread Dmitry (Jira)


 [ 
https://issues.apache.org/jira/browse/CXF-9050?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dmitry updated CXF-9050:

Description: 
cxf-rt-rs-service-description-swagger imports jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
instead of javax.

As a result, an error occurs when 
org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
.createServer() method:

"""

Error creating bean with name 'jaxRsServer' defined in class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application
"""

_Thank Apache team for your work and support!_

  was:
cxf-rt-rs-service-description-swagger imports jakarta.ws.rs.core
But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
instead of javax.

As a result, an error occurs when SpringComponentScanServer try to call 
createServer method:Error creating bean with name 'jaxRsServer' defined in 
class path resource 
[org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
threw exception with message: javax/ws/rs/core/Application


> Apache CXF JAX RS Service Description Swagger » 3.6.4 | Wrong import
> 
>
> Key: CXF-9050
> URL: https://issues.apache.org/jira/browse/CXF-9050
> Project: CXF
>  Issue Type: Bug
>  Components: JAX-RS
>Affects Versions: 3.6.4
>Reporter: Dmitry
>Priority: Minor
>   Original Estimate: 1h
>  Remaining Estimate: 1h
>
> cxf-rt-rs-service-description-swagger imports jakarta.ws.rs.core
> But DefaultApplicationFactory.class have javax.ws.rs.core.Application import 
> instead of javax.
> As a result, an error occurs when 
> org.apache.cxf.jaxrs.spring.SpringComponentScanServer.class try to call 
> .createServer() method:
> """
> Error creating bean with name 'jaxRsServer' defined in class path resource 
> [org/apache/cxf/jaxrs/spring/SpringComponentScanServer.class]: Failed to 
> instantiate [org.apache.cxf.endpoint.Server]: Factory method 'jaxRsServer' 
> threw exception with message: javax/ws/rs/core/Application
> """
> _Thank Apache team for your work and support!_



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