You tried to fetch from a contains cursor which was not open.
Open cursor first
Browse all solutions to database errors from Oracle, MS SQL or MySQL
Try the following links for this error:
http://docs.oracle.com/cd/E16655_01/server.121/e26079/drgus.htm