AsyncMessage.readExternal indexOutOfBounds

I hava a java service that uses custom serialization to return a list of address objects, but I'm having problems de-serializing the list in my Flex app. I have been able to use my other services that return Arraylists of other VOs with no problem, but I can't see what I'm doing differently here.
The actual error I get is
RangeError: Error #2006: The supplied index is out of bounds.
    at ObjectInput/readObject()
    at mx.messaging.messages::AsyncMessage/readExternal()[E:\dev\3.1.0\frameworks\projects\rpc\s rc\mx\messaging\messages\AsyncMessage.as:176]
    at mx.messaging.messages::AcknowledgeMessage/readExternal()[E:\dev\3.1.0\frameworks\projects \rpc\src\mx\messaging\messages\AcknowledgeMessage.as:77]
Debugging I can see that my list is returned with an address as expected -
this    mx.messaging.messages.AcknowledgeMessageExt (@af6c711)   
    [inherited]   
        body    com.somepackage.params.GetValidAddressResponseParameter (@aee9461)   
        _body    com.somepackage.params.GetValidAddressResponseParameter (@aee9461)   
            AddressList    Array (@af3b319)   
            _addressList    Array (@af3b319)   
                [0]    com.somepackage.classes.AddressVO (@af515f1)   
                length    1   
        clientId    null   
        _clientId    null   
        clientIdBytes    null   
        correlationId    ""   
        _correlationId    ""   
        correlationIdBytes    null   
        destination    ""   
        _destination    ""   
        headers    Object (@af205d9)   
        _headers    null   
        messageId    "334E79FE-2C0D-E499-1ED1-71DD00EE3AA3"   
        _messageId    "334E79FE-2C0D-E499-1ED1-71DD00EE3AA3"   
        messageIdBytes    null   
        timestamp    0   
        _timestamp    0   
        timeToLive    0   
        _timeToLive    0   
    _message    null   
input    ObjectInput (@aee9b81)   
    bytesAvailable    36 [0x24]   
    endian    "bigEndian"   
    objectEncoding    3   
flagsArray    Array (@af3b389)   
i    0   
flags    12 [0xc]   
reservedPosition    2   
j    2   
The error is being thrown in AsyncMessage.readExternal -
override public function readExternal(input:IDataInput):void
        super.readExternal(input);
        var flagsArray:Array = readFlags(input);
        for (var i:uint = 0; i < flagsArray.length; i++)
            var flags:uint = flagsArray[i] as uint;
            var reservedPosition:uint = 0;
            if (i == 0)
                if ((flags & CORRELATION_ID_FLAG) != 0)
                    correlationId = input.readObject() as String;
                if ((flags & CORRELATION_ID_BYTES_FLAG) != 0)
                    correlationIdBytes = input.readObject() as ByteArray;
                    correlationId = UIDUtil.fromByteArray(correlationIdBytes);
                reservedPosition = 2;
            // For forwards compatibility, read in any other flagged objects
            // to preserve the integrity of the input stream...
            if ((flags >> reservedPosition) != 0)
                for (var j:uint = reservedPosition; j < 6; j++)
                    if (((flags >> j) & 1) != 0)
                       input.readObject();
Can anyone suggest where I'm going wrong?
Thanks

I must have fixed it as I wasn't getting the problem - but I don't have access to the code as I've left the company where I encountered this.
I don't remember doing anything huge to get round this - have you checked that your serializtion/deserialization on each end are the same (i.e. that properties are written out/read in in the same order + have 'matching' types)?

