Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Request for detailed exception root cause message for BacNetClientException trace #37

Open
saransh14 opened this issue Mar 18, 2024 · 4 comments
Assignees

Comments

@saransh14
Copy link
Contributor

I'm using YABE simulator, and for Heater.status, I'm sometimes getting the BacNetClientException, but while looking at the exception payload I'm unable to identify the root cause of the failure for fetching the present value for the defined bacnet object.
Is there any way by which I can identify the root cause of the problem for the failure for fetching the present value.

I'm attaching the snapshot of the captures stack trace for BacNetClientException but I'm unable to understand the reason of failure.
image

@splatch splatch self-assigned this Mar 20, 2024
@splatch
Copy link
Member

splatch commented Mar 20, 2024

I've had a look on client code (BacNetClientBase) and all places there propagate exceptions. Even the Could not get property value message comes from such place:
https://github.com/Code-House/bacnet4j-wrapper/blob/bacnet4j-wrapper-1.3.0-beta1/api/src/main/java/org/code_house/bacnet4j/wrapper/api/BacNetClientBase.java#L186

It is likely that you get timeout errors, have a look on BacNetClientException#getCause.

@saransh14
Copy link
Contributor Author

Still unable to track the root cause of the problem by looking onto the BacNetClientException#getCause
I tracked down the stack trace and found the following:

image

@splatch
Copy link
Member

splatch commented Mar 23, 2024

Your cause is at the end - the ArrayIndexOutOfBoundsException. For some reason bacnet4j is loosing its mind reading BinaryPV value. Can you reproduce it in all cases?

@saransh14
Copy link
Contributor Author

saransh14 commented Mar 23, 2024

I've observed this issue intermittently while reading value from YABE Simluator, for State.Heater object binaryValue:0
Can we look into these scenarios, and add the appropriate messages under DetailMessage so that it would enable user to easily identify the issue while looking at exception, and would also help in logging details for the exception caused.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants