In Jeremiah 22:24-30 we find Jeconiah, one of the sons of
Josiah. In this chapter we see what God thought of these kings. And
God placed a curse on Jeconiah, that he would be childless.
Actually he had children, but none of them would prosper sitting on
the throne of David. So how did this effect Jesus?
There are two genealogy's of Jesus, one in Matthew 1: 1-17. This
genealogy starts with Abraham etc and runs through David and
Solomon and ends with Joseph the husband of Mary. This genealogy
was Jesus' legal right to the throne of David.
Jeconiah was in this line and came through David and
Solomon.
The other genealogy is in Luke 3:23-38. This genealogy starts
with Jesus and runs through Nathan, Solomon's brother and down to
Heli (Mary's father, said to be Joseph's father because no women
were named in this genealogy. Heli was Joseph's father in law) This
line is Jesus' blood line, the blood right to the throne, which of
coarse comes through David then to Nathan bypassing Jeconiah's
curse.
Also of some note the signet ring belonging to Jeconiah was
taken away from him by God ( Jeremiah 22:24) and then after the
Babylonian exile was over God gave it to Zerubbabel, Jeconiah's
supposed grandson when he went back to Jerusalem (Haggai 2:20-23).
None on these men from Zerubbabel on down ever sat on the throne of
David, although they were in the kingly line. Jesus when He comes
back will sit on the throne of David.