You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tomcat.apache.org by bu...@apache.org on 2016/07/06 10:17:21 UTC
[Bug 59807] New: tomcat 8.5.3 use native cause NULL when
AprEndpoint.bind()
https://bz.apache.org/bugzilla/show_bug.cgi?id=59807
Bug ID: 59807
Summary: tomcat 8.5.3 use native cause NULL when
AprEndpoint.bind()
Product: Tomcat Native
Version: 1.2.7
Hardware: PC
Status: NEW
Severity: normal
Priority: P2
Component: Library
Assignee: dev@tomcat.apache.org
Reporter: cnsilvan@gmail.com
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server version: Apache Tomcat/8.5.3
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server built: Jun 9 2016 11:16:29 UTC
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Server number: 8.5.3.0
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Name: Mac OS X
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: OS Version: 10.11.5
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Architecture: x86_64
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Java Home:
/Library/Java/JavaVirtualMachines/jdk1.8.0_92.jdk/Contents/Home/jre
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Version: 1.8.0_92-b14
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: JVM Vendor: Oracle Corporation
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_BASE:
/Users/Baboon/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: CATALINA_HOME: /usr/local/tomcat
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument:
-Dcatalina.base=/Users/Baboon/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dcatalina.home=/usr/local/tomcat
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument:
-Dwtp.deploy=/Users/Baboon/Documents/workspace/.metadata/.plugins/org.eclipse.wst.server.core/tmp0/wtpwebapps
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Djava.endorsed.dirs=/usr/local/tomcat/endorsed
七月 06, 2016 6:08:41 下午 org.apache.catalina.startup.VersionLoggerListener log
信息: Command line argument: -Dfile.encoding=UTF-8
七月 06, 2016 6:08:41 下午 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
信息: Loaded APR based Apache Tomcat Native library 1.2.7 using APR version
1.5.2.
七月 06, 2016 6:08:41 下午 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false],
random [true].
七月 06, 2016 6:08:41 下午 org.apache.catalina.core.AprLifecycleListener
lifecycleEvent
信息: APR/OpenSSL configuration: useAprConnector [true], useOpenSSL [true]
七月 06, 2016 6:08:41 下午 org.apache.catalina.core.AprLifecycleListener
initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.2h 3 May 2016)
七月 06, 2016 6:08:41 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
七月 06, 2016 6:08:41 下午 org.apache.coyote.http11.AbstractHttp11Protocol
configureUpgradeProtocol
信息: The ["https-openssl-apr-8443"] connector has been configured to support
negotiation to [h2] via ALPN
七月 06, 2016 6:08:41 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["https-openssl-apr-8443"]
七月 06, 2016 6:08:41 下午 org.apache.coyote.AbstractProtocol init
严重: Failed to initialize end point associated with ProtocolHandler
["https-openssl-apr-8443"]
java.lang.NullPointerException
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:512)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:839)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)
at
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:65)
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1010)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:873)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
七月 06, 2016 6:08:41 下午 org.apache.catalina.core.StandardService initInternal
严重: Failed to initialize connector [Connector[HTTP/1.1-8443]]
org.apache.catalina.LifecycleException: Failed to initialize component
[Connector[HTTP/1.1-8443]]
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:111)
at
org.apache.catalina.core.StandardService.initInternal(StandardService.java:549)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at
org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:873)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
at org.apache.catalina.startup.Catalina.load(Catalina.java:606)
at org.apache.catalina.startup.Catalina.load(Catalina.java:629)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:311)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:494)
Caused by: org.apache.catalina.LifecycleException: Protocol handler
initialization failed
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1012)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:107)
... 12 more
Caused by: java.lang.NullPointerException
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:512)
at
org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:839)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:558)
at
org.apache.coyote.http11.AbstractHttp11Protocol.init(AbstractHttp11Protocol.java:65)
at
org.apache.catalina.connector.Connector.initInternal(Connector.java:1010)
... 13 more
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59807] tomcat 8.5.3 use native cause NULL when
AprEndpoint.bind()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59807
--- Comment #2 from cnsilvan <cn...@gmail.com> ---
I solved, according to the source code found, not in server.xml set hostName
will not be reported to the wrong.
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59807] tomcat 8.5.3 use native cause NULL when
AprEndpoint.bind()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59807
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #4 from Mark Thomas <ma...@apache.org> ---
Fixed in:
- trunk for 9.0.0.M18 onwards
- 8.5.x for 8.5.12 onwards
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59807] tomcat 8.5.3 use native cause NULL when
AprEndpoint.bind()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59807
cnsilvan <cn...@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
OS| |All
--- Comment #1 from cnsilvan <cn...@gmail.com> ---
Long defaultSSLContext = defaultSSLHostConfig.getOpenSslContext();
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org
[Bug 59807] tomcat 8.5.3 use native cause NULL when
AprEndpoint.bind()
Posted by bu...@apache.org.
https://bz.apache.org/bugzilla/show_bug.cgi?id=59807
Mark Thomas <ma...@apache.org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Product|Tomcat Native |Tomcat 9
Target Milestone|--- |-----
Component|Library |Connectors
Version|1.2.7 |9.0.0.M17
--- Comment #3 from Mark Thomas <ma...@apache.org> ---
This isn't a Tomcat Native issue. This is a Tomcat issue caused when there is
no SSLHostConfig that matches the defaultSSLHostConfigName
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org
For additional commands, e-mail: dev-help@tomcat.apache.org