Yes. PAY_COSTS_V is a view. But I would expect Java application would give me an error or something not to show that the view has no records!!!
Even if I repeat the test over and over, still, via SQLPlus it gives Error and Via Java it gives zero records!
Try using the JDBC backed client Oracle provide instead.
I am using ojdbc14.jar downloaded from Oracle website for the same Oracle version. Do you recommend something else?