I get an "Invalid file" in my MIDlet when I tried to read a .txt file,
using Connection.open(). My phone is a Nokia 3595 with mMode
technology by AT&T. Here is my source code in my MIDlet:

// Open File text file
String filename = "http://www.someurl.com/File.txt";
HttpConnection connection =
InputStream inputStream = connection.openInputStream();
connection.close(); // doesn't close input stream!
} catch (){

It fails when I trying any combination of Connector.open(filename). I
can connect to my server, because that is how I download app. I also,
have txt mime types defined as plain/text. Using the J2ME emulator my
code works.

What to do?

See More: J2ME: Invalid file using Connection.open()