bufferunderflowexception

Why do I get a java.nio.BufferUnderflowException in this Scala

好久不见. 提交于 2019-12-21 17:23:08
问题 I was trying to do some scripting in Scala, to process some log files: scala> import io.Source import io.Source scala> import java.io.File import java.io.File scala> val f = new File(".") f: java.io.File = . scala> for (l <- f.listFiles) { | val src = Source.fromFile(l).getLines | println( (0 /: src) { (i, line) => i + 1 } ) | } 3658 java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Unknown Source) at java.nio.HeapCharBuffer.get(Unknown Source) at scala.io.BufferedSource$$anon

Why do I get a java.nio.BufferUnderflowException in this Scala

泄露秘密 提交于 2019-12-04 07:38:31
I was trying to do some scripting in Scala , to process some log files: scala> import io.Source import io.Source scala> import java.io.File import java.io.File scala> val f = new File(".") f: java.io.File = . scala> for (l <- f.listFiles) { | val src = Source.fromFile(l).getLines | println( (0 /: src) { (i, line) => i + 1 } ) | } 3658 java.nio.BufferUnderflowException at java.nio.Buffer.nextGetIndex(Unknown Source) at java.nio.HeapCharBuffer.get(Unknown Source) at scala.io.BufferedSource$$anon$2.next(BufferedSource.scala:86) at scala.io.BufferedSource$$anon$2.next(BufferedSource.scala:74) at

JavaEE + Glassfish - BufferUnderflowException

烈酒焚心 提交于 2019-11-28 04:53:57
问题 I have a very simple Java EE application with some beans that use JMS to communicate. When I try to deploy and debug my application, I get this Informazioni: visiting unvisited references Grave: Unknow type constant pool 18 at position38 Grave: Unknow type constant pool 0 at position39 Grave: Unknow type constant pool 0 at position40 Grave: Unknow type constant pool 105 at position43 Grave: Unknow type constant pool 116 at position44 Grave: Unknow type constant pool 101 at position45 Grave: