On Tue, Jun 10, 2003 at 09:49:43AM -0400, D.N.Brown wrote:
>
> Thank you for the suggestion, Tim.
> Unfortunately, this is not something over which I have control.
> Do you make this suggestion specifically because you recognize the error,
> or just as a general suggestion?
The "Can't set ...->{Username}: unrecognised attribute"
is caused by the new Username attribute being set in recent DBI versions.
I don't know about the disconnect error. Perhaps a bug in your code
(why disconnect if you haven't connected okay?)
> If the former, do you think it would help if I "downgraded" MY version of
> the DBI bundle?
Yes.
> If so, could you point me to any good documentation on how to
> "uninstall" DBI and reinstall with a given version (I'm relatively new to
> CPAN and haven't found documentation yet on how to specify a version when
> installing a package).
> Thank you again for your assistance.
Just fetch the version you want from CPAN then build and install it.
It'll overwrite the previous version.
Tim.
> Best Regards,
> David Brown
>
>
> On Tue, 10 Jun 2003, Tim Bunce wrote:
>
> > Upgrade the DBI version used on the server.
> >
> > Tim.
> >
> > On Mon, Jun 09, 2003 at 11:52:09PM -0400, D.N.Brown wrote:
> > >
> > > Hello,
> > >
> > > I am using the DBI bundle to contact a remote server via proxy.
> > > I get error messages on connect and disconnect, even though I know some
> > > information transfer has taken place successfully. The error messages and
> > > configuration information are below. I have only found a couple of
> > > postings of similar errors, none of which seem to help. I would
> > > appreciate any help people could offer. Thanks!
> > >
> > > Best Regards,
> > > David N. Brown
> > > ******************************************************************
> > >
> > > My computer is a RedHat Linux 7.3 machine. I installed the DBI bundle
> > > just recently and checked that it is still up-to-date as of today. My
> > > perl version is 5.6.1
> > >
> > > Many other people at other remote sites have been able to use the same
> > > system (modulo small details) successfully for some time (well over a
> > > year).
> > >
> > > Here is the error message on connection:
> > > DBD::Proxy::db STORE failed: Server returned error: Failed to execute
> > > method CallMethod: Can't set
> > > DBI::ProxyServer::db=HASH(0x835f99c)->{Username}: unrecognised attribute
> > > at /theservermachine/perl/lib/site_perl/5.6.1/RPC/PlServer.pm
> > > line 332.
> > >
> > > Here is the message on disconnect:
> > > DBD::Proxy::db disconnect failed: Server returned error: Failed to execute
> > > method CallMethod: Not permitted for method disconnect of class
> > > DBI::ProxyServer::db at
> > > /theservermachine/perl/lib/site_perl/5.6.1/RPC/PlServer.pm
> > > line 328.
> > >
> > > In spite of the error messages, there appears to have been some
> > > information transferred, because the script prints out information that is
> > > contained in the database on the server and is not stored
> > > locally.! However, I think that I will not be able to write to the remote
> > > database.
> > >
> > > Here is the configuration for the connect command:
> > >
> > > package BBProx::DbiProxy;
> > >
> > > sub connect {
> > >
> > > my $pkgname = shift;
> > > my ($user,$pass)[EMAIL PROTECTED];
> > >
> > > my $dsn = "dbi:Oracle:XXXX";
> > > my $proxy ="hostname=xxx.xxx.xxx.xxx;port=yyyy";
> > > my $dbh;
> > >
> > > $dbh = DBI->connect("dbi:Proxy:$proxy;dsn=$dsn", $user, $pass);
> > > return $dbh;
> > > }
> > >
> > >
> > > One person I talked to suggested a problem with the Storable installation,
> > > because of the word STORE in the first error message, but I think I have a
> > > good installation of Storable 2.07 on my computer.
> > >
> > > Again, any help would be greatly appreciated.
> > > Thanks.
> > > David Brown
> > >
> >
>