English 中文(简体)
服务器收到的外地身份不明指数
原标题:Unknown character set index for field received from server

I have an instance of MySQL 5.0.4.1 with an application written in Hibernate. On one of the pages, I get the following error message in the server log:

服务器收到的外地123名身份不明指数:
at com.mysql.jdbc.Connection.getCharsetNameForIndex(Connection.java:1664)
com.mysql.jdbc. Field. ( Field.java:144)
at com.mysql.jdbc.MysqlIO.un Pack Field (MysqlIO.java:506)
at com.mysql.jdbc.MysqlIO.getResultSet (MysqlIO.java:280)
at com.mysql.jdbc.Connection.setAutoCommit(Connection.java:536)
at org.apache.commons.dbcp.PoolingDataSource$PoolGuardConnectionWrapper.setAutoCommit (PoolingDataSource.java:293)
at iii iii org. Cerframework.transaction.support.AbstractPlatform TransactionManager.rollback(AbstractPlatform TransactionManager.java:556) iii iii org.childrenframework.aop.framework.ReflectiveMethodInue.proceed(ReflectiveMethodInue.java:170)
at org.acegisecurity.intercept.method.aopalliance.Method Security Interceptor.invoke(Method Security Interceptor.java:<66)br/>at org.childrenframework.aop.framework.ReflectiveMethodInue.proceed(ReflectiveMethodInue.java:170)
at org.acegisecurity.intercept.method.aopalliance.Method Security Interceptor.invoke(Method Security Interceptor.java:<66)br/>at org.childrenframework.aop.framework.ReflectiveMethodInue.proceed(ReflectiveMethodInue.java:170)
at org.childrenframework.aop.framework.JdkDynamicAopProxy.invoke (JdkDynamicAopProxy.java:176)
at Proxy6.getDataFromDatabase(未知来源)
at org.myCompany.myAction.load(未知来源)
at日,reflect.NativeMethodAccessorImpl.invoke0 (Nativemeth)
at org.apache.struts.actions.DisTOPAction.disTOPMethod(DistributionAction.java:274)
at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:224)
at iii iii org.acegisecurity.ui.Exception TranslationFilter.doFilter(Exception TranslationFilter.java:110)
at org.acegisecurity.util.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:274) iii iii org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:217)
iii org.acegisecurity.util.FilterChainProxy.doFilter (FilterChainProxy.java:148)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:213)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:280) org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) iii org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:209)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:509) com.iplanet.ias.web.linkor.nsapi.NSAPIProcessor.process (NSAPIProcessor.java:157)
at com.iplanet.ias.web.WebContainer.service(WebContainer.java:579)

这一错误发生在生产环境中,因此我不知道哪些问题产生了问题,但我确实知道,我的表格中没有一栏列出123。 你们是否对造成这一问题的原因提出任何建议?

<><>Edit>: 作为后续行动,我发现,这一行为是中已知的 b”,但我没有发现一种好的举动,因为我没有选择提升我的SQL。

问题回答

可能的话是,为外地设定的某种特性被定为无效价值,将这种特性放在服务器上,而问题在于取代表格名称,而栏目将显示每个瓦尔果园/果园区的特性。

SHOW FULL COLUMNS IN table_name;

那么,你可以通过以下方式改变一个领域的特性:

ALTER TABLE t MODIFY col1 VARCHAR(50) CHARACTER SET latin1;

在内部,MySQL正在绘制各栏的指数。 通常采用代表栏目指数的分类。 多数指数是一旦建立(第1栏+第3栏)即构成如下内容的复合指数:field 13>。

Likely this happened when migrating data from dev into production when the stack is not an exact replica.

https://stackoverflow.com/users/292662/3urdoch” 各位提到,你可以利用MySQL的内部功能,把桌子改成兼容的编码。

或者(如果我愿意提出这一问题的话),你可以检查装载司机是否为<代码>。 制作与<代码>的装载驱动器相匹配。 其他服务器。 www.un.org/Depts/DGACM/index_spanish.htm 如果<代码>,这将防止再次出现问题。 发展。 服务器仍在用于测试,并移至<代码>。 生产/编码。





相关问题
SQL SubQuery getting particular column

I noticed that there were some threads with similar questions, and I did look through them but did not really get a convincing answer. Here s my question: The subquery below returns a Table with 3 ...

please can anyone check this while loop and if condition

<?php $con=mysql_connect("localhost","mts","mts"); if(!con) { die( unable to connect . mysql_error()); } mysql_select_db("mts",$con); /* date_default_timezone_set ("Asia/Calcutta"); $date = ...

php return a specific row from query

Is it possible in php to return a specific row of data from a mysql query? None of the fetch statements that I ve found return a 2 dimensional array to access specific rows. I want to be able to ...

Character Encodings in PHP and MySQL

Our website was developed with a meta tag set to... <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> This works fine for M-dashes and special quotes, etc. However, I ...

Pagination Strategies for Complex (slow) Datasets

What are some of the strategies being used for pagination of data sets that involve complex queries? count(*) takes ~1.5 sec so we don t want to hit the DB for every page view. Currently there are ~...

Averaging a total in mySQL

My table looks like person_id | car_id | miles ------------------------------ 1 | 1 | 100 1 | 2 | 200 2 | 3 | 1000 2 | 4 | 500 I need to ...