printing exception while setting bad configuration