2015年 3月
TOMCAT XMLのパーサーでのエラー TOMCATのデフォルトがUTF-8ではないから
// ドキュメントビルダーファクトリを生成
DocumentBuilderFactory dbfactory = DocumentBuilderFactory.newInstance();
// ドキュメントビルダーを生成
DocumentBuilder builder = dbfactory.newDocumentBuilder();
// パースを実行してDocumentオブジェクトを取得
ByteArrayInputStream stream = new ByteArrayInputStream(xml.getBytes());
Document doc = builder.parse(stream);
ここでのエラー
com.sun.org.apache.xerces.internal.impl.io.MalformedByteSequenceException: 1バイトのUTF-8シーケンスのバイト1が無効です。
この場合は、
java7w.exe を起動して、Java Optionsに「-Dfile.encoding=UTF8」を追加する。
SQL文 ジョインして更新
[TEXT]
update schedule set
[full_name] = user_info_table.last_name + ‘ ‘ + user_info_table.first_name
, [organization_name] = organization.organization_name
FROM [dbo].[schedule]
LEFT JOIN user_info_table ON user_info_table.user_info_table_id = schedule.user_info_table_id
left join user_info_table_organization on user_info_table_organization.user_info_table_id = user_info_table.user_info_table_id and user_info_table_organization.default_flg = 1
left join organization on organization.organization_id = user_info_table_organization.organization_id
WHERE full_name is null AND user_info_table.user_info_table_id is not NULL
[/TEXT]