#731 0l causes NumberFormatException

3: Ugly
closed-fixed
5
2009-02-24
2009-02-24
No

Entering 0l in the Interactions Pane (lower-case l) causes the following exception.
Note: Entering 0L (upper-case l) or a non-zero value with a lower-case l, such as 1l, works.

edu.rice.cs.util.UnexpectedException: java.lang.NumberFormatException: Zero length BigInteger
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$ResultHandler.forUnexpectedException(MainJVM.java:769)
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM$ResultHandler.forUnexpectedException(MainJVM.java:723)
at edu.rice.cs.drjava.model.repl.newjvm.InterpretResult$UnexpectedExceptionResult.apply(InterpretResult.java:95)
at edu.rice.cs.drjava.model.repl.newjvm.MainJVM.interpret(MainJVM.java:457)
at edu.rice.cs.drjava.model.repl.RMIInteractionsModel._interpret(RMIInteractionsModel.java:75)
at edu.rice.cs.drjava.model.repl.InteractionsModel.interpret(InteractionsModel.java:273)
at edu.rice.cs.drjava.model.repl.InteractionsModel$1$1.run(InteractionsModel.java:230)
at java.lang.Thread.run(Thread.java:613)
Caused by: java.lang.NumberFormatException: Zero length BigInteger
at java.math.BigInteger.<init>(BigInteger.java:275)
at koala.dynamicjava.tree.LongLiteral.parse(LongLiteral.java:78)
at koala.dynamicjava.tree.LongLiteral.<init>(LongLiteral.java:59)
at koala.dynamicjava.parser.impl.Parser.literal(Parser.java:4967)
at koala.dynamicjava.parser.impl.Parser.primaryPrefix(Parser.java:4702)
at koala.dynamicjava.parser.impl.Parser.primaryExpression(Parser.java:4671)
at koala.dynamicjava.parser.impl.Parser.postfixExpression(Parser.java:4624)
at koala.dynamicjava.parser.impl.Parser.unaryExpressionNotPlusMinus(Parser.java:4542)
at koala.dynamicjava.parser.impl.Parser.unaryExpression(Parser.java:4478)
at koala.dynamicjava.parser.impl.Parser.multiplicativeExpression(Parser.java:4328)
at koala.dynamicjava.parser.impl.Parser.additiveExpression(Parser.java:4283)
at koala.dynamicjava.parser.impl.Parser.shiftExpression(Parser.java:4225)
at koala.dynamicjava.parser.impl.Parser.relationalExpression(Parser.java:4162)
at koala.dynamicjava.parser.impl.Parser.instanceOfExpression(Parser.java:4135)
at koala.dynamicjava.parser.impl.Parser.equalityExpression(Parser.java:4090)
at koala.dynamicjava.parser.impl.Parser.andExpression(Parser.java:4062)
at koala.dynamicjava.parser.impl.Parser.exclusiveOrExpression(Parser.java:4034)
at koala.dynamicjava.parser.impl.Parser.inclusiveOrExpression(Parser.java:4006)
at koala.dynamicjava.parser.impl.Parser.conditionalAndExpression(Parser.java:3978)
at koala.dynamicjava.parser.impl.Parser.conditionalOrExpression(Parser.java:3950)
at koala.dynamicjava.parser.impl.Parser.conditionalExpression(Parser.java:3924)
at koala.dynamicjava.parser.impl.Parser.expression(Parser.java:3663)
at koala.dynamicjava.parser.impl.Parser.expressionStatement(Parser.java:3623)
at koala.dynamicjava.parser.impl.Parser.statement(Parser.java:2761)
at koala.dynamicjava.parser.impl.Parser.topLevelStatement(Parser.java:776)
at koala.dynamicjava.parser.impl.Parser.parseStream(Parser.java:739)
at koala.dynamicjava.parser.wrapper.JavaCCParser.parseStream(JavaCCParser.java:96)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.parse(Interpreter.java:64)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.interpret(Interpreter.java:44)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:203)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
... 1 more

