Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / March 2006

Tip: Looking for answers? Try searching our database.

Why i got WronLengthOfStringException in javacode

Thread view: 
Mohit Mehral - 23 Mar 2006 13:23 GMT
hi,it's an emergency....
please provide me the deatil....why i got WronLengthOfStringException
thanx
Timbo - 23 Mar 2006 13:41 GMT
> hi,it's an emergency....
> please provide me the deatil....why i got WronLengthOfStringException
> thanx

My guess is that you have a string of the wrong length! :-)

Seriously though -- you'll have to provide more details as to what
you are doing and probably even show people some code for people
to have any idea as to what you are doing wrong.
WronLengthOfStringException is not an exception in the Java API.
Thomas Schodt - 23 Mar 2006 14:28 GMT
> hi,it's an emergency....
> please provide me the deatil....why i got WronLengthOfStringException
> thanx

Maybe you mean

<http://java.sun.com/j2se/1.4.2/docs/api/java/lang/StringIndexOutOfBoundsExceptio
n.html
>
Rhino - 23 Mar 2006 15:52 GMT
> hi,it's an emergency....
> please provide me the deatil....why i got WronLengthOfStringException
> thanx

You're not serious are you? You want people to diagnose a problem in detail
when you have provided only a single sympton.

If you think that is possible, maybe you can help me with this: my car won't
start. What is the exact problem? I've just given you a single symptom, that
should be all you need to tell me exactly what's wrong. I'm not going to
tell you what kind of car it is or when it last worked or what sort of
environment I'm in or anything else.

--

If you want help from this newsgroup, you're going to have to give us a lot
more information. Any or all of the following might be useful in helping
you:
- the full source code for at least the method that is failing; we might
need more than that but that would be a start
- the stacktrace for this exception
- what version of Java you are running
- what type of program this is - applet, servlet, application, midlet, etc.
- when this program last ran successfully, if it has ever run successfully

We might need more information as well but will ask for it if the symptoms
seem to require it.

The exception you are getting is not part of the standard Java 1.5 API but
it might be new to Java 1.6; I haven't looked at Java 1.6 yet so I can't be
sure. That's why it always helps to know which version of Java you are
using.

Unless your exception is new to Java 1.6, I expect that it is a
custom-written exception created by whoever wrote the program you are using.
That means that we don't have the source code or documentation so we can't
easily tell you what is wrong unless you can supply the source code for the
class that throws the exception.

--
Rhino
Roedy Green - 23 Mar 2006 18:06 GMT
>WronLengthOfStringException

If you want help, at least give us the exact name of the exception.  

In the meantime you can look up exceptions at
http://mindprod.com/jgloss/runerrormessages.html
and
http://mindprod.com/jgloss/exception.html
Signature

Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.