Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
Patch for Error accessing dashboard Illegal target of jump or branch… #294
Current Master branch running on CF9 on Windows 2008 R2 gives Error accessing dashboard Illegal target of jump or branch when attempting to access Taffy dashboard.
This issue is observable running CF9.0.1 CHF 1 on Java 1.6 on Windows 2008 R2, and is still observable running CF9.0.1 CHF4 on Java 1.7.
This issue is not observed on CF9.0.1 running on OSX.
This has only been tested on CF9 on windows and OSX - where it works without issue.
Hi Dan, thanks for your effort!
I'm curious which update of Java 7 you're experiencing this on. It's come up in the past (#248), but as people keep running into it, and the fix is fairly easy, I'm not opposed to making a change so that people don't keep running into something that's preventable.
If we're going to rewrite it though, why stick with a continue mechanism at all? (And indeed, having to do both
Instead, what if we rewrite that conditional to (this is untested, just extemporaneous):
And then all of the code that currently comes after the continue mechanism would go inside the conditional. I think I originally wrote it with the continue because it saves yet-another-level-of-indentation (which I generally believe to be cleaner code), but clearly it's not serving us well.
OK - agree with you, bit of a code smell with that conditional...
I think the code is just as clear without the continue (possibly more clear to most CF developers as
I've refactored and updated the pull request as per your suggestion - and it certainly seems to work fine on CF9 on Windows.
I have encountered this issue with jdk1.7.0_75 (and with jdk1.6.0_24) - but only on Windows...
I have another client running jdk1.6.0_32 on windows 2008 R2 for which Taffy dashboard is functioning without any issues...
Client who is experiencing issues is running a multi server installation of CF9 - whereas one without issues is running a standalone installation... which is probably irelavant - although I know from personal experience that there are a number of inconsistencies and issues which don't occur when running standalone install which do with multiserver... I think they ran out of testing budget at some point!
I suppose it is possible that an issue may have been resolved within jdk1.7.0_55... which was then reintroduced in later versions - and I realise update 75 isn't certified for CF9 (released after Abobe ceased support for CF9)... but it seems unlikely...
As you say - fairly simple fix - and if it prevents this issue from stumbling anyone else in the future, then I believe it's worth doing (and means I don't need to run my client's site on a forked version of Taffy... which makes updates and deployments easier for me :).