Caused by:
java.lang.NumberFormatException: Zero length BigInteger
at java.math.BigInteger.<init>(BigInteger.java:275)
at koala.dynamicjava.tree.LongLiteral.parse(LongLiteral.java:78)
at koala.dynamicjava.tree.LongLiteral.<init>(LongLiteral.java:59)
at koala.dynamicjava.parser.impl.Parser.literal(Parser.java:4967)
at koala.dynamicjava.parser.impl.Parser.primaryPrefix(Parser.java:4702)
at koala.dynamicjava.parser.impl.Parser.primaryExpression(Parser.java:4671)
at koala.dynamicjava.parser.impl.Parser.postfixExpression(Parser.java:4624)
at koala.dynamicjava.parser.impl.Parser.unaryExpressionNotPlusMinus(Parser.java:4542)
at koala.dynamicjava.parser.impl.Parser.unaryExpression(Parser.java:4478)
at koala.dynamicjava.parser.impl.Parser.multiplicativeExpression(Parser.java:4328)
at koala.dynamicjava.parser.impl.Parser.additiveExpression(Parser.java:4283)
at koala.dynamicjava.parser.impl.Parser.shiftExpression(Parser.java:4225)
at koala.dynamicjava.parser.impl.Parser.relationalExpression(Parser.java:4162)
at koala.dynamicjava.parser.impl.Parser.instanceOfExpression(Parser.java:4135)
at koala.dynamicjava.parser.impl.Parser.equalityExpression(Parser.java:4090)
at koala.dynamicjava.parser.impl.Parser.andExpression(Parser.java:4062)
at koala.dynamicjava.parser.impl.Parser.exclusiveOrExpression(Parser.java:4034)
at koala.dynamicjava.parser.impl.Parser.inclusiveOrExpression(Parser.java:4006)
at koala.dynamicjava.parser.impl.Parser.conditionalAndExpression(Parser.java:3978)
at koala.dynamicjava.parser.impl.Parser.conditionalOrExpression(Parser.java:3950)
at koala.dynamicjava.parser.impl.Parser.conditionalExpression(Parser.java:3924)
at koala.dynamicjava.parser.impl.Parser.expression(Parser.java:3663)
at koala.dynamicjava.parser.impl.Parser.expressionStatement(Parser.java:3623)
at koala.dynamicjava.parser.impl.Parser.statement(Parser.java:2761)
at koala.dynamicjava.parser.impl.Parser.topLevelStatement(Parser.java:776)
at koala.dynamicjava.parser.impl.Parser.parseStream(Parser.java:739)
at koala.dynamicjava.parser.wrapper.JavaCCParser.parseStream(JavaCCParser.java:96)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.parse(Interpreter.java:64)
at edu.rice.cs.dynamicjava.interpreter.Interpreter.interpret(Interpreter.java:44)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:203)
at edu.rice.cs.drjava.model.repl.newjvm.InterpreterJVM.interpret(InterpreterJVM.java:180)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:294)
at sun.rmi.transport.Transport$1.run(Transport.java:153)
at java.security.AccessController.doPrivileged(Native Method)
at sun.rmi.transport.Transport.serviceCall(Transport.java:149)
at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:466)
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:707)
at java.lang.Thread.run(Thread.java:613)

System Properties:
DrJava Version drjava-20090224-r4769
DrJava Build Time 20090224-1911

drjava.debug.port = 61668
java.runtime.name = Java(TM) 2 Runtime Environment, Standard Edition
sun.boot.library.path = :/Applications/Dev/YourKit Java Profiler 7.0.12.app/bin/mac:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Libraries
java.vm.version = 1.5.0_16-132
awt.nativeDoubleBuffering = true
gopherProxySet = false
java.vm.vendor = "Apple Computer, Inc."
java.vendor.url = http://apple.com/
path.separator = :
java.vm.name = Java HotSpot(TM) Client VM
file.encoding.pkg = sun.io
sun.java.launcher = SUN_STANDARD
user.country = US
sun.os.patch.level = unknown
java.vm.specification.name = Java Virtual Machine Specification
user.dir = <anonymized user.dir>
java.runtime.version = 1.5.0_16-b06-275
java.awt.graphicsenv = apple.awt.CGraphicsEnvironment
java.endorsed.dirs = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/endorsed
os.arch = i386
java.io.tmpdir = /tmp
line.separator = "\u000a"
java.vm.specification.vendor = Sun Microsystems Inc.
os.name = Mac OS X
apple.laf.useScreenMenuBar = true
sun.jnu.encoding = MacRoman
java.library.path = :/Applications/Dev/YourKit Java Profiler 7.0.12.app/bin/mac:.:/Library/Java/Extensions:/System/Library/Java/Extensions:/usr/lib/java
java.specification.name = Java Platform API Specification
java.class.version = 49.0
sun.management.compiler = HotSpot Client Compiler
os.version = 10.4.11
user.home = <anonymized user.home>
user.timezone = America/Chicago
java.awt.printerjob = apple.awt.CPrinterJob
file.encoding = MacRoman
java.specification.version = 1.5
java.class.path = /Applications/Dev/drjava.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/.compatibility/14compatibility.jar
user.name = <anonymized user.name>
apple.awt.graphics.UseQuartz = true
java.vm.specification.version = 1.0
java.home = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home
sun.arch.data.model = 32
user.language = en
java.specification.vendor = Sun Microsystems Inc.
awt.toolkit = apple.awt.CToolkit
java.vm.info = mixed mode, sharing
java.version = 1.5.0_16
java.ext.dirs = /Library/Java/Extensions:/System/Library/Java/Extensions:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Home/lib/ext
sun.boot.class.path = /System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/classes.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/ui.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/laf.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/sunrsasign.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jsse.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/jce.jar:/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Classes/charsets.jar
java.vendor = Apple Computer, Inc.
file.separator = /
java.vendor.url.bug = http://developer.apple.com/java/
sun.io.unicode.encoding = UnicodeLittle
sun.cpu.endian = little
java.rmi.server.hostname = 127.0.0.1
mrj.version = 1040.1.5.0_16-275
sun.awt.exception.handler = apple.awt.CToolkit$EventQueueExceptionHandler
sun.cpu.isalist =

