tracker issue : CF-4203360

select a category, or use search below
(searches all categories and all time range)
Title:

Any Servlet filter that doesn't have the pattern attribute causes startup to fail

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/Fixed

Reporter/Name(from Bugbase): Samuel Knowlton / ()

Created: 09/27/2018

Components: Core Runtime

Versions: 11.0

Failure Type: Crash

Found In Build/Fixed In Build: 11,0,15,311399 / 11,0,16,312737

Priority/Frequency: Normal / Some users will encounter

Locale/System: ALL / Linux

Vote Count: 1

Problem Description: If a Tomcat valve is added to server.xml (such as mod_cfml) and it lacks the attribute "pattern", Coldfusion will fail on startup with on ServerConfigParser.fixAttribute(ServerConfigParser.java:237)

In our testing, this only occurred when running in full (Standard) mode - when no license was specified it would not happen. I have no idea why or what the relationship is.

Steps to Reproduce:

1) Install ACF11 on Linux in standalone, "full" mode; specify a valid serial number
2) Install mod_cfml (https://github.com/viviotech/mod_cfml/blob/master/java/mod_cfml-valve_v1.1.05.jar?raw=true) into <cf_home>/cfusion/runtime/lib
3) Add the following line to server.xml:

 <Valve className="mod_cfml.core" loggingEnabled="false" maxContexts="100" timeBetweenContexts="0" scanClassPaths="false" />

Actual Result:

WARNING: Catalina.start using /opt/coldfusion11/cfusion/runtime/conf/server.xml
java.lang.NullPointerException
        at com.adobe.coldfusion.launcher.ServerConfigParser.fixAttribute(ServerConfigParser.java:237)
        at com.adobe.coldfusion.launcher.ServerConfigParser.toString(ServerConfigParser.java:524)
        at com.adobe.coldfusion.launcher.Launcher.run(Launcher.java:793)
        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 com.adobe.coldfusion.bootstrap.Bootstrap.init(Bootstrap.java:90)
        at com.adobe.coldfusion.bootstrap.Bootstrap.main(Bootstrap.java:165)

Expected Result: Server start.

Any Workarounds: Add the attribute pattern="" to the <Valve> definition.

Attachments:

Comments: