Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 430
  • Last Modified:

Getting a Java.Lang.STRINGOUTOFBOUNDS message

This should be a quicky, as it's not a program I'm writing, I just need some information ...

I work on a Payroll system & we have to return Year End P35 & P14 information to the Inland Revenue. Last year we did this electronically for the first time ... this year, the IR & our software suppliers have made numerous changes, resulting in ...

... my Payroll Manager just trying to send the files to the Inland Revenue via a dedicated link, but getting an error message (I took this down over a crackly mobile to mobile call so may not be exact regarding spacing & casing !) :

Java.Lang.STRINGINDEXOUTOFBOUNDS: Exception String Index Out Of Range: 9

Is this likely to be caused by an error in our data, a possible mis-match in the Java versions being used by us & the Inland Revenue, or is there really no way of knowing and we need to get back to the vendors ?!?!?

Any help appreciated ...
0
vodkasoda
Asked:
vodkasoda
  • 2
1 Solution
 
dbrittCommented:
I'd get back to the vendors.

That sounds like a JAVA problem, not JAVASCRIPT. But we're all programmers and this sounds like a pretty generic problem, so no biggie. ;)


I'd say that 1 of 2 things likely happened:

1. You needed to use at least a 10 character string (a string just means text)
     10 characters and not 9 because the first character starts at index 0, not index 1. So the 9th index is the 10th character :)

- or -

2. Their program doesn't handle the length of your input string correctly

Either way, it's their fault most likely and even if your input wasn't long enough, their program should still handle that error and tell you that it needs to be longer.

Cheers!
0
 
vodkasodaAuthor Commented:
Brilliant, thanks dbritt, it was exactly that ... my FTP from Mainframe to PC needed a NOTRUNC command so as not to lose trailing spaces.
0
 
dbrittCommented:
Any time :)
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now