Status/Resolution/Reason: Closed/Withdrawn/UserError
Reporter/Name(from Bugbase): Andrew Scott / Andrew Scott (Andrew Scott)
Created: 03/26/2013
Components: Language, Java Integration
Versions: 10.0
Failure Type:
Found In Build/Fixed In Build: Final /
Priority/Frequency: Major / Most users will encounter
Locale/System: English / Win All
Vote Count: 0
Problem Description:
The following code works when it is on ColdFusion 8, 9 and ColdFusion 10 if it is running on anything but Windows 8 and Windows 2012.
Error message is No group with name <5>
This seems to be only when installing fresh onto Windows 8 and Windows Serve 2012, if the server is another server that is updated to Update 8 the below code will work. I have tried many variations of installation on Windows 8/2012 and nothing seems to work.
This is a critical issue for some and maybe a lot of users.
var regex = "(?si)(<pre>[\t\r\n\s]*?\[code(\sbrush(\s)*?=(\s)*?""(.*?)"")*?(\s)*?\])(.*?)(\[/code\][\t\r\n\s]*?</pre>)";
var pattern = createObject("java", "java.util.regex.Pattern");
var matcher = pattern.compile(regex).matcher(builder.toString());
var newContent = '';
while(matcher.find()) {
var matchedString = matcher.group();
var brush = matcher.group(5);
if(isNull(brush)) { brush = "js"; }
savecontent variable="newContent" {
writeOutput('<pre class="brush: #brush#">#matcher.group(7)#</pre>');
}
var rLocation = builder.indexOf( matchedString );
var rLen = len( matchedString );
builder.replace( rLocation, rLocation+rLen, newContent);
}
Steps to Reproduce:
Actual Result:
Expected Result:
Any Workarounds:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3530539
External Customer Info:
External Company:
External Customer Name: ascott67
External Customer Email:
External Test Config: My Hardware and Environment details:
Attachments:
Comments: