@JFinal 请问一下
我的数据库是Oracle 下面是我的url配置
C3p0Plugin c3p0Plugin = new C3p0Plugin("jdbc:oracle:thin:@(DESCRIPTION =(ADDRESS = (PROTOCOL = TCP)(HOST = 192.168.0.21)(PORT = 1521))(CONNECT_DATA =(SERVER = DEDICATED)(SERVICE_NAME = orcl)))", "hdxyuser", "hdxypass","oracle.jdbc.driver.OracleDriver");
但是系统报错:错误信息如下
Exception in thread "main" java.lang.RuntimeException: java.sql.SQLException: ORA-00911: invalid character
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:102)
at com.jfinal.plugin.activerecord.generator.Generator.generate(Generator.java:210)
at cn.gdpe.domain._JFinalDemoGenerator.main(_JFinalDemoGenerator.java:43)
Caused by: java.sql.SQLException: ORA-00911: invalid character
at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:112)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:331)
at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:288)
at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:743)
at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:207)
at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:790)
at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1039)
at oracle.jdbc.driver.T4CStatement.executeMaybeDescribe(T4CStatement.java:830)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1132)
at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1272)
at com.mchange.v2.c3p0.impl.NewProxyStatement.executeQuery(NewProxyStatement.java:327)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.buildColumnMetas(MetaBuilder.java:216)
at com.jfinal.plugin.activerecord.generator.MetaBuilder.build(MetaBuilder.java:97)
... 2 more
尝试改一下jdbcUrl配置,删掉里面的空格,将全角字符改成半角字符等等。先确保数据库可以连上回复<aclass='referer'target='_blank'>@JFinal:谢谢我还有一个问题我当前页面的url是localhost:8888/JFinalWest/page/list.jsp我用插件来上传图片我ajax的url写的是/JFinalWest/DeleteFile但是后台报错说找不到/page/DeleteFile为什么ajax会自动添加了page回复<aclass='referer'target='_blank'>@李永china:填入能访问到该action的url即可,规则就是jfinal路由规则,jfinal手册中有说明,在此下载http://www.jfinal.com回复<aclass='referer'target='_blank'>@JFinal:谢谢那里面的路径怎么写呢forwardAction回复<aclass='referer'target='_blank'>@李永china:同一个Controller中的action互相跳转,如果是后端解决,直接用forwardAction(...)就可以,这样可以触发其拦截器,也可以直接调用method(),但这样不会触发该action上的拦截器回复<aclass='referer'target='_blank'>@JFinal:你好同一个action的跳转需要怎么写呢/项目名/action名/方法名这样写么把_JFinalDemoGenerator代码贴出来<divclass='ref'>
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。