And hopefully not to confuse things too much, but there is a 12yr old James Glendinning on the 1841 census in Wetheral. His Father and a brother are both called Andrew and his Father was born in Scotland, but not James.
"England and Wales Census, 1841," database with images, FamilySearch (https://familysearch.org/ark:/61903/1:1:M73F-4C3 : 13 December 2017), James Glendinning in household of Andrew Glendinning, Wetheral, Cumberland, England; from "1841 England, Scotland and Wales census," database and images, findmypast (http://www.findmypast.com : n.d.); citing PRO HO 107, The National Archives, Kew, Surrey.
And another, slightly older James (aged 15) on the 1841 census in Kirklington, with a Father, William, bn in Scotland, again with James bn in Cumberland.
"England and Wales Census, 1841," database with images, FamilySearch (https://familysearch.org/ark:/61903/1:1:M73N-775 : 13 December 2017), James Glendining in household of William Glendining, Kirklinton, Cumberland, England; from "1841 England, Scotland and Wales census," database and images, findmypast (http://www.findmypast.com : n.d.); citing PRO HO 107, The National Archives, Kew, Surrey.