> I will do a little more testing to see if the arguments being converted to uppercase is a Railo issue. The problem happens on Windows and Linux, so I’m thinking it’s a Railo thing. I’ve seen people have problems before with the case of arguments if they weren’t declared with structure notation.
I’m pretty certain that struct keys defined in Adobe CF using dot-notation have always turned uppercase.
creates a key called "FOO".
Railo is probably just being compatible with ACF on that front. I’m guessing that method args in Railo
are case sensitive though which would explain the error.
Hello,
Just started playing around with BlogBox on Railo myself.
About issue #2 which GRAPE Stack reported above (errors on setType())
-- The setType() method in the init() of the Page.cfc model (I
couldn't find the "event" model he was talking about) is a generated
("implicit") setter from the property named "type" in the
BaseContent.cfc mappedsuperclass which it extends. I noticed that
accessors="true" attribute wasn't set in that component. Doesn't seem
like CF9 needs that with mappedSuperClasses because I don't get that
error with CF9 (I've never used mappedSuperClasses before). However, I
found that by simply adding that accessors="true" to
BaseComponent.cfc, it gets rid of the "No matching Method/Function for
SETTYPE(string)" error.
Once I got past that, though. I got this error when trying to load the
site:
"Page //layouts/reddy/layouts/.cfm [/Users/tony/Sites/BlogBox/layouts/
reddy/layouts/.cfm] not found"
Seems like the path leading up the the blogbox-ui directory and then
the name of the layout file itself isn't being set in the path for
some reason. (it should be /modules/blogbox-ui/layouts/reddy/layouts/
blog.cfm, so "modules/blogbox-ui" and "blog" is missing).
When I tried out BlogBox on CF9.0.1, the site loaded up fine
initially. I then went to the projects page and submitted a comment.
After I submitted the comment, I got the same "Page //layouts/reddy/
layouts/.cfm [/Users/tony/Sites/BlogBox/layouts/reddy/layouts/.cfm]
not found" error.
Railo 3.3.024 (BER) on Tomcat 6
or
ColdFusion 9,0,1,274733 on JRun 4
Mac OSX 10.6.8
I also forgot to mention that I had to remove the comments found near
the top and at the bottom of the sql scripts found in /modules/blogbox/
install/sql/ because when I tried to install on Railo, I got the
folloing Railo error:
"Variable 'character_set_client' can't be set to the value of 'NULL'
From what I've read it seems to be some sort of jdbc issue. Removing
those comments (starting with "/*!401...") near the top and at the
bottom of those sql files got rid of the error.
“Page //layouts/reddy/layouts/.cfm [/Users/tony/Sites/BlogBox/layouts/reddy/layouts/.cfm] not found”
In the admin, after I reloaded the admin module manual per my previous post, I stopped getting that. Did you change the module loading order?
After I got rid of that error, I got the exact same character_set_client error, which I resolved by manually creating the database with the new sql Luis committed today.
The entry and page model objects are in: modules/blogbox/model/content/Page.cfc and Entry.cfc
I didn’t mean event model, that was a typo, should have been Entry.
Hi GRAPE Stack,
I changed the module loading order and yes -- it did get rid of that
initial "Page not found" error.
However I then went on and did the same thing as I did on CF9 -- I
tried to add a comment to the "Projects" page and then the
"Page //layouts/reddy/layouts/.cfm could not be found"
error came right back (just as I found with CF9).
So at least now I can say that BlogBox runs the same on Railo and
CF9!
Instead of leaving a comment on a page, I tried leaving a comment on a
blog post. Findings:
1) if I put the "http://" at the beginning of the "Website" field, I
get a "Your URL is Invalid!" error. I needed to exclude the "http://
2) once I submitted the comment, I got this error (see below).
By the way -- Luis do you prefer that people report this kind of stuff
on the Github issue tracker or in this group??
Ohh man! Something really went wrong with your request. The
administrator has been adviced, so do not worry! Please try your
request again!
Fault Action: commentPost
Error Information:
A null pointer exception occurred when running the count The most
likely reason is that the keys in the passed in structure need to be
case sensitive. Passed Keys=AUTHOREMAIL,ISAPPROVED
More Information:
A null pointer exception occurred when running the count at
railo.runtime.tag.Throw._doStartTag(Throw.java:142):142 at
railo.runtime.tag.Throw.doStartTag(Throw.java:131):131 at throw_cfm
$cf.udfCall(/opt/jboss-web-2.1.4.GA/railo/railo-server/context/library/
function/throw.cfm:10):10 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at railo.runtime.functions.system.CFFunction.call(CFFunction.java:75):
75 at coldbox.system.orm.hibernate.baseormservice_cfc$cf.udfCall4(/
Users/tony/Sites/BlogBox/coldbox/system/orm/hibernate/
BaseORMService.cfc:784):784 at
coldbox.system.orm.hibernate.baseormservice_cfc$cf.udfCall(/Users/tony/
Sites/BlogBox/coldbox/system/orm/hibernate/BaseORMService.cfc):-1 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at railo.runtime.ComponentImpl._call(ComponentImpl.java:610):610 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:504):504 at
railo.runtime.SuperComponent.callWithNamedValues(SuperComponent.java:
84):84 at
railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:
769):769 at
railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:
1454):1454 at coldbox.system.orm.hibernate.virtualentityservice_cfc
$cf.udfCall2(/Users/tony/Sites/BlogBox/coldbox/system/orm/hibernate/
VirtualEntityService.cfc:131):131 at
coldbox.system.orm.hibernate.virtualentityservice_cfc$cf.udfCall(/
Users/tony/Sites/BlogBox/coldbox/system/orm/hibernate/
VirtualEntityService.cfc):-1 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at
railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:
774):774 at
railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:
1454):1454 at modules.blogbox.model.comments.commentservice_cfc
$cf.udfCall(/Users/tony/Sites/BlogBox/modules/blogbox/model/comments/
CommentService.cfc:164):164 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
738):738 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1439):
1439 at modules.blogbox.model.comments.commentservice_cfc$cf.udfCall(/
Users/tony/Sites/BlogBox/modules/blogbox/model/comments/
CommentService.cfc:118):118 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
738):738 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1439):
1439 at modules.blogbox.model.comments.commentservice_cfc$cf.udfCall(/
Users/tony/Sites/BlogBox/modules/blogbox/model/comments/
CommentService.cfc:75):75 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496 at
railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
733):733 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1439):
1439 at modules.blogbox_ui360.handlers.blog_cfc$cf.udfCall(/Users/tony/
Sites/BlogBox/modules/blogbox-ui/handlers/blog.cfc:252):252 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at railo.runtime.ComponentImpl._call(ComponentImpl.java:610):610 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496 at
railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:
1809):1809 at railo.runtime.tag.Invoke.doComponent(Invoke.java:210):
210 at railo.runtime.tag.Invoke.doEndTag(Invoke.java:183):183 at
coldbox.system.web.controller_cfc$cf.udfCall5(/Users/tony/Sites/
BlogBox/coldbox/system/web/Controller.cfc:699):699 at
coldbox.system.web.controller_cfc$cf.udfCall(/Users/tony/Sites/BlogBox/
coldbox/system/web/Controller.cfc):-1 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
738):738 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1439):
1439 at coldbox.system.web.controller_cfc$cf.udfCall5(/Users/tony/
Sites/BlogBox/coldbox/system/web/Controller.cfc:584):584 at
coldbox.system.web.controller_cfc$cf.udfCall(/Users/tony/Sites/BlogBox/
coldbox/system/web/Controller.cfc):-1 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.callWithNamedValues(UDFImpl.java:376):376
at railo.runtime.ComponentImpl._call(ComponentImpl.java:610):610 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496 at
railo.runtime.ComponentImpl.callWithNamedValues(ComponentImpl.java:
1813):1813 at
railo.runtime.util.VariableUtilImpl.callFunctionWithNamedValues(VariableUtilImpl.java:
769):769 at
railo.runtime.PageContextImpl.getFunctionWithNamedValues(PageContextImpl.java:
1454):1454 at coldbox.system.coldbox_cfc$cf.udfCall1(/Users/tony/Sites/
BlogBox/coldbox/system/Coldbox.cfc:243):243 at
coldbox.system.coldbox_cfc$cf.udfCall(/Users/tony/Sites/BlogBox/
coldbox/system/Coldbox.cfc):-1 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496 at
railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794 at
railo.runtime.util.VariableUtilImpl.callFunctionWithoutNamedValues(VariableUtilImpl.java:
733):733 at
railo.runtime.PageContextImpl.getFunction(PageContextImpl.java:1439):
1439 at application_cfc$cf.udfCall(/Users/tony/Sites/BlogBox/
Application.cfc:78):78 at
railo.runtime.type.UDFImpl.implementation(UDFImpl.java:214):214 at
railo.runtime.type.UDFImpl._call(UDFImpl.java:418):418 at
railo.runtime.type.UDFImpl.call(UDFImpl.java:383):383 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:609):609 at
railo.runtime.ComponentImpl._call(ComponentImpl.java:496):496 at
railo.runtime.ComponentImpl.call(ComponentImpl.java:1794):1794 at
railo.runtime.listener.ModernAppListener.call(ModernAppListener.java:
347):347 at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:
106):106 at
railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:
23):23 at railo.runtime.PageContextImpl.execute(PageContextImpl.java:
1986):1986 at
railo.runtime.PageContextImpl.execute(PageContextImpl.java:1953):1953
at railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:
283):283 at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:
32):32 at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):
717 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290):290 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206 at com.seefusion.Filter.doFilter(Filter.java:49):49 at
com.seefusion.SeeFusion.doFilter(SeeFusion.java:1500):1500 at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235):235 at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206 at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
235):235 at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191):191 at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127):127 at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102):102 at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109):109 at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
330):330 at
org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:436):436
at org.apache.coyote.ajp.AjpProtocol
$AjpConnectionHandler.process(AjpProtocol.java:384):384 at
org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:
447):447 at java.lang.Thread.run(Thread.java:680):680
Thanks guys this testing is jut what this project needs.
1. The mappedsuperclass should add the implicit getters and setters. Plus it is inherited onto the concrete classes which are entities and should have implicit getters enabled. So this seems like a bug in Railo where the concrete class an entity inherits from anoter object with properties and mapped super class.
2. The SQL script is just a convenience to get started quickly until the installer is finalized. Bear with me.
All right -- I'll log an issue on the Railo bug tracker for the
implicit getters and setters in the mappedSuperClass. Until they fix
it, though, would it not be unreasonable to just add the
accessors="true" for now as a "band-aid" for Railo compatibility? It
doesn't seem to hurt.
To reproduce the comment errors, just fire up BlogBox on Railo. If you
try to leave a comment on a PAGE (such as "projects") you get the
"Page //layouts/reddy/layouts/.cfm could not be found" error. This
also happens on CF9.0.1 for me, BTW.
If you leave a comment on a BLOG POST, you get the error I posted in
my last message.
On CF9:
The errors when submitting comments are gone. But then I logged into
the admin and immediately got this error:
Application Execution Exception
Error Type: Expression : [N/A]
Error Messages: Value must be initialized before use.
Its possible that a method called on a Java object created by
CreateObject returned null.
On Railo:
Can't even get to ColdBox, I immediately get this Railo error:
Message Unknown column 'hits' in 'field list'
Cause com.mysql.jdbc.exceptions.MySQLSyntaxErrorException
Unknown column 'hits' in 'field list'
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:936):
936
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2934):2934
at com.mysql.jdbc.MysqlIO.sendCommand(MysqlIO.java:1616):1616
at com.mysql.jdbc.MysqlIO.sqlQueryDirect(MysqlIO.java:1708):1708
at com.mysql.jdbc.Connection.execSQL(Connection.java:3249):3249
at com.mysql.jdbc.Connection.execSQL(Connection.java:3178):3178
at com.mysql.jdbc.Statement.execute(Statement.java:711):711
at
railo.runtime.orm.hibernate.HibernateSessionFactory.executeSQLScript(HibernateSessionFactory.java:
209):209
at
railo.runtime.orm.hibernate.HibernateSessionFactory.schemaExport(HibernateSessionFactory.java:
168):168
at
railo.runtime.orm.hibernate.HibernateSessionFactory.createConfiguration(HibernateSessionFactory.java:
153):153
at
railo.runtime.orm.hibernate.HibernateORMEngine.getSessionFactory(HibernateORMEngine.java:
247):247
at
railo.runtime.orm.hibernate.HibernateORMEngine.init(HibernateORMEngine.java:
111):111
at railo.runtime.config.ConfigImpl.getORMEngine(ConfigImpl.java:
3055):3055
at railo.runtime.config.ConfigImpl.resetORMEngine(ConfigImpl.java:
3041):3041
at railo.runtime.orm.ORMUtil.resetEngine(ORMUtil.java:45):45
at
railo.runtime.listener.ModernAppListener.initApplicationContext(ModernAppListener.java:
369):369
at
railo.runtime.listener.ModernAppListener._onRequest(ModernAppListener.java:
96):96
at
railo.runtime.listener.MixedAppListener.onRequest(MixedAppListener.java:
23):23
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1986):
1986
at railo.runtime.PageContextImpl.execute(PageContextImpl.java:1953):
1953
at
railo.runtime.engine.CFMLEngineImpl.serviceCFML(CFMLEngineImpl.java:
283):283
at railo.loader.servlet.CFMLServlet.service(CFMLServlet.java:32):32
at javax.servlet.http.HttpServlet.service(HttpServlet.java:717):717
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
290):290
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206
at com.seefusion.Filter.doFilter(Filter.java:49):49
at com.seefusion.SeeFusion.doFilter(SeeFusion.java:1500):1500
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:
235):235
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:
206):206
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:
235):235
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:
191):191
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:
127):127
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:
102):102
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:
109):109
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:
330):330
at org.apache.coyote.ajp.AjpProcessor.process(AjpProcessor.java:
436):436
at org.apache.coyote.ajp.AjpProtocol
$AjpConnectionHandler.process(AjpProtocol.java:384):384
at org.apache.tomcat.util.net.JIoEndpoint
$Worker.run(JIoEndpoint.java:447):447
at java.lang.Thread.run(Thread.java:680):680