-
Notifications
You must be signed in to change notification settings - Fork 9
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
PVA Client fails to connect #53
Comments
|
Thanks @kasemir I was able to recreate the problem with your example above. |
Excellent. I tried to also test the old pva lib, the one that workd OK, with JDK 9/10/11, but the old pva depends on Corba classes which have been removed from JDK 9/10/11. So can only test old lib with old JDK and new lib with new JDK. |
Ok, I think I have figured it out...the CID is reused before the server completed the channel creation.
Thus only the last channel created connects...if the server completed creating the connection fast then 2 of them might connect. |
The above commit fixes this issue. Would you be able to verify this. |
Your explanation and also the fix make sense. |
+1 |
The fix is not in the latest snapshot release They snapshots release is currently done by me since I have not set up a deploy CI task with the appropriate authenctications needed to push to the sonatype repo. This can be a discussion item at the epics meeting. |
With the latest pva libs, the original Demo code as well as Phoebus work, thanks! |
Pull in bug fix for epics-base/epicsCoreJava#53.
Might be related to #50.
Run this test database run
softIocPVA
:The following test code that tries to connect to all 3 PVs works OK with org.epics.pvaccess_5.1.1.jar and org.epics.pvdata_6.1.1.jar under Java 8:
But with epics-pvdata-6.1.3-SNAPSHOT.jar and epics-pvaccess-5.1.3-SNAPSHOT.jar under Java 9+ it only connects to one or two of the PVs:
Example code to follow...
The text was updated successfully, but these errors were encountered: