text:
Q: Python Pyx: remove repeated color bars in density plot I wanna have multiple density plots in one Python Pyx plot.
I can do this to have two density plots:

Question: how to remove unecessary repeated color bar?
Example code is from here:
 from pyx import *
 f = canvas.canvas()
 re_min = -2
 re_max = 0.5
 im_min = -1.25
 im_max = 1.25
 gridx = 100
 gridy = 100
 max_iter = 10

 re_step = (re_max - re_min) / gridx
 im_step = (im_max - im_min) / gridy
 d = []

 for re_index in range(gridx):
 re = re_min + re_step * (re_index + 0.5)
for im_index in range(gridy):
    im = im_min + im_step * (im_index + 0.5)
    c = complex(re, im)
    n = 0
    z = complex(0, 0)
    while n < max_iter and abs(z) < 2:
        z = (z * z) + c
        n += 1
    d.append([re, im, n])

  g1 = graph.graphxy(height=8, width=8,
              x=graph.axis.linear(min=re_min, max=re_max, title=r"$\Re(c)$"),
              y=graph.axis.linear(min=im_min, max=im_max, title=r'$\Im(c)$'))

    g1.plot(graph.data.points(d, x=1, y=2, color=3, title="iterations"),
   [graph.style.density(gradient=color.rgbgradient.Rainbow)])
 f.insert(g1)

 g2 = graph.graphxy(height=8, width=8, xpos=g1.xpos+14.0,
              x=graph.axis.linear(min=re_min, max=re_max, title=r"$\Re(c)$"),
              y=graph.axis.linear(min=im_min, max=im_max, title=r'$\Im(c)$'))

 g2.plot(graph.data.points(d, x=1, y=2, color=3, title="iterations"),
   [graph.style.density(gradient=color.rgbgradient.Rainbow)])
  f.insert(g2)

     f.writePDFfile()

A: The color bar is called a keygraph, and it is a property of the density style. You can set it to None, i.e.
graph.style.density(gradient=color.rgbgradient.Rainbow, keygraph=None)

which does not remove the (automatic) key graph internally, but it supresses its output.
You can also set the keygraph yourself, and in addition, you can set the coloraxis of this keygraph. It is a property of the style, too, and a simple linear axis by default, but can be changed (like fixing min and max values).
Now, when you suppress the keygraph, it is not sure, that the same axis will be used in both graphs (even if you share the same axis, as long as you remain using flexible ranges). There are various solutions out. Let me give a more advanced one. :-)
In the first graph, we could keep a copy of the plotitem, finish the plot (which creates the keygraph) and then access the coloraxis like this:
d1 = graph.style.density(gradient=color.rgbgradient.Rainbow)
plotitem = g1.plot(graph.data.points(d, x=1, y=2, color=3, title="iterations"), [d1])
f.insert(g1)
g1.finish()
coloraxis = plotitem.privatedatalist[-1].keygraph.axes['x']

Now you can use this coloraxis in the second graph while still supressing the keygraph:
d2 = graph.style.density(gradient=color.rgbgradient.Rainbow, keygraph=None,
                         coloraxis=graph.axis.linkedaxis(coloraxis))

This ensures the same scale in the keygraph and thus the same colors. :-)

redpajama_set_name: RedPajamaStackExchange


There are things you can do to insure that the Law of Attraction provide maximum success. The problem with many people who learn about the Law of Attraction is that they do not know how to get the Law of Attraction to work for them. Soon they get discouraged and give up. There are 5 important things you can do to excite the Law of Attraction to provide maximum success in any area of your life. The Law of Attraction tips to provide maximum success are easy to learn,and easy to use. Listen to this short 15 minute podcast to learn exactly how to apply the Law of Attraction tips to provide maximum success. Once you are done listening, if you like the kind of ideas you are hearing, be sure to subscribe.
Law of Attraction -The 72 Hour Challenge.
The 72 hour challenge is a way of igniting the Law of Attraction to fly into action for you. It is a simple plan that will get you a sign or a Miracle within 72 hours. If you are like most people you have your doubts about the Law of Attraction. The question is this, can you lay aside your doubts for 72 hours? This is long enough for the Universe to send you a sign or something out of the ordinary that you can identify. The nice thing about this challenge is that some of the listeners or readers will attract be a mind blowing miracle in 72 hours. Check out the podcast to get the details. It is a short 15 minutes and is well worth you time.
72 hours….tick toc tick toc….
Simply click the link and be sure to subscribe for updates.


