I have a database of size 20MB that I would like to build into COD.
Its a mandated requirement.
How can I get the rapc to build 20MB?
When I build the app I am getting the compiler error:
at net.rim.tools.compiler.d.af.bb(Unknown Source)
at net.rim.tools.compiler.d.af.null(Unknown Source)
at net.rim.tools.compiler.d.k.for(Unknown Source)
at net.rim.tools.compiler.d.aa.p(Unknown Source)
at net.rim.tools.compiler.d.aa.a(Unknown Source)
at net.rim.tools.compiler.Compiler.if(Unknown Source)
at net.rim.tools.compiler.Compiler.k(Unknown Source)
at net.rim.tools.compiler.Compiler.a(Unknown Source)
at net.rim.tools.compiler.Compiler.compile(Unknown Source)
at net.rim.tools.compiler.Compiler.main(Unknown Source)
Fatal Internal error: java.lang.NullPointerException
You may need to have that requirement re-examined. 20MB is larger than available program store (where all installed COD files must reside) on many Blackberries.
Another possibility is to use the FileConnection API, and store the file(s) on an SDCard in the device. You'll have to come up with a solution for initially loading the data (have your app download it, or manually install via USB), but it may be your best option.
For more than 15 years, the GCC manual has included the sentences "If the compiler gets a fatal signal, for any input whatever, that is a compiler bug. Reliable compilers never crash." (emphasis mine).
You're not using GCC, but the principle still applies. If 20MB blobs are not supported in COD files, the compiler should tell you so explicitly; it should not crash. You have found a bug in the compiler, and you should report it to RIM.