社区
Java EE
帖子详情
求助:Unicode string can't convert to Ebcdic string错误!
Fire-Blood
2004-11-16 09:49:39
JBuilder9 + Tomcat4.1 + DB2 8.1 WIN2000 SERVER sp4
struts1.1
调试连接DB2时出现com.ibm.db2.jcc.b.SQLException: Unicode string can't convert to Ebcdic string 错误
请各位指点,小弟在此拜谢了~~~
...全文
654
2
打赏
收藏
求助:Unicode string can't convert to Ebcdic string错误!
JBuilder9 + Tomcat4.1 + DB2 8.1 WIN2000 SERVER sp4 struts1.1 调试连接DB2时出现com.ibm.db2.jcc.b.SQLException: Unicode string can't convert to Ebcdic string 错误 请各位指点,小弟在此拜谢了~~~
复制链接
扫一扫
分享
转发到动态
举报
写回复
配置赞助广告
用AI写文章
2 条
回复
切换为时间正序
请发表友善的回复…
发表回复
打赏红包
Fire-Blood
2004-11-16
打赏
举报
回复
程序如下:
package test;
/**
* <p>Title: </p>
* <p>Description: </p>
* <p>Copyright: Copyright (c) 2004</p>
* <p>Company: </p>
* @author not attributable
* @version 1.0
*/
import java.sql.*;
import java.io.FileWriter;
import java.io.IOException;
/**
* @author kevin
* JDBCConnectTest
*/
public class JDBCConnectTest {
// Log FileWritter
private static FileWriter _logger = null;
// Connection to DB2 V8.1
private static Connection newcon = null;
public static void main(String[] args)
{
try {
_logger = new FileWriter("JDBCConnectTest.log");
ConnectV8_1();
} catch (Exception ex) {
try
{
_logger.write("Exception || Main Function\n");
_logger.flush();
}catch(Exception eex)
{
eex.printStackTrace();
}
ex.printStackTrace();
}finally
{
try
{
if(null != _logger)
{
_logger.flush();
_logger.close();
_logger = null;
}
}catch(Exception eeex)
{
eeex.printStackTrace();
}
}
}
private static void ConnectV8_1()
{
try {
/*********************
* Connect to Database V 8.1
*********************/
//Class.forName("COM.ibm.db2.jdbc.app.DB2Driver");
Class.forName("com.ibm.db2.jcc.DB2Driver");
_logger.write(
"Connect to DB2 V8.1 Driver: com.ibm.db2.jcc.DB2Driver\n");
_logger.flush();
newcon =
DriverManager.getConnection(
"jdbc:db2://10.0.0.213:50000/CCCLUB",
"db2admin",
"db2admin");
_logger.write(
"Connect to DB2 V8.1 Successful! URL: jdbc:db2://10.0.0.213:50000/CCCLUB Username: db2admin Password: db2admin\n");
_logger.flush();
newcon.setAutoCommit(false);
} catch (SQLException sqlex) {
try
{
_logger.write("SQLException || Connect to Database V8.1\n");
_logger.flush();
sqlex.printStackTrace();
}catch(Exception ex)
{
}
} catch (Exception ex) {
try
{
_logger.write("Exception || Connect to Database V8.1\n");
_logger.flush();
ex.printStackTrace();
}catch(Exception eex)
{
}
}
}
}
frhwxx
2004-11-16
打赏
举报
回复
贴出程序来!
表面看是程序不能把Unicode字符转换成Ebcdic字符
华为荣耀recovery1.0
源码链接: https://pan.quark.cn/s/a4b39357ea24 This directory contains a script ('makefsdata') to create C code suitable for httpd for given html pages (or other files) in a directory. There is also a plain C console application doing the same and extended a bit. Usage: htmlgen [targetdir] [-s] [-i]s targetdir: relative or absolute path to files to
convert
switch -s: toggle processing of subdirectories (default is on) switch -e: exclude HTTP header from file (header is created at runtime, default is on) switch -11: include HTTP 1.1 header (1.0 is default) if targetdir not specified, makefsdata will attempt to process files in subdirectory 'fs'.
光纤耦合器Matlab模拟.rar
光纤耦合器Matlab模拟.rar
ModbusDoctor软件
官网下载地址:需墙:https://www.kscada.com/modbusdoctor.html 使用非常简单,并且免费、免安装 Modbus Doctor(强烈推荐) 下载地址:搜索 “Modbus Doctor” 官网或 GitHub 界面现代化,支持中文,操作和 Modbus Poll 很像
Java EE
67,535
社区成员
225,852
社区内容
发帖
与我相关
我的任务
Java EE
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
复制链接
扫一扫
分享
社区描述
J2EE只是Java企业应用。我们需要一个跨J2SE/WEB/EJB的微容器,保护我们的业务核心组件(中间件),以延续它的生命力,而不是依赖J2SE/J2EE版本。
社区管理员
加入社区
获取链接或二维码
近7日
近30日
至今
加载中
查看更多榜单
社区公告
暂无公告
试试用AI创作助手写篇文章吧
+ 用AI写文章