Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

JavaÖÐUnderlying input stream returned zero bytes

Òì³£ Underlying input stream returned zero bytes ½â¾ö°ì·¨
ϵͳ»·¾³
jdk1.5
hibernate 3.0
sql server 2000
ms jdbc driver
½«Ò»¸övarcharÀàÐ͵Ä×ֶθÄΪtextºó£¬¾Í³öÏÖ
[Microsoft][SQLServer 2000 Driver for JDBC]Underlying input stream returned zero bytes µÄÒì³£ÁË¡£
´ÓÍøÉÏËѼ¯×ÊÁÏÀ´¿´£¬ÓÉÓÚjdbcµÄbug£¬ËùÒÔ²»Äܽ«Ò»¸ö"NULL"ÖµºÍÒ»¸ö""(empty)´æ´¢ÔÚtextÀàÐ͵Ä×Ö¶ÎÖС£
½â¾ö°ì·¨:¿ÉÒÔÔÚ±í½á¹¹ÖÐÉèÖÃ×ֶεÄĬÈÏֵΪ" "(one char)¡£
΢Èí±íʾÏÂÒ»¸ö°æ±¾½«ÐÞÕýÕâ¸öbug¡£
²Î¿¼£º
http://www.javaworld.com.tw/jute/post/view?bid=21&id=126312&sty=1&tpg=1&age=0
http://support.microsoft.com/default.aspx?scid=kb;EN-US;894559


Ïà¹ØÎĵµ£º

javaÖй¹Ô캯ÊýµÄµ÷ÓÃ˳Ðò

µ±Ò»¸ö¸´ÔӵĶÔÏó±»¹¹Ôìʱ,ËüµÄ¹¹Ô캯Êý°´ÏÂÃæµÄ˳Ðò±»µ÷ÓÃ(that the order of constructor calls for a complex object is as follows)
    1.Æä»ùÀà(base-class)µÄ¹¹Ô캯Êý±»µ÷ÓÃ,Õâ¸ö²½ÖèÒԵݹéµÄ·½Ê½Öظ´,ËùÒÔ×îµ×²ã(the root of hierarchy)µÄ¹¹Ô캯ÊýÊ×Ïȱ»Ö´ÐÐ,È»ºóÊÇËüÉÏÒ»²ãÅÉÉúÀà(the next-deriv ......

java³öʾ»°ºÍµ÷ÓÃ˳Ðò


----------------------------------------------------
±¾ÎÄת×Ô£º
http://blog.sina.com.cn/s/blog_477daa680100hf1q.html
¸Ðл×÷Õß
----------------------------------------------------
¹æÂÉÊÇÕâÑùµÄ£º
ÈκÎÒ»¸öÀ࣬ÔÚÖ´ÐÐÒ»¸ö·½·¨Ç°±ØÐëÒªÏÈ°²´úÂëµÄ˳Ðò³õʼ»¯ËùÓеľ²Ì¬¿é£¬È»ºóµ÷ÓÃmainº¯Êý£¬
ÔÚÉú³ÉÒ»¸ö ......

JavaѧϰÐĵÃ

¼ÆËã»úרҵ±ÏÒµÁ½ÄêÁË£¬ÖÕÓÚÕÒµ½Ñ§Ï°µÄ¸Ð¾õÁË£¬ºó»Úµ±Ê±ÔÚѧУʱµÄÎÞÖªºÍ¿ñÍý£¡£¡£¡
ÏÖÔÚÎÒ¶ÔJava web±à³ÌÓÐÁËÐËȤ£¬ÎÒдÁË×Ô¼ºµÄÓû§µÇ¼С³ÌÐò£¬ÒѾ­ÉÏ´«µ½ÎÒµÄCSDN¿Õ¼äÁË£¬»¶Ó­´ó¼ÒÀ´·ÃÎÊ£¡£¡£¡
ÌÖÂÛÖ®ºó£¬»¶Ó­À´ÐÅ£¬¹²Í¬Ìá¸ß£¡£¡£¡
ÁªÏµ·½Ê½£º243093502@@qq.com ......

Java ʵÏÖÎļþ·Ö¸îºÏ²¢µÄ´úÂë

import java.io.*;
class Fen{
String fileName;
int size;
Fen(String fileName,String size){
this.fileName = fileName;
this.size = Integer.parseInt(size)*1024;
}
public void cut()throws Exception{
int maxx = 0;
File inFile = new File(fileName);
int fileLength = (int)inFile.length(); //È¡µÃÎ ......

ÀûÓÃjavaÄÚ´æÓ³ÉäÎļþ»úÖÆʵÏÖCRCÑ­»·ÈßÓàУÑé

import java.nio.MappedByteBuffer;   
import java.nio.channels.FileChannel;   
import java.util.zip.CRC32;   
public static void main(String[] args){   
        & ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