Similar Messages

  • Is it possible to use Remote SharedObjects with the LCDS server?

    Hello,
    The ActionScript documentation for Remote SharedObject
    RSOs are created using the static getRemote function.  This returns a reference to an object that can be shared across multiple  clients by means of a server, such as Flash Media Server. If the shared  object does not already exist, this method creates one.
    The following code shows how you assign the returned shared object reference to a variable:
    var myRemote_so:SharedObject = SharedObject.getRemote(name, remotePath, persistence);After calling this method, use SharedObject.connect() to connect the  object to the application server, as shown in the following code
    var myNC:NetConnection = new NetConnection();
    myNC.connect(“rtmp://[yourDomain].com/applicationName”);
    var myRemoteSO:SharedObject = SharedObject.getRemote(“mo”, myNC.uri, false);
    myRemoteSO.connect(myNC);
    To confirm that the local and remote copies of the shared object are synchronized, use the sync event.
    All clients that want to share this object must pass the same values for the name and remotePath parameters.
    Is it possible to create RSO's using the LCDS server instead of the Flash Media Server? If so, how?
    Thanks,
    Oscar

    Tom,
    Thanks for your response. I decided to test this with the publish/subscribe messaging. Something I thought would work is not. Here is the simple example;
                    var btn:Button = new Button();
                    btn.label = "My Button ";
                    msg = new AsyncMessage();
                    msg.body = btn;
                    producer.send(msg);              
    Simple right? Well, this generates a fault;
    1/21/2011 10:37:55.462 [ERROR] mx.messaging.Producer 'D7094E2F-2CA1-39C0-1EC6-A9DE3171E836' producer fault for 'A11AE369-8349-8970-0C10-A9DE5113DA2E'.
    The LCDS log gets into more detail, AMF Deserialization ERROR....
    Please notice the use of Amf0 and Amf3 methods... I thought Amf0 was a thing of the past...
    Any ideas? Please help....
    [LCDS]01/21/2011 10:37:55.039 [ERROR] [Endpoint.RTMP] Deserialization failed for incoming data: Unknown AMF type '15'.
    flex.messaging.io.UnknownTypeException: Unknown AMF type '15'.
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:217)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.messages.AbstractMessage.readExternalBody(AbstractMessage.java:654)
        at flex.messaging.messages.AbstractMessage.readExternal(AbstractMessage.java:324)
        at flex.messaging.messages.AsyncMessage.readExternal(AsyncMessage.java:98)
        at flex.messaging.io.amf.Amf3Input.readExternalizable(Amf3Input.java:491)
        at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:420)
        at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
        at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
        at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
        at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
        at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
        at flex.messaging.io.tcchunk.TCCommand.readMessage(TCCommand.java:191)
        at flex.messaging.endpoints.RTMPConnection.serviceTCMessage(RTMPConnection.java:1024)
        at flex.messaging.endpoints.RTMPConnection.doRead(RTMPConnection.java:610)
        at flex.messaging.endpoints.RTMPProtocolHandler.doRead(RTMPProtocolHandler.java:125)
        at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:864)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
    Thanks,
    Oscar

  • Error #1063: Argument count mismatch on entities::Family(). Expected 2, got 0.

    Hello:
    I'm trying to start a simple remoting app.  I'm getting the folowing error.  My value objects and remoting code are below.  Any help would be appreciated!
    ArgumentError: Error #1063: Argument count mismatch on entities::Family(). Expected 2, got 0.
        at ObjectInput/readObject()
        at mx.messaging.messages::AbstractMessage/readExternal()[C:\autobuild\3.2.0\frameworks\proje cts\rpc\src\mx\messaging\messages\AbstractMessage.as:377]
        at mx.messaging.messages::AsyncMessage/readExternal()[C:\autobuild\3.2.0\frameworks\projects \rpc\src\mx\messaging\messages\AsyncMessage.as:146]
        at mx.messaging.messages::AcknowledgeMessage/readExternal()[C:\autobuild\3.2.0\frameworks\pr ojects\rpc\src\mx\messaging\messages\AcknowledgeMessage.as:77]
    Family class in Flex:
    package entities
        [Bindable]
        [RemoteClass(alias="family.Family")]
        public class Family  {
            public function Family(father:Person, mother:Person) {
                this.father = father;
                this.mother = mother;
            protected var father:Person;
            protected var mother:Person;
            public function getFather():Person {
                return father;
            public function setFather(o:Person):void {
                father = o;
            public function getMother():Person {
                return mother;
            public function setMother(o:Person):void {
                mother = o;
    Family object in Java
    package family;
    public class Family {
        private Person father = null;
        private Person mother = null;
        public Family(Person father, Person mother) {
            this.father = father;
            this.mother = mother;
        public Person getFather() {
            return father;
        public void setFather(Person father) {
            this.father = father;
        public Person getMother() {
            return mother;
        public void setMother(Person mother) {
            this.mother = mother;
    Person class in Flex:
    package entities
        [Bindable]
        [RemoteClass(alias="family.Person")]
        public class Person {
            protected var givenName:String;
            protected var surname:String;
            protected var birthdate:String;
            protected var birthLocation:String;
            protected var deathdate:String;
            protected var deathLocation:String;
            public function getGivenName():String {
                return givenName;
            public function setGivenName(o:String):void {
                givenName = o;
            public function getSurname():String {
                return surname;
            public function setSurname(o:String):void {
                surname = o;
            public function getBirthdate():String {
                return birthdate;
            public function setBirthdate(o:String):void {
                birthdate = o;
            public function getBirthLocation():String {
                return birthLocation;
            public function setBirthLocation(o:String):void {
                birthLocation = o;
            public function getDeathdate():String {
                return deathdate;
            public function setDeathdate(o:String):void {
                deathdate = o;
            public function getDeathLocation():String {
                return deathLocation;
            public function setDeathLocation(o:String):void {
                deathLocation = o;
            public function Person()
    Person class in Java
    package family;
    public class Person {
        private String givenName = null;
        private String surname = null;
        private String birthdate = null;
        private String birthLocation = null;
        private String deathdate = null;
        private String deathLocation = null;
        public String getGivenName() {
            return givenName;
        public void setGivenName(String givenName) {
            this.givenName = givenName;
        public String getSurname() {
            return surname;
        public void setSurname(String surname) {
            this.surname = surname;
        public String getBirthdate() {
            return birthdate;
        public void setBirthdate(String birthdate) {
            this.birthdate = birthdate;
        public String getBirthLocation() {
            return birthLocation;
        public void setBirthLocation(String birthLocation) {
            this.birthLocation = birthLocation;
        public String getDeathdate() {
            return deathdate;
        public void setDeathdate(String deathdate) {
            this.deathdate = deathdate;
        public String getDeathLocation() {
            return deathLocation;
        public void setDeathLocation(String deathLocation) {
            this.deathLocation = deathLocation;
    Remoting code:
        var family:Family;
          getRemoteFamily(function (familyOut:Family) : void {
             family = familyOut;
        public function getRemoteFamily(result:Function, fault:Function=null):void {   
            var token:AsyncToken = ro.getFamily();
            token.addResponder(new AsyncResponder(
                        function (data:Object, token:Object):void {
                            if (!data || !data.result) {
                                throw new Error("RO [getFamily] result object was null, or missing . . .");
                                return;
                            result(data.result as Family);
                        function (info:Object, token:Object):void {
                            if (fault != null) fault(info);   
                        token

    Hi,
    I was facing the same problem, then saw this http://forums.adobe.com/thread/471206. I think that all the value objects must have a constructor with default values. So initially if your constructor on the flex side was say:
    public function Parameter(name:String, value:String){
         this.name=name;
         this.value=value;
    Then change it to :
    public function Parameter(name:String="", value:String=""){
         this.name=name;
         this.value=value;
    I am not claiming this is how it should be done but doing this solved the problem for me.
    Also I think all the variables that u need to send to the server should be public otherwise they are not sent.

  • LCDS error when using Producer/Consumer messaging to exchange objects between clients. Please help!!

    Hello,
    I decided to test this with the  publish/subscribe messaging. Something I thought would work is not. Here  is the simple example;
                     var btn:Button = new Button();
                     btn.label = "My Button ";
                     msg = new AsyncMessage();
                    msg.body = btn;
                     producer.send(msg);              
    Simple right? Well, this generates a fault;
    1/21/2011  10:37:55.462 [ERROR] mx.messaging.Producer  'D7094E2F-2CA1-39C0-1EC6-A9DE3171E836' producer fault for  'A11AE369-8349-8970-0C10-A9DE5113DA2E'.
    The LCDS log gets into more detail, AMF Deserialization ERROR....
    Please notice the use of Amf0 and Amf3 methods... I thought Amf0 was a thing of the past...
    Any ideas? Please help....
    [LCDS]01/21/2011 10:37:55.039 [ERROR] [Endpoint.RTMP] Deserialization failed for incoming data: Unknown AMF type '15'.
    flex.messaging.io.UnknownTypeException: Unknown AMF type '15'.
         at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:217)
         at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
         at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
         at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
         at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
         at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
         at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
         at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
         at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:437)
         at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
         at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
         at flex.messaging.messages.AbstractMessage.readExternalBody(AbstractMessage.java:654)
         at flex.messaging.messages.AbstractMessage.readExternal(AbstractMessage.java:324)
         at flex.messaging.messages.AsyncMessage.readExternal(AsyncMessage.java:98)
         at flex.messaging.io.amf.Amf3Input.readExternalizable(Amf3Input.java:491)
         at flex.messaging.io.amf.Amf3Input.readScriptObject(Amf3Input.java:420)
         at flex.messaging.io.amf.Amf3Input.readObjectValue(Amf3Input.java:152)
         at flex.messaging.io.amf.Amf3Input.readObject(Amf3Input.java:130)
         at flex.messaging.io.amf.Amf0Input.readObjectValue(Amf0Input.java:123)
         at flex.messaging.io.amf.Amf0Input.readObject(Amf0Input.java:94)
         at flex.messaging.io.amf.AmfMessageDeserializer.readObject(AmfMessageDeserializer.java:227)
         at flex.messaging.io.tcchunk.TCCommand.readMessage(TCCommand.java:191)
         at flex.messaging.endpoints.RTMPConnection.serviceTCMessage(RTMPConnection.java:1024)
         at flex.messaging.endpoints.RTMPConnection.doRead(RTMPConnection.java:610)
         at flex.messaging.endpoints.RTMPProtocolHandler.doRead(RTMPProtocolHandler.java:125)
         at flex.messaging.socketserver.Connection$ConnectionReader.run(Connection.java:864)
         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
         at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
         at java.lang.Thread.run(Thread.java:662)
    Thanks,
    Oscar

    See my response in the other thread.

  • IOException thrown in oracle.xml.parser.v2.XMLElement.readExternal() method

    Hi,
    I have a bpel process which takes in a particular xml format and does some processing asynchronously. I am calling this bpel process from a web application which uses axis web service to call this application.
    Everything works fine when the xml is small (around 10 to 15 kb). But once the xml gets huge(around 250 to 400 kb) error is thrown in bpel in the oracle.xml.parser.v2.XMLElement.readExternal() method. It seems like bpel is not able to reconstruct the object that it had written to some stream before. I learnt from some forum posts that this done for optimizing performance but I would like to know whether i have to tweak something here.
    Particularly what does this "java.io.IOException: Error in reading Namespace associated with the node" mean. Below is the error log
    10/01/05 20:40:51 java.io.IOException: Error in reading Namespace associated with the node
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLElement.readExternal(XMLElement.java:2954)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2842)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLNode.readChildNodes(XMLNode.java:2843)
    10/01/05 20:40:51      at oracle.xml.parser.v2.XMLDocument.readExternal(XMLDocument.java:3394)
    10/01/05 20:40:51      at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:345)
    10/01/05 20:40:51      at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
    10/01/05 20:40:51      at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
    10/01/05 20:40:51      at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
    10/01/05 20:40:51      at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
    10/01/05 20:40:51      at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
    10/01/05 20:40:51      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    10/01/05 20:40:51      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    10/01/05 20:40:51      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10/01/05 20:40:51      at java.lang.reflect.Method.invoke(Method.java:585)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
    10/01/05 20:40:51      at java.security.AccessController.doPrivileged(Native Method)
    10/01/05 20:40:51      at javax.security.auth.Subject.doAs(Subject.java:396)
    10/01/05 20:40:51      at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    10/01/05 20:40:51      at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
    10/01/05 20:40:51      at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
    10/01/05 20:40:51      at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
    10/01/05 20:40:51      at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
    10/01/05 20:40:51      at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
    10/01/05 20:40:51      at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
    10/01/05 20:40:51      at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
    10/01/05 20:40:51      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    10/01/05 20:40:51      at java.lang.reflect.Method.invoke(Method.java:585)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
    10/01/05 20:40:51      at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
    10/01/05 20:40:51      at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
    10/01/05 20:40:51      at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
    10/01/05 20:40:51      at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
    10/01/05 20:40:51      at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
    10/01/05 20:40:51      at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
    10/01/05 20:40:51      at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
    10/01/05 20:40:51      at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
    10/01/05 20:40:51      at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
    10/01/05 20:40:51      at java.lang.Thread.run(Thread.java:595)
    10/01/05 20:40:51 0 - ORABPEL-00000
    Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
         at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
         at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
         at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
         at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
         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 com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Exception: ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
    Handled As: com.collaxa.cube.CubeException
    10/01/05 20:40:51 1 - ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
    <2010-01-05 20:40:51,381> <ERROR> <pmf_capability_domain.collaxa.cube> <BaseCubeSessionBean::logError> Error while invoking bean "cube delivery": [com.collaxa.cube.CubeException: Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf.  The exception reported is Error in reading Namespace associated with the node
         at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
         at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
         at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
         at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
         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 com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Exception: ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf.  The exception reported is Error in reading Namespace associated with the node
    Handled As: com.collaxa.cube.CubeException
    ] -> [com.collaxa.cube.xml.dom.DOMException: Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf.  The exception reported is Error in reading Namespace associated with the node
    ORABPEL-00000
    Exception not handled by the Collaxa Cube system.
    An unhandled exception has been thrown in the Collaxa Cube system. The exception reported is: "ORABPEL-09222
    Cannot deserialize DOM element.
    Failed to deserialize the DOM element from binary format, the document id 806601993018f2af:-5dd89d4f:125feeefac4:-7fbf. The exception reported is Error in reading Namespace associated with the node
         at com.collaxa.cube.xml.dom.SDOMHelper.loadCompressedNormalDom(SDOMHelper.java:355)
         at com.collaxa.cube.xml.dom.SDOMHelper.load(SDOMHelper.java:135)
         at com.collaxa.cube.xml.dom.DOMUtil.loadDocument(DOMUtil.java:2266)
         at com.collaxa.cube.engine.delivery.DeliveryHelper.loadParts(DeliveryHelper.java:878)
         at com.collaxa.cube.engine.delivery.DeliveryService.handleInvoke(DeliveryService.java:515)
         at com.collaxa.cube.engine.ejb.impl.CubeDeliveryBean.handleInvoke(CubeDeliveryBean.java:342)
         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 com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor$1.run(JAASInterceptor.java:31)
         at java.security.AccessController.doPrivileged(Native Method)
         at javax.security.auth.Subject.doAs(Subject.java:396)
         at com.evermind.server.ThreadState.runAs(ThreadState.java:648)
         at com.evermind.server.ejb.interceptor.system.JAASInterceptor.invoke(JAASInterceptor.java:34)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.TxRequiredInterceptor.invoke(TxRequiredInterceptor.java:50)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at com.evermind.server.ejb.StatelessSessionEJBObject.OC4J_invokeMethod(StatelessSessionEJBObject.java:87)
         at CubeDeliveryBean_LocalProxy_4bin6i8.handleInvoke(Unknown Source)
         at com.collaxa.cube.engine.dispatch.message.invoke.InvokeInstanceMessageHandler.handle(InvokeInstanceMessageHandler.java:37)
         at com.collaxa.cube.engine.dispatch.DispatchHelper.handleMessage(DispatchHelper.java:138)
         at com.collaxa.cube.engine.dispatch.BaseScheduledWorker.process(BaseScheduledWorker.java:70)
         at com.collaxa.cube.engine.ejb.impl.WorkerBean.onMessage(WorkerBean.java:86)
         at sun.reflect.GeneratedMethodAccessor49.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:585)
         at com.evermind.server.ejb.interceptor.joinpoint.EJBJoinPointImpl.invoke(EJBJoinPointImpl.java:35)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.DMSInterceptor.invoke(DMSInterceptor.java:52)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.interceptor.system.SetContextActionInterceptor.invoke(SetContextActionInterceptor.java:44)
         at com.evermind.server.ejb.interceptor.InvocationContextImpl.proceed(InvocationContextImpl.java:119)
         at com.evermind.server.ejb.InvocationContextPool.invoke(InvocationContextPool.java:55)
         at oracle.j2ee.connector.messageinflow.MessageEndpointImpl.OC4J_invokeMethod(MessageEndpointImpl.java:297)
         at WorkerBean_EndPointProxy_4bin6i8.onMessage(Unknown Source)
         at oracle.j2ee.ra.jms.generic.WorkConsumer.run(WorkConsumer.java:266)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:814)
         at java.lang.Thread.run(Thread.java:595)
    Exception: ORABPEL-09222

    I finally found the root cause of the solution. We are using axis serialization/deserialization at the client end to call the bpel service which works well for small xml. But mysteriously for larger xmls the deserialization fails at the server end when the incoming xml is being used. So we used the regular oracle java api to call the web service. This solved the problem.
    We could not find whether the problem lies with Oracle SOA suite 10.1.3.1 or Apache axis 2.0. But as of now these two seem to be incompatible for large xmls at the moment.
    Any pointers are welcome!

  • Java.lang.indexoutofbound Exception

    HI all
    i am trying to convert multiple jpg images to single tiff image..i am getting an exception that is
    "java.lang.indexoutofbound Exception"..can anyone help me
    import com.sun.media.imageio.plugins.tiff.TIFFImageWriteParam;
    import java.awt.image.BufferedImage;
    import java.io.File;
    import java.io.IOException;
    import java.util.ArrayList;
    import java.util.Iterator;
    import java.util.Locale;
    import javax.imageio.IIOImage;
    import javax.imageio.ImageIO;
    import javax.imageio.ImageReader;
    import javax.imageio.ImageWriteParam;
    import javax.imageio.ImageWriter;
    import javax.imageio.metadata.IIOMetadata;
    import javax.imageio.stream.ImageInputStream;
    import javax.imageio.stream.ImageOutputStream;
    public class mergeImages
    public void execute(ArrayList<File> imageFiles , File newTIFF)
    throws IOException
    Iterator iterator = imageFiles.iterator();
    Iterator writers = ImageIO.getImageWritersByFormatName("tif");
    ImageWriter writer = (ImageWriter)writers.next();
    ImageOutputStream ios = ImageIO.createImageOutputStream(newTIFF);
    writer.setOutput(ios);
    TIFFImageWriteParam tiffWriteParam = new TIFFImageWriteParam(Locale.US);
    tiffWriteParam.setCompressionMode(ImageWriteParam.MODE_EXPLICIT);
    tiffWriteParam.setCompressionType("JPEG");
    boolean firstImage = true;
    while (iterator.hasNext())
    File imageFile = (File) iterator.next();
    ImageInputStream iis = ImageIO.createImageInputStream(imageFile);
    Iterator readers = ImageIO.getImageReaders(iis);
    ImageReader reader = (ImageReader)readers.next();
    reader.setInput(iis);
    try
    for(int i = 0;i<imageFiles.size();i++)
    IIOMetadata iioImageMetadata = reader.getImageMetadata(i);
    int imageHeight = reader.getHeight(i);
    int imageWidth = reader.getWidth(i);
    tiffWriteParam.setTilingMode(ImageWriteParam.MODE_EXPLICIT);
    tiffWriteParam.setTiling(imageWidth, imageHeight, 0, 0);
    BufferedImage bi = reader.read(i, null);
    IIOImage image = new IIOImage(bi, null, iioImageMetadata);
    if(firstImage==false)
    writer.writeInsert(-1,image, tiffWriteParam);
    else {
    writer.write(null, image, tiffWriteParam);
    firstImage = false;
    catch (Exception e)
    System.out.println("Exxxxxxxxx"+e);
    reader.dispose();
    writer.dispose();
    public static void main(String[] args)throws IOException
    ArrayList filesList=new ArrayList();
    File destFile = new File("c:\\TEST.tif");
    //your logic to get the list of files.
    // set the file list to 'filesList'
    File in1 = new File("c:\\a.jpg");
    File in2 = new File("c:\\b.jpg");
    filesList.add(0,in1);
    filesList.add(1,in2);
    mergeImages mI=new mergeImages();
    mI.execute(filesList,destFile);
    }

    To expand on that a little, so that you get better information next time:
    This line tells you what, ultimately, failed.
    java.lang.IndexOutOfBoundsExceptionYou then get the stack trace from most recent method called to least recent method called. The most recent method will contain the line of code that actually failed, but as here may be in an external library:
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.gotoImage(JPEGImageReader.java:448)The last external package after your own code will be the method call that failed. Here you were calling the getImageMetadata() method of the com.sun.imageio.plugins.jpeg.JPEGImageReader class. Documentation on this class is available from the [Sun API documentation|http://java.sun.com/j2se/1.5.0/docs/api/javax/imageio/ImageReader.html] .
    at com.sun.imageio.plugins.jpeg.JPEGImageReader.getImageMetadata(JPEGImageReader.java:851)The next entry indicates which line of your own code failed. Here it was line 45 which is within a method called execute (mediocre name - it should describe what it's doing, execute is too abstract) of your own class called mergeImagesHCL (also a poor name - classes should always start with a capital letter):
    at mergeImagesHCL.execute(mergeImagesHCL.java:45)The rest of the stack trace tells you how you got there - here by calling mergeImagesHCL at line 84 of the main method of the same class:
    at mergeImagesHCL.main(mergeImagesHCL.java:84)Stack traces tell you exactly what line of code your error is on, what you were calling when it failed, and why it failed. Use them.

  • [svn:bz-trunk] 14593: Bug: BLZ-495 - HTTP channel failed to deserialize Externalizable( ArrayCollection ) body in AsyncMessage.

    Revision: 14593
    Revision: 14593
    Author:   [email protected]
    Date:     2010-03-05 00:50:36 -0800 (Fri, 05 Mar 2010)
    Log Message:
    Bug: BLZ-495 - HTTP channel failed to deserialize Externalizable(ArrayCollection ) body in AsyncMessage.
    QA: Yes
    Doc: No
    Checkintests: Pass
    Details: This regression was caused by change 12844 for BLZ-436. In that change, we assume that an ArrayList is always used temporarily but in ArrayCollection case (which is also an ArrayList), this is not the case, so we had to account for that.
    Ticket Links:
        http://bugs.adobe.com/jira/browse/BLZ-495
        http://bugs.adobe.com/jira/browse/BLZ-436
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amfx/AmfxInput.java

  • EOFException in readExternal()

    I'm implementing the Externizable interface and simply trying use readInt() to read an integer. Here is my sample code and the stack trace. It works if I create a an Integer object and write that, then read the object and just grab the intValue, but that is a work around I would like to avoid since writeInt() and readInt() are available. Is there something wrong with my implementation? Thanks in advanced for your help.
    Jesse
    import java.io.*;
    public class A implements Externalizable{
    public int b;
    public int c;
    public A(){;}
    public void readExternal(ObjectInput in)throws IOException, ClassNotFoundException{
         b = in.readInt();
         c = in.readInt();
    public void writeExternal(ObjectOutput out)throws IOException{
         out.writeInt(b);
         out.writeInt(c);
    public static void main(String args[]) {
         A a1 = new A();
         A a2 = new A();
         a1.b = 3;
         a1.c = 4;
         try{
         FileOutputStream fostream = new FileOutputStream("a.out");
         ObjectOutputStream oos = new ObjectOutputStream(fostream);
         a1.writeExternal(oos);
         fostream.close();     
         FileInputStream fistream = new FileInputStream("a.out");
         ObjectInputStream ois = new ObjectInputStream(fistream);
         a2.readExternal(ois);
         fistream.close();
         catch(Exception e){
         e.printStackTrace();
    //stack trace
    java.io.EOFException
    at java.io.DataInputStream.readInt(DataInputStream.java:397)
    at java.io.ObjectInputStream$BlockDataInputStream.readInt(ObjectInputStream.java:2645)
    at java.io.ObjectInputStream.readInt(ObjectInputStream.java:892)
    at A.readExternal(A.java:13)
    at A.main(A.java:38)

    You didn't flush the stream after writing. Here's an example that works:
    public void readExternal(ObjectInput in)throws IOException, ClassNotFoundException{
    b = c = 0;                    // Set b and c to zero
    System.out.println(b+"\t"+c);          // Show that b and c are actually zero
    b = in.readInt();
    c = in.readInt();
    System.out.println(b+"\t"+c);          // Show the newly read values
    public void writeExternal(ObjectOutput out)throws IOException{
    out.writeInt(b);
    out.writeInt(c);
    out.flush();                              // Here's the culprit.  You didn't flush the
                                       // stream, so the data was never actually written
                                       // to the file.
    }Mark

  • IndexOutOfBounds Exception at List.append

    Hi, I'm writing akind of tree view control for MIDP2 using a class derived from lcdui.List.
    I am using JRE 1.5.0.11 and WTK 2.5.2. But the program crashes with an exception.
    I have a custom class derived from List. Lets say i have 10items in the list. If the user chooses select from the custom menu, the fontface of the item at getSelectedIndex will changed to bold, italics to display the slecetion. After a new tree node is expanded, all items will be deleted and new list items will be added to the list, lets say 20items.
    Then at the call of this.append, index 10 an IndexOutOfBOunds exception occurs, wich is exactlz one more than the last index of the list before. If I comment out only the line where the Font face is changed and getSelectionIndex is called, everything's running fine.
    As a work around Ive tried to unselect all items before deleting, but it doesnt work.
    So, it seems as if the List class still "thinks" that the number of items in the LIst is 10 but when I append a 11th item, the exception will be thrown.
    I hope anyone can help!
    Thanks, Jan

    I reported this bug on 13 Nov 2007 following these discussions:
    {color:0000ff}http://forum.java.sun.com/thread.jspa?threadID=5235145{color}
    I am yet to receive the 7-digit bug ID from Sun.
    db

  • [svn:bz-trunk] 17965: bug fix for watson 2669777 ASJ: AsyncMessage doesn' t support surrogate pair.

    Revision: 17965
    Revision: 17965
    Author:   [email protected]
    Date:     2010-09-30 12:44:48 -0700 (Thu, 30 Sep 2010)
    Log Message:
    bug fix for watson 2669777 ASJ: AsyncMessage doesn't support surrogate pair.
    Using the new String(bytes, "utf-8") to read the UTF string from amf input.
    Checkintests pass
    Ticket Links:
        http://bugs.adobe.com/jira/browse/utf-8
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/io/amf/Amf3Input.java

  • Oracle JDBC Driver 10.1.0.4.0 and IndexOutOfBounds-Exception

    Hello all,
    we´ve experienced a weird problem using the Oracle JDBC driver version 10.1.0.4.0. While executing SELECT statement we get an ArrayIndexOutOfBounds exception from the JDBC driver. Here´s the stacktrace:
    java.lang.ArrayIndexOutOfBoundsException
    at java.lang.System.arraycopy(Native Method)
    at oracle.jdbc.driver.T4CDateAccessor.saveDataFromOldDefineBuffers(T4CDateAccessor.java:212)
    at oracle.jdbc.driver.T4CPreparedStatement.saveDefineBuffersIfRequired(T4CPreparedStatement.java:405)
    at oracle.jdbc.driver.OracleStatement.prepareAccessors(OracleStatement.java:859)
    at oracle.jdbc.driver.OracleStatement.execute_maybe_describe(OracleStatement.java:949)
    at oracle.jdbc.driver.T4CPreparedStatement.execute_maybe_describe(T4CPreparedStatement.java:532)
    at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1037)
    at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:2905)
    at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:2946)
    at weblogic.jdbc.wrapper.PreparedStatement.executeQuery(PreparedStatement.java:124)
    We couldn´t find anything on the web on this error. We´re using Weblogic 8.1 SP4 with JDBC version. Does anyone have a hint or an idea what could be the problem here?
    Thanks for any help in advance!
    Cheers,
    Joerg

    I may have a related bug, I get a similiar exception when running JIRA...
    java.lang.ArrayIndexOutOfBoundsException: -1
    at oracle.jdbc.driver.DateTimeCommonAccessor.computeJulianDay(DateTimeCommonAccessor.java:341)
    at oracle.jdbc.driver.DateTimeCommonAccessor.getMillis(DateTimeCommonAccessor.java:386)
    at oracle.jdbc.driver.DateAccessor.getTimestamp(DateAccessor.java:142)
    at oracle.jdbc.driver.OracleResultSetImpl.getTimestamp(OracleResultSetImpl.java:1018)...I tried the 10.1.0.2 and 10.1.0.4 drivers, both throw the same exception. I would try the 10.2 drivers, but they just hang! Gotta love Oracle QA!

  • IndexOutOfBounds exceltion when opening a workitem in non english user

    Hello,
    On an english user I perfectly open a workiten in the UWL, But if a change the language to NL, DE, FR, other than english, when I try to open a workitem I get a IndexOutOfBoundsException, This is happen with standard task of Leave Request (LEA) on manager side.
    Regards
    Jose

    Hi I execute the iview
    pcd:portal_content/com.sap.pct/every_user/com.sap.pct.erp.ess.bp_folder/com.sap.pct.erp.ess.iviews/com.sap.pct.erp.ess.working_time/com.sap.pct.erp.ess.leaverequestapprover
    the same that the UWL try to open, and works fine, the error happen selecting a request on the table...
    But this error happen on NL, FR for example. Not happen on EN, or DE.
    java.lang.IndexOutOfBoundsException: Index: 0, Size: 0
         at java.util.ArrayList.RangeCheck(ArrayList.java:507)
         at java.util.ArrayList.get(ArrayList.java:324)
         at com.sap.aii.proxy.framework.core.JcoBaseList.get(JcoBaseList.java:272)
         at com.sap.aii.proxy.framework.core.AbstractList.get(AbstractList.java:230)
         at com.sap.tc.webdynpro.modelimpl.dynamicrfc.DynamicRFCList.get(DynamicRFCList.java:281)
         at com.sap.tc.webdynpro.progmodel.context.Node$ModelElementList.getElement(Node.java:2543)
         at com.sap.tc.webdynpro.progmodel.context.Node.getElementAtInternal(Node.java:621)
         at com.sap.tc.webdynpro.progmodel.context.Node.setLeadSelection(Node.java:753)
         at com.sap.xss.hr.lea.form.FcForm.setLeadSelectionForSubtype(FcForm.java:712)
         at com.sap.xss.hr.lea.form.FcForm.setVisibility(FcForm.java:959)
         at com.sap.xss.hr.lea.form.FcForm.prepareCommand(FcForm.java:315)
         at com.sap.xss.hr.lea.form.wdp.InternalFcForm.prepareCommand(InternalFcForm.java:2042)
         at com.sap.xss.hr.lea.form.FcFormInterface.prepareCommand(FcFormInterface.java:116)
    Edited by: José Francisco Maldonado Vargas on Mar 21, 2011 3:02 PM

  • Need 'synchronized' on readExternal/writeExternal/readObject/writeObject?

    Hi,
    I am implementing an object in Java which should be able to be kept in an application server session, and properly supports cluster failover.
    I understand I have to make my object serializable, and I want to implement my own read/.../writeObject methods.
    My question: do these read/.../writeObjects have to be 'synchronized', or in other words, does J2EE guarantee that whichever thread implements 'cluster serialization' will not conflict with threads performing requests on the object?
    philipp

    Kirax wrote:
    I already turned off my firewall and disable proxy but it still didn't work. I also try to run netstat and see that the connection is stuck in SYN_SENT for a while and then it throws an Exception.Being stuck in SYN_SENT means it never received an ACK from the other endpoint, so it sounds like the issue is on the other end then or somewhere in the middle. Have you run netstat on the server end? Can you ping the server?

  • IndexOutOfBounds Exception using ArrayList running in a Thread

    Hi, I am a beginner in Java. While I am studying I became interested in Game Developing. So I tried to create a game like Space Shooting. Although the design and the ship lives are not yet finished it should run. Here is my whole code.
    import java.applet.Applet;
    import java.applet.AudioClip;
    import java.awt.*;
    import java.awt.event.KeyAdapter;
    import java.awt.event.KeyEvent;
    import java.io.File;
    import java.net.MalformedURLException;
    import java.net.URL;
    import java.util.ArrayList;
    import java.util.Random;
    import java.util.logging.Level;
    import java.util.logging.Logger;
    import javax.swing.ImageIcon;
    import javax.swing.JFrame;
    class Ship
        int x,y,lives;
        long score,lastExplodeDisplay;
        public Ship()
            x = 307;
            y = 444;
            lives = 3;
            score = lastExplodeDisplay = 0;
        public void move(int xDir)
            x = x + xDir;
    class Asteroid
        int x,y,speed;
        Random asteroidGenerator;
        int explodeMode;
        long lastExplodeDisplay;
        public Asteroid()
            asteroidGenerator = new Random();
            x = asteroidGenerator.nextInt(600) + 10;
            y = asteroidGenerator.nextInt(1250) + 100;
            y = y * -1;
            speed =  1;
            explodeMode = 0;
            lastExplodeDisplay = 0;
    class Star
        int x,y,speed,radius,colorChooser;
        Color color;
        Random starGenerator;
        public Star()
            starGenerator = new Random();
            x = (starGenerator.nextInt(620) + 10);
            y = (starGenerator.nextInt(460) + 10);
            speed = starGenerator.nextInt(2) + 1;
            radius = (starGenerator.nextInt(3));
            colorChooser = starGenerator.nextInt(200);
            if(colorChooser % 3 == 0)
                color = Color.YELLOW;
            else if(colorChooser % 4 == 0)
                color = Color.BLUE;
            else if(colorChooser % 5 == 0)
                color = Color.RED;
            else
                color = Color.WHITE;
    class Shot
        int x,y,speed;
        public Shot(int position)
            x = position + 3;
            y = 440;
            speed = 7;
    public class Main extends JFrame implements Runnable{
        private Image dbImage, ship,shot,asteroid,explode,shield;
        private Graphics dbg;
        private ImageIcon i;
        private Font stageFont;
        long lastShot, start;
        AudioClip shoot;
        String scoreShow;
        int lastAsteroidPosition;
        Ship ship1 = new Ship();
        Star[] stars = new Star[200];
        ArrayList<Shot> shots = new ArrayList<Shot>();
        ArrayList<Asteroid> asteroids = new ArrayList<Asteroid>();
        ArrayList<Asteroid> exploded = new ArrayList<Asteroid>();
        boolean[] keys = new boolean[3];
        private boolean shipDestroyed,continued,shielded;
        private int ex;
        public class ActionList extends KeyAdapter{
            public void keyPressed(KeyEvent e)
                int keyCode = e.getKeyCode();
                if(keyCode == e.VK_A)
                    keys[0] = true;
                if(keyCode == e.VK_D)
                    keys[1] = true;
                if(keyCode == e.VK_Y)
                    keys[2] = true;
                if(keyCode == e.VK_F2 && !continued)
                    continued = true;
                    shipDestroyed = false;
                    ex = 0;
                    shielded = true;
                    start = System.currentTimeMillis();
                /*if(keyCode == e.VK_A)
                    if(ship1.x <= 15)
                        ship1.x = 15;
                    else
                        ship1.x -= 5;
                if(keyCode == e.VK_D)
                    if(ship1.x >= 589)
                        ship1.x = 589;
                    else
                        ship1.x += 5;
                if(keyCode == e.VK_Y)
                    Shot newShot = new Shot(ship1.x);
                    shots.add(newShot);
            public void keyReleased(KeyEvent e)
                int keyCode = e.getKeyCode();
                if(keyCode == e.VK_A)
                    keys[0] = false;
                if(keyCode == e.VK_D)
                    keys[1] = false;
                if(keyCode == e.VK_Y)
                    keys[2] = false;
        public Main()
            createStars();
            addKeyListener(new ActionList());
            setSize(640,480);
            setTitle("Shoot by Takeshi®");
            setResizable(false);
            setVisible(true);
            setBackground(Color.BLACK);
            setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            i = new ImageIcon("C:/Documents and Settings/dioNisio.OWLCITY/My Documents/NetBeansProjects/GamePractice/src/ship1.png");
            ship = i.getImage();
            i = new ImageIcon("C:/Documents and Settings/dioNisio.OWLCITY/My Documents/NetBeansProjects/GamePractice/src/shot.png");
            shot = i.getImage();
            i = new ImageIcon("C:/Documents and Settings/dioNisio.OWLCITY/My Documents/NetBeansProjects/GamePractice/src/asteroid.png");
            asteroid = i.getImage();
            i = new ImageIcon("C:/Documents and Settings/dioNisio.OWLCITY/My Documents/NetBeansProjects/GamePractice/src/shield.png");
            shield = i.getImage();
            stageFont = new Font("Courier New",Font.BOLD,20);
            lastAsteroidPosition = 0;
            scoreShow = "0000000000";
            shielded = true;
            try
                URL sound = new URL("file:///C:/Documents%20and%20Settings/dioNisio.OWLCITY/My%20Documents/NetBeansProjects/GamePractice/src/laserfast.au");
                shoot = Applet.newAudioClip(sound);
            catch(MalformedURLException e)
                System.out.print(""+e.getMessage());
            continued = true;
            createAsteroids();
        @Override
        public void run()
                start = System.currentTimeMillis();
                while(true)
                    if((System.currentTimeMillis() - start) >= 5000)
                        shielded = false;
                    animateStars();
                    animateAsteroids();
                    animateExplosion();
                    animateShots();
                    if(continued)
                        animateShip();
                        createShot();
                try {
                    Thread.sleep(5);
                } catch (InterruptedException ex) {
                    Logger.getLogger(Main.class.getName()).log(Level.SEVERE, null, ex);
        public static void main(String[] args)
            Main newMain = new Main();
            Thread t1 = new Thread(newMain);
            t1.start();
        @Override
        public void paint(Graphics g)
            dbImage = createImage(getWidth(), getHeight());
            dbg = dbImage.getGraphics();
            paintComponent(dbg);
            g.drawImage(dbImage, 0, 0, this);
            repaint();
        public void paintComponent(Graphics g)
            g.setColor(Color.WHITE);
            for(int c = 0; c < 200; c++)
                g.setColor(stars[c].color);
                g.fillOval(stars[c].x, stars[c].y, (stars[c].radius * 2), (stars[c].radius * 2));
            for(int c = 0; c < asteroids.size(); c++)
                g.drawImage(asteroid,asteroids.get(c).x, asteroids.get(c).y, this);
            for(int c = 0; c < exploded.size(); c++)
                i = new ImageIcon("C:/Documents and Settings/dioNisio.OWLCITY/My Documents/NetBeansProjects/GamePractice/src/e"+(exploded.get(c).explodeMode+1)+".png");
                explode = i.getImage();
                g.drawImage(explode,exploded.get(c).x, exploded.get(c).y, this);
                if(exploded.get(c).explodeMode < 14)
                    g.setColor(Color.white);
                    g.drawString("50",exploded.get(c).x, exploded.get(c).y);
            for(int c = 0; c < shots.size(); c++)
                g.drawImage(shot,shots.get(c).x, shots.get(c).y, this);
            if(!shipDestroyed)
                g.drawImage(ship, ship1.x, ship1.y, this);
                if(shielded)
                    g.drawImage(shield, ship1.x - 15, ship1.y - 15 , this);
            else
                if(ex<14)
                        i = new ImageIcon("C:/Documents and Settings/dioNisio.OWLCITY/My Documents/NetBeansProjects/GamePractice/src/e"+(ex+1)+".png");
                        explode = i.getImage();
                        g.drawImage(explode,ship1.x, ship1.y, this);
                        if((System.currentTimeMillis() - ship1.lastExplodeDisplay) >= 250)
                            ex++;
                            ship1.lastExplodeDisplay = System.currentTimeMillis();
                if(!continued)
                    g.setColor(Color.WHITE);   
                    g.drawString("PRESS F2 TO CONTINUE",470,50);
            g.setColor(Color.WHITE);
            g.setFont(stageFont);
            g.drawString("STAGE 1",20,50);
            g.setColor(Color.RED);
            for(int c = 0; c < ship1.lives; c++)
                g.drawString("♥",120+(c*10),50);
            g.setColor(Color.WHITE);
            g.drawString(""+ship1.score, 20, 70);
        public void animateStars()
            for(int c = 0; c < 200; c++)
                if(stars[c].y >= 460)
                    stars[c].y = 0;
                else
                    stars[c].y += stars[c].speed;
        public void animateShots() {
            boolean xTargeted = false, yTargeted = false, destroyed = false;
            for(int c = 0; c < shots.size() ; c++)
                for(int j = 0; j < asteroids.size(); j++)
                        if(((shots.get(c).x >= asteroids.get(j).x) && (shots.get(c).x < (asteroids.get(j).x + 30))) || (((shots.get(c).x + 30) >= asteroids.get(j).x) && ((shots.get(c).x + 30) < (asteroids.get(j).x + 30))))
                            xTargeted = true;
                        if((asteroids.get(j).y + 30 - shots.get(c).y) > 0)
                            yTargeted = true;
                        if(xTargeted && yTargeted)
                            exploded.add(asteroids.get(j));
                            asteroids.remove(j);
                            ship1.score += 50;
                            destroyed = true;
                        xTargeted = false;
                        yTargeted = false;
                if(destroyed)
                    shots.remove(c);
                    destroyed = false;
                else if(shots.get(c).y <=0)
                    shots.remove(c);
                else
                    shots.get(c).y -= shots.get(c).speed;
        public void animateAsteroids() {
            boolean xTargeted = false;
            boolean yTargeted = false;
            boolean sxTargeted = false;
            boolean syTargeted = false;
            for(int c = 0; c < asteroids.size() ; c++)
                if(shielded)
                    if(((ship1.x - 15 >= asteroids.get(c).x) && (ship1.x - 15 < (asteroids.get(c).x + 30))) || ((((ship1.x - 15) + 64) >= asteroids.get(c).x) && (((ship1.x - 15) + 64) < (asteroids.get(c).x + 30))))
                        sxTargeted = true;
                    if((asteroids.get(c).y + 30 - ship1.y) > 0)
                        syTargeted = true;
                    if(sxTargeted && syTargeted)
                        exploded.add(asteroids.get(c));
                        asteroids.remove(c);
                    sxTargeted = false;
                    syTargeted = false;
                else
                    if(((ship1.x >= asteroids.get(c).x) && (ship1.x < (asteroids.get(c).x + 30))) || (((ship1.x + 30) >= asteroids.get(c).x) && ((ship1.x + 30) < (asteroids.get(c).x + 30))))
                        xTargeted = true;
                    if((asteroids.get(c).y + 30 - ship1.y) > 0)
                        yTargeted = true;
                    if(xTargeted && yTargeted)
                        asteroids.remove(c);
                        shipDestroyed = true;
                        continued = false;
                        ship1.lives --;
                    xTargeted = false;
                    yTargeted = false;
                if(asteroids.get(c).y >=480)
                    asteroids.remove(c);
                else
                    asteroids.get(c).y += asteroids.get(c).speed;
        public void animateShip()
            if(keys[0] && !keys[1])
                if(ship1.x <= 15)
                    ship1.x = 15;
                else
                    ship1.x -= 5;
            else if(!keys[0] && keys[1])
                if(ship1.x >= 589)
                    ship1.x = 589;
                else
                    ship1.x += 5;
        public final void createStars()
            for(int c = 0; c < 200; c++)
                stars[c] = new Star();
        public void createShot()
            if(keys[2] && System.currentTimeMillis() - lastShot >= 150)
                Shot newShot = new Shot(ship1.x);
                shots.add(newShot);
                lastShot = System.currentTimeMillis();
                shoot.play();
        public final void createAsteroids()
            boolean verifiedGeneration = false;
            Asteroid newAsteroid = null;
            for(int c = 0; c < 100; c++)
                newAsteroid = new Asteroid();
                if((newAsteroid.y - lastAsteroidPosition) < 500)
                    newAsteroid.y -= (500 - (lastAsteroidPosition - newAsteroid.y));
                asteroids.add(newAsteroid);
                lastAsteroidPosition = newAsteroid.y;
        public void animateExplosion()
            for(int c = 0; c< exploded.size(); c++)
                if(exploded.get(c).y >= 480)
                    exploded.remove(c);
                else
                    exploded.get(c).y += exploded.get(c).speed;
                    if((System.currentTimeMillis() - exploded.get(c).lastExplodeDisplay) >= 150)
                        exploded.get(c).explodeMode++;
                        exploded.get(c).lastExplodeDisplay = System.currentTimeMillis();
    }So when I freshly run the program it works fine, but after a few shots and collisions with asteroids, the program throws an IndexOutOfBoundsException and I don't know where to trace it. I am beginning to think that the problem lies in my ArrayList. Here is a link to the program screenshot.
    Any help would be greatly appreciated.
    Thanks!
    Edited by: 893284 on Oct 26, 2011 4:59 AM

    First of all, put your program code between tags. Nobody's going to read unformatted code.
    Secondly, IOOBE is a very simple to understand exception. You're accessing a collection beyond its limits.
    Thirdly, the stacktrace will tell you where this happens. If you have multiple threads involved, you might need appropriate synchronization in there.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • IndexOutOfBounds exception in populateAttribute

    Hi,
    Since I moved to jdev 10.1.2, I randomly fall upon IndexOutOfBoundsException while executing Queries.
    I have absolutely no clue where they come from, any one from JDev Team can tell me what could be going on?
    Seems It usually occurs on dynamically created viewObject (built with createViewObjectFromQueryStmt)
    Regards
    Rémi
    here is the stack trace I get:
    java.lang.IndexOutOfBoundsException: Index: 1, Size: 0
    at com.sun.java.util.collections.ArrayList.RangeCheck(ArrayList.java:492)
    at com.sun.java.util.collections.ArrayList.set(ArrayList.java:322)
    at oracle.jbo.server.ViewRowStorage.setDynamicAttribute(ViewRowStorage.java:1848)
    at oracle.jbo.server.ViewRowStorage.populateAttribute(ViewRowStorage.java:1761)
    at oracle.jbo.server.ViewRowImpl.populateAttribute(ViewRowImpl.java:2255)
    at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:2206)
    at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:1031)
    at oracle.jbo.server.ViewObjectImpl.createRowFromResultSet(ViewObjectImpl.java:2746)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSet(ViewObjectImpl.java:2649)
    at oracle.jbo.server.QueryCollection.populateRow(QueryCollection.java:1871)
    at oracle.jbo.server.QueryCollection.fetch(QueryCollection.java:1772)
    at oracle.jbo.server.QueryCollection.get(QueryCollection.java:1240)
    at oracle.jbo.server.ViewRowSetImpl.getRow(ViewRowSetImpl.java:3202)
    at oracle.jbo.server.ViewRowSetIteratorImpl.doFetch(ViewRowSetIteratorImpl.java:2754)
    at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2610)
    at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:2850)
    at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:1941)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:689)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:769)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:706)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:3363)

    Little chances to be related, but did you see ths thread: ViewRowImpl getAttributeNames 10.1.2.0.0 ?
    HTH,
    Adrian

Maybe you are looking for