error - NullPointerException (CastelProtocolDecoder ...)

Reyad Murrar2 years ago

Dears,

error - NullPointerException (CastelProtocolDecoder:163 < *:397 < *:612 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)

This error appears for some connected devices, any idea what is causing this error?

Anton Tananaev2 years ago

It means there's some issue with decoding the data.

Reyad Murrar2 years ago

Does it require deep tracing in order to find the bug in the decoder? can you help if I sent the Hexa ?

Anton Tananaev2 years ago

HEX will be required to investigate it. And also please provide the protocol documentation.

Reyad Murrar2 years ago

These are sampe HEX, and regarding the documentation, can I send it by email?

2022-09-27 01:28:39  INFO: [1f0f7802: castel < 185.133.180.21] HEX: 40405f0004474355333635303030303236000000000000000040027f7d3163f77d3163e0f7820400000000451101000d0000020400033829941f00830c1e000705210b210c210d210f212f21a621010b572ba406353757b88c0b00a80d0d0a
2022-09-27 01:28:39  WARN: [1f0f7802] error - NullPointerException (CastelProtocolDecoder:163 < *:397 < *:612 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-09-27 01:28:39  INFO: [1f0f7802] disconnected

2022-09-27 01:29:00  INFO: [eec4dae9: castel < 185.133.180.21] HEX: 40405f0004474355333635303030303236000000000000000040029c263263ab273263f0958404b80b00007f1501001c0000020400033527941a00830c1e000705210b210c210d210f212f21a621010b5017f604302147fa900b003e250d0a
2022-09-27 01:29:00  WARN: [eec4dae9] error - NullPointerException (CastelProtocolDecoder:163 < *:397 < *:612 < ExtendedObjectDecoder:52 < ... < WrapperContext:102 < ...)
2022-09-27 01:29:00  INFO: [eec4dae9] disconnected

2022-09-27 17:23:03  INFO: [a1c0e349: castel < 185.133.181.31] HEX: 40405f0004474355333635303030303236000000000000000040025fc13263b5c53263a8958604d8590000831a0100ca0000020400033a29941f00830c1e000705210b210c210d210f212f21a621010b57547307562f32e0960b001b680d0a
2022-09-27 17:23:03  WARN: [a1c0e349] error - NullPointerException
Anton Tananaev2 years ago

Sure, you can send it to the support email address.

Reyad Murrar2 years ago

I have just sent the documentation