Wirebox error #1

Open
Molnfront opened this Issue Dec 16, 2011 · 3 comments

Comments

Projects
None yet
1 participant
@Molnfront

I tried solitary on my Railo 3.3.1 installation, with latest stable Coldbox.

Do I have to configure wirebox in some way?

This is the error I got:

Railo 3.3.1.000 Error (expression)
Message variable [BINDER] doesn't exist
Stacktrace The Error Occurred in
/Users/uhjhg/cloudbees/ormtest/webapp/modules/solitary/ModuleConfig.cfc: line 91
89:
90: // wirebox mappings
91: binder.map("SecurityService@Solitary")
92: .to("#moduleMapping#.model.security.SecurityService")
93: .asSingleton();

@Molnfront

This comment has been minimized.

Show comment Hide comment
@Molnfront

Molnfront Dec 16, 2011

I am using cb 3.1.0.

when I add this to the Coldbox.cfc:
wirebox = {
enabled = true,
singletonReload = true,
};

I no longer get the binder error. But instead I get:

Railo 3.3.1.000 Error (org.hibernate.hql.ast.QuerySyntaxException)
Message User is not mapped [select count(*) from User]
Cause org.hibernate.hql.ast.QuerySyntaxException
Stacktrace The Error Occurred in
/Users/hgjhgjhghj/cloudbees/orm/webapp/Coldbox/system/orm/hibernate/BaseORMService.cfc: line 730
728: // execute query as unique for the count
729: try{
730: return ORMExecuteQuery( buffer.toString(), arguments.params, true, options);
731: }
732: catch("java.lang.NullPointerException" e){

I am using cb 3.1.0.

when I add this to the Coldbox.cfc:
wirebox = {
enabled = true,
singletonReload = true,
};

I no longer get the binder error. But instead I get:

Railo 3.3.1.000 Error (org.hibernate.hql.ast.QuerySyntaxException)
Message User is not mapped [select count(*) from User]
Cause org.hibernate.hql.ast.QuerySyntaxException
Stacktrace The Error Occurred in
/Users/hgjhgjhghj/cloudbees/orm/webapp/Coldbox/system/orm/hibernate/BaseORMService.cfc: line 730
728: // execute query as unique for the count
729: try{
730: return ORMExecuteQuery( buffer.toString(), arguments.params, true, options);
731: }
732: catch("java.lang.NullPointerException" e){

@Molnfront

This comment has been minimized.

Show comment Hide comment
@Molnfront

Molnfront Dec 16, 2011

I removed the if around the methods:

if( userService.count() == 0 && roleService.count() == 0 ){
setupRoles();
setupUsers();
}

So now it sets up the tables in db but then I got a new error:

Railo 3.3.1.000 Error (expression)
Message variable [R] doesn't exist
Stacktrace The Error Occurred in
/Users/hjgjhghgg/cloudbees/orm/webapp/modules/solitary/model/install/Install.cfc: line 62
60: // try and find the role by name
61: var r = roleService.findWhere({name=listGetAt(user.xmlChildren[6].xmlText,x)});
62: u.addRole(r);
63: }
64:

Don't know what it could be, maybe ACF and Railo handles xml differently.

I removed the if around the methods:

if( userService.count() == 0 && roleService.count() == 0 ){
setupRoles();
setupUsers();
}

So now it sets up the tables in db but then I got a new error:

Railo 3.3.1.000 Error (expression)
Message variable [R] doesn't exist
Stacktrace The Error Occurred in
/Users/hjgjhghgg/cloudbees/orm/webapp/modules/solitary/model/install/Install.cfc: line 62
60: // try and find the role by name
61: var r = roleService.findWhere({name=listGetAt(user.xmlChildren[6].xmlText,x)});
62: u.addRole(r);
63: }
64:

Don't know what it could be, maybe ACF and Railo handles xml differently.

@Molnfront

This comment has been minimized.

Show comment Hide comment
@Molnfront

Molnfront Dec 20, 2011

With an sql dump I could circumvent the xml error. Does any one have a sql dump of the schema and the data that the xml file should create?

With an sql dump I could circumvent the xml error. Does any one have a sql dump of the schema and the data that the xml file should create?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment