Nitai
December 27, 2010, 11:40am
1
Hi there,
I just wanted to run CB RC1 on the latest OpenBD nightly build and get
a big fat error like:
Error creating the eviction policy object: instance.EvictionPolicy
doesn't exist. Error at line 1, column 1
message Error creating eviction policy
type cacheManager.EvictionPolicyCreationException
Now, is CB compatible with OpenBD or not?
I'm also on the OpenBD Steering Committee and could "push" fixing
certain thing if needed.
Kind Regards,
Nitai
lmajano
December 27, 2010, 5:44pm
2
I would hope it could run on open bd. So If there is any fixes we need to add, we will. But we need community collab for error reports and submitted patches and testing. So yea let's go for it.
Nitai
December 27, 2010, 5:57pm
3
Ok, to do so, let me know what the error means. I looked at the code,
but not seeing anything that would break CB on OpenBD...
Kind Regards,
Nitai
lmajano
December 27, 2010, 6:50pm
4
just that an instance variable is missing, but would not know why, I would have to trace this.
I will download the latest openBD and give it a shot. Would love collaboration on this.
Thanks
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Nitai
December 27, 2010, 6:52pm
5
Planning a new app and was thinking of using ColdBox (coming from
Fusebox). So, this sort of hampers my development... But let me know
what you'll find out and I try to help as much as possible.
Kind Regards,
Nitai
lmajano
December 27, 2010, 6:54pm
6
Awesome, I just downloaded it and will give it a shot. I’ll keep posting back here.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
lmajano
December 27, 2010, 7:04pm
8
Nitai, what version of openbd you using, I downloaded 1.4 and to startup It says that cfscript Badly formatted tag
ON a component like this:
Is this not allowed in obd
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Nitai
December 27, 2010, 7:06pm
9
Did you dl the nightly build? That0s the one we work on and has some
fixes for CB as reported by someone else on this list (sorry forgot
your name!).
Jetty link is:
http://www.openbluedragon.org/download/nightly/jetty-openbd.zip
or the WAr only:
http://www.openbluedragon.org/download/nightly/openbd.war
Kind Regards,
Nitai
I am trying to get hold of the Elastic servers listed here http://blog.coldbox.org/post.cfm/coldbox-elastic-servers-updated-with-amazon-ami but when I click on one of those links, I get this error
Sorry, you're not authorized to view the requested page. Please ask the owner to share it with you.
Are these still available?
Regards,
Anuj Gakhar
lmajano
December 27, 2010, 7:10pm
11
Ok, Redownloading as I was hitting a wall already. Ok, will report back.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
lmajano
December 27, 2010, 7:11pm
12
I thought they where public, weird. Let me check
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
lmajano
December 27, 2010, 7:12pm
13
OK, I have publicly shared them, try now.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
lmajano
December 27, 2010, 7:30pm
15
Ok, found an initial problem with the engine version detection in coldbox as it is expecting the first part of the server.coldfusion.productversion to be either 7,8 or 9. But OBD is in the 1,5 format and not using the compat format.
I will update this, but shouldn’t this be the same in terms of compat as other engines? If not, what would be the most reliable version identifier for OBD?
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
lmajano
December 27, 2010, 7:32pm
16
Ok, hit another snag.
Does bluedragon support cfinterface?
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Nitai
December 27, 2010, 7:37pm
17
Best is to simply use the #server # tag. I've seen that other always
test for it like:
StructKeyExists(server, "bluedragon")
or
StructKeyExists(server, "railo")
just a thought...
lmajano
December 27, 2010, 7:39pm
18
Ok,
I pushed the changes that makes it work superficially on openbd using the compatibility cache engine in ColdBox as it seems cfinterface is not allowed in openbd. CacheBox relies on cfinterface for its cache manager interfaces. So we would have to discuss how to do this in Open BD in compat matter or if obd can implement this.
You can download the source from github for the fix for obd. Also, you need to enable the compat cache engine by adding the following to your application coldbox configuration CFC.
cacheEngine = {
objectDefaultTimeout = 60,
objectDefaultLastAccessTimeout = 20,
reapFrequency = 1,
freeMemoryPercentageThreshold = 0,
useLastAccessTimeouts = true,
evictionPolicy = “LFU”,
evictCount = 5,
maxObjects = 100
};
Basically configuring the old cache engine.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com
Nitai
December 27, 2010, 7:39pm
19
Looks like the cfinterface issue was already reported:
http://code.google.com/p/openbluedragon/issues/detail?id=292
Any work around in the meantime? Would really love to get into CB...
lmajano
December 27, 2010, 7:40pm
20
Please let me know Nitai what we could do about the cfinterface, as refactoring all of cachebox to NOT use cfinterface is not really something I would probably do.
Luis F. Majano
President
Ortus Solutions, Corp
ColdBox Platform: http://www.coldbox.org
Linked In: http://www.linkedin.com/pub/3/731/483
Blog: http://www.luismajano.com
IECFUG Manager: http://www.iecfug.com