Imperial examination
He was prevented from assuming his governmental appointment, following his receiving the "Jinshi" degree in the Imperial examination system, by the disorders associated with the An Shi Rebellion, which caused him to flee for refuge to Jiangxi.