Run your lookup query again once you get "returned with error code 1" error. then search index="_internal" sourcetype=dbx2 to find error you are getting.
Sometimes If you are using java 1.8 in your system then try using ojdbc7.jar. Hope this'll Help
... View more