Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFTfC-0004dx-58 for pgsql-jdbc@arkaria.postgresql.org; Tue, 12 Mar 2013 18:11:02 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.72) (envelope-from ) id 1UFTfB-0005Sm-Gn for pgsql-jdbc@arkaria.postgresql.org; Tue, 12 Mar 2013 18:11:01 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFTfA-0005Sg-JA for pgsql-jdbc@postgresql.org; Tue, 12 Mar 2013 18:11:00 +0000 Received: from mail-pb0-f51.google.com ([209.85.160.51]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1UFTf6-0006FJ-Oc for pgsql-jdbc@postgresql.org; Tue, 12 Mar 2013 18:10:59 +0000 Received: by mail-pb0-f51.google.com with SMTP id un15so118366pbc.38 for ; Tue, 12 Mar 2013 11:10:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:content-type:mime-version:subject:from:in-reply-to:date :cc:content-transfer-encoding:message-id:references:to:x-mailer; bh=JZ58bGDy7P3Iz7VF6OBxH/g1uBPeFynIP1uLkjX3Pzg=; b=kbRFTUIoID27Q2iNi94fJJ8slppEEW3djROVK5ortZNOXQMYyigPTl9tzujAcx3M6P P1pua5jrrtHvyWr4DKSK00CXAtg2IRCkRUH+v4bUUJTvx2ot9Y+GC6IEUcIqo1dxhqSM xW6QGwt+e3+v51vms03vUtVJjUTA8o/erWAoX/REDngMcGjV8cu7G5xSxYZtZUlb+ehU 3HL4pNfhtR818iNlDh9Y36qJ7wzKZcYeWKY1ovxxyY0Ys+ujPI3htVl9JXFZFufRwBd5 7q5PgZsiaAokX5KXAMs/ubWMAnMo2OnlfSfN6jo58BrrcyGnFCecO3DTt7fe4YkQDhJd lOFw== X-Received: by 10.68.56.232 with SMTP id d8mr32046140pbq.162.1363111854978; Tue, 12 Mar 2013 11:10:54 -0700 (PDT) Received: from anesthetize.dyn.corp.trumpet.io ([207.86.77.58]) by mx.google.com with ESMTPS id xr3sm25964892pbc.46.2013.03.12.11.10.51 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 12 Mar 2013 11:10:52 -0700 (PDT) Content-Type: text/plain; charset=windows-1252 Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Subject: Re: A new JDBC driver... From: Steven Schlansker In-Reply-To: Date: Tue, 12 Mar 2013 11:10:50 -0700 Cc: Thomas Kellerer , List Content-Transfer-Encoding: quoted-printable Message-Id: References: To: Dave Cramer X-Mailer: Apple Mail (2.1499) X-Pg-Spam-Score: -2.7 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org On Mar 12, 2013, at 11:04 AM, Dave Cramer wrote: > Ya, It occurred to me as well if you are using netty it requires another = jar. >=20 > A bit unorthodox... >=20 > Dave Cramer >=20 > dave.cramer(at)credativ(dot)ca > http://www.credativ.ca >=20 To my understanding, with a Maven build process it is relatively easy to pr= oduce both a "unmodified" jar which is appropriate for use in Maven projects and a "shad= ed" jar which could be appropriate for use in tools / non-Maven-aware projects: http://maven.apache.org/plugins/maven-shade-plugin/ This way you can have the best of both worlds. >=20 > On Tue, Mar 12, 2013 at 1:39 PM, Thomas Kellerer wro= te: > Kevin Wooten wrote on 12.03.2013 02:19: > So=85 I did a crazy thing=85 I created an entirely new JDBC driver. >=20 > (For those who care there's an actual question at the bottom=85 this > isn't just bragging) >=20 > I'd love it if some folks in the know could take a look at my code > and see if it stirs up any ideas on integration or just makes you > want to jump off a bridge. >=20 >=20 > It does sound very nice, thanks very much for the effort! >=20 > I didn't look at the code, but one thing I noticed when trying the driver= is that it requires a bunch of other libraries which is highly unusual in = the JDBC "world". Usually the JDBC driver jar is self contained. >=20 > When I tried it with my SQL tool (SQL Workbench/J) I got the following ex= ception when connecting: >=20 >=20 > java.lang.NullPointerException > at com.impossibl.postgres.protocol.v30.ProtocolImpl.sendStartup(Protoco= lImpl.java:168) > at com.impossibl.postgres.protocol.v30.StartupCommandImpl.execute(Start= upCommandImpl.java:107) > at com.impossibl.postgres.protocol.v30.ProtocolImpl.execute(ProtocolImp= l.java:139) > at com.impossibl.postgres.system.BasicContext.start(BasicContext.java:1= 51) > at com.impossibl.postgres.system.BasicContext.init(BasicContext.java:11= 0) > at com.impossibl.postgres.jdbc.PSQLDriver.connect(PSQLDriver.java:56) > at com.impossibl.postgres.jdbc.PSQLDriver.connect(PSQLDriver.java:22) >=20 > Regards > Thomas >=20 >=20 >=20 >=20 > --=20 > Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) > To make changes to your subscription: > http://www.postgresql.org/mailpref/pgsql-jdbc >=20 --=20 Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc