java / oracle exception - 不支持的字符集

时间:2012-03-29 18:21:59

标签: java sql oracle character-encoding oracle11g

配置为java 1.5,oracle 11g和tomcat 5服务器运行并获得如下所述的异常。任何解决方案都会有所帮助:

user_lname=TEST LAST NAME,email=,usertypes=BILLER|MS_ACCT_ASSOCIATE|PILOT,hr_org_code=,sales_cbu=,sales_team=) from request headers] ==> 2012-03-29 11:09:04,602 (+00:00:00,039) - NDC = [<mrsxport,EMETERS1,1A48AA5D84E103C1BFD9382966CBA316>]
==> 2012-03-29 11:09:04,603 (+00:00:00,040) - requestURL = []
     Error Message: Unexpected exception during generic page setup!
                    An exception occurred while execute the [get_header_data] CallableStatementProcedure!
                    **java.sql.SQLException: Non supported character set: oracle-character-set-178**
                        at oracle.gss.util.NLSError.throwSQLException(NLSError.java:46)
                        at oracle.sql.CharacterSetUnknown.failCharsetUnknown(CharacterSetFactoryThin.java:171)
                        at oracle.sql.CharacterSetUnknown.toString(CharacterSetFactoryThin.java:128)
                        at oracle.xdb.XMLType.processString(XMLType.java:1101)
                        at oracle.xdb.XMLType.processThin(XMLType.java:1136)
                        at oracle.xdb.XMLType.<init>(XMLType.java:541)
                        at oracle.xdb.XMLType.createXML(XMLType.java:344)
                        at com.xerox.xcs.common.ssf.procmgr.jdbc.CallableStatementProcedure.generateXMLOutputParameter(CallableStatementProcedure.java:751)
                        at com.xerox.xcs.common.ssf.procmgr.jdbc.CallableStatementProcedure.generateXMLResponse(CallableStatementProcedure.java:696)
                        at com.xerox.xcs.common.ssf.procmgr.jdbc.CallableStatementProcedure.getNewContent(CallableStatementProcedure.java:406)
                        at com.xerox.xcs.common.ssf.procmgr.jdbc.CallableStatementProcedure.execute(CallableStatementProcedure.java:220)
                        at com.xerox.xcs.common.ssf.procmgr.jdbc.CallableStatementProcedure.execute(CallableStatementProcedure.java:147)
                        at com.xerox.xcs.mrsxport.struts.AbstractGotoPageAction.getHeaderData(AbstractGotoPageAction.java:156)
                        at com.xerox.xcs.mrsxport.struts.AbstractGotoPageAction.execute(AbstractGotoPageAction.java:76)
                        at com.xerox.xcs.mrsxport.struts.GotoViewHistoryPageAction.execute(GotoViewHistoryPageAction.java:64)
                        at org.apache.struts.action.RequestProcessor.processActionPerform(RequestProcessor.java:421)
                        at org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:226)
                        at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1164)
                        at org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:397)
                        at com.xerox.xcs.common.web.struts.SSFBaseActionServlet.doGet(SSFBaseActionServlet.java:189)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:627)
                        at javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
                        at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
                        at org.apache.catalina.core.Appl

1 个答案:

答案 0 :(得分:0)

什么是数据库字符集和国家字符集

SELECT *
  FROM v$nls_parameters
 WHERE parameter LIKE '%CHARACTERSET'

您尝试存储和/或检索哪种数据(例如英语,希伯来语,日语等)?页面的字符集是什么?