Re: linux connection trouble
- From: "Todd" <Todd@xxxxxxxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 21 Nov 2005 13:39:02 -0800
I've actually made the decision to go with a different JVM for other reasons.
The project's home page (http://gcc.gnu.org/java/index.html) says that "Most
of the APIs specified by 'The Java Class Libraries' Second Edition and the
'Java 2 Platform supplement' are supported" which I don't consider an
acceptable level of compliance for the project. I'm still waiting for a Sun
JVM install on this server, but I expect the Microsoft drivers to work once
that's in place. I'll report back if they don't. Thank you for taking the
time to look into it, I would have forgotten to give the MS drivers another
try once the new JVm was installed.
Todd
"Sue Purkis" wrote:
> Todd,
> I have been trying to gather some additional information on gcj (GCC).
> The 2000 driver will work with a J2SE compliant JVM. I cannot find any
> information on gcj's compliancy. Can you point me to that information?
>
> Sue
>
>
>
> "Sue Purkis" <suepurkis@xxxxxxxxx> wrote in message
> news:OEF5%23K76FHA.636@xxxxxxxxxxxxxxxxxxxxxxx
> > Todd,
> > I am able to use this code with the Microsoft 2000 JDBC driver and the
> > IBM JVM on Linux. I am in the process of trying to get a similar copy of
> > the JVM that you are running with to see what results I obtain.
> >
> > java version "1.4.1"
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1)
> > Classic VM (build 1.4.1, J2RE 1.4.1 IBM build cxia321411-20040301 (JIT
> > enabled:
> > jitc))
> >
> > Connection Successful!
> > Driver Information
> > Driver Name: SQLServer
> > Driver Version: 2.2.0049
> >
> > Database Information
> > Database Name: Microsoft SQL Server
> > Database Version: Microsoft SQL Server 2000 - 8.00.760 (Intel X86)
> > Dec 17 2002 14:22:05
> > Copyright (c) 1988-2003 Microsoft Corporation
> > Developer Edition on Windows NT 5.1 (Build 2600: Service Pack 2)
> >
> > I will post when I have been able to check out the other JVM.
> >
> > Sue Purkis
> > DataDirect Technologies
> >
> > "Todd" <Todd@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
> > news:2B03F33F-FF0C-4AB3-9D50-26399EFF7441@xxxxxxxxxxxxxxxx
> >> For what it's worth, using the jtds driver on the same Linux server does
> >> work:
> >>
> >> Connection Successful!
> >> Driver Information
> >> Driver Name: jTDS Type 4 JDBC Driver for MS SQL Server and Sybase
> >> Driver Version: 1.2
> >>
> >> Database Information
> >> Database Name: Microsoft SQL Server
> >> Database Version: 08.00.2039
> >>
> >>
> >> "Todd" wrote:
> >>
> >>> I'm trying to use the sample JDBC code provided in this article:
> >>> http://support.microsoft.com/default.aspx?scid=kb;en-us;313100
> >>>
> >>> The stack trace I get when I run the program is this:
> >>> Exception in thread "main" java.lang.AbstractMethodError
> >>> at _Jv_MakeVTable(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
> >>> at _Jv_PrepareClass(java.lang.Class) (/usr/lib/libgcj.so.5.0.0)
> >>> at _Jv_WaitForState(java.lang.Class, int) (/usr/lib/libgcj.so.5.0.0)
> >>> at java.lang.VMClassLoader.linkClass0(java.lang.Class)
> >>> (/usr/lib/libgcj.so.5.0.0)
> >>> at java.lang.VMClassLoader.resolveClass(java.lang.Class)
> >>> (/usr/lib/libgcj.so.5.0.0)
> >>> at java.lang.Class.initializeClass() (/usr/lib/libgcj.so.5.0.0)
> >>> at java.lang.Class.forName(java.lang.String, boolean,
> >>> java.lang.ClassLoader) (/usr/lib/libgcj.so.5.0.0)
> >>> at java.lang.Class.forName(java.lang.String)
> >>> (/usr/lib/libgcj.so.5.0.0)
> >>> at
> >>> com.microsoft.jdbc.base.BaseClassUtility.getConnection(java.lang.String)
> >>> (Unknown Source)
> >>> at
> >>> com.microsoft.jdbc.base.BaseClassUtility.getConnection(com.microsoft.jdbc.base.BaseDriver)
> >>> (Unknown Source)
> >>> at com.microsoft.jdbc.base.BaseDriver.connect(java.lang.String,
> >>> java.util.Properties) (Unknown Source)
> >>> at java.sql.DriverManager.getConnection(java.lang.String,
> >>> java.util.Properties) (/usr/lib/libgcj.so.5.0.0)
> >>> at java.sql.DriverManager.getConnection(java.lang.String,
> >>> java.lang.String, java.lang.String) (/usr/lib/libgcj.so.5.0.0)
> >>> at Connect.getConnection() (Unknown Source)
> >>> at Connect.displayDbProperties() (Unknown Source)
> >>> at Connect.main(java.lang.String[]) (Unknown Source)
> >>>
> >>> This is the java version:
> >>> java version "1.4.2"
> >>> gcj (GCC) 3.4.3 20041212 (Red Hat 3.4.3-9.EL4)
> >>> Copyright (C) 2004 Free Software Foundation, Inc.
> >>>
> >>> The java command shows that the classpath is set correctly:
> >>> java -cp
> >>> .:./mssqlserver/lib/msbase.jar:./mssqlserver/lib/mssqlserver.jar:./mssqlserver/lib/msutil.jar
> >>> Connect
> >>>
> >>> All I've modified in the code is the database connection info. The same
> >>> code
> >>> works when I run it in Windows XP. From the Linux server I can ping both
> >>> the
> >>> ip address and the hostname of the server, and I've tried both with the
> >>> same
> >>> results. Does anyone have any tips about why I might be seeing this
> >>> error?
> >
> >
>
>
>
.
- References:
- Re: linux connection trouble
- From: Sue Purkis
- Re: linux connection trouble
- From: Sue Purkis
- Re: linux connection trouble
- Prev by Date: Re: linux connection trouble
- Next by Date: RE: Records saved twice
- Previous by thread: Re: linux connection trouble
- Index(es):
Relevant Pages
|
Loading