#DrJava configuration file
#Tue Feb 24 14:42:38 CST 2009
font.line.numbers = Monaco-10
lineenum.enabled = true
key.delete.next = shift DELETE
key.delete.previous = shift BACK_SPACE
find.replace.match.case = false
find.replace.all.documents = true
debug.sourcepath = <anonymized user.home>/Applications:<anonymized user.home>/backup
debug.step.exclude = a,b,c
javadoc.1.4.link = file://<anonymized user.home>/Sites/docs/Java/j2sdk-1_4_2-doc/api/
javadoc.1.5.link = file://<anonymized user.home>/Sites/docs/Java/jdk-1_5_0-doc/api
interactions.exit.prompt = false
open.folder.recursive = true
indent.level = 4
recent.files = [<anonymized user.home>/Documents/Research/Concutest/ClassLoader/src/edu/rice/cs/cunit/record/CompactDebugProcessor2.java,<anonymized user.home>/Documents/Research/Concutest/ClassLoader/src/edu/rice/cs/cunit/instrumentors/record/debug2/DisableRecordingStrategy.java,<anonymized user.home>/Documents/Research/Concutest/ClassLoader/src/edu/rice/cs/cunit/instrumentors/record/debug2/EnableRecordingStrategy.java,<anonymized user.home>/Documents/Research/Concutest/ClassLoader/src/edu/rice/cs/cunit/instrumentors/record/debug2/AssignObjectIDStrategy.java]
recent.projects = [<anonymized user.home>/Documents/Research/Concutest/ClassLoader/ClassLoader.xml,<anonymized user.home>/drjava/drjava.xml,<anonymized user.home>/Documents/Semester 10 Spring 2009/COMP 402/hw1/mc13/rwl.student/rwl.student/ReaderWriterLock.xml,<anonymized user.home>/Documents/Semester 10 Spring 2009/COMP 402/hw1/kkm1/bb.student/BoundedBuffer.xml,<anonymized user.home>/Documents/Semester 10 Spring 2009/COMP 402/hw1/mc13/bb.student/bb.student/BoundedBuffer.xml]
window.height = 776
window.width = 1276
window.x = 1
window.y = 22
doc.list.width = 174
last.dir = <anonymized user.dir>/src/edu/rice/cs/drjava/model
last.interactions.dir = /Users/Shared/drjava
dialog.clipboard.history.state = 425 400 425 210
dialog.completeword.javaapi = true
tabbedpanes.state = 640 400 700 400
dialog.jaroptions.state = 417 273
find.replace.focus.in.defpane = true
new.version.notification.last = 1234995519192
drjava.survey.notification.last = 1235507756192
drjava.survey.result.last = http://www.drjava.org/submit-usage.php?rev=4769&os.name=Mac%20OS%20X&os.version=10.4.11&java.version=1.5.0_16&java.vendor=Apple%20Computer,%20Inc.

Used memory: about 36.34 megabytes
Free memory: about 23.27 megabytes
Total memory: about 59.65 megabytes
Total memory can expand to: about 63.56 megabytes

Discussion

  • Mathias Ricken

    Mathias Ricken - 2009-02-24

    Fixed as of revision 4773.

     
  • Mathias Ricken

    Mathias Ricken - 2009-02-24
    • assigned_to: nobody --> mgricken
    • status: open --> closed-fixed
     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks