Re: linux connection trouble



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?
>
>


.



Relevant Pages

  • Re: There is no process to read data written to a pipe.
    ... Good point - we are definitely restricted from talking to the OS directly because we are going through the JVM. ... our driver uses an API call that is less efficient on one platform than another and we could consider changing the API call. ... only shows up on AIX clients), we won't normally consider a hotfix. ... for full AIX support. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: linux connection trouble
    ... of the APIs specified by 'The Java Class Libraries' Second Edition and the ... JVM install on this server, but I expect the Microsoft drivers to work once ... "Sue Purkis" wrote: ... > The 2000 driver will work with a J2SE compliant JVM. ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: linux connection trouble
    ... I am able to use this code with the Microsoft 2000 JDBC driver and the IBM ... JVM on Linux. ... JVM that you are running with to see what results I obtain. ... >> (Unknown Source) ...
    (microsoft.public.sqlserver.jdbcdriver)
  • Re: Sample Java code requested
    ... >existence of the driver. ... >What version of the Java SDK are you using? ... >Depending on which version of the JVM you're using it's more or less ... >necessary to include the whole classpath into the cp-switch. ...
    (comp.lang.java.databases)

Loading