|
Hello.
I have same problem wiht Carob. Please help me!
I see two way used Carob from perl: 1. perl -> ODBSequoia -> myDB 2. perl -> libmysequoia -> myDB if I use 1, I usualy write code: carob version 0.5.2 ODBSequoia version 0.5.2a Sequoia version 2.8.2 Linux Debian 3.1 db is PostgreSQL
use DBI; my $dsn =
"dbi:ODBC:seqsource;host=localhost"; my $sth =
$dbh->prepare('select * from table');
and I have this Error:
DEBUG:
(RoundRobinConnectPolicy::getController) Selected
controller[0]:localhost:25322
if I use 2, I usualy write code: carob version 0.5.3 libmysequoia version 0.9 Sequoia version 2.9 Linux Debian 3.1
test program: #!/usr/local/bin/perl use DBI; my $dsn = 'dbi:mysql:sequoia_cmhostdb';
my $dbh = DBI->connect($dsn, 'user','pass') or die print "Error".$DBI::errstr;
my $sth =
$dbh->prepare('select * from table');
And compile LD_PRELOAD=/usr/lib/libmysequoia.so perl test02.pl and I have this Error: Sequoia controller give only this
error Exception in thread "VirtualDatabaseWorkerThread-sequoia_cmhostdb" java.lang.NullPointerException at org.continuent.sequoia.controller.requestmanager.RequestManager.openPersistentConnection(RequestManager.java:478) at org.continuent.sequoia.controller.virtualdatabase.VirtualDatabase.openPersistentConnection(VirtualDatabase.java:1037) at org.continuent.sequoia.controller.virtualdatabase.VirtualDatabaseWorkerThread.run(VirtualDatabaseWorkerThread.java:335) ---------------------------------------------------------------------------------------------------------------------
Sequoia controller is correct configurate is true. Sequoia conttroler is running when I start my test program;
###################################################################### I need to use Carob to connect
to db, it is very important for me. If possible please give me real work example (and same configuration for him), which work from perl to carob with use ODBSequoia or libmysequoia.
And possibly please write step by step, how to use this example.
Thank you very much for your help
this is really very important for me.
With best wishes |
_______________________________________________ Carob mailing list [email protected] https://forge.continuent.org/mailman/listinfo/carob
