Bug #100

MsgErrorEncoder class throws NPE

Added by achristian almost 8 years ago. Updated over 7 years ago.

Status:ClosedStart date:07/13/2011
Priority:NormalDue date:
Assignee:achristian% Done:


Category:ProtocolEstimated time:0.50 h
Target version:1.2.0


Scenario: Client requests a list from server, which contains objects, for which the client does not have the implementation.

Client tries to send an error message to server. But as there is no remote-object available, there's no remote object name, and so the encoder will fail with an NPE.

Fix in MsgErrorEncoder#encodeBody()

        String remoteObjectName = message.getRemoteObjectName();
        if (remoteObjectName==null) {
        String errorMsg = message.getErrorMessage();
        if (errorMsg==null) {
        Throwable throwable = message.getThrowable();
        if (throwable==null) {
            throwable = new Throwable("NoThrowableAvailable");


#1 Updated by achristian over 7 years ago

  • Status changed from New to Resolved


#2 Updated by achristian over 7 years ago

  • Status changed from Resolved to Closed
  • % Done changed from 0 to 100

No error found so far. closed.

Also available in: Atom PDF