Take the 2-minute tour ×

I have got my SQL Anywhere database on a sdcard. I can browse and see it, but I am unable to get the connection string from the code. Here is the code. I am using SQL Anywhere 12.0.0 and BlackBerry 4.5 OS.

Connection _fconn = null;
ConfigFileME _config;
try {
    _config = 
    //ConfigFileME config = 
    //    DatabaseManager.createConfigurationFileME("DBForUltra12.db");

    // _config here has the unknown value and throws exception here. 
    // Exception details: (org.eclipse.debug.core.DebugException:
    // com.sun.jdi.ObjectCollectedException occurred retrieving type)
    _fconn = DatabaseManager.connect( _config );
} catch (ULjException e) {
share|improve this question
Does the "databases" folder on the SD card exist? Have you tried just using someting like "file:///SDCard/foo.db" and seeing if that works? –  Eric Giguere Feb 7 '11 at 17:06
"com.sun.jdi.ObjectCollectedException occurred retrieving type" sounds like a bug specific to SQL Anywhere. You should contact their developer support to find out more. –  Michael Donohue Feb 7 '11 at 18:39
@Eric Giguere:Ya eric i have mentioned in the question that i can actually browse the sdcard and see my .db file there.I would also like to add an information that i got the .db file in the sdcard by copying through code a .db file from my app folder which i generated by Sybase central .I hope this is not bec. of a .db file.I expect not to! –  con_9 Feb 8 '11 at 5:52
@Michael Donohue: searched the web and found that exception pbm is specific to eclipse, something to do with debugging..(Lost the post link, will try to get it).Anyways, _fconn = DatabaseManager.connect( _config ); with _config as null throws that kind of exception.So the pbm narrows down to why is _config null? –  con_9 Feb 8 '11 at 5:56
@con_9 pbm is shorthand for 'problem'? I prefer to communicate in fully spelled out words. My edit history attests to that. –  Michael Donohue Feb 8 '11 at 6:02
show 4 more comments


Your Answer



Browse other questions tagged or ask your own question.