public inbox for java-prs@sourceware.org
help / color / mirror / Atom feed
From: "delarosa at ilstechnology dot com" <gcc-bugzilla@gcc.gnu.org>
To: java-prs@gcc.gnu.org
Subject: [Bug java/20394] New: Can't run db2 jdbc application compiled with gcj
Date: Wed, 09 Mar 2005 16:23:00 -0000	[thread overview]
Message-ID: <20050309143710.20394.delarosa@ilstechnology.com> (raw)

Hello,

I managed to get jdbc MSSQL & ORACLE test apps work just fine. I have not been
able to make DB2 work. Here is what I get. Does this mean something is missing
on the gcj classes ? I can provide sample source and the shared libs and/or the
jars ....


[acuser@linux DB]$ ./db2test
jdbcDB2 - Java Database Interface Test Utility
jdbcTester - Library Path =
jdbcTester - Database Type Selected... DB2
jdbcTester - Database Connection Details...
jdbcTester - Database Type:  DB2
jdbcTester - Database Name:  XQDB
jdbcTester - Database Host:  192.168.1.167
jdbcTester - Database Port:  50000
jdbcTester - Database User:  acuser
jdbcTester - Database PWrd:  acuser
jdbcTester - Database cURL: 
jdbc:db2://192.168.1.167:50000/XQDB:traceFile=jdbcDB2.log;traceLevel=-1;
Loading Appropriate Database Driver...
Loaded the Appropriate Driver...
Connecting to Database...
Exception in thread "main" java.lang.NoClassDefFoundError: while resolving
class: com.ibm.db2.jcc.b.i
   at java.lang.VMClassLoader.transformException(java.lang.Class,
java.lang.Throwable) (/usr/local/lib/libgcj.so.6.0.0)
   at java.lang.VMClassLoader.resolveClass(java.lang.Class)
(/usr/local/lib/libgcj.so.6.0.0)
   at java.lang.Class.initializeClass() (/usr/local/lib/libgcj.so.6.0.0)
   at java.lang.Class.initializeClass() (/usr/local/lib/libgcj.so.6.0.0)
   at com.ibm.db2.jcc.a.b.a(com.ibm.db2.jcc.b.xb, int, java.lang.String, int)
(/home/acuser/gcj/DB/libdb2jcc.so)
   at com.ibm.db2.jcc.b.o.o(com.ibm.db2.jcc.b.xb, int, java.lang.String, int,
java.lang.String, int, java.util.Properties) (/home/acuser/gcj/DB/libdb2jcc.so)
  at com.ibm.db2.jcc.a.b.b(com.ibm.db2.jcc.a.g, int, java.lang.String, int,
java.lang.String, java.util.Properties) (/home/acuser/gcj/DB/libdb2jcc.so)
   at com.ibm.db2.jcc.DB2Driver.connect(java.lang.String, java.util.Properties)
(/home/acuser/gcj/DB/libdb2jcc.so)
   at java.sql.DriverManager.getConnection(java.lang.String,
java.util.Properties) (/usr/local/lib/libgcj.so.6.0.0)
   at java.sql.DriverManager.getConnection(java.lang.String, java.lang.String,
java.lang.String) (/usr/local/lib/libgcj.so.6.0.0)
   at jdbcDB2.dbConnect(java.lang.String, java.lang.String) (Unknown Source)
   at jdbcDB2.main(java.lang.String[]) (Unknown Source)
   at gnu.java.lang.MainThread.call_main() (/usr/local/lib/libgcj.so.6.0.0)
   at gnu.java.lang.MainThread.run() (/usr/local/lib/libgcj.so.6.0.0)
Caused by: java.lang.ClassNotFoundException: sun.io.ByteToCharConverter not
found in gnu.gcj.runtime.SystemClassLoader{urls=[file:./],
parent=gnu.gcj.runtime.VMClassLoader{urls=[core:/], parent=null}}
   at java.net.URLClassLoader.findClass(java.lang.String)
(/usr/local/lib/libgcj.so.6.0.0)
   at java.lang.ClassLoader.loadClass(java.lang.String, boolean)
(/usr/local/lib/libgcj.so.6.0.0)
   ...13 more
[acuser@linux DB]$

-- 
           Summary: Can't run db2 jdbc application compiled with gcj
           Product: gcc
           Version: 4.0.0
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: java
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: delarosa at ilstechnology dot com
                CC: gcc-bugs at gcc dot gnu dot org,java-prs at gcc dot gnu
                    dot org


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=20394


             reply	other threads:[~2005-03-09 14:37 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-09 16:23 delarosa at ilstechnology dot com [this message]
2005-03-09 16:33 ` [Bug libgcj/20394] " pinskia at gcc dot gnu dot org
2005-03-09 17:56 ` [Bug java/20394] " delarosa at ilstechnology dot com
2005-03-09 18:06 ` pinskia at gcc dot gnu dot org
2005-03-09 18:22 ` konqueror at gmx dot de
2005-03-09 18:40 ` delarosa at ilstechnology dot com
2005-03-09 18:59 ` konqueror at gmx dot de
2005-03-09 19:05 ` delarosa at ilstechnology dot com
2005-03-09 19:07 ` pinskia at gcc dot gnu dot org
2005-03-09 22:36 ` delarosa at ilstechnology dot com
2005-03-10  0:52 ` delarosa at ilstechnology dot com
2005-03-10 23:35 ` pinskia at gcc dot gnu dot org

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20050309143710.20394.delarosa@ilstechnology.com \
    --to=gcc-bugzilla@gcc.gnu.org \
    --cc=java-prs@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).