Skip to content

Exception from JCAPV.asyncRead() #1440

Description

@willrogers

I'm trying to use org.csstudio.vtype.pv. I get an exception from the following test (which I wrote for the purpose in JCAPVTest.java (and I am running the IOC)):

    @Test
    public void testAsyncRead() {
        try {
            final PV pv = PVPool.getPV("motor_x");
            Future<VType> pvFuture = pv.asyncRead();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }

Here is the exception:

java.lang.IllegalStateException: Channel not in connected or disconnected state, state = 'NEVER_CONNECTED'.
    at com.cosylab.epics.caj.CAJChannel.checkState(CAJChannel.java:1090)
    at com.cosylab.epics.caj.CAJChannel.getFieldType(CAJChannel.java:732)
    at org.csstudio.vtype.pv.jca.JCA_PV.asyncRead(JCA_PV.java:250)
    at org.csstudio.vtype.pv.JCAPVDemo.testAsyncRead(JCAPVDemo.java:139)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        ...
  • Is this the right PV library to use?
  • Am I doing something wrong?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions