Singularities in Boundary Value Problems