使用Oracle数据库生成实体后 无法启动项目

2019-02-22 10:53:36
[ERROR]-[Thread: main]-[com.jfinal.core.Config.startPlugins()]: Plugin start error: com.jfinal.plugin.activerecord.ActiveRecordPlugin.
java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符

com.jfinal.plugin.activerecord.ActiveRecordException: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符

    at com.jfinal.plugin.activerecord.TableBuilder.build(TableBuilder.java:55)
    at com.jfinal.plugin.activerecord.ActiveRecordPlugin.start(ActiveRecordPlugin.java:226)
    at com.jfinal.core.Config.startPlugins(Config.java:128)
    at com.jfinal.core.Config.configPluginWithOrder(Config.java:71)
    at com.jfinal.core.Config.configJFinal(Config.java:56)
    at com.jfinal.core.JFinal.init(JFinal.java:61)
    at com.jfinal.core.JFinalFilter.init(JFinalFilter.java:63)
    at io.undertow.servlet.core.LifecyleInterceptorInvocation.proceed(LifecyleInterceptorInvocation.java:111)
    at io.undertow.servlet.core.ManagedFilter.createFilter(ManagedFilter.java:80)
    at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:589)
    at io.undertow.servlet.core.DeploymentManagerImpl$2.call(DeploymentManagerImpl.java:554)
    at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
    at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
    at io.undertow.servlet.core.DeploymentManagerImpl.start(DeploymentManagerImpl.java:596)
    at com.jfinal.server.undertow.UndertowServer.configHttp(UndertowServer.java:277)
    at com.jfinal.server.undertow.UndertowServer.doStart(UndertowServer.java:255)
    at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:152)
    at com.jfinal.server.undertow.UndertowServer.start(UndertowServer.java:81)
    at com.Run.main(Run.java:29)
Caused by: java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符

    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:439)
    at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:395)
    at oracle.jdbc.driver.T4C8Oall.processError(T4C8Oall.java:802)
    at oracle.jdbc.driver.T4CTTIfun.receive(T4CTTIfun.java:436)
    at oracle.jdbc.driver.T4CTTIfun.doRPC(T4CTTIfun.java:186)
    at oracle.jdbc.driver.T4C8Oall.doOALL(T4C8Oall.java:521)
    at oracle.jdbc.driver.T4CStatement.doOall8(T4CStatement.java:194)
    at oracle.jdbc.driver.T4CStatement.executeForDescribe(T4CStatement.java:853)
    at oracle.jdbc.driver.OracleStatement.executeMaybeDescribe(OracleStatement.java:1145)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1267)
    at oracle.jdbc.driver.OracleStatement.executeQuery(OracleStatement.java:1469)
    at oracle.jdbc.driver.OracleStatementWrapper.executeQuery(OracleStatementWrapper.java:389)
    at com.alibaba.druid.pool.DruidPooledStatement.executeQuery(DruidPooledStatement.java:140)
    at com.jfinal.plugin.activerecord.TableBuilder.doBuild(TableBuilder.java:71)
    at com.jfinal.plugin.activerecord.TableBuilder.build(TableBuilder.java:47)
    ... 18 more
java.lang.RuntimeException: Plugin start error: com.jfinal.plugin.activerecord.ActiveRecordPlugin.
java.sql.SQLSyntaxErrorException: ORA-00911: 无效字符

评论区

JFinal

2019-02-22 11:56

注意配置好方言:
arp.setDialect(new OracleDialect());

haoran789

2019-02-22 17:05

@JFinal 明白了 原来这里还要设置

热门反馈

扫码入社