Article View: borland.public.jbuilder.java.api
Article #2578Re: DatabaseMetaData.getTables()
From: Ali Demir
Date: Sun, 17 Sep 2000 00:00
Date: Sun, 17 Sep 2000 00:00
27 lines
1534 bytes
1534 bytes
May depend on the ODBC driver you are suing. JDBC ODBC bridge is native code
therefore it can easily cause any trouble... Did you try another all Java
driver?
ali
"Torsten" <Torsten.pop@gmx.de> wrote in message news:39888ca1$1_2@dnews...
>
> About 80 seconds after calling DatabaseMetaData.getTables()
> I get an "access violation" / "invalid page fault" in java.exe
> and the JSWDK-Web-Server where the software is running as a JSP
> terminates.
> Why ?
> I am using JDK 1.2.2 and JSWDK 1.0.1 under Windows 98.
> The source code Scriptlets in my JSP file is:
>
> String dsnName = "Test-Datenbank";
> Class.forName( "sun.jdbc.odbc.JdbcOdbcDriver" );
> Connection cn = DriverManager.getConnection( "jdbc:odbc:" + dsnName );
> DatabaseMetaData dbMetaData = cn.getMetaData();
> String[] tableTypes = { "TABLE" };
> ResultSet rsTables = dbMetaData.getTables( null, null, null, tableTypes );
> while( rsTables.next() )
> out.println( rsTables.getString("TABLE_NAME") + "<br>" );
> cn.close();
>
Technical Details
Message-ID:
<39c57183$1_1@dnews>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<39888ca1$1_2@dnews>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,76b025bce7659155 X-Google-Attributes: gid1089d0,public From: "Ali Demir" <ademir@informix.com> Subject: Re: DatabaseMetaData.getTables() Date: 2000/09/17 Message-ID: <39c57183$1_1@dnews> X-Deja-AN: 671031861 References: <39888ca1$1_2@dnews> X-Trace: 17 Sep 2000 18:36:03 -0800, 24.19.144.88 X-MSMail-Priority: Normal X-Priority: 3 Newsgroups: borland.public.jbuilder.java.api X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700