Can't create new cuBLAS handle!

Getting the error

Caused by: java.lang.IllegalStateException: Can't create new cuBLAS handle! cuBLAS errorCode: [1]

nvcc --version returns

nvcc: NVIDIA (R) Cuda compiler driver
Copyright (c) 2005-2016 NVIDIA Corporation
Built on Tue_Jan_10_13:22:03_CST_2017
Cuda compilation tools, release 8.0, V8.0.61

The cuda samples execute just fine. Very confused about this error.