由于无法实例化类 XXX,推进生成器失败
过去两个月我一直在构建一个新项目,直到前几天我可能已经运行了 propel-gen om 10-15 次,没有失败。我做了一个快速的梨升级,然后推进-gen om,似乎得到了一个我不明白的错误。
我在两台 Windows 机器和一台 Linux 机器上尝试过,但总是遇到同样的错误。
首先,是否有人有一个完整的项目可以工作,我可以尝试构建以排除这与 phing 相关的可能性。
从这里有什么明显的吗?
我的 build.properties 看起来这个
#start of file
# Database driver
propel.project = Cream
propel.targetPackage = {propel.project}
propel.database = mysql
project.home = C:\xampp\htdocs\Cream
project.build = ${project.home}/propel
propel.output.dir = ${project.home}
propel.php.dir = ${propel.output.dir}/ActiveRecord
propel.phpconf.dir = ${propel.output.dir}/ActiveRecord/config
propel.sql.dir = ${project.build}/sql
propel.database.url = mysql:host=localhost;dbname=cream
propel.database.user = root
propel.database.password =
propel.addGenericAccessors = true
propel.addGenericMutators = true
propel.addTimeStamp = true
propel.addIncludes = false
#end of file
错误消息有很多
could not instantiate class propelSQLTask
could not instantiate class propelSchemaReverseTask
could not instantiate class propelDataSQLTask
等等
I have been building a new project for the last 2 months, I probably have ran the propel-gen om 10-15 times without fail until the other day. I did a quick pear upgrade and then propel-gen om and seem to get an error i dont understand.
I have tried on two windows machines and one linux machine and I keep getting the same error.
First off does anyone have a complete project which works, that I can try and build to rule out the possibility this is phing related.
anything obvious from this?
my build.properties looks like this
#start of file
# Database driver
propel.project = Cream
propel.targetPackage = {propel.project}
propel.database = mysql
project.home = C:\xampp\htdocs\Cream
project.build = ${project.home}/propel
propel.output.dir = ${project.home}
propel.php.dir = ${propel.output.dir}/ActiveRecord
propel.phpconf.dir = ${propel.output.dir}/ActiveRecord/config
propel.sql.dir = ${project.build}/sql
propel.database.url = mysql:host=localhost;dbname=cream
propel.database.user = root
propel.database.password =
propel.addGenericAccessors = true
propel.addGenericMutators = true
propel.addTimeStamp = true
propel.addIncludes = false
#end of file
error message is a lot of
could not instantiate class propelSQLTask
could not instantiate class propelSchemaReverseTask
could not instantiate class propelDataSQLTask
etc etc
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
问题原来是 propel 不支持最新的 phing,您必须降级您的 phing 才能解决问题
the issue turned out to be propel does not support the latest phing you must downgrade your phing in order to solve the issue
只是一个小小的澄清 - 不兼容是相反的。 Propel 打算与最新版本的 Phing 配合使用,但最新版本的 Phing 打破了向后兼容性。据我所知,这个问题将在新版本的 Phing 中得到纠正——该版本可能已经发布。
Just a minor clarification - the incompatibility is the other way around. Propel intends to work with the latest version of Phing, but the latest version of Phing broke backwards compatibility. I understand this will be rectified in a new version of Phing -- which may already be released.