Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Developer
jlfernandez
Posts: 49
Registered: 07-06-2009

Exception: "Not nillable element of array type in response is missed" running webservice

Hi all,

 

I´m quite stuck with the following problem and I really don´t know where the solution could be..

I´m using 4.5 but I have also try with 4.6 and it doesn´t work either. I´m working on Eclipse.I have used Java ME Platform SDK 3.0 to generate some stubs to my webservice. All of them work properly but the last one. The code generated for the stub to get the information I need :

 

public ArrayOfIncidencia getIncidencias(int IdPedidoLinea) throws java.rmi.RemoteException {
        Object inputObject[] = new Object[] {
            new Integer(IdPedidoLinea)
        };

        Operation op = Operation.newInstance( _qname_operation_getIncidencias, _type_getIncidencias, _type_getIncidenciasResponse );
        _prepOperation( op );
        op.setProperty( Operation.SOAPACTION_URI_PROPERTY, "http://editorialvertice.com/getIncidencias" );
        Object resultObj;
        try {
            resultObj = op.invoke( inputObject );
        } catch( JAXRPCException e ) {
            Throwable cause = e.getLinkedCause();
            if( cause instanceof java.rmi.RemoteException ) {
                throw (java.rmi.RemoteException) cause;
            }
            throw e;
        }

        return ArrayOfIncidencia_fromObject((Object[])((Object[]) resultObj)[0]);
    }

 

The exception catched when op.invoke is:  "Not nillable element of array type in response is missed". Any idea of what´s going on? If you need further information just let me know. Thanks in advance.

 

Jose

 

Please use plain text.
Developer
jlfernandez
Posts: 49
Registered: 07-06-2009

Re: Exception: "Not nillable element of array type in response is missed" running webserv

I´ve been making some research...All solutions I´ve seen change the web service. Any other idea?

Please use plain text.
Developer
jlfernandez
Posts: 49
Registered: 07-06-2009

Re: Exception: "Not nillable element of array type in response is missed" running webserv

The type of the argument I´m passing to my webservice it´s int ,so the first thing the stub do to generate the input object it´s :

   Object inputObject[] = new Object[] {
              new Integer(IdPedidoLinea)

          };

 

Where IdPedidoLinea it´s int. I´m thinking on changing my webservice so instead of an int I have an String...Do you think this could work? I'd like to be sure before changing the webservice...

Please use plain text.
Developer
lynxgeek
Posts: 239
Registered: 05-24-2010
My Carrier: developer

Re: Exception: "Not nillable element of array type in response is missed" running webserv

Hi I am getting the same problem ..

 

its working fine in 4.7 and above..

 

but not in 4.6 and 4.5 which i have tested ..

 

please give me the solution

Please use plain text.