text:
21st President of the United States
September 19, 1881 – March 4, 1885
James Garfield
20th Vice President of the United States
March 4, 1881 – September 19, 1881
Thomas Hendricks
October 5, 1829(1829-10-05)
Fairfield, Vermont, U.S.
November 18, 1886(1886-11-18) (aged 57)
Republican Party (1854–1886)
Other political
Whig Party (Before 1856)
Ellen Herndon
State and National Law School
Civil servant
Service/branch
New York Guard
Battles/wars
Chester Alan Arthur (October 5, 1829 – November 18, 1886) was the 21st President of the United States (1881–1885). Becoming President after the assassination of President James A. Garfield, Arthur struggled to overcome suspicions of his beginnings as a politician from the New York City Republican machine, succeeding at that task by embracing the cause of civil service reform. His advocacy for, and enforcement of, the Pendleton Civil Service Reform Act was the centerpiece of his administration.
Born in Fairfield, Vermont, Arthur grew up in upstate New York and practiced law in New York City. He devoted much of his time to Republican politics and quickly rose in the political machine run by New York Senator Roscoe Conkling. Appointed by President Ulysses S. Grant to the lucrative and politically powerful post of Collector of the Port of New York in 1871, Arthur was an important supporter of Conkling and the Stalwart faction of the Republican Party. He was then removed by the new president, Rutherford B. Hayes, in 1878 in an effort to reform the federal patronage system in New York. When James Garfield won the Republican nomination for President in 1880, Arthur was nominated for Vice President to balance the ticket by adding an eastern Stalwart to it.
After just half a year as Vice President, Arthur found himself, unexpectedly, in the Executive Mansion. To the surprise of reformers, Arthur took up the reform cause that had once led to his expulsion from office. He signed the Pendleton Act into law, and enforced its provisions vigorously. He won plaudits for his veto of a Rivers and Harbors Act that would have appropriated federal funds in a manner he thought excessive and presided over the rebirth of the United States Navy, but was criticized for failing to alleviate the federal budget surplus that had been accumulating since the end of the Civil War. Suffering from poor health, he made only a limited effort at renomination in 1884 and retired at the close of his term. As journalist Alexander McClure would later write, "No man ever entered the Presidency so profoundly and widely distrusted as Chester Alan Arthur, and no one ever retired ... more generally respected, alike by political friend and foe."[1] Although his failing health and political temperament combined to make his administration far less active than a modern presidency, he earned praise among contemporaries for his solid performance in office. The New York World summed up Arthur's presidency at his death in 1886: "No duty was neglected in his administration, and no adventurous project alarmed the nation."[2]
1.1 Birth and family
1.2 Education
2.1 New York lawyer
2.2 Civil War
3 New York politician
3.1 Conkling's machine
3.2 Clash with Hayes
4 Election of 1880
5 Vice Presidency
6 Presidency 1881–1885
6.1 Taking office
6.2 Civil service reform
6.3 Surplus and the tariff
6.4 Foreign affairs and immigration
6.5 Naval reform
6.6 Civil rights
6.7 Health, travel, and renomination
6.8 Administration and cabinet
6.9 Judicial appointments
7 Retirement and death
Birth and family
Chester Alan Arthur was born October 5, 1829, in Fairfield, Vermont.[note 1] His father, William Arthur, was born in County Antrim, Ireland, and emigrated to Dunham, Lower Canada (in present-day Quebec) in 1818 or 1819 after graduating from Belfast College.[5] Arthur's mother, Malvina Stone, was born in Vermont, the daughter of George Washington Stone and Judith Stevens. Malvina's family was primarily of English descent, and her grandfather, Uriah Stone, fought in the Continental Army during the American Revolution.[5] Arthur's mother met his father while he was teaching at a school in Dunham, just over the border from her native Vermont, and the two soon married.[5] After their first child, Regina, was born in Dunham, the Arthurs moved around Vermont in quick succession to Burlington, Jericho, and Waterville, as William moved to jobs with different schools.[5] In Waterville, William Arthur departed from his Presbyterian upbringing and joined the Free Will Baptists, spending the rest of his life as a minister in that sect.[5] He also became an outspoken abolitionist, which at times made him unpopular with parts of his congregations and contributed to the family's frequent moves.[6] In 1828, the family moved again, to Fairfield, where Chester Alan Arthur was born the following year.[4] He was named "Chester" after Chester Abell, the physician and family friend who assisted in his birth, and "Alan" after his paternal grandfather.[note 2] After Arthur's birth, the family remained in Fairfield until 1832, when the elder Arthur's profession took them on the road again to several towns in Vermont and upstate New York, finally settling in the Schenectady area.[7]
William Arthur's frequent moves would later form the basis for accusations that Chester Arthur was not a native-born citizen of the United States. After Arthur was nominated for Vice President in 1880, his political opponents suggested that he might be constitutionally ineligible to hold that office.[8] A New York attorney, Arthur P. Hinman, apparently hired by his opponents, explored rumors of Arthur's foreign birth.[9] Hinman initially alleged that Arthur was born in Ireland and did not come to the United States until he was fourteen years old, which would make him ineligible for the Vice Presidency under the United States Constitution's natural-born citizen clause.[9][note 3] When that story did not take root, Hinman spread a new rumor that Arthur was born in Canada, but this claim also failed to gain credence.[9]
Arthur spent some of his childhood years living in Perry and Greenwich, New York. During his time at school, his first political inclinations were to support the Whig Party, and he joined other young Whigs in support of Henry Clay, even participating in a brawl against those students supporting James K. Polk.[7] He also showed his support for the Fenian Brotherhood by wearing a green coat.[10] Arthur enrolled in Union College in 1845 where he studied the traditional classical curriculum.[7] As a senior there in 1848, at age 18, he was elected to Phi Beta Kappa and was president of the debate society.[10] During his winter breaks, Arthur taught school in Schaghticoke.[10]
After graduating, Arthur returned to Schaghticoke and taught school full-time, but soon began to pursue an education in the law.[11] While studying law, he continued teaching, moving closer to home by taking a job teaching in North Pownal, Vermont.[11] Coincidentally, future President James A. Garfield would teach penmanship at the same school three years later, but the two did not cross paths.[12] In 1852, Arthur moved again, to Cohoes, New York, to become the principal of a school at which his sister Malvina was a teacher.[12] After saving enough money, and studying at State and National Law School in Ballston Spa, he moved to New York City the following year to read law at the law office of Erastus D. Culver, an abolitionist lawyer and family friend.[13] When Arthur was admitted to the bar in 1854, he joined the firm, which was renamed Culver, Parker, and Arthur.[14]
Arthur as a young lawyer
New York lawyer
When Arthur joined the firm, Culver and New York attorney John Jay (the grandson of the Founding Father of the same name) were pursuing a habeas corpus action against Jonathan Lemmon, a Virginia slaveholder who was passing through New York with his eight slaves.[15] In Lemmon v. New York, Culver argued that, as New York law did not permit slavery, any slave arriving in New York was automatically freed.[15] The argument was successful, and after several appeals was upheld by the New York Court of Appeals in 1860.[15] Campaign biographers would later give Arthur much of the credit for the victory; in fact his role was minor, although he was certainly an active participant in the case.[16] In another civil rights case in 1854, Arthur was the lead attorney representing Elizabeth Jennings Graham after she was denied a seat on a streetcar because she was black.[16] He won the case, and the verdict led to the desegregation of the New York City streetcar lines.[16]
In 1856, Arthur courted Ellen Herndon, the daughter of William Lewis Herndon, a Virginia naval officer.[17] The two were soon engaged to be married.[18] Later that year, he started a new law partnership with a friend, Henry D. Gardiner, and traveled with him to Kansas to consider purchasing land and setting up a law practice there.[16] At that time, the state was the scene of a brutal struggle between pro-slavery and anti-slavery forces, and Arthur lined up firmly with the latter.[19] The rough frontier life did not agree with the genteel New Yorkers; after three or four months the two young lawyers returned to New York City, where Arthur comforted his fiancée after her father was lost at sea in the wreck of the SS Central America.[19] In 1859, they were married at Calvary Episcopal Church in Manhattan.[20] After his marriage, Arthur devoted his efforts to building his law practice, but also found time to engage in Republican party politics.[21]
Arthur married Ellen Herndon in 1859.
In 1860, Arthur was appointed to the military staff of Governor Edwin D. Morgan.[21] The office was a patronage appointment of minor importance until the outbreak of the Civil War in April 1861, when New York and the other northern states were faced with raising and equipping armies of a size never before seen in American history.[22] Arthur was given the rank of brigadier general and assigned to the quartermaster department.[22] He was so efficient at housing and outfitting the troops that poured into New York City that he was promoted within the state militia to inspector general in February 1862, and then to quartermaster general that July.[23] He had an opportunity to serve at the front when the 9th New York Volunteer Infantry Regiment elected him colonel early in the war, but at Governor Morgan's request, he turned it down to remain at his post in New York.[24] The closest Arthur came to the front was when he traveled south to inspect New York troops near Fredericksburg, Virginia, in May 1862, shortly after forces under Major General Irwin McDowell seized the town during the Peninsula Campaign.[25] That summer, he and other representatives of northern governors met with Secretary of State William H. Seward in New York to coordinate the raising of additional troops, and spent the next few months enlisting New York's quota of 120,000 men.[25] Arthur received plaudits for his work, but his post was a political one, and he was relieved of his office in January 1863 when Governor Horatio Seymour, a Democrat, took office.[26]
Arthur returned to his law practice in 1863 and the firm of Arthur & Gardiner flourished.[27] Even as his professional life improved, however, Arthur and his wife experienced a personal tragedy as their only child, William, died suddenly that year at the age of three.[28] The couple took their son's death hard, and when they had another son, Chester Alan Jr., in 1864, they lavished attention on him.[29] They would also have a daughter, Ellen, in 1871. Both children survived to adulthood.[30] Arthur's political prospects improved along with his law practice when his patron, ex-Governor Morgan, was elected to the United States Senate.[31] He was hired by Thomas Murphy, a hatter who sold goods to the Union Army, to represent him in Washington. The two became associates within New York Republican party circles, eventually rising in the ranks of the conservative branch of the party dominated by Thurlow Weed.[31] In the presidential election of 1864, Arthur and Murphy raised funds from Republicans in New York and attended Abraham Lincoln's inauguration in 1865.[32]
New York politician
Conkling's machine
The New York Custom House (formerly the Merchants' Exchange building) was Arthur's office for seven years.
The end of the Civil War meant new opportunities for the men in Morgan's Republican machine, including Arthur.[33] Morgan leaned toward the conservative wing of the New York Republican party, as did the men who worked for him, including Weed, Seward (who continued in office under President Andrew Johnson), and Roscoe Conkling (an eloquent Utica Congressman and rising star in the party).[33] Arthur rarely articulated his own political ideas during his time as a part of the machine; as was common at the time, loyalty and hard work on the machine's behalf was more important than actual political sympathies.[34] In 1866, he attempted to secure the position of Naval Officer at the New York Custom House, a lucrative job with few responsibilities, but was unable to do so.[35] Nevertheless, he continued his law practice (now a solo practitionership after Gardiner's death) and his role in politics, becoming a member of the prestigious Century Club in 1867.[35] Conkling, elected in 1867 to the United States Senate, noticed Arthur and aided his rise in the party.[36] Arthur became chairman of the New York City Republican executive committee in 1868.[37] His ascent in the party hierarchy kept him busy most nights, and his wife began to resent his continual absence from the family home on party business.[38]
Conkling's machine was solidly behind General Ulysses S. Grant's candidacy for president, and Arthur worked to raise funds for Grant's election in 1868.[39] The opposing Democratic machine in New York City, known as Tammany Hall, worked for Grant's opponent, former New York Governor Horatio Seymour; while Grant was victorious in the national vote, Seymour carried the state of New York easily.[39] Arthur began to devote more of his time to politics and less to law.[40] In 1869, he was appointed counsel to the New York City tax commission under an arrangement his friend Murphy made with William Marcy Tweed, the Tammany Hall boss.[40] He remained at the job until 1870 at a salary of $10,000 a year.[40][note 4] Arthur's actual role in the tax commission's duties is still unknown; after Tweed's fall from power in 1871, Arthur never spoke of the Conking machine's cooperation with Tammany Hall.[40] Shortly thereafter, President Grant gave control over the New York Custom House patronage to Conkling and appointed Murphy to the position of Collector of the Port of New York.[42] Murphy's reputation as a war profiteer and his association with Tammany Hall made him unacceptable to many of his own party, but Conkling nevertheless convinced the Senate to confirm him.[42] The Collector was responsible for hiring hundreds of workers to collect the tariffs due at the United States' busiest port. Typically, these jobs were dispensed to adherents of the political machine responsible for hiring the Collector. Employees were required to make political contributions (known as "assessments") back to the machine, which made the job a highly coveted political plum.[43] Murphy's unpopularity only increased as he replaced workers loyal to Senator Reuben Fenton's faction of the Republican party with those loyal to Conkling's.[44] Eventually, the pressure to replace Murphy grew too great, and Grant asked for his resignation in 1871.[44] To replace him, Grant nominated Arthur.[45]
The Senate confirmed Arthur's appointment. As Collector, he not only controlled nearly a thousand jobs, but he also stood to receive personal compensation as great as any federal officeholder.[43] Arthur's salary was $6,500, but senior customs employees were also compensated by the "moiety" system, which awarded them a percentage of the fines levied on importers who attempted to evade the tariff.[46] In total, his income came to more than $50,000—more than the president's salary, and more than enough for him to enjoy fashionable clothes and a lavish lifestyle.[46][note 5] Among those who dealt with the Custom House, Arthur was one of the era's more popular collectors.[47] He got along with his subordinates and, since Murphy had already filled the staff with Conkling's adherents, he had few occasions to fire anyone.[48] He was also popular within the Republican party as he efficiently collected campaign assessments from the staff and placed party leaders' friends in jobs as positions became available.[38] Arthur had a better reputation than Murphy, but reformers still criticized the patronage structure and the moiety system as corrupt.[43] A rising tide of reform within the party caused Arthur to recharacterize the financial extractions from employees as "voluntary contributions" in 1872, but the principle remained the same and the party reaped the benefit of controlling government jobs.[49] In that year, reform-minded Republicans formed the Liberal Republican party and voted against Grant, but he was re-elected in spite of their opposition.[50] Nevertheless, the movement for civil service reform continued to chip away at Conkling's patronage machine when, after Custom House employees were found to have improperly assessed fines against an importing company in 1874, Congress repealed the moiety system and put the staff, including Arthur, on regular salary.[51] As a result, his income dropped to $12,000 a year.[51]
Clash with Hayes
A cartoon depicting President Rutherford B. Hayes kicking Arthur out of the New York Custom House.
Arthur's four-year term expired on December 10, 1875, and Conkling, now among the most powerful politicians in Washington, arranged his protégé's reappointment by President Grant.[52] By 1876, Conkling was considering a run for the Presidency himself, but the selection of Rutherford B. Hayes, a reformer, at the 1876 Republican National Convention presaged problems for the machine boss.[53] Arthur and the machine gathered campaign funds with their usual zeal, but Conkling limited his own campaign activities to a few speeches.[54] Hayes's opponent, New York Governor Samuel J. Tilden, carried New York but, after months of disputes over certain electoral votes, lost the Presidency.[55]
Hayes entered office having pledged to reform the patronage system; in 1877, he and Treasury Secretary John Sherman made Conkling's machine their first target.[54] Sherman ordered a commission led by John Jay to investigate the New York Custom House.[56] Jay, with whom Arthur had collaborated in the Lemmon case two decades earlier, suggested that the Custom House was so overstaffed with political appointments that 20% of the employees were expendable.[57] Sherman was less enthusiastic about the reforms than Hayes and Jay, but he approved the commission's report and ordered Arthur to make the personnel reductions.[58] Arthur appointed a committee of Custom House workers to determine where the cuts were to be made and, after a written protest, carried them out.[59] Notwithstanding his cooperation, the Jay Commission issued a second report critical of Arthur and other Custom House employees, and subsequent reports urging a complete reorganization.[59]
Hayes further struck at the heart of the spoils system by issuing an executive order that forbade assessments and barred federal office holders from "tak[ing] part in the management of political organizations, caucuses, conventions, or election campaigns".[60] Arthur and his subordinates, Alonzo B. Cornell and George H. Sharpe, refused to obey the president's order.[61] Sherman encouraged Arthur to resign, offering him the consulship at Paris in exchange, but Arthur refused.[62] In September 1877, Hayes demanded the three men's resignations, which they refused to give.[62] Nonetheless, Hayes submitted appointments of Theodore Roosevelt, Sr., L. Bradford Prince, and Edwin Merritt—all supporters of William M. Evarts, Conkling's New York rival—to the Senate for confirmation as their replacements.[63] The Senate's Commerce Committee, which Conkling chaired, voted unanimously to reject the nominees, and the full Senate rejected Roosevelt and Prince by a vote of 31–25, confirming Merritt only because Sharpe's term had expired.[64]
Arthur's job was thus saved, but only until July 1878 when Hayes took advantage of a Congressional recess to fire him and Cornell, and replace them by recess appointments of Merritt and Silas W. Burt, respectively.[65][note 6] Conkling opposed the appointees' confirmation when the Senate reconvened in February 1879, but Merritt was approved by a vote of 31–25, as was Burt by 31–19, giving Hayes his most significant civil service reform victory.[67] After six years, Arthur found himself out of a job, but still a political power.[68] In the state elections of 1879, he and Conkling worked to ensure that the Republican nominees for state offices would be men of Conkling's faction, who had become known as Stalwarts.[69] They were successful, but narrowly, as Cornell was nominated for governor by a vote of 234–216.[69] Arthur and Conkling campaigned vigorously for the Stalwart ticket and, owing partly to a splintering of the Democratic vote, were victorious.[70] Arthur and the machine had rebuked Hayes and their intra-party rivals, but Arthur had had only a few days to enjoy his triumph when, on January 12, 1880, his wife died suddenly while he was in Albany organizing the political agenda for the coming year.[71] He was devastated, and never remarried.[71]
Election of 1880
Main article: United States presidential election, 1880
Garfield–Arthur campaign poster
Conkling and his fellow Stalwarts wished to follow up their 1879 success at the 1880 Republican National Convention by securing the nomination for their ally, ex-President Grant.[72] Their opponents in the Republican party, known as Half-Breeds, concentrated their efforts on James G. Blaine, a Senator from Maine who was more amenable to civil service reform.[72] Neither candidate commanded a majority of delegates and, deadlocked after thirty-six ballots, the convention turned to a dark horse, James A. Garfield, an Ohio Congressman and Civil War General who was neither Stalwart nor Half-Breed.[73] Garfield and his supporters knew they would face a difficult election without the support of the New York Stalwarts and decided to offer one of them the vice presidential nomination.[74] Levi P. Morton was the first choice of Garfield's supporters but, on Conkling's advice, refused to run.[75] They next approached Arthur. Conkling advised him to also reject the nomination, believing the Republicans would lose.[76] Arthur thought otherwise and accepted, telling Conkling, "The office of the Vice-President is a greater honor than I ever dreamed of attaining."[76][note 7] Conkling eventually reconciled himself with the nomination and campaigned for the ticket.[79] As expected, the election was close. The Democratic nominee, General Winfield Scott Hancock, was popular and, since he had not taken unpopular positions (or any positions at all) on the issues of the day, he had not offended any important constituencies.[80] As Republicans had done since the end of the Civil War, Garfield and Arthur initially focused their campaign on the "bloody shirt"—the idea that returning Democrats to office would undo the victory of the Civil War and reward secessionists.[81] With the war fifteen years in the past and Union generals at the head of both tickets, the tactic was less effective than the Republicans hoped.[81] Realizing this, they shifted their approach to claim that Democrats would lower the country's protective tariff, which would allow more cheap manufactured goods to be imported from Europe, thereby putting thousands of workingmen out of work.[82] This argument struck home in the swing states of New York and Indiana, where many were employed in manufacturing.[82] Hancock did not help his own cause when, in an attempt to remain neutral on the tariff, he said that "[t]he tariff question is a local question", which only served to make him appear uninformed about an important issue.[83] Candidates for high office did not personally campaign in those days, but Arthur played a part in the campaign in his usual fashion: raising money.[84] The funds were crucial in the close election, and his home state of New York was pivotal.[85] The Republicans carried New York by 20,000 votes and, in an election with the largest turnout of qualified voters ever recorded—78.4%—they won the nationwide popular vote by just 7,018 votes.[85] The electoral college result was more decisive—214 to 155—and Garfield and Arthur were elected.[85]
Vice Presidency
Arthur taking the oath of office as administered by Judge John R. Brady at Arthur's home in New York City, September 20, 1881.
After the election, Arthur worked to persuade Garfield to fill certain positions—especially that of the Secretary of the Treasury—with his fellow New York Stalwarts.[86] He was unsuccessful, and the Stalwart machine received a further rebuke when they discovered that Garfield planned to appoint Blaine, Conkling's arch-enemy, as Secretary of State.[86] The running mates, never close, grew farther apart as Garfield continued to freeze out the Stalwarts from the patronage at his disposal. Arthur's status in the administration fell further when, a month before inauguration day, he gave a speech in front of newspaper reporters that suggested the election in Indiana, a swing state, had been won by illegal voting.[87] Garfield ultimately appointed a Stalwart, Thomas Lemuel James, to be Postmaster General, but the cabinet fight and Arthur's ill-considered speech left the President and Vice President estranged when they took their oaths of office on March 4, 1881.[88] The Senate in the 47th United States Congress was divided among 37 Republicans, 37 Democrats, one independent (David Davis) who announced he would caucus with the Democrats, one Readjuster (William Mahone) whose allegiance was uncertain, and four vacancies.[89] Immediately, the Democrats attempted to organize the Senate, knowing that the vacancies would soon be filled by Republicans.[89] As Vice President, Arthur cast tie-breaking votes in favor of the Republicans when Mahone opted to join their caucus.[89] Even so, the Senate remained deadlocked for two months over Garfield's nominations because of Conkling's opposition to some of them.[90] Just before going into recess in May 1881, the situation became more complicated when Conkling and the other Senator from New York, Thomas C. Platt, resigned in protest of Garfield's continuing opposition to their faction.[91]
With the Senate in recess, Arthur had no duties in Washington and returned to New York City.[92] Once there, he traveled with Conkling to Albany, where the former Senator had hoped for a quick re-election to the Senate and, thereby, a rebuke to the Garfield administration.[92][note 8] The Republican majority in the state legislature was divided on the question, to Conkling and Platt's surprise, and they found themselves fighting for their political lives.[92][note 9] While in Albany on July 2, word reached Arthur that Garfield had been shot.[92] The assassin, Charles J. Guiteau, was a deranged office-seeker who believed that assassinating Garfield would convince Arthur to appoint him to a patronage job; he proclaimed to onlookers: "I am a Stalwart, and Arthur will be President!"[93] Despite his claims of friendship with Arthur, the public soon learned that Guiteau was mentally unstable and unconnected with the Vice President.[94] More troubling was the lack of legal guidance on presidential succession: as Garfield lingered near death, no one was sure who, if anyone, could exercise presidential authority.[95] Moreover, after Conkling's resignation, the Senate had adjourned without electing a president pro tempore, who would normally follow Arthur in the succession.[95] Arthur was reluctant to be seen to act as President while Garfield lived, and the next two months saw a vacuum in the executive office, with Garfield too weak to carry out any of his duties and Arthur refusing to assume them.[96] Through the summer, Arthur refused to travel to Washington and was at his Lexington Avenue home when, on the night of September 19, he learned that Garfield had died.[96] Judge John R. Brady of the New York Supreme Court administered the oath of office in Arthur's home at 2:15 a.m. the following day, and Arthur boarded a train for the nation's capital two days later.[96]
Presidency 1881–1885
On the threshold of office, what have we to expect of him?
In an 1881 Puck cartoon, Arthur faces the presidential cabinet after President James A. Garfield was assassinated.
Taking office
Arriving in Washington on September 22, Arthur repeated the oath of office, this time administered by Chief Justice Morrison R. Waite, because of concerns that a state judge may have lacked the authority to administer the presidential oath.[97] He first resided at the home of Senator John P. Jones in anticipation of significant remodeling he had ordered for the White House, including the addition of an elaborate fifty-foot glass screen made by Louis Comfort Tiffany.[98] Since Arthur was a widower, his sister, Mary Arthur McElroy, served as White House hostess.[98] Arthur rapidly became Washington's most eligible bachelor and his social life became the subject of many rumors, but he remained devoted only to the memory of his late wife.[99] His son, Chester Jr., was then a freshman at Princeton University and his daughter, Nell, stayed in New York with a governess until 1882; when she arrived, Arthur attempted to shield her from the intrusions of the press as much as he could.[99]
Arthur quickly came into conflict with Garfield's cabinet, most of whose members represented Republican factions that opposed him. He asked the cabinet members to remain until December, when Congress would reconvene, but Treasury Secretary William Windom submitted his resignation in October to enter a Senate race in his home state of Minnesota.[100] Arthur replaced him with Charles J. Folger, his friend and fellow New York Stalwart.[100] Attorney General Wayne MacVeagh was next to resign, believing that, as a reformer, he had no place in an Arthur cabinet.[101] Despite Arthur's personal appeal to remain, MacVeigh resigned in December 1881 and Arthur replaced him with Benjamin H. Brewster, a Philadelphia lawyer and machine politician who was thought to have some reformist leanings.[101] Blaine, arch-nemesis of the Stalwart faction, agreed to remain Secretary of State until Congress reconvened, and when it did so he departed immediately.[102] Conkling expected Arthur to appoint him in Blaine's place, but the President instead chose Frederick T. Frelinghuysen of New Jersey, a Stalwart recommended by ex-President Grant.[102] Frelinghuysen advised Arthur not to fill any future vacancies with Stalwarts, but when Postmaster General James resigned in January 1882, Arthur selected Timothy O. Howe, a Wisconsin Stalwart, to replace him.[103] Navy Secretary William H. Hunt was next to resign, in April 1882, and Arthur attempted a more balanced approach by appointing William E. Chandler to the post, on Blaine's recommendation.[103] Finally, when Interior Secretary Samuel J. Kirkwood resigned that same month, Arthur appointed Henry M. Teller, a Colorado Stalwart to the office.[103] Of the Cabinet members Arthur had inherited from Garfield, only Secretary of War Robert Todd Lincoln remained for the entirety of Arthur's term.[103]
Ole Peter Hansen Balling's 1881 portrait of Chester A. Arthur
In the 1870s, the public became aware of a scandal in which contractors for star postal routes were greatly overpaid for their services with the connivance of government officials (including Second Assistant Postal Secretary Thomas J. Brady and former Senator Stephen Wallace Dorsey).[104] This was an example of the kind of corruption that reformers feared Arthur would permit, and reformers grew concerned that the former supporter of the spoils system would not devote his administration's energy to continuing the investigation into the scandal.[104] Nevertheless, the new Attorney General, Brewster, continued the investigations begun by MacVeigh and hired notable Democratic lawyers William W. Ker and Richard T. Merrick in an attempt both to improve the prosecution team and avoid the appearance of political partisanship.[105] Although Arthur had worked closely with Dorsey before taking office, once in office he supported the investigation and forced the resignation of officials suspected in the scandal.[105] An 1882 trial of the ringleaders resulted in convictions for two minor conspirators and a hung jury for the rest.[106] After a juror came forward with allegations that the defendants attempted to bribe him, the judge set aside the guilty verdicts and granted a new trial.[106] Before the second trial began, Arthur removed five federal office holders who were sympathetic with the defense, including a former Senator.[107] The second trial began in December 1882 and lasted until July 1883 and, again, did not result in a guilty verdict.[107] Failure to obtain a conviction tarnished the administration's image, but Arthur did succeed in putting a stop to the fraud.[107]
Garfield's assassination by a deranged office seeker amplified the growing public demand for civil service reform.[108] Democratic and Republican leaders both realized that they could attract the votes of reformers by turning against the spoils system and, by 1882, the tide turned in favor of reform.[108] As early as 1880, Democratic Senator George H. Pendleton of Ohio had introduced legislation that would allow for selection of civil servants based on merit as determined by an examination.[108] In his first annual Presidential address to Congress in 1881, Arthur requested civil service reform legislation and Pendleton again introduced his bill, but Congress did not pass it.[108] Republicans lost seats in the 1882 congressional elections, in which Democrats campaigned on the reform issue.[109] As a result, the lame duck session of Congress was more amenable to civil service reform; the Senate approved Pendleton's bill 38–5 and the House soon concurred by a vote of 155–47.[110] Arthur signed the Pendleton Civil Service Reform Act into law on January 16, 1883.[110] In just two years' time, an unrepentant Stalwart had become the president who ushered in long-awaited civil service reform.[110]
At first, the act applied only to 10% of federal jobs and, without proper implementation by the president, it could have gone no further.[111] Even after he signed the act into law, its proponents doubted Arthur's commitment to reform.[111] To their surprise, he acted quickly to appoint the members of the Civil Service Commission that the law created, naming reformers Dorman Bridgeman Eaton, John Milton Gregory, and Leroy D. Thoman as commissioners.[111] The chief examiner, Silas W. Burt, was a long-time reformer who had been Arthur's opponent when the two men worked at the New York Customs House.[112] The commission issued its first rules in May 1883; by 1884, half of all postal officials and three-quarters of the Customs Service jobs were to be awarded by merit.[112] That year, Arthur expressed satisfaction in the new system, praising its effectiveness "in securing competent and faithful public servants and in protecting the appointing officers of the Government from the pressure of personal importunity and from the labor of examining the claims and pretensions of rival candidates for public employment."[113]
Surplus and the tariff
Since 1866, the federal government had collected more revenue than it expended, with the surplus reaching $145 million in 1882.[114] Opinions varied on how to balance the budget. Most Democrats wished to lower tariffs, in order to reduce revenues and lower the cost of imported goods. Republicans largely disagreed, believing that high tariffs ensured high wages for men employed in manufacturing and natural resource extraction. They preferred that the government spend more on public works and reduce excise taxes.[114] Arthur mostly agreed with his party, and in 1882 called for the abolition of excise taxes on everything except liquor, as well as a simplification of the complex tariff structure.[115] In May of that year, Representative William D. Kelley of Pennsylvania introduced a bill to establish a tariff commission.[115] The bill passed and Arthur signed it into law but appointed mostly protectionists to the committee. Republicans were pleased with the committee's make-up but were surprised when, in December 1882, they submitted a report to Congress calling for tariff cuts averaging between 20 and 25%. The commission's recommendations were ignored, however, as the House Ways and Means Committee, dominated by protectionists, wrote the law to yield reductions of 10%.[115] After conference with the Senate, the bill that emerged only reduced tariffs by an average of 1.47%. The bill passed both houses narrowly on March 3, 1883, the last full day of the 47th Congress. Arthur signed the measure into law, but it did little to reduce the surplus.[116]
At the same time as the tariff debate, Congress attempted to balance the budget from the other side of the ledger by passing a Rivers and Harbors Bill that contained the then-unprecedented expenditure of $19 million for internal improvements.[117] While Arthur was not opposed to internal improvements, the scale of the bill disturbed him, as did its focus on "particular localities," rather than on projects that benefited a large part of the nation.[117] On August 1, 1882, Arthur vetoed the bill to widespread popular acclaim.[117] In his veto message, he wrote that his principal objection to the bill was that it appropriated funds for purposes "not for the common defense or general welfare, and which do not promote commerce among the States."[118] Congress overrode his veto,[117] and the new law reduced the surplus by $19 million. Many Republicans considered the law a success at the time, but later believed the unpopular law contributed to their loss of seats in the elections of 1882.[119]
Foreign affairs and immigration
A political cartoon from 1882, criticizing Chinese exclusion
During the Garfield administration, Secretary of State James G. Blaine took the United States' diplomacy in Latin America in a new direction, urging reciprocal trade agreements and offering to mediate disputes among the Latin American nations.[120] Blaine proposed holding a Pan-American conference in 1882 to discuss trade and an end to the War of the Pacific being fought by Bolivia, Chile, and Peru.[120] This represented a greater involvement in affairs south of the Rio Grande than the United States had previously attempted, and marked a significant shift in foreign policy.[120] Blaine did not remain in office long enough to see the effort through, and when Frederick T. Frelinghuysen replaced him at the end of 1881, the conference efforts lapsed.[121] Frelinghuysen also discontinued Blaine's peace efforts in the War of the Pacific, fearing that the United States might be drawn into the conflict.[121] Arthur and Frelinghuysen continued Blaine's efforts to encourage trade among the nations of the Western Hemisphere, and a treaty with Mexico providing for reciprocal tariff reductions was signed in 1882 and approved by the Senate in 1884.[122] The House declined to approve the legislation required to bring the treaty into force, however, rendering it a dead letter.[122] Similar efforts at reciprocal trade treaties with Santo Domingo and Spain's American colonies were defeated by February 1885, and an existing reciprocity treaty with the Kingdom of Hawaii was allowed to lapse.[123]
The 47th Congress spent a great deal of its time on the regulation of immigration, at times in accord with Arthur's wishes and at times against them.[124] In July 1882, without significant opposition, Congress passed a bill regulating steamships that carried immigrants to the United States.[124] To their surprise, Arthur vetoed it, citing problems in the bill's wording; Congress agreed to reword it, and he signed the revised measure.[124] He also signed in August of that year the Immigration Act of 1882, which levied a fifty-cent tax on immigrants to the United States, as well as excluding from entry the mentally ill, the mentally retarded, criminals, or any person "unable to take care of himself or herself without becoming a public charge."[125] A larger debate concerned the status of one particular group of immigrants: the Chinese. In 1868, the Senate had ratified the Burlingame Treaty with China, allowing an unrestricted flow of Chinese immigrants into the country. As the economy soured after the Panic of 1873, Chinese immigrants were blamed for depressing workmen's wages.[126] In response, Congress passed a Chinese Exclusion Act in 1879, abrogating the 1868 treaty, which President Hayes vetoed.[126] Three years later, after China had agreed to treaty revisions, Congress tried again to exclude Chinese immigrants. Senator John F. Miller of California introduced a Chinese Exclusion Act that would have denied Chinese immigrants United States citizenship and completely ban their immigration for the next twenty years.[127] The bill passed the Senate and House by overwhelming margins, arriving at Arthur's desk in April 1882.[127] Arthur vetoed the bill, seeing the twenty-year ban as a breach of the renegotiated treaty of 1880, which allowed only a "reasonable" suspension of immigration. Eastern newspapers praised the veto, but he was widely condemned in the Western states. Congress was unable to override the veto, instead passing a new bill that reduced the ban on Chinese immigration to ten years. Although he still objected to the denial of citizenship to Chinese immigrants, Arthur signed the compromise measure into law on May 6, 1882.[127][note 10]
Naval reform
The "Squadron of Evolution" at anchor in 1889, after Yorktown had been added: Chicago, Yorktown, Boston, Atlanta
In the years following the Civil War, American naval power declined precipitously, shrinking from nearly 700 vessels to just 52, most of which were obsolete.[128] The nation's military focus over the fifteen years before Garfield and Arthur's election had been on the Indian wars in the West, rather than the high seas, but as the region was increasingly pacified, many in Congress grew concerned at the poor state of the Navy.[129] Garfield's Secretary of the Navy, William H. Hunt, advocated reform of the Navy and his successor, William E. Chandler, appointed an advisory board to prepare a report on modernization.[130] Based on the suggestions in the report, Congress appropriated funds for the construction of three steel protected cruisers (Atlanta, Boston, and Chicago) and an armed dispatch-steamer (Dolphin), collectively known as the "ABCD Ships" or the "Squadron of Evolution".[131] Congress also approved funds to rebuild four monitors (Puritan, Amphitrite, Monadnock, and Terror,) which had lain uncompleted since 1877.[131] The contracts to build the ABCD ships were all awarded to the low bidder, John Roach & Sons of Chester, Pennsylvania,[132] even though Roach once employed Secretary Chandler as a lobbyist.[132] Democrats turned against the "New Navy" projects and, when they won control of the 48th Congress, refused to appropriate funds for seven more steel warships.[132] Even without the additional ships, the state of the Navy improved when, after several construction delays, the last of the new ships entered service in 1889.[133]
Like his Republican predecessors, Arthur struggled with the question of how his party was to challenge the Democrats in the South and how, if at all, to protect the civil rights of black southerners.[134] Since the end of Reconstruction, conservative white Democrats (or "Bourbon Democrats") had regained power in the South, and the Republican party dwindled rapidly as their primary supporters in the region, blacks, were disenfranchised.[134] One crack in the solidly Democratic South emerged with the growth of a new party, the Readjusters, in Virginia.[135] Having won an election in that state on a platform of more education funding (for black and white schools alike) and abolition of the poll tax and the whipping post, many northern Republicans saw the Readjusters as a more viable ally in the South than the moribund southern Republican party.[135] Arthur agreed, and directed the federal patronage in Virginia through the Readjusters rather than the Republicans.[135] He followed the same pattern in other Southern states, forging coalitions with independents and Greenback Party members.[135] Some black Republicans felt betrayed by the pragmatic gambit, but others (including Frederick Douglass and ex-Senator Blanche K. Bruce) endorsed the administration's actions, as the Southern independents had more liberal racial policies than the Democrats.[136] Arthur's coalition policy was only successful in Virginia, however, and by 1885 the Readjuster movement began to collapse with the election of a Democratic president.[137] Other federal action on behalf of blacks was equally ineffective: when the Supreme Court struck down the Civil Rights Act of 1875 in an 1883 decision, Arthur expressed his disagreement with the decision in a message to Congress, but was unable to persuade Congress to pass any new legislation in its place.[138] Arthur did, however, effectively intervene to overturn a court-martial ruling against a black West Point cadet, Johnson Whittaker, after the Judge Advocate General of the Army, David G. Swaim, found the prosecution's case against Whittaker legally invalid and based on racial animus.[139]
The administration faced a different challenge in the West, where the Mormon Church was under government pressure to stop the practice of polygamy in Utah Territory.[140] Garfield had believed polygamy was criminal behavior and was morally detrimental to family values, and Arthur's views were, for once, in line with his predecessor's.[140] In 1882, he signed the Edmunds Act into law, making polygamy a federal crime and barring polygamists from public office.[140] The Arthur administration also dealt with changing relations with western American Indian tribes.[141] The Indian Wars were winding down, and public sentiment was shifting toward more favorable treatment of Native Americans. Arthur urged Congress to increase funding for Indian education, which it did in 1884, although not to the extent he wished.[142] He also favored a move to the allotment system, under which individual Native Americans, rather than tribes, would own land. Arthur was unable to convince Congress to adopt the idea during his administration but, in 1887, the Dawes Act changed the law to favor such a system.[142] The allotment system was favored by liberal reformers at the time, but eventually proved detrimental to Native Americans as most of their land was resold at low prices to white speculators.[143]
Health, travel, and renomination
Arthur on an expedition in Yellowstone National Park along with Philip Sheridan and Robert Todd Lincoln.
Shortly after becoming President, Arthur was diagnosed with Bright's disease, a kidney ailment now referred to as nephritis.[144] He attempted to keep his condition private, but by 1883 rumors of his illness began to circulate.[144] By that time he had become thinner and more aged in appearance, as well as less energetic in keeping up with the demands of the presidency.[144] Hoping to rejuvenate his health by getting out of Washington, Arthur and some political friends traveled to Florida in April 1883.[145] The vacation had the opposite effect, and Arthur suffered from intense pain before returning to Washington.[145] The following year, on the advice of Missouri Senator George Graham Vest, he visited Yellowstone National Park.[146] Reporters accompanied the presidential party, helping to publicize the new National Park system.[146] The Yellowstone trip was more beneficial to Arthur's health than his Florida excursion, and he returned to Washington refreshed after two months of travel.[147]
As the 1884 presidential election approached, James G. Blaine was thought to be the favorite for the Republican nomination, but Arthur, too, contemplated a run for a full term as President.[148] In the months leading up to the 1884 Republican National Convention, however, Arthur began to realize that neither faction of the Republican party was prepared to give him their full support: the Half-Breeds were again solidly behind Blaine, while Stalwarts were undecided; some backed Arthur, with others considering Senator John A. Logan of Illinois.[148] Reform-minded Republicans, friendlier to Arthur after he endorsed civil service reform, were still not certain enough of his reform credentials to back him over Senator George F. Edmunds of Vermont, who had long favored their cause.[148] Business leaders supported him, as did Southern Republicans who owed their jobs to his control of the patronage, but by the time they began to rally around him, Arthur had decided against a serious campaign for the nomination.[149] He kept up a token effort, believing that to drop out would cast doubt on his actions in office and raise questions about his health, but by the time the convention began in June, his defeat was almost assured.[149] Blaine led on the first ballot, and by the fourth ballot he had a majority.[150] Arthur telegraphed his congratulations to Blaine and accepted his defeat with equanimity.[150] He played no role in the 1884 campaign, which Blaine would later say contributed to his loss that November to the Democratic nominee, Grover Cleveland.[151]
Administration and cabinet
Official White House portrait of Chester A. Arthur by Daniel Huntington
The Arthur Cabinet
Frederick T. Frelinghuysen
Secretary of Treasury
Charles J. Folger
Walter Q. Gresham
Hugh McCulloch
Secretary of War
Robert T. Lincoln
Wayne MacVeagh
Benjamin H. Brewster
Thomas L. James
Timothy O. Howe
Frank Hatton
Secretary of the Navy
William H. Hunt
William E. Chandler
Samuel J. Kirkwood
Henry M. Teller
Main article: Chester A. Arthur judicial appointments
Arthur made appointments to fill two vacancies on the United States Supreme Court. The first vacancy arose in July 1881 with the death of Associate Justice Nathan Clifford, a Democrat who had been a member of the Court since before the Civil War.[152] Arthur nominated Horace Gray, a distinguished jurist from the Massachusetts Supreme Judicial Court to replace him, and the nomination was easily confirmed.[152] Gray would serve until 1902 and was the author of the court's majority opinion in United States v. Wong Kim Ark, which overturned the section of the Chinese Exclusion Act that denied Chinese-Americans citizenship. The second vacancy occurred when Associate Justice Ward Hunt retired in January 1882. Arthur first nominated his old political boss, Roscoe Conkling; he doubted that Conkling would accept, but felt obligated to offer a high office to his former patron.[152] The Senate confirmed the nomination but, as expected, Conkling declined it.[152] Senator George Edmunds was Arthur's next choice, but he declined to be considered.[153] Instead, Arthur nominated Samuel Blatchford, a judge on the Second Circuit Court of Appeals for the last fifteen years.[152] Blatchford accepted, and his nomination was approved within two weeks.[152] Blatchford served on the Court until his death in 1893.[154]
Chester A. Arthur statue at Madison Square in New York City
Arthur left office in 1885 and returned to his New York City home. Two months before the end of his term, several New York Stalwarts approached him to request that he run for United States Senate, but he declined, preferring to return to his old law practice at Arthur, Knevals & Ransom.[155] His health limited his activity with the firm, and Arthur served only of counsel. He took on few assignments with the firm and was often too ill to leave his house.[156] He managed a few public appearances, up until the end of 1885.[156]
After summering in New London, Connecticut, in 1886, he returned quite ill and, on November 16, ordered nearly all of his papers, both personal and official, burned.[156][note 11] The next morning, Arthur suffered a cerebral hemorrhage and never regained consciousness; he died the following day at the age of 57.[156] On November 22, a private funeral was held at the Church of the Heavenly Rest in New York City, attended by President Cleveland and ex-President Hayes, among other notables.[158] Arthur was buried next to the graves of many of his family members and ancestors in the Albany Rural Cemetery in Menands, New York. He was laid beside his wife in a sarcophagus on a large corner of the plot.[156]
Arthur Cottage, ancestral home, Cullybackey, County Antrim, Northern Ireland
^ Some older sources list the date as October 5, 1830,[3] but biographer Thomas C. Reeves confirms that this is incorrect: Arthur claimed to be a year younger "out of simple vanity."[4]
^ Arthur pronounced his middle name with the accent on the second syllable.[4]
^ The Twelfth Amendment to the United States Constitution applies that clause, which specifically restricts presidential eligibility, to would-be vice presidents, as well: "no person constitutionally ineligible to the office of President shall be eligible to that of Vice-President".
^ $10,000 in 1870 is equal to $173 thousand in present terms[41]
^ Charles K. Graham filled Merritt's former position.[66]
^ Howe takes this exchange at face value,[77] but later biographers suspect it may be apocryphal.[78]
^ Before the passage of the Seventeenth Amendment to the United States Constitution, Senators were elected by state legislatures.
^ Conkling and Pratt were ultimately denied re-election, being succeeded by Elbridge G. Lapham and Warner Miller, respectively.
^ The portion of the law denying citizenship to Chinese-Americans would be found unconstitutional in United States v. Wong Kim Ark in 1898.
^ A small number of Arthur's papers survived and passed to his grandson, Gavin Arthur, who allowed Arthur's biographer, Thomas C. Reeves, to examine them the 1970s.[157]
^ Reeves, p. 420
^ Howe, p. 5
^ a b c Reeves, p. 5
^ a b c d e Reeves, p. 4; Howe, p. 4
^ Howe, p. 7; Reeves, p. 6
^ a b c Reeves, pp. 7–8
^ Karabell, pp. 53–54
^ a b c Reeves, pp. 202–203
^ a b Reeves, p. 10
^ Karabell, p. 12
^ Reeves, p. 14
^ a b c Reeves, pp. 14–15
^ a b c d Reeves, p. 16
^ Reeves, pp. 19–20
^ a b Reeves, pp.17–18
^ a b Howe, pp. 18–19
^ a b Howe, pp. 20–21; Reeves, pp. 22–23
^ Howe, p. 25
^ Howe, pp. 30–31; Reeves, pp. 33–34
^ a b Karabell, p. 17
^ Reeves, p. 39; Howe, p. 37
^ a b Reeves, pp. 40–41
^ a b c d Reeves, pp. 49–50; Howe, p. 42
^ a b Consumer Price Index (estimate) 1800–2008. Federal Reserve Bank of Minneapolis. Retrieved December 7, 2010.
^ a b Reeves, pp. 51–53; Howe, pp. 44–45
^ a b c Reeves, pp. 61–67; Schwartz, p. 182
^ Reeves, p. 60; Howe, pp. 46–47
^ a b Reeves, p. 59, 63, 85–86
^ a b Reeves, pp. 79–84; Howe, p. 49
^ Reeves, pp. 95–96; Karabell, pp. 26–27
^ a b Reeves, pp. 100–105
^ Reeves, pp. 106–107
^ Hoogenboom, pp. 318–319
^ Hoogenboom, pp. 322–325; Reeves, pp. 118–119; Howe, pp. 68–69
^ Hoogenboom, pp. 322–325; Reeves, p. 121
^ a b Reeves, p. 123
^ Hoogenboom, p. 352; Reeves, pp. 125–126
^ Hoogenboom, pp. 353–355; Reeves, pp. 126–131
^ Hoogenboom, p. 370
^ a b Reeves, pp. 153–155; Peskin, p. 704
^ Reeves, pp. 153–155; Howe, pp. 96–99
^ a b Reeves, pp. 158–159; Karabell, pp. 38–39
^ Reeves, pp. 177–178; Howe, pp. 107–108; Karabell, pp. 39–40
^ Karabell, p. 41; Reeves, p. 178
^ Howe, pp. 107–108
^ Howe, p. 109
^ Reeves, p. 179; Karabell, pp. 40–41
^ Jordan, pp. 292–305
^ a b Reeves, pp. 194–196; Jordan, pp. 294–295
^ Reeves, p. 196; Jordan, p. 301
^ Reeves, pp. 213–216; Karabell, pp. 52–53
^ a b c d Reeves, pp. 233–237; Howe, pp. 147–149
^ Reeves, pp. 238–241; Doenecke, pp. 53–54
^ a b Reeves, pp. 241–243; Howe, pp. 152–154
^ a b c Reeves, pp. 244–248; Karabell, pp. 61–63
^ Doenecke, pp. 53–54; Reeves, p. 248
^ a b Reeves, pp. 252–253, 268–269
^ a b Howe, p. 160; Reeves, p. 254
^ a b Howe, p. 161; Reeves, pp. 254–255
^ a b Howe, pp. 160–161; Reeves, pp. 255–257
^ a b c d Howe, pp. 162–163; Reeves, pp. 257–258
^ a b Doenecke, pp. 93–95; Reeves, pp. 297–298
^ a b Reeves, pp. 299–300; Howe, p. 182
^ a b c Reeves, pp. 303–305; Howe, pp. 189–193
^ a b c d Reeves, pp. 320–324; Doenecke, pp. 96–97; Theriault, pp. 52–53, 56
^ Doenecke, pp. 99–100; Theriault, pp. 57–63
^ a b c Reeves, p. 324; Doenecke, pp. 101–102
^ a b c Reeves, pp. 325–327; Doenecke, pp. 102–104
^ a b Howe, pp. 209–210
^ Chester A. Arthur (1884). "Fourth State of the Union Address". Wikisource, The Free Library. http://en.wikisource.org/wiki/Chester_A._Arthur%27s_Fourth_State_of_the_Union_Address. Retrieved July 15, 2011.
^ a b Reeves, pp. 328–329; Doenecke, p. 168
^ a b c d Reeves, pp. 280–282; Doenecke, p. 81
^ Howe, pp. 196–197; Reeves, pp. 281–282; Karabell, p. 90
^ a b c Doenecke, pp. 55–57; Reeves, pp. 284–289
^ a b Doenecke, pp. 129–132; Reeves, pp. 289–293; Bastert, pp. 653–671
^ a b Doenecke, pp. 173–175; Reeves, pp. 398–399, 409
^ Doenecke, pp. 175–178; Reeves, pp. 398–399, 407–410
^ a b c Howe, pp. 168–169; Doenecke, p. 81
^ Hutchinson, p. 162; Howe, p. 169
^ a b Reeves, pp. 277–278; Hoogenboom, pp. 387–389
^ a b c Reeves, pp. 278–279; Doenecke, pp. 81–84
^ Reeves, p. 337; Doenecke, p. 145
^ Reeves, pp. 338–341; Doenecke, pp. 145–147
^ Doenecke, pp. 147–149
^ a b Reeves, pp. 342–343; Abbot, pp. 346–347
^ a b Reeves, pp. 306–308; Doenecke, pp. 105–108
^ a b c d Reeves, pp. 307–309; Ayers, pp. 46–47
^ Ayers, pp. 47–48
^ Marszalek, passim.
^ a b c Doenecke, pp. 84–85
^ Doenecke, pp. 85–89
^ Doenecke, p. 91; Stuart, pp. 452–454
^ Karabell, pp. 124–125; Reeves, pp. 366–367
^ Reeves, pp. 387–389; Howe, pp. 265–266
^ a b c d e f Reeves, pp. 260–261; Howe, p. 195
^ Doenecke, p. 76
^ "Blatchford, Samuel M.". Biographical Directory of Federal Judges. Federal Judicial Center. http://www.fjc.gov/servlet/nGetInfo?jid=192&cid=999&ctype=na&instate=na. Retrieved July 27, 2011.
^ a b c d e Reeves, pp. 416–418
^ Reeves 1972, passim.
Abbot, Willis J. (1896). The Naval History of the United States. 2. Peter Fenelon Collier. OCLC 3453791. http://www.gutenberg.org/etext/26416.
Ayers, Edward L. (2007) [1992]. The Promise of the New South: Life After Reconstruction. New York: Oxford University Press, USA. ISBN 0195326881.
Doenecke, Justus D. (1981). The Presidencies of James A. Garfield and Chester A. Arthur. Lawrence, Kansas: University Press of Kansas. ISBN 0700602089.
Hoogenboom, Ari (1995). Rutherford Hayes: Warrior and President. Lawrence, Kansas: University Press of Kansas. ISBN 9780700606412.
Howe, George F. (1966) [1935]. Chester A. Arthur, A Quarter-Century of Machine Politics. New York: F. Ungar Pub. Co. ASIN B00089DVIG.
Jordan, David M. (1988). Winfield Scott Hancock: A Soldier's Life. Bloomfield, Indiana: Indiana University Press. ISBN 0253365805.
Karabell, Zachary (2004). Chester Alan Arthur. New York: Henry Holt & Co. ISBN 0805069518.
Reeves, Thomas C. (1975). Gentleman Boss: The Life of Chester A. Arthur. New York: Alfred A. Knopf. ISBN 0394460952.
Bastert, Russell H. (March 1956). "Diplomatic Reversal: Frelinghuysen's Opposition to Blaine's Pan-American Policy in 1882". The Mississippi Valley Historical Review 42 (4): 653–671. doi:10.2307/1889232. JSTOR 1889232.
Hutchinson, C.P. (April 1947). "The Present Status of Our Immigration Laws and Policies". The Milbank Memorial Fund Quarterly 25 (2): 161–173. doi:10.2307/3348178. JSTOR 3348178.
Marszalek, Jr., John F. (August 1971). "A Black Cadet At West Point". American Heritage 22 (5). http://www.americanheritage.com/content/black-cadet-west-point?page=show.
Peskin, Allan (Winter 1984). "Who Were the Stalwarts? Who Were Their Rivals? Republican Factions in the Gilded Age". Political Science Quarterly 99 (4): 703–716. doi:10.2307/2150708. JSTOR 2150708.
Reeves, Thomas C. (Summer 1972). "The Search for the Chester Alan Arthur Papers". The Wisconsin Magazine of History 55 (4): 310–319. JSTOR 4634741.
Schwartz, Sybil (Autumn 1978). "In Defense of Chester Arthur". The Wilson Quarterly 2 (4): 180–184. JSTOR 40255548.
Stuart, Paul (September 1977). "United States Indian Policy: From the Dawes Act to the American Indian Policy Review Commission". Social Service Review 51 (3): 451–463. doi:10.1086/643524. JSTOR 30015511.
Theriault, Sean M. (February 2003). "Patronage, the Pendleton Act, and the Power of the People". The Journal of Politics 65 (1): 50–68. JSTOR 3449855.
Chester Arthur: A Resource Guide from the Library of Congress
Chester A. Arthur at the Biographical Directory of the United States Congress Retrieved on 2008-09-28
White House Biography
Works by Chester Alan Arthur at Project Gutenberg
Offices and distinctions
John Smyth Chairperson of the Republican Party of New York
Platt Carpenter
William Wheeler Republican nominee for Vice President of the United States
William Wheeler Vice President of the United States
James Garfield President of the United States
Articles and topics related to Chester Arthur
v · d · ePresidents of the United States
William Henry Harrison
v · d · eVice Presidents of the United States
v · d · eRepublican Party
of the RNC
Morgan · Raymond · Ward · Claflin · Morgan · Chandler · Cameron · Jewell · Sabin · Jones · Quay · Clarkson · Carter · Hanna · Payne · Cortelyou · New · Hitchcock · Hill · Rosewater · Hilles · Wilcox · Hays · Adams · Butler · Work · Huston · Fess · Sanders · Fletcher · Hamilton · Martin · Walsh · Spangler · Brownell · Reece · Scott · Gabrielson · Summerfield · Roberts · Hall · Alcorn · T. B. Morton · Miller · Burch · Bliss · R. Morton · Dole · Bush · Smith · Brock · Richards · Fahrenkopf · Atwater · Yeutter · Bond · Barbour · Nicholson · Gilmore · Racicot · Gillespie · Mehlman · Martinez · Duncan · Steele · Priebus
Presidential tickets
Frémont/Dayton · Lincoln/Hamlin · Lincoln/Johnson · Grant/Colfax · Grant/Wilson · Hayes/Wheeler · Garfield/Arthur · Blaine/Logan · Harrison/Morton · Harrison/Reid · McKinley/Hobart · McKinley/Roosevelt · Roosevelt/Fairbanks · Taft/Sherman/Butler · Hughes/Fairbanks · Harding/Coolidge · Coolidge/Dawes · Hoover/Curtis · Landon/Knox · Willkie/McNary · Dewey/Bricker · Dewey/Warren · Eisenhower/Nixon · Nixon/Lodge · Goldwater/Miller · Nixon/Agnew · Ford/Dole · Reagan/G. H. W. Bush · G. H. W. Bush/Quayle · Dole/Kemp · G. W. Bush/Cheney · McCain/Palin
Parties by state
and territory
Alabama · Alaska · Arizona · Arkansas · California · Colorado · Connecticut · Delaware · Florida · Georgia · Hawaii · Idaho · Illinois · Indiana · Iowa · Kansas · Kentucky · Louisiana · Maine · Maryland · Massachusetts · Michigan · Minnesota · Mississippi · Missouri · Montana · Nebraska · Nevada · New Hampshire · New Jersey · New Mexico · New York · North Carolina · North Dakota · Ohio · Oklahoma · Oregon · Pennsylvania · Rhode Island · South Carolina · South Dakota · Tennessee · Texas · Utah · Vermont · Virginia · Washington · West Virginia · Wisconsin · Wyoming
District of Columbia · Guam · Northern Mariana Islands · Puerto Rico · Virgin Islands
1856 (Philadelphia) · 1860 (Chicago) · 1864 (Baltimore) · 1868 (Chicago) · 1872 (Philadelphia) · 1876 (Cincinnati) · 1880 (Chicago) · 1884 (Chicago) · 1888 (Chicago) · 1892 (Minneapolis) · 1896 (Saint Louis) · 1900 (Philadelphia) · 1904 (Chicago) · 1908 (Chicago) · 1912 (Chicago) · 1916 (Chicago) · 1920 (Chicago) · 1924 (Cleveland) · 1928 (Kansas City) · 1932 (Chicago) · 1936 (Cleveland) · 1940 (Philadelphia) · 1944 (Chicago) · 1948 (Philadelphia) · 1952 (Chicago) · 1956 (San Francisco) · 1960 (Chicago) · 1964 (San Francisco) · 1968 (Miami Beach) · 1972 (Miami Beach) · 1976 (Kansas City) · 1980 (Detroit) · 1984 (Dallas) · 1988 (New Orleans) · 1992 (Houston) · 1996 (San Diego) · 2000 (Philadelphia) · 2004 (New York) · 2008 (St. Paul) · 2012 (Tampa)
College Republicans · Congressional Hispanic Conference · International Democrat Union · Log Cabin Republicans · National Republican Congressional Committee · National Republican Senatorial Committee · Republican Conference of the United States House of Representatives · Republican Conference of the United States Senate · Republican Governors Association · Republican Jewish Coalition · Republican Liberty Caucus · Republican Main Street Partnership · Republican Majority for Choice · Republican National Coalition for Life · Republican National Hispanic Assembly · Republican Study Committee · Republicans Abroad · Republicans for Environmental Protection · The Ripon Society · The Wish List · Young Republicans
History · 2009 chairmanship election · 2011 chairmanship election · Bibliography · Timeline of modern American conservatism
Conservatism Portal
v · d · eCabinet of President James A. Garfield (1881)
Robert Todd Lincoln
Thomas Lemuel James
v · d · eCabinet of President Chester A. Arthur (1881–1885)
None (1881–1885)
James G. Blaine (1881) • Frederick Theodore Frelinghuysen (1881–1885)
William Windom (1881) • Charles J. Folger (1881–1884) • Walter Q. Gresham (1884) • Hugh McCulloch (1884–1885)
Robert Todd Lincoln (1881–1885)
Wayne MacVeagh (1881) • Benjamin H. Brewster (1881–1885)
Thomas Lemuel James (1881) • Timothy O. Howe (1881–1883) • Walter Q. Gresham (1883–1884) • Frank Hatton (1884–1885)
William H. Hunt (1881–1882) • William E. Chandler (1882–1885)
Samuel J. Kirkwood (1881–1882) • Henry M. Teller (1882–1885)
Authority control: LCCN: n50002601 | VIAF: 35249995 | WorldCat
American Civil War portal
Government of the United States portal
New York City portal
Politics portal
United States Army portal
Vermont portal
Name Arthur, Chester Alan
Short description American politician, lawyer, Union Army general
Date of birth October 5, 1829
Place of birth Fairfield, Vermont
Date of death November 18, 1886
Place of death New York City, New York
19th-century American Episcopalians
American people of English descent
American people of Scotch-Irish descent
American people of Welsh descent
Burials at Albany Rural Cemetery
Collectors of the Port of New York
Deaths from cerebral hemorrhage
New York Republicans
People from Fairfield, Vermont
People of Vermont in the American Civil War
Republican Party Presidents of the United States
Republican Party (United States) vice presidential nominees
Republican Party Vice Presidents of the United States
State and National Law School alumni
Union Army generals
Union College (New York) alumni
United States presidential candidates, 1884
United States vice-presidential candidates, 1880
Gamakam
2006 Phoenix Mercury season
Chester A. Arthur — Chester Alan Arthur Chester Alan Arthur en 1882, por Charles Milton Bell … Wikipedia Español
Chester A. Arthur — Chester Alan Arthur 1882 Chester Alan Arthur (* 5. Oktober 1829 in Fairfield, Franklin County, Vermont … Deutsch Wikipedia
Chester Alan Arthur — 1882 Chester Alan Arthur (* 5. Oktober 1829 in Fairfield, Vermont; † 18. November 1886 in New York City, New York) war Vizepräsident vom 4. März bis zum 20. September … Deutsch Wikipedia
Chester A. Arthur — Chester Alan Arthur Pour les articles homonymes, voir Arthur. Chester Alan Arthur … Wikipédia en Français
Chester Alan Arthur — Pour les articles homonymes, voir Arthur. Chester A. Arthur Mandats … Wikipédia en Français
Chester A. Arthur — noun elected vice president and became 21st President of the United States when Garfield was assassinated (1830 1886) • Syn: ↑Arthur, ↑Chester Alan Arthur, ↑President Arthur • Instance Hypernyms: ↑President of the United States, ↑United States… … Useful english dictionary
Chester Alan Arthur — noun elected vice president and became 21st President of the United States when Garfield was assassinated (1830 1886) • Syn: ↑Arthur, ↑Chester A. Arthur, ↑President Arthur • Instance Hypernyms: ↑President of the United States, ↑United States… … Useful english dictionary
Chester Alan Arthur — Presidente de los Estados Unidos, nacido el 5 de octubre de 1830 en Fairfield, Vermont. Murió el 18 de noviembre de 1886 Experiencia anterior: Funcionario, Vicepresidente. Partido Político: Republicano. Vicepresidente: Ninguno Presidencia: 20 9… … Enciclopedia Universal
Chester A. Arthur Home — Chester A. Arthur House U.S. National Register of Historic Places U.S. National Historic Landmark … Wikipedia
Chester Alan Arthur State Historic Site — The President Chester A. Arthur State Historic Site is a state historic site located in Fairfield, Vermont[1]. It honors 21st President Chester A. Arthur, who was born in Vermont in 1829.[2]. The site includes a replica of the original home in… … Wikipedia

redpajama_set_name: RedPajamaCommonCrawl


All of the wigs are pre-cut and pre-styled into a variety of fashionable looks perfect for work, everyday and even when you want to be the ultimate diva! Simply shake out the wig to spring the curl pattern to life. Your wig has the look and feel of natural human hair.


text:
Q: illegalArgumentException:node to traverse cannot be null I sort for a solution perculiar to the problem i currently face with my code but didn't find any. I know someone out here can help. I need assistance please. I have a table in the database that keeps record of cities. Each city must belong to only one country but different cities existing in different countries could actually have the same name. I successfully add a city to the database through the form but my problem is when i retrieve one of the records from the database and try updating it, the form doesn't databind the country attribute. i tried printing out to the console and it says the country id is null. below are the codes
my controller code for the city:
@Controller
@RequestMapping("/city")
public class CityController {

@Autowired
private CountriesService countryService;

@Autowired
private CitiesService cityService;

@RequestMapping("/manage")
public String manageCity(Model model){

    return"ManageCities";
}

@RequestMapping(value="/add",method=RequestMethod.GET)
public String createCity(Model model){
    List<Countries> countryList=new ArrayList<Countries>();
    List<String> countryString=new ArrayList<>();
    countryString.add("Japan");
    model.addAttribute("cityModel", new Cities());
    model.addAttribute("countryList", countryService.searchAll());
    model.addAttribute("countryString",countryString);
    return"AddCity";
}

@RequestMapping(value="/post",method=RequestMethod.POST)
public String postCity(@ModelAttribute("cityModel")Cities city){
    cityService.create(city);
    return"redirect:/city/manage";
}

@RequestMapping(value="/update",method=RequestMethod.GET)
public String getCities(Model model){
    model.addAttribute("cityList", cityService.searchAll());
    return"UpdateCity";
}

@RequestMapping(value="/update/{cityId}",method=RequestMethod.GET)
public String getCityUpdateInfo(Model model,@PathVariable("cityId")Integer cityId,HttpSession session){
    session.setAttribute("cityId", cityId);
    model.addAttribute("cityModel", new Cities());
    model.addAttribute("cityObj", cityService.searchById(cityId));
    model.addAttribute("countryList",countryService.searchAll());
    return"CityInfo";
}

@RequestMapping(value="/update/{cityId}",method=RequestMethod.POST)
public String updateCityUpdate(@ModelAttribute("cityModel")Cities  city,HttpSession session){

    Integer i=(Integer)session.getAttribute("cityId");

    city.setCityCode(i);
    System.out.println(city);
    System.out.println(city.getCountryCode().toString());

    cityService.update(city);

    return "redirect:/city/update";
}

}

below is the query that runs the update:
@Repository
public class CitiesDaoImpl implements CitiesDao{
@PersistenceContext(unitName = "AirlineReservationSystemPU")
EntityManager em;
@Override
public void create(Cities a) {
    em.merge(a);
}

@Override
public void update(Cities a) {
    Query query=em.createQuery("update Cities c set c.cityName=:cityName, c.countryCode.countryCode=:countryCode"
            + "where c.cityCode=:cityCode");
    query.setParameter("cityName", a.getCityName());
    query.setParameter("countryCode", a.getCountryCode().getCountryCode());
    query.setParameter("cityCode", a.getCityCode());
    query.executeUpdate();
}

@Override
public void delete(Integer a) {
    Cities o=searchById(a);
    if(o!=null){
        em.remove(o);
    }
}

@Override
public Cities searchById(Integer Id) {
   return em.find(Cities.class, Id);
}

@Override
public List<Cities> searchAll() {
    Query query=em.createQuery("SELECT c From Cities c");
    List list=query.getResultList();
    return list;
}

}

below is the jsp form:
<%--
Document   : AddCountry
Created on : 23-May-2016, 9:15:38 AM
Author     : lami
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix = "c" %>
<!DOCTYPE html>

    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1,  minimum-scale=1, maximum-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">
    <meta name="theme-color" content="#3e454c">

    <title>Admin</title>

    <link rel="stylesheet"  href="${pageContext.request.contextPath}/css/font-awesome.min.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap.min.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/dataTables.bootstrap.min.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap-social.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/bootstrap-select.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/fileinput.min.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/awesome-bootstrap-checkbox.css">

    <link rel="stylesheet" href="${pageContext.request.contextPath}/resources/css/styles.css">

    <%@include file="jspincludehead.jsp" %>

        <%@include file="jspincludeMenu.jsp" %>

Add City

City Add   Form

                                        <spring:url  value="/city/update/{cityId}" var="city"/>
                                        <form:form action="${city}"  method="post" class="form-horizontal" modelAttribute="cityModel">

                                                City Name

                                                    <form:input path="cityName" type="text" class="form-control" value="${cityObj.getCityName()}" />

                                                Select Country

                                                    <form:select path="countryCode.countryCode" class="selectpicker" >
                                                        <c:forEach items="${countryList}" var="st" varStatus="status">
                                                            <c:choose>
                                                                <c:when test="${st.getCountryCode() eq cityObj.getCountryCode().getCountryCode()}">
                                                                    <option value="<c:out value="${st.getCountryCode()}"/>" selected="true">
                                                                        <c:out value="${st.toString()}"/>
                                                                    <option>
                                                                </c:when>
                                                                <c:otherwise>
                                                                     <option value="<c:out value="${st.getCountryCode()}"/>">
                                                                        <c:out value="${st.toString()}"/>
                                                                    </option>
                                                                </c:otherwise>
                                                            </c:choose>

                                                        </c:forEach>
                                                    </form:select>

                                                    <form:button class="btn btn-primary" type="submit">Update City</form:button>

                                        </form:form>

each time i click on the update button it throws this error:
java.lang.IllegalArgumentException: node to traverse cannot be null!
org.hibernate.hql.internal.ast.util.NodeTraverser.traverseDepthFirst(NodeTraverser.java:64)
org.hibernate.hql.internal.ast.QueryTranslatorImpl.parse(QueryTranslatorImpl.java:300)
org.hibernate.hql.internal.ast.QueryTranslatorImpl.doCompile(QueryTranslatorImpl.java:203)
org.hibernate.hql.internal.ast.QueryTranslatorImpl.compile(QueryTranslatorImpl.java:158)
org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:126)
org.hibernate.engine.query.spi.HQLQueryPlan.<init>(HQLQueryPlan.java:88)
org.hibernate.engine.query.spi.QueryPlanCache.getHQLQueryPlan(QueryPlanCache.java:190)
org.hibernate.internal.AbstractSessionImpl.getHQLQueryPlan(AbstractSessionImpl.java:301)
org.hibernate.internal.AbstractSessionImpl.createQuery(AbstractSessionImpl.java:236)
org.hibernate.internal.SessionImpl.createQuery(SessionImpl.java:1796)
org.hibernate.jpa.spi.AbstractEntityManagerImpl.createQuery(AbstractEntityManagerImpl.java:328)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
org.springframework.orm.jpa.SharedEntityManagerCreator$SharedEntityManagerInvocationHandler.invoke(SharedEntityManagerCreator.java:257)
com.sun.proxy.$Proxy1368.createQuery(Unknown Source)
com.ars.application.dao.AirportsDaoImpl.update(AirportsDaoImpl.java:31)
com.ars.application.service.AirportsServiceImpl.update(AirportsServiceImpl.java:33)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317)
org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:98)
org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:262)
org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:95)
org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207)
com.sun.proxy.$Proxy1373.update(Unknown Source)
com.ars.application.controllers.AirportController.postAirportInfo(AirportController.java:77)
sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
java.lang.reflect.Method.invoke(Method.java:497)
org.springframework.web.method.support.InvocableHandlerMethod.invoke(InvocableHandlerMethod.java:214)
org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:132)
org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:104)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandleMethod(RequestMappingHandlerAdapter.java:749)
org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:690)
org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:83)
org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:945)
org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:876)
org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:961)
org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:863)
javax.servlet.http.HttpServlet.service(HttpServlet.java:648)
org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:837)
javax.servlet.http.HttpServlet.service(HttpServlet.java:729)
org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)

