Please take our Survey
logo       

Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

RE:Installation error / was RE: Bug in JDBC Driver: Calling getBi gDecimal : msg#00442

db.maxdb

Subject: RE:Installation error / was RE: Bug in JDBC Driver: Calling getBi gDecimal results in ConversionExceptionSapDB

Hello,

Would you mind sending problems to the mailing list instead directly
to people? Thanks.

The installer is possibly not working under Cygwin because one
of the programs that come with Cygwin interferes with its scripts.
I can suggest only working around by running the installer in Windows own shell
-
the cmd, that's were it was tested. As cmd is just another command, you may try
running 'cmd /c ./SDBINST' or something like that.

Regards

Alexander Schröder
SAP DB, SAP Labs Berlin

> -----Original Message-----
> From: James Wong [mailto:jameswtc@xxxxxxxxxx]
> Sent: Wednesday, October 29, 2003 8:31 AM
> To: Schroeder, Alexander
> Subject: Re: Bug in JDBC Driver: Calling getBigDecimal results in
> Conversi onExceptionSapDB
>
>
> hi
>
> when i try to install the package under cygwin by typing in
> ./SBDINST, i got
> the error message: "1: Syntax Error: "(" unexpected"
>
> any comment?
>
> james
>
> ----- Original Message -----
> From: "Schroeder, Alexander" <alexander.schroeder@xxxxxxx>
> To: "'Thomas Rohwer'" <tr@xxxxxx>; <maxdb@xxxxxxxxxxxxxxx>
> Sent: Wednesday, October 29, 2003 3:23 PM
> Subject: RE: Bug in JDBC Driver: Calling getBigDecimal
> results in Conversi
> onExceptionSapDB
>
>
> > Hello,
> >
> > is the problem reproducable, or occurs it randomly?
> >
> > If its reproducable, would you mind creating a VTrace?
> > (see http://sapdb.2scale.net/moin.cgi/VTrace on howto do it)
> >
> > The question is whether the data is already corrupted (that '1'
> > in the number shown in the error message) on server side, or
> > there are some Java quirks that create this (of course not
> > in FIXED(18,8)) number.
> >
> > Regards
> >
> > Alexander Schröder
> > SAP DB, SAP Labs Berlin
> >
> > BTW - which locale are you using (as there comes not the right error
> > message out, and there should be english messages in this case ...)
> >
> >
> > > -----Original Message-----
> > > From: Thomas Rohwer [mailto:tr@xxxxxx]
> > > Sent: Tuesday, October 28, 2003 3:13 PM
> > > To: maxdb@xxxxxxxxxxxxxxx
> > > Subject: Bug in JDBC Driver: Calling getBigDecimal results in
> > > ConversionExceptionSapDB
> > >
> > >
> > > Hello,
> > >
> > > running the following program
> > >
> > > import java.sql.*;
> > > import java.math.*;
> > >
> > >
> > > public class Bug {
> > > public static void main(String[] args) throws Exception {
> > > String table= "TESTXTAB";
> > >
> > > Class cls=
> Class.forName("com.sap.dbtech.jdbc.DriverSapDB");
> > >
> > > Connection conn=
> > > DriverManager.getConnection("jdbc:sapdb://myhost/mydatabase",
> > > "user", "passwd")
> > >
> > > PreparedStatement stm;
> > > stm= conn.prepareStatement("DROP TABLE "+table);
> > > try{
> > > stm.executeUpdate();
> > > stm.close();
> > > } catch(SQLException e) {
> > > }
> > > stm= conn.prepareStatement("CREATE TABLE "+table+"
> > > (val FIXED(18,8))");
> > > stm.executeUpdate();
> > > stm.close();
> > >
> > > stm= conn.prepareStatement("INSERT INTO "+table+"
> > > (val) values (?)");
> > > stm.setBigDecimal(1, new BigDecimal("-25.00"));
> > > stm.executeUpdate();
> > > stm.close();
> > >
> > > stm= conn.prepareStatement("SELECT * FROM "+table);
> > > ResultSet rs= stm.executeQuery();
> > > while (rs.next()) {
> > > System.out.println(rs.getBigDecimal(1));
> > > }
> > > }
> > > }
> > >
> > > yields
> > >
> > > Exception in thread "main"
> > > com.sap.dbtech.jdbc.translators.ConversionExceptionSapDB: No
> > > message available for default locale for key
> > > error.conversion.data, arguments [-25.0000000000000010 scale:
> > > 8, FIXED].
> > > at
> > > com.sap.dbtech.jdbc.translators.DBTechTranslator.newParseExcep
> > > tion(DBTechTranslator.java:1155)
> > > at
> > > com.sap.dbtech.jdbc.translators.ShortNumericTranslator.getBigD
> > > ecimal(ShortNumericTranslator.java:90)
> > > at
> > > com.sap.dbtech.jdbc.ResultSetSapDB.getBigDecimal(ResultSetSapD
> > > B.java:707)
> > > at Bug.main(Bug.java:32)
> > >
> > >
> > > This seems to be a bug in the JDBC driver. Using getString
> > > instead of getBigDecimal does not give in an error.
> > >
> > > Sincerely,
> > >
> > > Thomas Rohwer
> > >
> > >
> > > --
> > > MaxDB Discussion Mailing List
> > > For list archives: http://lists.mysql.com/maxdb
> > > To unsubscribe:
> > http://lists.mysql.com/maxdb?unsub=alexander.schroeder@xxxxxxx
> >
> > --
> > MaxDB Discussion Mailing List
> > For list archives: http://lists.mysql.com/maxdb
> > To unsubscribe:
http://lists.mysql.com/maxdb?unsub=jameswtc@xxxxxxxxxx
>
>
>
>


--
MaxDB Discussion Mailing List
For list archives: http://lists.mysql.com/maxdb
To unsubscribe: http://lists.mysql.com/maxdb?unsub=gcdm-maxdb@xxxxxxxxxxx




<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
qplus.devel/200...    network.jabber....    debian.qa-packa...    encryption.gpg....    python.dabo.dev...    uclinux.devel/2...    science.mathema...    recreation.pesc...    kernel.ck/2004-...    mozilla.devel.e...    tex.latex.prosp...    ietf.multi6/200...    bbc.cvs/2002-11...    xfree86.newbie/...    jakarta.taglibs...    altlinux.hardwa...    comedi/2002-05/...    horde.bugs/2004...    games.diplomacy...    finance.e-gold....    web.dom.test-su...    lang.ruby.rails...    os.netbsd.devel...    video.gstreamer...   
Home | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe

Navigation