我有一個用Hibernate和SQLite Dialect的java項目。另外,我有一個模型元素之間有很多鏈接。當我想要在數據庫中存儲大量數據時,會發生不規則的堆棧溢出。有時它可以工作。 somtimes它dosnt工作。這是爲什麼?用java中的休眠和sqlite不規則的stackoverflows
除外:
在sun.nio.cs.SingleByte.withResult(未知來源)
at sun.nio.cs.SingleByte.access$000(Unknown Source)
at sun.nio.cs.SingleByte$Encoder.encodeArrayLoop(Unknown Source)
at sun.nio.cs.SingleByte$Encoder.encodeLoop(Unknown Source)
at java.nio.charset.CharsetEncoder.encode(Unknown Source)
at sun.nio.cs.StreamEncoder.implWrite(Unknown Source)
at sun.nio.cs.StreamEncoder.write(Unknown Source)
at java.io.OutputStreamWriter.write(Unknown Source)
at java.io.BufferedWriter.flushBuffer(Unknown Source)
at java.io.BufferedWriter.write(Unknown Source)
at java.io.Writer.write(Unknown Source)
at java.io.PrintStream.write(Unknown Source)
at java.io.PrintStream.print(Unknown Source)
at java.io.PrintStream.println(Unknown Source)
...
你可以更新你的問題1-發生異常的代碼和2-異常的細節,包括理想的堆棧跟蹤。 – 2012-04-20 10:57:22