informix 查询中很怪异的问题 期待高手进来解决

aihh123 2008-09-26 02:08:53
公司作了一套系统 数据库用的是informix 数据库是安装在linux系统下 前台发布程序是xp系统中 web容器是weblogic

在查询时候 出现一个很怪异的问题:

在输入条件为中文
当输入一些不长的中文查询的时候,程序运行不报错,当输入一些中文的长度稍长的时候 程序运行就报如下的错误。(比如说我输入12个汉字能正常查询,也有可能我输入10个汉字查询的时候,出现下面的报错界面。对于一些能够查询的,比如说:‘兰州远舰商贸有限公司’一直能够查询,但是对'甘肃亨星交通运输集团有限公司'查询却一直报错。)
Error 500--Internal Server Error
java.sql.SQLException: [BEA][Informix JDBC Driver][Informix]An illegal character has been found in the statement.
at weblogic.jdbc.base.BaseExceptions.createException(Unknown Source)
at weblogic.jdbc.base.BaseExceptions.getException(Unknown Source)
at weblogic.jdbc.informix.sqli.InformixSQLIRequest.processReply(Unknown Source)
at weblogic.jdbc.informix.sqli.InformixSQLICursorRequest.openCursor(Unknown Source)
at weblogic.jdbc.informix.InformixImplStatement.execute(Unknown Source)
at weblogic.jdbc.base.BaseStatement.commonExecute(Unknown Source)
at weblogic.jdbc.base.BaseStatement.executeQueryInternal(Unknown Source)
at weblogic.jdbc.base.BaseStatement.executeQuery(Unknown Source)
at weblogic.jdbcx.base.BaseStatementWrapper.executeQuery(Unknown Source)
at weblogic.jdbc.wrapper.Statement.executeQuery(Statement.java:399)
at jsp_servlet._customergb.__customercx._jspService(__customercx.java:410)
at weblogic.servlet.jsp.JspBase.service(JspBase.java:33)
at weblogic.servlet.internal.ServletStubImpl$ServletInvocationAction.run(ServletStubImpl.java:1072)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:465)
at weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:348)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6981)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
at weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3892)
at weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2766)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:224)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:183)

问题很怪异 还请高人过来指导指导 一起相互学习学习

...全文
840 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
hfcinfo 2008-11-11
  • 打赏
  • 举报
回复
好像是你把dos环境转成unix环境就可以了
:set unix = f
aihh123 2008-09-26
  • 打赏
  • 举报
回复
暂时没分 无法撒分了 以后有分了一定给

1,194

社区成员

发帖
与我相关
我的任务
社区描述
其他数据库开发 Informix
社区管理员
  • Informix社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