i tried printing to the console and realised that the spring isnt binding the countryCode field to the entity. any possible sugggestion is welcomed please. thanks


text:
Home> News and events> MRO blazes trail for future Mars missions
MRO blazes trail for future Mars missions
Nasa's Mars Reconnaissance Orbiter (MRO) reached its destination 10 March, 7 months after launch, and is now in position to gradually descend into a low science orbit around the Red Planet. Its mission to pave the way for future rover and crewed missions will end late in 2010.
Exceptional Mars mission
Weighing 2.18 t, MRO is the heaviest spacecraft ever to orbit Mars. Its fuel tank alone holds more than 1.22 t of propellant.
Ultimately, MRO will also generate very-high-resolution imagery (30 cm/px), making it in every way an exceptional mission that will send back more data to Earth than any previous Mars orbiter.
Friday 10 March, MRO successfully accomplished a crucial phase of its mission when it put itself into an elliptical orbit with a periapsis of 350 km above the planet's surface.
Its final working science orbit will be 20% lower than the other satellites already in orbit around Mars: Nasa's Mars Global Surveyor and Mars Odyssey, and Esa's Mars Express.
25 months of observation
Aerobraking operations to lower MRO's orbit will be completed by end September, when the orbiter will begin its 25-month science mission in low-altitude, circular polar orbit.
The science mission's objectives are to:
Improve our understanding of Mars' climate and search for signs of water: MRO is equipped with a spectrometer to detect minerals, a ground-penetrating radar and a radiometer to analyse atmospheric dust and water vapour, and measure temperature profiles.
Identify and define possible landing sites for future Mars rover missions.
Serve as a communications relay for 2 future Mars missions: the Phoenix lander, scheduled to land at Mars' north pole in 2008; and the Mars Science Laboratory (MSL) to be launched in 2009.
Credits: Nasa
Observe the planet with 3 cameras: the 1st of MRO's cameras has the largest objective lens (50 cm) ever flown on a planetary mission. It will be able to clearly distinguish rocks and layers of terrain less than 2 m wide. A 2nd camera will increase tenfold the number of spots surveyed close-up. A 3rd camera will map Mars weather.
Scientists will start poring over all these data from November to gain a closer insight into the variations in Mars' atmosphere and the phenomena that have shaped the planet's geology.
MRO's mission is scheduled to end late 2010, but fuel reserves should be sufficient to extend the mission for much longer.
Winemakers turn to satellites
SAFIRE studies the atmosphere from the air


