org.openga.selenium.ScriptTimeoutExcception: script timeout

I have a problem retrieving an attribute from an xpath. I get the following error message every time: org.openga.selenium.ScriptTimeoutExcception.
If I instead use the same xpath and waiting time to write in the field, everything works without problems. I only get the problem when I load the attributes. I have at least 5 different xpaths from which I should load the attributes and I really need a solution to the problem. Does anyone have a solution or workaround?