The petstore 1.1.2 runs well on SAP DB with Orion/JDK1.3.X - although I have found 
that the SQL
used within the app isn't terribly portable so I had to muck around with it to work 
correctly. You
may want to investigate that side of things as well....


--- "Dittmar, Daniel" <[EMAIL PROTECTED]> wrote:
> > -------------------------------------------------------------------
> > java.lang.NoSuchMethodError
> >         at java.math.BigDecimal.timesTenToThe(BigDecimal.java:922)
> >         at java.math.BigDecimal.<init>(BigDecimal.java:176)
> >         at
> > com.sap.dbtech.util.VDNNumber.number2BigDecimal(VDNNumber.java:198)
> 
> This one looks weird, as if something in your Java VM is missing. If I
> understand the backtrace right, then the problem happens inside the Method
> BigDecimal.timesTenToThe. But beware, with some JIT compilers, backtraces
> can be misleading. At least for SUN VMs, you can disable the JIT compiler by
> setting the system property java.compiler=NONE.
> 
> The method BigDecimal.timesTenToThe is part of the Java VM, not the SAP DB
> JDBC driver:
> 
>     private static BigInteger timesTenToThe(BigInteger a, int b) {
>       return a.multiply(BigInteger.valueOf(10).pow(b));
>     }
> 
> Perhaps you could try to write the line 
> BigInteger (10).multiply(BigInteger.valueOf(10).pow(2))
> somewhere in your servlet to test if this is indeed a general problem with
> the VM.
> 
> > I think that the problem it's the driver of SapDB, when i try 
> > with Postgres
> > , i don't have any problem.
> 
> If PostgreSQL driver doesn't use the BigDecimal class (at least not for this
> column type), then they won't run into this problem
> 
> Daniel Dittmar
> 
> -- 
> Daniel Dittmar
> SAP DB, SAP Labs Berlin
> [EMAIL PROTECTED]
> http://www.sapdb.org/
> _______________________________________________
> sapdb.general mailing list
> [EMAIL PROTECTED]
> http://listserv.sap.com/mailman/listinfo/sapdb.general
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com
_______________________________________________
sapdb.general mailing list
[EMAIL PROTECTED]
http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to