Heraklion taxi provides private transfers from Heraklion airport to Malia.
Malia is a beautiful coastal town and municipality on the Crete Island located just 33 kilometers east of Heraklion, in the beautiful and scenic Bay of Malia. Malia is the seat for the municipality of Malia which also includes the area of Stalis, as well as the village of Mohos and Krassi. Malia is primarily a tourist city, noted highly for its archeological sites and its thriving nightlife. Malia is one of Crete's and Greece's oldest inhabited areas. It provides a beautiful climate, as well as friendly locals. You will find a splendid array of gift shops, hotels, restaurants, and night clubs to enhance your stay in this beautiful coastal paradise. Very close to Malia is old village are 5 km of beautiful sandy white beaches that offer the cleanest sea, perfect for swimming and water sports. The road through the mountain region south of Malia will provide you with a stunning glimpse of the hamlet of Krasi, which was used as a natural resort for some of Greece's most famous contemporary writers.


Chemicals from natural and synthetic sources can be found in foods, and some have the potential to affect our health. Learn about some of these chemicals, how they get into food, and how to limit your exposure.
Find out which foods are more likely to cause illness and how best to handle them.
Learn more about vitamins and minerals found in foods.
How do chemicals get in our food?
Chemicals can be natural or man-made and can enter our food in several ways.
accidentally enter the food supply – for example, when someone eats a wild animal that has consumed a poison like brodifacoum meant for other predators.
What danger do these chemicals pose?
Chemicals are regulated to minimise any risk to consumers. Residue monitoring programmes and diet surveys confirm New Zealand food remains safe.
requiring food producers to have food safety plans or programmes to minimise risk. We regularly audit these to ensure they're being followed.
If you have questions about chemicals in food, email info@mpi.govt.nz.