Java client exception after RO upgrade from to


Server: Delphi, TROIndyHTTPServer, TROBinMessage
Client: Android, HttpClientChannel, BinMessage

I have upgraded RemObjects client and server from to

I’m getting Client “Attempt to invoke virtual method ‘int java.lang.String.length()’ on a null object reference” exception.

I have noticed that com.remobjects.sdk.jar lib size has been increased twice: - 73,204 bytes - 142,857 bytes

Quick fix: just replace com.remobjects.sdk.jar file with jar file in upgraded client.

Please advise.



Could you provide a full stacktrace for this exception?

java.lang.NullPointerException: Attempt to invoke virtual method ‘int java.lang.String.length()’ on a null object reference
at com.remobjects.sdk.HttpClientChannel.initHttpRequest(c:\CI\b\rofx\937\RemObjects SDK for Java\Source\com.remobjects.sdk\HttpClientChannel.pas:70)
at com.remobjects.sdk.HttpClientChannel.internalDispatch(c:\CI\b\rofx\937\RemObjects SDK for Java\Source\com.remobjects.sdk\HttpClientChannel.pas:85)
at com.remobjects.sdk.ClientChannel.dispatch(c:\CI\b\rofx\937\RemObjects SDK for Java\Source\com.remobjects.sdk\ClientChannel.pas:140)


This looks like a compiler error. As a workaround you can use the older .jar version

I will review the code of Remoting SDK and Data Abstract to avoid this issue.

Sorry for the inconvenience

Thanks, logged as bugs://84699

bugs://84699 got closed with status fixed.