Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Parth Ramnathpur
4,353 PointsHi people, every time i am trying to open the weather i am getting an error:java.io.EOFexception........please help me
and it also says premature end of file for workspace.xml
1 Answer
Lucas Smith
11,616 PointsI've ran into this problem a fair number of times. Typically it's caused by having one too many closing curly braces. This will end close the current method that you are working in before you expect it, and then leave code hanging out in a virtually void. The IDE catches this, and says "Whoa, everything is wrapped closed, but there's still stuff here. I think I hit the end of the file too early", then throws that error.
Hope this helps.