<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>权记 &#187; 技术</title>
	<atom:link href="http://www.quanlei.com/category/technology/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.quanlei.com</link>
	<description>一个关于我们生活点滴的网站，一个记录我们酸甜苦辣的日志。</description>
	<lastBuildDate>Thu, 02 Feb 2012 06:37:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Opera浏览器HTML5体验版</title>
		<link>http://www.quanlei.com/2012/01/opera-html5-browser/</link>
		<comments>http://www.quanlei.com/2012/01/opera-html5-browser/#comments</comments>
		<pubDate>Sun, 08 Jan 2012 07:53:29 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[移动开发]]></category>
		<category><![CDATA[HTML5; 浏览器;]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2976</guid>
		<description><![CDATA[具体介绍，大家就看官方网站上的介绍吧：http://www.oupeng.com/oupeng-h5 或者 查看善用佳软的一篇介绍文章：http://xbeta.info/opera-mini.htm 或者 自己在android手机上装个玩玩。 这里列出demo中的地址，可以参考学习： CSS3 Demo: http://h5d.oupeng.com/css3/demo/ 指南针： http://h5d.oupeng.com/html5/opera_compass.html 拍照： http://h5d.oupeng.com/html5/opera_camera.html 定位： http://h5d.oupeng.com/html5/opera_map.html 重力感应： http://h5d.oupeng.com/html5/opera_ball.html 离线存储： http://h5d.oupeng.com/html5/opera_manifest.html Canvas： http://h5d.oupeng.com/canvas/demo/ WebFont: http://h5d.oupeng.com/woff/demo/<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5 Geolocation</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5检测技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5检测技术</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>具体介绍，大家就看官方网站上的介绍吧：<a href="http://www.oupeng.com/oupeng-h5" target="_blank">http://www.oupeng.com/oupeng-h5</a></p>
<p>或者 查看善用佳软的一篇介绍文章：<a href="http://xbeta.info/opera-mini.htm" target="_blank">http://xbeta.info/opera-mini.htm</a></p>
<p>或者 自己在android手机上装个玩玩。</p>
<p>这里列出demo中的地址，可以参考学习：</p>
<p>CSS3 Demo:<br />
<a href="http://h5d.oupeng.com/css3/demo/" target="_blank">http://h5d.oupeng.com/css3/demo/</a></p>
<p>指南针：<br />
<a href="http://h5d.oupeng.com/html5/opera_compass.html" target="_blank">http://h5d.oupeng.com/html5/opera_compass.html</a><br />
<span id="more-2976"></span><br />
拍照：<br />
<a href="http://h5d.oupeng.com/html5/opera_camera.html" target="_blank">http://h5d.oupeng.com/html5/opera_camera.html</a></p>
<p>定位：<br />
<a href="http://h5d.oupeng.com/html5/opera_map.html" target="_blank">http://h5d.oupeng.com/html5/opera_map.html</a></p>
<p>重力感应：<br />
<a href="http://h5d.oupeng.com/html5/opera_ball.html" target="_blank">http://h5d.oupeng.com/html5/opera_ball.html</a></p>
<p>离线存储：<br />
<a href="http://h5d.oupeng.com/html5/opera_manifest.html" target="_blank">http://h5d.oupeng.com/html5/opera_manifest.html</a></p>
<p>Canvas：<br />
<a href="http://h5d.oupeng.com/canvas/demo/" target="_blank">http://h5d.oupeng.com/canvas/demo/</a></p>
<p>WebFont:<br />
<a href="http://h5d.oupeng.com/woff/demo/" target="_blank">http://h5d.oupeng.com/woff/demo/</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&title=Opera%E6%B5%8F%E8%A7%88%E5%99%A8HTML5%E4%BD%93%E9%AA%8C%E7%89%88" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5 Geolocation</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5检测技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5检测技术</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/01/opera-html5-browser/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>HTML5 Geolocation</title>
		<link>http://www.quanlei.com/2012/01/html5-geolocation/</link>
		<comments>http://www.quanlei.com/2012/01/html5-geolocation/#comments</comments>
		<pubDate>Wed, 04 Jan 2012 15:16:07 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[移动开发]]></category>
		<category><![CDATA[HTML5; 浏览器;]]></category>
		<category><![CDATA[LBS]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2961</guid>
		<description><![CDATA[HTML5 Geolocation 的使用流程： 1、浏览器请求一个位置信息； 2、如果用户同意，浏览器就返回位置信息； 3、浏览器通过返回的位置信息应用在应用程序上，达到定位及展现相关信息的目的。 位置信息可以从设备的下列数据源获取： 1、IP地址 2、三维坐标 GPS（Global Positioning System，全球定位系统） 从 RFID、WIFI 和 蓝牙 到 WIFI 的 MAC 地址 GSM 或 CDMA 手机的 ID 位置请求： 单次定位请求 navigator.geolocation.getCurrentPosition(int PositionCallback successCallback, int optional PositionErrorCallback errorCallback, int optional PositionOptions options); 重复性的位置更新请求 var watchId = navigator.geolocation.watchPosition(updateLocation, handleLocationError); navigator.geolocation.clearWatch(watchId); 基于百度地图的Demo：单次请求<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5检测技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5检测技术</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>HTML5 Geolocation 的使用流程：</strong></p>
<p>1、浏览器请求一个位置信息；</p>
<p>2、如果用户同意，浏览器就返回位置信息；</p>
<p>3、浏览器通过返回的位置信息应用在应用程序上，达到定位及展现相关信息的目的。</p>
<p><strong>位置信息可以从设备的下列数据源获取：</strong><br />
<span id="more-2961"></span><br />
1、IP地址</p>
<p>2、三维坐标</p>
<ul>
<li>GPS（Global Positioning System，全球定位系统）</li>
<li>从 RFID、WIFI 和 蓝牙 到 WIFI 的 MAC 地址</li>
<li>GSM 或 CDMA 手机的 ID</li>
</ul>
<p><strong>位置请求：</strong></p>
<ul>
<li>单次定位请求</li>
<blockquote><p>
navigator.geolocation.getCurrentPosition(int PositionCallback successCallback,<br />
                        int optional PositionErrorCallback errorCallback,<br />
                        int optional PositionOptions options);
</p></blockquote>
<li>重复性的位置更新请求</li>
<blockquote><p>
var watchId = navigator.geolocation.watchPosition(updateLocation,<br />
                        handleLocationError);</p>
<p>navigator.geolocation.clearWatch(watchId);
</p></blockquote>
</ul>
<p>基于百度地图的Demo：<a href="http://www.quanlei.com/tutorial/html5/geolocation/baidu.html" title="单次请求-百度地体demo" target="_blank">单次请求</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&title=HTML5+Geolocation" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5检测技术" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E6%25A3%2580%25E6%25B5%258B%25E6%258A%2580%25E6%259C%25AF%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5检测技术</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2012/01/html5-geolocation/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>视频播放兼容解决方案 &#8211; Video For Everybody</title>
		<link>http://www.quanlei.com/2011/12/video-for-everybody/</link>
		<comments>http://www.quanlei.com/2011/12/video-for-everybody/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 04:32:10 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[HTML5; 浏览器;]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2941</guid>
		<description><![CDATA[从这里看到的：http://camendesign.com/code/video_for_everybody 通过一段HTML实现在各个浏览器下的视频播放： HTML5规定，任何内嵌于&#8217;&#60;video&#62;&#8217;元素的标签，除了&#8217;&#60;source&#62;&#8217;都将忽略，因此内嵌&#8217;&#60;object&#62;&#8217;元素保持向后兼容。 对于支持HTML5的浏览器，将使用HTML5进行视频播放； 对于不支持HTML5的浏览器，将自动使用Flash进行播放； 对于不支持HTML5，又没有装Flash的用户，将视频截图提供给用户，提示用户下载视频文件。 Demo地址：http://camendesign.com/code/video_for_everybody/test.html<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5 Geolocation</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>从这里看到的：http://camendesign.com/code/video_for_everybody</p>
<p>通过一段HTML实现在各个浏览器下的视频播放：</p>
<pre class="brush: plain; title: ; notranslate">
&lt;video width=&quot;640&quot; height=&quot;360&quot; controls&gt;
	&lt;!-- MP4 must be first for iPad! --&gt;
	&lt;source src=&quot;__VIDEO__.MP4&quot; type=&quot;video/mp4&quot; /&gt;&lt;!-- Safari / iOS video    --&gt;
	&lt;source src=&quot;__VIDEO__.OGV&quot; type=&quot;video/ogg&quot; /&gt;&lt;!-- Firefox / Opera / Chrome10 --&gt;
	&lt;!-- fallback to Flash: --&gt;
	&lt;object width=&quot;640&quot; height=&quot;360&quot; type=&quot;application/x-shockwave-flash&quot; data=&quot;__FLASH__.SWF&quot;&gt;
		&lt;!-- Firefox uses the `data` attribute above, IE/Safari uses the param below --&gt;
		&lt;param name=&quot;movie&quot; value=&quot;__FLASH__.SWF&quot; /&gt;
		&lt;param name=&quot;flashvars&quot; value=&quot;controlbar=over&amp;amp;image=__POSTER__.JPG&amp;amp;file=__VIDEO__.MP4&quot; /&gt;
		&lt;!-- fallback image. note the title field below, put the title of the video there --&gt;
		&lt;img src=&quot;__VIDEO__.JPG&quot; width=&quot;640&quot; height=&quot;360&quot; alt=&quot;__TITLE__&quot;
		     title=&quot;No video playback capabilities, please download the video below&quot; /&gt;
	&lt;/object&gt;
&lt;/video&gt;
&lt;p&gt;	&lt;strong&gt;Download Video:&lt;/strong&gt;
	Closed Format:	&lt;a href=&quot;__VIDEO__.MP4&quot;&gt;&quot;MP4&quot;&lt;/a&gt;
	Open Format:	&lt;a href=&quot;__VIDEO__.OGV&quot;&gt;&quot;Ogg&quot;&lt;/a&gt;
&lt;/p&gt;
</pre>
<p>HTML5规定，任何内嵌于&#8217;&lt;video&gt;&#8217;元素的标签，除了&#8217;&lt;source&gt;&#8217;都将忽略，因此内嵌&#8217;&lt;object&gt;&#8217;元素保持向后兼容。<br />
<span id="more-2941"></span></p>
<ul>
<li>对于支持HTML5的浏览器，将使用HTML5进行视频播放；</li>
<li>对于不支持HTML5的浏览器，将自动使用Flash进行播放；</li>
<li>对于不支持HTML5，又没有装Flash的用户，将视频截图提供给用户，提示用户下载视频文件。</li>
</ul>
<p>Demo地址：<a href="http://camendesign.com/code/video_for_everybody/test.html" target="_blank">http://camendesign.com/code/video_for_everybody/test.html</a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F&title=%E8%A7%86%E9%A2%91%E6%92%AD%E6%94%BE%E5%85%BC%E5%AE%B9%E8%A7%A3%E5%86%B3%E6%96%B9%E6%A1%88+-+Video+For+Everybody" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="Opera浏览器HTML5体验版" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fopera-html5-browser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Opera浏览器HTML5体验版</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="测试你的浏览器对HTML5的支持情况" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E6%25A3%2580%25E6%25B5%258B%25E4%25BD%25A0%25E7%259A%2584%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25AF%25B9html5%25E7%259A%2584%25E6%2594%25AF%25E6%258C%2581%25E6%2583%2585%25E5%2586%25B5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258226.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">测试你的浏览器对HTML5的支持情况</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="跨浏览器的HTML5 placeholder 实现" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2F%25E8%25B7%25A8%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E7%259A%2584html5-placeholder-%25E5%25AE%259E%25E7%258E%25B0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">跨浏览器的HTML5 placeholder 实现</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5 Geolocation" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2012%2F01%2Fhtml5-geolocation%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5 Geolocation</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="HTML5都变化了什么，加了什么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F02%2Fhtml5%25E9%2583%25BD%25E5%258F%2598%25E5%258C%2596%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%258C%25E5%258A%25A0%25E4%25BA%2586%25E4%25BB%2580%25E4%25B9%2588%25EF%25BC%259F%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fvideo-for-everybody%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">HTML5都变化了什么，加了什么？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/12/video-for-everybody/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>通过Java的static，理解JavaScript的prototype</title>
		<link>http://www.quanlei.com/2011/12/java-static-help-understand-javascript-prototype/</link>
		<comments>http://www.quanlei.com/2011/12/java-static-help-understand-javascript-prototype/#comments</comments>
		<pubDate>Tue, 27 Dec 2011 05:11:49 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[前端开发]]></category>
		<category><![CDATA[编程相关]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2913</guid>
		<description><![CDATA[先看两段代码： Java 代码 JavaScript 代码 共性： 1、都是在构造方法之前就已经初始化了； 2、所有实例对象共享同一个变量；<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[09/51-52周主题] – Java Net and XML parser" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fjava-net-and-xml-parser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[09/51-52周主题] – Java Net and XML parser</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java HTML 解析器：jsoup" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F08%2Fjava-html-parser-jsoup%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java HTML 解析器：jsoup</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="深入理解JVM" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fdeep-understand-java-jvm%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/29/19794411.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">深入理解JVM</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Install Java Plugin To Linux FireFox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Finstall-java-plugin-to-linux-firefox%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Install Java Plugin To Linux FireFox</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="打开浏览器来编程，CodeRun – 基于web的IDE开发工具" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F%25E6%2589%2593%25E5%25BC%2580%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25B0%25B1%25E5%258F%25AF%25E4%25BB%25A5%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%258Ccoderun-%25E5%259F%25BA%25E4%25BA%258Eweb%25E7%259A%2584ide%25E5%25BC%2580%25E5%258F%2591%25E5%25B7%25A5%25E5%2585%25B7%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258260.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">打开浏览器来编程，CodeRun – 基于web的IDE开发工具</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>先看两段代码：</p>
<p class="btitle">Java 代码</p>
<pre class="brush: plain; title: ; notranslate">
public class Dog {
  public static final String type=&quot;golden retriever&quot;;

  public Dog(String name){
    System.out.println(name + &quot; is a &quot; + type + &quot; dog.&quot;);
  }

  public static void main(String[] args){
    Dog dog = new Dog(&quot;tom_1&quot;);
    dog = new Dog(&quot;tom_2&quot;);
  }
}
</pre>
<p class="btitle">JavaScript 代码</p>
<pre class="brush: plain; title: ; notranslate">
function Dog(name){
  alert(name+ &quot; is a &quot; + this.type +&quot; dog&quot;);
}

Dog.prototype.type=&quot;golden retriever&quot;;

var dog = new Dog(&quot;tom_1&quot;);
dog = new Dog(&quot;tom_2&quot;);
</pre>
<p class="btitle">共性：</p>
<p>1、都是在构造方法之前就已经初始化了；</p>
<p>2、所有实例对象共享同一个变量；</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F&title=%E9%80%9A%E8%BF%87Java%E7%9A%84static%EF%BC%8C%E7%90%86%E8%A7%A3JavaScript%E7%9A%84prototype" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[09/51-52周主题] – Java Net and XML parser" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F12%2Fjava-net-and-xml-parser%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[09/51-52周主题] – Java Net and XML parser</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java HTML 解析器：jsoup" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F08%2Fjava-html-parser-jsoup%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java HTML 解析器：jsoup</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="深入理解JVM" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fdeep-understand-java-jvm%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/29/19794411.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">深入理解JVM</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Install Java Plugin To Linux FireFox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Finstall-java-plugin-to-linux-firefox%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Install Java Plugin To Linux FireFox</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="打开浏览器来编程，CodeRun – 基于web的IDE开发工具" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F10%2F%25E6%2589%2593%25E5%25BC%2580%25E6%25B5%258F%25E8%25A7%2588%25E5%2599%25A8%25E5%25B0%25B1%25E5%258F%25AF%25E4%25BB%25A5%25E7%25BC%2596%25E7%25A8%258B%25EF%25BC%258Ccoderun-%25E5%259F%25BA%25E4%25BA%258Eweb%25E7%259A%2584ide%25E5%25BC%2580%25E5%258F%2591%25E5%25B7%25A5%25E5%2585%25B7%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258260.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">打开浏览器来编程，CodeRun – 基于web的IDE开发工具</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/12/java-static-help-understand-javascript-prototype/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>分享：jasperreport的il8n</title>
		<link>http://www.quanlei.com/2011/12/share-jasperreport-il8n/</link>
		<comments>http://www.quanlei.com/2011/12/share-jasperreport-il8n/#comments</comments>
		<pubDate>Wed, 07 Dec 2011 06:37:53 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[iReport;jasperreports]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2905</guid>
		<description><![CDATA[在jasperreport jar包的\net\sf\jasperreports\view\下面有很对viewer_*.properties的文件，这些文件就是默认的il8n文件，但是没有中文的。 那么就把里面某个文件，拽出来，重命名文件名为：viewer_zh_CN.properties 对应的键值对，可以自行更改，然后再把这个中文i18n文件加入到jar包中即可。如下图所示： 中文需要做unicode转换，可以参考下方的demo：<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2Fnet-sf-jasperreports-engine-jrruntimeexception-unknown-hyperlink-target-0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="终于完成了JasperReport的教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2F%25E7%25BB%2588%25E4%25BA%258E%25E5%25AE%258C%25E6%2588%2590%25E4%25BA%2586jasperreport%25E7%259A%2584%25E6%2595%2599%25E7%25A8%258B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">终于完成了JasperReport的教程</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '黑体' is not available to the JVM" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '黑体' is not available to the JVM</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="彻底解决 utf-8 页面调用 gb2312 的js 显示乱码的问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F11%2F%25E5%25BD%25BB%25E5%25BA%2595%25E8%25A7%25A3%25E5%2586%25B3-utf-8-%25E9%25A1%25B5%25E9%259D%25A2%25E8%25B0%2583%25E7%2594%25A8-gb2312-%25E7%259A%2584js-%25E6%2598%25BE%25E7%25A4%25BA%25E4%25B9%25B1%25E7%25A0%2581%25E7%259A%2584%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">彻底解决 utf-8 页面调用 gb2312 的js 显示乱码的问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows8 体验" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fwindows8-have-a-try%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows8 体验</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在jasperreport jar包的\net\sf\jasperreports\view\下面有很对viewer_*.properties的文件，这些文件就是默认的il8n文件，但是没有中文的。</p>
<p>那么就把里面某个文件，拽出来，重命名文件名为：viewer_zh_CN.properties</p>
<p>对应的键值对，可以自行更改，然后再把这个中文i18n文件加入到jar包中即可。如下图所示：</p>
<p><img src="http://pic.dbank.com/p0ywn4ph3t.png" alt="" /><br />
<span id="more-2905"></span><br />
中文需要做unicode转换，可以参考下方的demo：</p>
<pre class="brush: plain; title: ; notranslate">
save=\u4fdd\u5b58
print=\u6253\u5370
reload=\u5237\u65b0
first.page=\u9996\u9875
previous.page=\u4e0a\u4e00\u9875
next.page=\u4e0b\u4e00\u9875
last.page=\u6700\u540e\u4e00\u9875
go.to.page=\u8df3\u8f6c\u5230
actual.size=Actual Size
fit.page=Fit Page
fit.width=Fit Width
zoom.in=\u7f29\u5c0f
zoom.out=\u653e\u5927
zoom.ratio=\u653e\u5927\u500d\u6570
page=\u7b2c{0}\u9875,\u5171{1}\u9875
no.pages=The document has no pages.
error.saving=\u4fdd\u5b58\u6587\u4ef6\u65f6\u51fa\u9519.
error.printing=\u6253\u5370\u62a5\u8868\u65f6\u51fa\u9519.
error.loading=\u52a0\u8f7d\u6587\u4ef6\u65f6\u51fa\u9519.
error.hyperlink=\u94fe\u63a5\u6587\u4ef6\u65f6\u51fa\u9519. See the console for details.
error.displaying=\u663e\u793a\u95ee\u4ef7\u4f60\u662f\u51fa\u9519.
file.exists=\u6587\u4ef6 {0} \u5df2\u5b58\u5728. \u662f\u5426\u8986\u76d6\u003f
file.desc.csv=CSV (*.csv)
file.desc.xml=XML (*.jrpxml, *.xml)
file.desc.xml.embedded.images=Embedded images XML (*.jrpxml, *.xml)
file.desc.html=HTML (*.htm, *.html)
file.desc.xls.single.sheet=Single sheet XLS (*.xls)
file.desc.xls.multiple.sheets=Multiple sheets XLS (*.xls)
file.desc.odt=ODT (*.odt)
file.desc.pdf=PDF (*.pdf)
file.desc.rtf=RTF (*.rtf)
file.desc.docx=DOCX (*.docx)
file.desc.jrprint=JasperReports (*.jrprint)
</pre>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F&title=%E5%88%86%E4%BA%AB%EF%BC%9Ajasperreport%E7%9A%84il8n" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2Fnet-sf-jasperreports-engine-jrruntimeexception-unknown-hyperlink-target-0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="终于完成了JasperReport的教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2F%25E7%25BB%2588%25E4%25BA%258E%25E5%25AE%258C%25E6%2588%2590%25E4%25BA%2586jasperreport%25E7%259A%2584%25E6%2595%2599%25E7%25A8%258B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">终于完成了JasperReport的教程</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '黑体' is not available to the JVM" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">net.sf.jasperreports.engine.util.JRFontNotFoundException: Font '黑体' is not available to the JVM</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="彻底解决 utf-8 页面调用 gb2312 的js 显示乱码的问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F11%2F%25E5%25BD%25BB%25E5%25BA%2595%25E8%25A7%25A3%25E5%2586%25B3-utf-8-%25E9%25A1%25B5%25E9%259D%25A2%25E8%25B0%2583%25E7%2594%25A8-gb2312-%25E7%259A%2584js-%25E6%2598%25BE%25E7%25A4%25BA%25E4%25B9%25B1%25E7%25A0%2581%25E7%259A%2584%25E9%2597%25AE%25E9%25A2%2598%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">彻底解决 utf-8 页面调用 gb2312 的js 显示乱码的问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Windows8 体验" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F09%2Fwindows8-have-a-try%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Windows8 体验</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/12/share-jasperreport-il8n/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree</title>
		<link>http://www.quanlei.com/2011/12/caused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree/</link>
		<comments>http://www.quanlei.com/2011/12/caused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 09:30:24 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[Hibernate]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2878</guid>
		<description><![CDATA[这是一个Hibernate bug，具体可以查看这里：https://hibernate.onjira.com/browse/HHH-2045，截止目前的状态还是Open。 通常是查询时 “in” 后面的集合为空时造成的。 比较简单的解决办法： 当集合为空时，给该空集合加入一个永远都不可能匹配上的值，让不为空。 还有另外一种稍简单办法就是拼接sql语句。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="cannot simultaneously fetch multiple bags 问题的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">cannot simultaneously fetch multiple bags 问题的解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="南非松鼠表演中国功夫" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F12%2F%25E5%258D%2597%25E9%259D%259E%25E6%259D%25BE%25E9%25BC%25A0%25E8%25A1%25A8%25E6%25BC%2594%25E4%25B8%25AD%25E5%259B%25BD%25E5%258A%259F%25E5%25A4%25AB%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2260503.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">南非松鼠表演中国功夫</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="平安从密云京都第一瀑自驾归来" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2F%25E5%25B9%25B3%25E5%25AE%2589%25E4%25BB%258E%25E5%25AF%2586%25E4%25BA%2591%25E4%25BA%25AC%25E9%2583%25BD%25E7%25AC%25AC%25E4%25B8%2580%25E7%2580%2591%25E8%2587%25AA%25E9%25A9%25BE%25E5%25BD%2592%25E6%259D%25A5%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261346.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">平安从密云京都第一瀑自驾归来</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Drawing in code" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F02%2Fdrawing-in-code%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258440.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Drawing in code</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="早起7件事" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F06%2F%25E6%2597%25A9%25E8%25B5%25B77%25E4%25BB%25B6%25E4%25BA%258B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258623.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">早起7件事</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>这是一个Hibernate bug，具体可以查看这里：<a href="https://hibernate.onjira.com/browse/HHH-2045">https://hibernate.onjira.com/browse/HHH-2045</a>，截止目前的状态还是Open。</p>
<p>通常是查询时 “in” 后面的集合为空时造成的。</p>
<p>比较简单的解决办法：</p>
<blockquote><p>
当集合为空时，给该空集合加入一个永远都不可能匹配上的值，让不为空。
</p></blockquote>
<p>还有另外一种稍简单办法就是拼接sql语句。</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F&title=Caused+by%3A+org.hibernate.hql.ast.QuerySyntaxException%3A+unexpected+end+of+subtree" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="cannot simultaneously fetch multiple bags 问题的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">cannot simultaneously fetch multiple bags 问题的解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Firefox下的另一款同步插件- Weave Sync" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2Ffirefox-weave%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258378.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Firefox下的另一款同步插件- Weave Sync</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="webOS上查看电影资讯 – 豆瓣电影" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F12%2Fwebos%25E4%25B8%258A%25E6%259F%25A5%25E7%259C%258B%25E7%2594%25B5%25E5%25BD%25B1%25E8%25B5%2584%25E8%25AE%25AF-%25E8%25B1%2586%25E7%2593%25A3%25E7%2594%25B5%25E5%25BD%25B1%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258239.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">webOS上查看电影资讯 – 豆瓣电影</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="RMI Demo using Registry" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2Frmi-demo-using-registry%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261276.png" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">RMI Demo using Registry</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="坝上" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F07%2F%25E5%259D%259D%25E4%25B8%258A%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261265.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">坝上</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/12/caused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>net.sf.jasperreports.engine.util.JRFontNotFoundException: Font &#8216;黑体&#8217; is not available to the JVM</title>
		<link>http://www.quanlei.com/2011/11/net-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%e9%bb%91%e4%bd%93-is-not-available-to-the-jvm/</link>
		<comments>http://www.quanlei.com/2011/11/net-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%e9%bb%91%e4%bd%93-is-not-available-to-the-jvm/#comments</comments>
		<pubDate>Tue, 29 Nov 2011 10:03:38 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[JasperReport]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2873</guid>
		<description><![CDATA[有些系统可能没有黑体，那么只能继续使用默认字体，当然也可以考虑把黑体的字体文件加入classpath中 下面说一下使用默认字体： 开发 jasperreports-4.1.2.jar包，找到：default.jasperreports.properties 在这里修改jasperreports的默认字体设置 其中 是关键所在。 修改完再扔回包里，就可以了。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2Fnet-sf-jasperreports-engine-jrruntimeexception-unknown-hyperlink-target-0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="终于完成了JasperReport的教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2F%25E7%25BB%2588%25E4%25BA%258E%25E5%25AE%258C%25E6%2588%2590%25E4%25BA%2586jasperreport%25E7%259A%2584%25E6%2595%2599%25E7%25A8%258B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">终于完成了JasperReport的教程</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：jasperreport的il8n" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">分享：jasperreport的il8n</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="JTable Print" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fjtable_print%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">JTable Print</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="深入理解JVM" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fdeep-understand-java-jvm%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/29/19794411.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">深入理解JVM</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>有些系统可能没有黑体，那么只能继续使用默认字体，当然也可以考虑把黑体的字体文件加入classpath中</p>
<p>下面说一下使用默认字体：</p>
<p>开发 jasperreports-4.1.2.jar包，找到：default.jasperreports.properties<br />
在这里修改jasperreports的默认字体设置</p>
<pre class="brush: plain; title: ; notranslate">
# Font settings
net.sf.jasperreports.default.font.name=SansSerif
net.sf.jasperreports.default.font.size=10
net.sf.jasperreports.default.pdf.font.name=Helvetica
net.sf.jasperreports.default.pdf.encoding=Cp1252
net.sf.jasperreports.default.pdf.embedded=false
net.sf.jasperreports.awt.ignore.missing.font=false
</pre>
<p>其中</p>
<pre class="brush: plain; title: ; notranslate">
net.sf.jasperreports.awt.ignore.missing.font=true
</pre>
<p>是关键所在。</p>
<p>修改完再扔回包里，就可以了。</p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25e9%25bb%2591%25e4%25bd%2593-is-not-available-to-the-jvm%2F&title=net.sf.jasperreports.engine.util.JRFontNotFoundException%3A+Font+%27%E9%BB%91%E4%BD%93%27+is+not+available+to+the+JVM" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F09%2Fnet-sf-jasperreports-engine-jrruntimeexception-unknown-hyperlink-target-0%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">net.sf.jasperreports.engine.JRRuntimeException: Unknown hyperlink target 0</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="终于完成了JasperReport的教程" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2F%25E7%25BB%2588%25E4%25BA%258E%25E5%25AE%258C%25E6%2588%2590%25E4%25BA%2586jasperreport%25E7%259A%2584%25E6%2595%2599%25E7%25A8%258B%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">终于完成了JasperReport的教程</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="分享：jasperreport的il8n" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fshare-jasperreport-il8n%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">分享：jasperreport的il8n</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="JTable Print" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fjtable_print%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">JTable Print</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="深入理解JVM" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F07%2Fdeep-understand-java-jvm%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fnet-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%25E9%25BB%2591%25E4%25BD%2593-is-not-available-to-the-jvm%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/07/29/19794411.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">深入理解JVM</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/11/net-sf-jasperreports-engine-util-jrfontnotfoundexception-font-%e9%bb%91%e4%bd%93-is-not-available-to-the-jvm/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Querying @ElementCollections</title>
		<link>http://www.quanlei.com/2011/11/querying-elementcollections/</link>
		<comments>http://www.quanlei.com/2011/11/querying-elementcollections/#comments</comments>
		<pubDate>Thu, 03 Nov 2011 12:06:20 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[JPA]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2861</guid>
		<description><![CDATA[在JPA 2.0中使用到注解 @ElementCollection 在@ElementCollection的属性中做查询 show sql：<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[09/48周主题] – JPA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F0948-week-subject-jpa%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258991.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[09/48周主题] – JPA</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="cannot simultaneously fetch multiple bags 问题的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">cannot simultaneously fetch multiple bags 问题的解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="周主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fweek-subject%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">周主题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/01周主题] – Web 项目开发中的常见问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/01周主题] – Web 项目开发中的常见问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="南锣鼓巷发现两处好吃的" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F09%2F%25E5%258D%2597%25E9%2594%25A3%25E9%25BC%2593%25E5%25B7%25B7%25E5%258F%2591%25E7%258E%25B0%25E4%25B8%25A4%25E5%25A4%2584%25E5%25A5%25BD%25E5%2590%2583%25E7%259A%2584%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2259514.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">南锣鼓巷发现两处好吃的</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>在JPA 2.0中使用到注解 @ElementCollection</p>
<pre class="brush: plain; title: ; notranslate">
public class Budget extends IdEntity {

@ElementCollection(fetch = FetchType.EAGER)
@Column(name = &quot;projectLeaderIDs&quot;)
private List&lt;String&gt; projectLeaderIDs;
}
</pre>
<p>在@ElementCollection的属性中做查询</p>
<pre class="brush: plain; title: ; notranslate">
String sql = &quot;select count(b) from &quot; + Budget.class.getSimpleName()
                + &quot; b,IN (b.projectLeaderIDs) s where :userID in s&quot;;
</pre>
<p>show sql：</p>
<pre class="brush: plain; title: ; notranslate">
Hibernate:
    select
        count(budget0_.id) as col_0_0_
    from
        budget budget0_
    inner join
        Budget_projectLeaderIDs projectlea1_
            on budget0_.id=projectlea1_.Budget_id
    where
        ? in (
            projectlea1_.projectLeaderIDs
        ) limit ?
</pre>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F&title=Querying+%40ElementCollections" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[09/48周主题] – JPA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F0948-week-subject-jpa%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258991.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[09/48周主题] – JPA</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="cannot simultaneously fetch multiple bags 问题的解决办法" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">cannot simultaneously fetch multiple bags 问题的解决办法</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="周主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fweek-subject%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">周主题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/01周主题] – Web 项目开发中的常见问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/01周主题] – Web 项目开发中的常见问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="同一首歌抢吃的" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2008%2F08%2F%25E5%2590%258C%25E4%25B8%2580%25E9%25A6%2596%25E6%25AD%258C%25E6%258A%25A2%25E5%2590%2583%25E7%259A%2584%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2261679.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">同一首歌抢吃的</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/11/querying-elementcollections/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>在对List做remove操作时抛出java.lang.UnsupportedOperationException</title>
		<link>http://www.quanlei.com/2011/10/%e5%9c%a8%e5%af%b9list%e5%81%9aremove%e6%93%8d%e4%bd%9c%e6%97%b6%e6%8a%9b%e5%87%bajava-lang-unsupportedoperationexception/</link>
		<comments>http://www.quanlei.com/2011/10/%e5%9c%a8%e5%af%b9list%e5%81%9aremove%e6%93%8d%e4%bd%9c%e6%97%b6%e6%8a%9b%e5%87%bajava-lang-unsupportedoperationexception/#comments</comments>
		<pubDate>Thu, 27 Oct 2011 07:40:51 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2850</guid>
		<description><![CDATA[原因： 那个List是通过Arrays.asList()这个方法构造的，一直以为返回的就是一个ArrayList，今天查看了源码发现错了，是Arrays里面一个名叫ArrayList的私有类。 它也继承自AbstractList，只是没有实现remove方法，而AbstractList类中remove方法默认是抛java.lang.UnsupportedOperationException异常的。<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="再遇 java.util.ConcurrentModificationException" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2F%25E5%2586%258D%25E9%2581%2587-java-util-concurrentmodificationexception%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">再遇 java.util.ConcurrentModificationException</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过Java的static，理解JavaScript的prototype" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过Java的static，理解JavaScript的prototype</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java HTML 解析器：jsoup" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F08%2Fjava-html-parser-jsoup%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java HTML 解析器：jsoup</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java 文件对话框 默认保存到桌面" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F10%2Fjava-%25E6%2596%2587%25E4%25BB%25B6%25E5%25AF%25B9%25E8%25AF%259D%25E6%25A1%2586-%25E9%25BB%2598%25E8%25AE%25A4%25E4%25BF%259D%25E5%25AD%2598%25E5%2588%25B0%25E6%25A1%258C%25E9%259D%25A2%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java 文件对话框 默认保存到桌面</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Install Java Plugin To Linux FireFox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Finstall-java-plugin-to-linux-firefox%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Install Java Plugin To Linux FireFox</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><strong>原因：</strong><br />
那个List是通过Arrays.asList()这个方法构造的，一直以为返回的就是一个ArrayList，今天查看了源码发现错了，是Arrays里面一个名叫ArrayList的私有类。</p>
<pre class="brush: plain; title: ; notranslate">
public class Arrays {
...
public static  List asList(T... a) {
	return new ArrayList(a);
}

private static class ArrayList extends AbstractList
	implements RandomAccess, java.io.Serializable
{
...
}
...
}
</pre>
<p>它也继承自AbstractList，只是没有实现remove方法，而AbstractList类中remove方法默认是抛java.lang.UnsupportedOperationException异常的。</p>
<pre class="brush: plain; title: ; notranslate">
public abstract class AbstractList&lt;E&gt; extends AbstractCollection&lt;E&gt; implements List&lt;E&gt; {
...
public E remove(int index) {
	throw new UnsupportedOperationException();
}
...
}
</pre>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25e5%259c%25a8%25e5%25af%25b9list%25e5%2581%259aremove%25e6%2593%258d%25e4%25bd%259c%25e6%2597%25b6%25e6%258a%259b%25e5%2587%25bajava-lang-unsupportedoperationexception%2F&title=%E5%9C%A8%E5%AF%B9List%E5%81%9Aremove%E6%93%8D%E4%BD%9C%E6%97%B6%E6%8A%9B%E5%87%BAjava.lang.UnsupportedOperationException" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="再遇 java.util.ConcurrentModificationException" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F07%2F%25E5%2586%258D%25E9%2581%2587-java-util-concurrentmodificationexception%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">再遇 java.util.ConcurrentModificationException</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="通过Java的static，理解JavaScript的prototype" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fjava-static-help-understand-javascript-prototype%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">通过Java的static，理解JavaScript的prototype</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java HTML 解析器：jsoup" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F08%2Fjava-html-parser-jsoup%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java HTML 解析器：jsoup</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Java 文件对话框 默认保存到桌面" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F10%2Fjava-%25E6%2596%2587%25E4%25BB%25B6%25E5%25AF%25B9%25E8%25AF%259D%25E6%25A1%2586-%25E9%25BB%2598%25E8%25AE%25A4%25E4%25BF%259D%25E5%25AD%2598%25E5%2588%25B0%25E6%25A1%258C%25E9%259D%25A2%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Java 文件对话框 默认保存到桌面</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Install Java Plugin To Linux FireFox" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Finstall-java-plugin-to-linux-firefox%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2F%25E5%259C%25A8%25E5%25AF%25B9list%25E5%2581%259Aremove%25E6%2593%258D%25E4%25BD%259C%25E6%2597%25B6%25E6%258A%259B%25E5%2587%25BAjava-lang-unsupportedoperationexception%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Install Java Plugin To Linux FireFox</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/10/%e5%9c%a8%e5%af%b9list%e5%81%9aremove%e6%93%8d%e4%bd%9c%e6%97%b6%e6%8a%9b%e5%87%bajava-lang-unsupportedoperationexception/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cannot simultaneously fetch multiple bags 问题的解决办法</title>
		<link>http://www.quanlei.com/2011/10/cannot-simultaneously-fetch-multiple-bags/</link>
		<comments>http://www.quanlei.com/2011/10/cannot-simultaneously-fetch-multiple-bags/#comments</comments>
		<pubDate>Mon, 24 Oct 2011 11:15:15 +0000</pubDate>
		<dc:creator>小权</dc:creator>
				<category><![CDATA[编程相关]]></category>
		<category><![CDATA[Hibernate]]></category>
		<category><![CDATA[JPA]]></category>

		<guid isPermaLink="false">http://www.quanlei.com/?p=2817</guid>
		<description><![CDATA[完整的异常信息如下： 问题是什么时候出现的呢？ 当一个实体对象中包含多于一个non-lazy获取策略时，比如@OneToMany，@ManyToMany或者@ElementCollection时，获取策略为(fetch = FetchType.EAGER) 出现问题的原因： 当(fetch = FetchType.EAGER)多余一个时，持久框架抓取一方的对象时，同时又将多方的对象加载进容器中，多方又可能关联其它对象，Hibernate实现的JPA，默认最高抓取深度含本身级为四级(它有个属性配置是0-3),若多方(第二级)存在重复值，则第三级中抓取的值就无法映射，就会出现 multiple bags。 解决方法： 1、将(fetch = FetchType.EAGER)改为(fetch = FetchType.LAZY) 2、将List修改成Set集合，即推荐@ManyToMany或@OneToMany的Many方此时用Set容器来存放，而不用List集合。 3、改变FetchMode为@Fetch(FetchMode.SUBSELECT)，即发送另外一条select语句抓取前面查询到的所有实体对象的关联实体。 4、在对应的属性上添加@IndexColumn，该注解允许你指明存放索引值的字段，目的跟Set容器不允许重复元素的道理一样。 推荐的处理办法： 方法2; 方法3和方法4是Hibernate特有的，非JPA标准; 如果可以用方法1，那就不会出现这个问题。 参考： 1、http://blog.eyallupu.com/2010/06/hibernate-exception-simultaneously.html 2、http://dyldragon.iteye.com/blog/788385 3、http://howsun.blog.sohu.com/119020926.html<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[09/48周主题] – JPA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F0948-week-subject-jpa%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258991.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[09/48周主题] – JPA</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Querying @ElementCollections" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Querying @ElementCollections</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/01周主题] – Web 项目开发中的常见问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/01周主题] – Web 项目开发中的常见问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="周主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fweek-subject%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">周主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p class="btitle">完整的异常信息如下：</p>
<pre class="brush: plain; title: ; notranslate">
org.hibernate.loader.MultipleBagFetchException: cannot simultaneously fetch multiple bags
	at org.hibernate.loader.BasicLoader.postInstantiate(BasicLoader.java:94)
	at org.hibernate.loader.entity.EntityLoader.&lt;init&gt;(EntityLoader.java:119)
	at org.hibernate.loader.entity.EntityLoader.&lt;init&gt;(EntityLoader.java:71)
	at org.hibernate.loader.entity.EntityLoader.&lt;init&gt;(EntityLoader.java:54)
	at org.hibernate.loader.entity.BatchingEntityLoader.createBatchingEntityLoader(BatchingEntityLoader.java:133)
	at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1914)
	at org.hibernate.persister.entity.AbstractEntityPersister.createEntityLoader(AbstractEntityPersister.java:1937)
	at org.hibernate.persister.entity.AbstractEntityPersister.createLoaders(AbstractEntityPersister.java:3205)
	at org.hibernate.persister.entity.AbstractEntityPersister.postInstantiate(AbstractEntityPersister.java:3191)
	at org.hibernate.impl.SessionFactoryImpl.&lt;init&gt;(SessionFactoryImpl.java:348)
	at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1872)
	at org.hibernate.ejb.Ejb3Configuration.buildEntityManagerFactory(Ejb3Configuration.java:906)
	at org.hibernate.ejb.HibernatePersistence.createEntityManagerFactory(HibernatePersistence.java:57)
	at javax.persistence.Persistence.createEntityManagerFactory(Persistence.java:63)
</pre>
<p class="btitle">问题是什么时候出现的呢？</p>
<blockquote><p>当一个实体对象中包含多于一个non-lazy获取策略时，比如@OneToMany，@ManyToMany或者@ElementCollection时，获取策略为(fetch = FetchType.EAGER)
</p></blockquote>
<p><span id="more-2817"></span></p>
<p class="btitle">出现问题的原因：</p>
<blockquote><p>
当(fetch = FetchType.EAGER)多余一个时，持久框架抓取一方的对象时，同时又将多方的对象加载进容器中，多方又可能关联其它对象，Hibernate实现的JPA，默认最高抓取深度含本身级为四级(它有个属性配置是0-3),若多方(第二级)存在重复值，则第三级中抓取的值就无法映射，就会出现 multiple bags。
</p></blockquote>
<p class="btitle">解决方法：</p>
<blockquote><p>1、将(fetch = FetchType.EAGER)改为(fetch = FetchType.LAZY)</p></blockquote>
<blockquote><p>2、将List修改成Set集合，即推荐@ManyToMany或@OneToMany的Many方此时用Set容器来存放，而不用List集合。</p></blockquote>
<blockquote><p>3、改变FetchMode为@Fetch(FetchMode.SUBSELECT)，即发送另外一条select语句抓取前面查询到的所有实体对象的关联实体。</p></blockquote>
<blockquote><p>4、在对应的属性上添加@IndexColumn，该注解允许你指明存放索引值的字段，目的跟Set容器不允许重复元素的道理一样。</p></blockquote>
<p class="btitle">推荐的处理办法：</p>
<blockquote><p>方法2;</p>
<p>方法3和方法4是Hibernate特有的，非JPA标准;</p>
<p>如果可以用方法1，那就不会出现这个问题。</p></blockquote>
<p class="btitle">参考：</p>
<blockquote><p>1、http://blog.eyallupu.com/2010/06/hibernate-exception-simultaneously.html<br />
2、http://dyldragon.iteye.com/blog/788385<br />
3、http://howsun.blog.sohu.com/119020926.html</p></blockquote>
<p style="margin:0;padding:0;height:1px;overflow:hidden;">
    <script type="text/javascript"><!--
        var wumiiSitePrefix = "http://www.quanlei.com";
        var wumiiEnableCustomPos = false;
        var wumiiParams = "&#038;num=6&#038;mode=3&#038;displayInFeed=1&#038;version=1.0.5.5&#038;pf=WordPress3.3.1";
    //--></script><script type="text/javascript" src="http://widget.wumii.com/ext/relatedItemsWidget.htm"></script><a href="http://www.wumii.com/widget/relatedItems.htm" style="border:0;"><img src="http://static.wumii.com/images/pixel.png" alt="无觅相关文章插件，快速提升流量" style="border:0;padding:0;margin:0;" /></a></p>
<p><a href="http://www.bshare.cn/share?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F&title=cannot+simultaneously+fetch+multiple+bags+%E9%97%AE%E9%A2%98%E7%9A%84%E8%A7%A3%E5%86%B3%E5%8A%9E%E6%B3%95" title="用bShare分享或收藏本文"><img src="http://static.bshare.cn/frame/images/button_custom1-zh.gif" alt="用bShare分享或收藏本文" /></a></p><table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">无觅猜您也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="[09/48周主题] – JPA" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2F0948-week-subject-jpa%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/site_images/2011/01/21/2258991.jpg" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[09/48周主题] – JPA</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F12%2Fcaused-by-org-hibernate-hql-ast-querysyntaxexception-unexpected-end-of-subtree%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Caused by: org.hibernate.hql.ast.QuerySyntaxException: unexpected end of subtree</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Querying @ElementCollections" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2011%2F11%2Fquerying-elementcollections%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Querying @ElementCollections</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="[10/01周主题] – Web 项目开发中的常见问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2010%2F01%2F1001-week-subject-web-project-problems%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">[10/01周主题] – Web 项目开发中的常见问题</font>
                    </a>
                </td>
                <td width="116" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="周主题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.quanlei.com%2F2009%2F11%2Fweek-subject%2F&from=http%3A%2F%2Fwww.quanlei.com%2F2011%2F10%2Fcannot-simultaneously-fetch-multiple-bags%2F">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 110px !important; height: 110px !important;" src="http://static.wumii.com/images/blogWidget/wordpress_default.gif" width="110px" height="110px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 116px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">周主题</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://www.quanlei.com/2011/10/cannot-simultaneously-fetch-multiple-bags/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

