0

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:

java.lang.NullPointerException
    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
Cody Gray - on strike
  • 239,200
  • 50
  • 490
  • 574
zorro
  • 1

3 Answers3

3

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.

Richard
  • 8,920
  • 2
  • 18
  • 24
  • Agreed. Remember that your device in normal use cases is connected. It would make more sense to host this remotely. – Fostah Feb 12 '10 at 12:40
  • @Richard, what is the available program store size? – Misha Narinsky Jul 19 '11 at 14:07
  • Available program store memory would be total program store memory less the size of the OS, all installed applications, and all data stored there (persitent store and RMS data). Later models have more memory, but the 8800 series, still in use by many, has only 64MB. – Richard Jul 21 '11 at 17:35
0

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.

octo
  • 631
  • 3
  • 3
0

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.

zwol
  • 135,547
  • 38
  • 252
  • 361