Contradiction with James 4:3
James 4:3 states that prayers may not be answered if asked with wrong motives, implying conditions for prayer, whereas 2 Chronicles 6:19 shows Solomon's plea for God's attention to prayers without such conditions.
James 4:3: Ye ask, and receive not, because ye ask amiss, that ye may consume [it] upon your lusts. [lusts: or, pleasures]
Contradiction with Matthew 6:8
Matthew 6:8 notes that God knows what you need before you ask, suggesting a lack of necessity for prayer, unlike 2 Chronicles 6:19, which emphasizes the act of prayer.
Matthew 6:8: Be not ye therefore like unto them: for your Father knoweth what things ye have need of, before ye ask him.