James 1:5-7 seems to make obtaining wisdom impossible.
If any of you lacks wisdom, let him ask God, who gives generously to all without reproach, and it will be given him. But let him ask in faith, with no doubting, for the one who doubts is like a wave of the sea that is driven and tossed by the wind. For that person must not suppose that he will receive anything from the Lord; he is a double-minded man, unstable in all his ways.
To get wisdom, there cannot be one bit of doubt. It is either perfect faith or nothing.