Latest OpenBD nightly and ColdBox RC1

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

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.

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

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

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

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

likewise awesomeness :slight_smile:

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

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

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

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

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

works now, thanks Luis :slight_smile:

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

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

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...

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

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...

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