今天在用原生sql, jdbc操作数据库时老有问题: java.sql.SQLException: ORA-00911: 无效字符
[getStillOpenSlStatusChanges- getStillOpenSlStatusChanges error:
java.sql.SQLException: ORA-00911: 无效字符
at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:134)
at oracle.jdbc.ttc7.TTIoer.processError(TTIoer.java:289)
at oracle.jdbc.ttc7.Oall7.receive(Oall7.java:573)
at oracle.jdbc.ttc7.TTC7Protocol.doOall7(TTC7Protocol.java:1891)
at oracle.jdbc.ttc7.TTC7Protocol.parseExecuteDescribe(TTC7Protocol.java:830)
at oracle.jdbc.driver.OracleStatement.doExecuteQuery(OracleStatement.java:2391)
at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:2672)
at oracle.jdbc.driver.OraclePreparedStatement.executeUpdate(OraclePreparedStatement.java:589)
at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:527)
at com.hp.sqm.slam.slaenginenextgen.persistence.dao.impl.SLStatusChangeDAOImpl.getStillOpenSlStatusChanges(SLStatusChangeDAOImpl.java:174)
at com.hp.sqm.slam.slaenginenextgen.persistence.dao.impl.SLStatusChangeDAOImplTest.getStillOpenSlStatusChanges(SLStatusChangeDAOImplTest.java:144)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at org.testng.internal.MethodHelper.invokeMethod(MethodHelper.java:643)
at org.testng.internal.Invoker.invokeMethod(Invoker.java:558)
at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:722)
at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1023)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:137)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:121)
at org.testng.TestRunner.runWorkers(TestRunner.java:891)
at org.testng.TestRunner.privateRun(TestRunner.java:615)
at org.testng.TestRunner.run(TestRunner.java:496)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:323)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:318)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:290)
at org.testng.SuiteRunner.run(SuiteRunner.java:195)
at org.testng.TestNG.createAndRunSuiteRunners(TestNG.java:904)
at org.testng.TestNG.runSuitesLocally(TestNG.java:871)
at org.testng.TestNG.run(TestNG.java:779)
at org.testng.remote.RemoteTestNG.run(RemoteTestNG.java:75)
at org.testng.remote.RemoteTestNG.main(RemoteTestNG.java:127)
DEBUG [main] com.hp.sqm.slam.slaenginenextgen.persistence.dao.impl.SLStatusChangeDAOImplTest getStillOpenSlStatusChanges- After getStillOpenSlStatusChanges(), There is nothing we got!
INFO [main] com.hp.sqm.slam.slaenginenextgen.persistence.dao.impl.DataAccessServiceBaseTest tearDown- closing EntityManagerFactory
DEBUG [main] org.hibernate.jdbc.ConnectionManager closeConnection- releasing JDBC connection [ (open PreparedStatements: 0, globally: 0) (open ResultSets: 0, globally: 0)]
DEBUG [main] org.hibernate.jdbc.ConnectionManager aggressiveRelease- aggressively releasing JDBC connection
差了老半天,晕啊, 原来在sql结束时加了‘;’,而jdbc 对sql的要求是不加的, 哎,问题解决了就好,以此为戒!!
分享到:
相关推荐
在oracle里面运行一下,解决Exception java.sql.SQLException ORA-00600 内部错误代码
java.sql.SQLException: 不支持的字符集 (在类路径中添加 orai18n.jar): ZHS16GBK ……
NULL 博文链接:https://listen-raining.iteye.com/blog/1962065
NULL 博文链接:https://zhang-zling.iteye.com/blog/980488
oracle ora-各种常见java.sql.SQLException归纳
服务器出现java.sql.SQLException No suitable driver found for 的
Q: I am working with ... I am using updateBinaryStream method of resultset to update the BLOB field but it is failing after giving following exception java.sql.SQLException: Internal Error: Unable to
本文主要介绍了关于MySQL存储表情报错:java.sql.SQLException: Incorrect string value: ‘\xF0\x9F\x92\xA9\x0D\x0A…’的相关解决方法,分享出供大家参考学习,下面话不多说了,来一起看看详细的介绍: ...
有关表死锁的详细图片 博文链接:https://meteor-1988.iteye.com/blog/1568695
java.sql.SQLException: null, message from server: “Host ‘223.72.41.7’ is not allowed to connect to this MySQL server” 客户端访问时报错: 解决方法: 1,登陆服务器 mysql> use mysql; //用mysql ...
非常方便的一个oracle管理工具,数据库开发和管理员都适用,可以进行数据库的日常开发,管理,优化工作,功能很全,对于dba来说,可以进行一些高级功能比如,awr, ash, 10046等功能。
2008/06/25 13:30:57 - oracl - ERROR : java.sql.SQLException: ORA-01722: 无效数字 2008/06/25 13:30:57 - oracl - ERROR : at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:125)
主要给大家介绍了关于MySQL存储表情时报错:java.sql.SQLException: Incorrect string value: 'xF0x9Fx92xA9x0Dx0A...'的解决方法,文中通过示例代码介绍的非常详细,需要的朋友可以参考借鉴,下面来一起看看吧。
今天在项目中,使用Mybatis对oracle数据库进行操作的时候,报出ORA-00911: invalid character的错误,检查了一下SQL,发现都书写正确啊,复制到plsql上执行也都没问题,这什么原因呢? 注意:这里说的是用navicat...
利用时执行如 tasklist /svc 、net user 等命令时出现 ORA-24345: 出现截断或空读取错误,且文件管理功能出现问题,无法上传webshell,因此萌生了重写利用工具的想法。
mysql5.6连接驱动jaf,可处理报错java.sql.SQLException: No suitable driver
ORA-01157解决方案
oracle 10g 数据库驱动下载:oracle jdbc dirver
oracle实例的内存(SGA和PGA)进行调整,优化数据库性
java.sql.SQLException: Operation not allowed after ResultSet closed java.sql.SQLException: QueryRunner requires a DataSource to be invoked in this way, or a Connection should be passed in