Problem with UpdatePhoneReqLines Java Axis 1.2, non nillable exception

Version 1
    This document was generated from CDN thread

    Created by: Stefan Schallmeiner on 18-05-2010 11:36:29 AM
    Hi Friends,
     
    I'm facing a bit of a problem updating the Lines of a Phone via AXL. Every attempt that I'm making ends with the following exception:
     
     
     
    - Exception:
    java.io.IOException: Non nillable element 'name' is null.
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:215)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:247)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:197)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
        at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:228)
        at org.apache.axis.Message.getContentLength(Message.java:490)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:357)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at com.cisco.www.AXLAPIService.AXLAPIBindingStub.updatePhone(AXLAPIBindingStub.java:11287)
        at Main.DBActions.testCucmUpdateOverAXL(DBActions.java:1827)
        at Main.Main.main(Main.java:69)
    - Exception:
    java.io.IOException: java.io.IOException: Non nillable element 'name' is null.
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:247)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:197)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
        at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:228)
        at org.apache.axis.Message.getContentLength(Message.java:490)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:357)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at com.cisco.www.AXLAPIService.AXLAPIBindingStub.updatePhone(AXLAPIBindingStub.java:11287)
        at Main.DBActions.testCucmUpdateOverAXL(DBActions.java:1827)
        at Main.Main.main(Main.java:69)
    - Exception:
    java.io.IOException: java.io.IOException: java.io.IOException: Non nillable element 'name' is null.
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:247)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:197)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
        at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:228)
        at org.apache.axis.Message.getContentLength(Message.java:490)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:357)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at com.cisco.www.AXLAPIService.AXLAPIBindingStub.updatePhone(AXLAPIBindingStub.java:11287)
        at Main.DBActions.testCucmUpdateOverAXL(DBActions.java:1827)
        at Main.Main.main(Main.java:69)
    - Exception:
    java.io.IOException: java.io.IOException: java.io.IOException: java.io.IOException: Non nillable element 'name' is null.
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:247)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:197)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
        at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:228)
        at org.apache.axis.Message.getContentLength(Message.java:490)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:357)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at com.cisco.www.AXLAPIService.AXLAPIBindingStub.updatePhone(AXLAPIBindingStub.java:11287)
        at Main.DBActions.testCucmUpdateOverAXL(DBActions.java:1827)
        at Main.Main.main(Main.java:69)
    - Exception:
    java.io.IOException: java.io.IOException: java.io.IOException: java.io.IOException: java.io.IOException: Non nillable element 'name' is null.
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:275)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:700)
        at org.apache.axis.encoding.ser.BeanSerializer.serialize(BeanSerializer.java:230)
        at org.apache.axis.encoding.SerializationContext.serializeActual(SerializationContext.java:1417)
        at org.apache.axis.encoding.SerializationContext.serialize(SerializationContext.java:912)
        at org.apache.axis.message.RPCParam.serialize(RPCParam.java:197)
        at org.apache.axis.message.RPCElement.outputImpl(RPCElement.java:433)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.message.SOAPBody.outputImpl(SOAPBody.java:139)
        at org.apache.axis.message.SOAPEnvelope.outputImpl(SOAPEnvelope.java:477)
        at org.apache.axis.message.MessageElement.output(MessageElement.java:1207)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:315)
        at org.apache.axis.SOAPPart.writeTo(SOAPPart.java:269)
        at org.apache.axis.SOAPPart.saveChanges(SOAPPart.java:530)
        at org.apache.axis.SOAPPart.getContentLength(SOAPPart.java:228)
        at org.apache.axis.Message.getContentLength(Message.java:490)
        at org.apache.axis.transport.http.HTTPSender.writeToSocket(HTTPSender.java:357)
        at org.apache.axis.transport.http.HTTPSender.invoke(HTTPSender.java:137)
        at org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.java:32)
        at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:118)
        at org.apache.axis.SimpleChain.invoke(SimpleChain.java:83)
        at org.apache.axis.client.AxisClient.invoke(AxisClient.java:165)
        at org.apache.axis.client.Call.invokeEngine(Call.java:2765)
        at org.apache.axis.client.Call.invoke(Call.java:2748)
        at org.apache.axis.client.Call.invoke(Call.java:2424)
        at org.apache.axis.client.Call.invoke(Call.java:2347)
        at org.apache.axis.client.Call.invoke(Call.java:1804)
        at com.cisco.www.AXLAPIService.AXLAPIBindingStub.updatePhone(AXLAPIBindingStub.java:11287)
        at Main.DBActions.testCucmUpdateOverAXL(DBActions.java:1827)
        at Main.Main.main(Main.java:69)
    ; nested exception is:
        java.io.IOException: java.io.IOException: java.io.IOException: java.io.IOException: java.io.IOException: java.io.IOException: Non nillable element 'name' is null.
     
     
     
     The Client-Stub was generated with Axis 1.2 'cause Axis 1.4 lead to a problem. Cucm-Version is 6.1.4.
     
    I'm trying to update the Display Parameter of the Line on the Phone, heres my code:
     
     
            GetPhoneReq rq = new GetPhoneReq();
            rq.setPhoneName("SEP001E4AF102F2");
            GetPhoneResReturn phone_ret = new GetPhoneResReturn();

            try {
                phone_ret = stub.getPhone(rq).get_return();
            }
            catch (Exception e)
            {
                System.out.println(e.getMessage());
            }

            GetLineReq rq_line = new GetLineReq();
            rq_line.setUuid(phone_ret.getDevice().getLines().getLine()[0].getDirn().getUuid());
            GetLineResReturn ret_line = null;

            try {
                ret_line = stub.getLine(rq_line).get_return();
            }
            catch (Exception e)
            {
                System.out.println(e.getMessage());
            }

            XLine[] xline_arr = phone_ret.getDevice().getLines().getLine();

            xline_arr[0].setDirn(ret_line.getDirectoryNumber());
            xline_arr[0].setDisplay("Display");
            xline_arr[0].setLabel("Label");

            UpdatePhoneReq rq_update_phone = new UpdatePhoneReq();
            rq_update_phone.setName("SEP001E4AF102F2");

            UpdatePhoneReqLines rq_update_lines = new UpdatePhoneReqLines();
            rq_update_lines.setLine(xline_arr);   
           
            rq_update_phone.setLines(rq_update_lines);

            try {
                stub.updatePhone(rq_update_phone);
            }
            catch(RemoteException e)
            {
                System.out.println(e.getLocalizedMessage());
            }
     
     
     
    As I'm setting the Phone-Name in the Update-Request I can't understand why the Exception says that it's null. I tried a simple updatePhone to change the description of another Phone and that worked,...
     
    Any help would be appreciated
     
     - Stefan