Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Java Driver class errors  RSS feed

 
Michael Smithy
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
java.lang.StringIndexOutOfBoundsException: String index out of range: -41
at java.lang.String.substring(Unknown Source)
at UserInfo.swapHalfsForEncrypt(UserInfo.java:114)
at UserInfo.encrypt(UserInfo.java:190)
at UserInfoDriver.main(UserInfoDriver.java:27)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at edu.rice.cs.drjava.model.compiler.JavacCompiler.runCommand(JavacCompiler.java:272)

Can anyone explain them all? If not the reason or list of possiblities causing them? Thanks in advance.
 
Les Morgan
Rancher
Posts: 768
19
C++ Java MySQL Database Netbeans IDE Oracle Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If I read it right, it is basically not finding the specific driver you want--meaning ether the driver is not present or is not registered correctly.
 
Paul Clapham
Sheriff
Posts: 22480
43
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Or there's some kind of bug in the UserInfo class. I notice it isn't in any package, which suggests to me that it wasn't written for wide distribution. Which means that people here aren't likely to be familiar with that class.

(And asking people to list all possible bugs in classes like that is a fruitless exercise; any kind of bug at all might be present.)
 
Junilu Lacar
Sheriff
Posts: 11138
160
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Start looking for the bug here: at UserInfo.swapHalfsForEncrypt(UserInfo.java:114). The number at the end is the line number in UserInfo.java
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!