Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Java > Java and JDK > J2EE
|
J2EE General J2EE (Java 2 Enterprise Edition) discussions. Questions not specific to EE will be redirected elsewhere.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the J2EE section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 14th, 2004, 10:36 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default IndexOutOfBoundsException

This is the Exception Im getting when a submit my page

Please do suggest some solution for this...

java.lang.IndexOutOfBoundsException
 int java.io.ObjectInputStream.read(byte[], int, int)
 void oracle.xml.io.XMLObjectInput.ensureCapacity(int)
 byte oracle.xml.io.XMLObjectInput.peekByte()
 void oracle.xml.parser.v2.XMLNode.readChildNodes(oracle .xml.io.XMLObjectInput, oracle.xml.comp.CXMLContext)
 void oracle.xml.parser.v2.XMLNode.readChildNodes(oracle .xml.io.XMLObjectInput, oracle.xml.comp.CXMLContext)
 void oracle.xml.parser.v2.XMLNode.readChildNodes(oracle .xml.io.XMLObjectInput, oracle.xml.comp.CXMLContext)
 void oracle.xml.parser.v2.XMLNode.readChildNodes(oracle .xml.io.XMLObjectInput, oracle.xml.comp.CXMLContext)
 void oracle.xml.parser.v2.XMLElement.readExternal(java. io.ObjectInput)
 int java.io.ObjectInputStream.inputObject(boolean)
 java.lang.Object java.io.ObjectInputStream.readObject(boolean)
 java.lang.Object java.io.ObjectInputStream.readObject()
 void java.util.Hashtable.readObject(java.io.ObjectInput Stream)
 java.lang.Object java.lang.reflect.Method.invoke(java.lang.Object, java.lang.Object[])
 boolean java.io.ObjectInputStream.invokeObjectReader(java. lang.Object)
 int java.io.ObjectInputStream.inputObject(boolean)
 java.lang.Object java.io.ObjectInputStream.readObject(boolean)
 java.lang.Object java.io.ObjectInputStream.readObject()
 java.lang.Object com.evermind.server.ejb.EJBUtils.cloneObject(java. lang.Object, com.evermind.server.ejb.AbstractEJBHome)
 java.util.Hashtable GlaSession_StatelessSessionBeanWrapper6.executeFA_ Scr_Gla_001(java.util.Hashtable)


 
Old December 14th, 2004, 05:54 PM
Friend of Wrox
 
Join Date: Jul 2004
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Looks like youre using an array, then tried to put too much data into it, for example if you declared an array size of 100, then tried to put 101 records into it you would get this exception. It looks like the error is with your byte array:

ObjectInputStream.read(byte[], int, int)

What size is byte[] ???

How much data are you putting into byte[] ???








Similar Threads
Thread Thread Starter Forum Replies Last Post
IndexOutOfBoundsException satishkumarj J2EE 0 December 13th, 2004 10:06 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.