Uploaded image for project: 'jsonrpc'
  1. jsonrpc
  2. JSONRPC-48

Weird error when proxy instance is used concurrently from multiple threads

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Medium
    • Resolution: Unresolved
    • None
    • None
    • None
    • None

    Description

      When proxy instance is used from multiple threads, it is possible to break internal FSM.

      This should be avoided by some sort of guard that synchronize access to underlying channel.

       

      This is not a blocker, as using same proxy from multiple threads is not supported.

       

      Caused by: java.lang.NullPointerException
       at org.opendaylight.jsonrpc.bus.messagelib.RequesterSessionImpl.read(RequesterSessionImpl.java:113)
       at org.opendaylight.jsonrpc.bus.messagelib.RequesterSessionImpl.sendRequestAndReadReply(RequesterSessionImpl.java:146)
       at org.opendaylight.jsonrpc.bus.messagelib.RequesterSessionImpl.sendRequestAndReadReply(RequesterSessionImpl.java:140)
       at org.opendaylight.jsonrpc.bus.messagelib.ProxyServiceImpl.invoke(ProxyServiceImpl.java:185)
      
      

       

       Caused by: org.opendaylight.jsonrpc.bus.messagelib.MessageLibraryTimeoutException: Message was not received within 30000 milliseconds
       at org.opendaylight.jsonrpc.bus.messagelib.RequesterSessionImpl.read(RequesterSessionImpl.java:115)
       at org.opendaylight.jsonrpc.bus.messagelib.RequesterSessionImpl.sendRequestAndReadReply(RequesterSessionImpl.java:146)
       at org.opendaylight.jsonrpc.bus.messagelib.RequesterSessionImpl.sendRequestAndReadReply(RequesterSessionImpl.java:140)
       at org.opendaylight.jsonrpc.bus.messagelib.ProxyServiceImpl.invoke(ProxyServiceImpl.java:185)
      

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Unassigned Unassigned
            rkosegi Richard Kosegi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: