cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aymen Alquaiti (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-6402) JettyHTTPServerEngine cannot set a provided Jetty Server
Date Sun, 17 May 2015 14:49:00 GMT

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

Aymen Alquaiti commented on CXF-6402:
-------------------------------------

Thank you.  I think we need to add:
if(server != null) {
server.setHandler(contexts);
}

This will mimic the same steps taken by the default created jetty server

> JettyHTTPServerEngine cannot set a provided Jetty Server
> --------------------------------------------------------
>
>                 Key: CXF-6402
>                 URL: https://issues.apache.org/jira/browse/CXF-6402
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 3.0.4
>         Environment: JRE 7
>            Reporter: Aymen Alquaiti
>            Assignee: Sergey Beryozkin
>              Labels: Jetty, patch
>             Fix For: 3.1.1, 3.0.6, 2.7.17
>
>
> JettyHTTPServerEngine cannot accept setting a provided Jetty Server instance. Such thing
will throw NullPointerException in line 460 (CXf 3.0.4)
> The exception is thrown because an object (contexts) of class ContextHandlerCollection
is only initialised when no jetty server is provided. Providing a server will leave the object
uninitialised, throwing exception in runtime. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message