President Michael D Higgins has challenged Europe's response to the migrant and refugee crisis, asking if it will be defined by barbed wire, tear gas and rubber bullets.
In a speech on the future of the EU, Mr Higgins said some member states took a ruinously and narrowly self-interested response to the crisis of more than one million fleeing war and persecution.
The President asked why a continent of 500 million people felt so threatened by those in need.
Mr Higgins told the Irish Association of Contemporary European Studies in Dublin that Greece, Italy and Malta have been left to rely largely on their own, limited, resources after an EU quota system for migrants was rejected.
He said the crisis illustrates the need for solidarity among European countries and social cohesion in each state.
"European media have tended to conflate the image of Europe with that of the small Greek island of Lesbos; they have presented to us a vision of Europe as a frail isolated rock overwhelmed by a tsunami of uprooted people," President Higgins said.
"When one considers the prosperity and the rich diversity of so much of Europe, where so many people from all regions of the globe have settled peacefully and successfully over so many decades, confidence, not apprehension, should guide our response to the arrival of new migrants."
The President called on people to breathe new life into the EU vision.
He said: "Can we leave millions of mothers and fathers, teenagers, children and babies, to wait in uncertainty, hopeless poverty and squalor at the border of Europe?
"Can we avert our gaze from the even larger numbers of those who are trapped in precarious camps in Turkey, Lebanon, and Jordan? Is our response to be defined by barbed wire, tear gas and rubber bullets?"
Mr Higgins outlined other areas of difficulty facing the EU, which he said were daunting.
He highlighted enduring economic and financial difficulties and youth unemployment, the terror threat in the wake of the Paris and Brussels attacks, xenophobic populism and "political strategies that put at risk genuine democratic pluralism in several member states".
"The combined effects of such difficulties are deeply corrosive of our citizens' confidence in both their national and European institutions. Alarmingly, those various crises only fuel and amplify one another," he said.
The President said European leaders are trying harder to curb the numbers of refugees "at all costs".
He said they are doing this out of fear exacerbated by the threat of terrorism and to reassure public opinion which tends to view a "security crisis" and "refugee crisis" through the same lens.
Mr Higgins said the response poses serious risks for the rule of law and the principle of human dignity as cornerstones of the European project.
He said the controversial Turkey-EU deal to curb the smuggling of migrants and refugees to Europe was an important step.
But he added: "I strongly believe that we should be wary of bending European and international human rights legislation to breaking point."
President Higgins asked if a politically convenient response today could jeopardise the European Union in the future.
He said the EU has a duty under the Geneva Convention to help refugees.
"To give protection, food and shelter to those who are fleeing war, oppression or starvation is a matter of fundamental, universal human solidarity. It is also a matter of legal responsibility," he said.
"There can be no cap on this fundamental responsibility, no limit set on the number of those eligible to request asylum."
Mr Higgins said Europe was in a time of deep uncertainty where the vision of a common union appears to be becoming more faint and distant.
On economics, the President warned that democracy becomes fragile when fiscal rules come before political debate.
"The weaknesses in our economic thinking and the difficulties in challenging these weaknesses are not unrelated, then, to our present political predicament," the President said.
He added: "National governments and European institutions alike are perceived by many citizens, not as protecting and mitigating agents, but, increasingly, as levers in the hands of ever more mobile and speculative, and less productive and less accountable, international financial markets - markets which seek to impose the insatiable requirements of their profit expectations onto populations."