Slemma / BigQuery-jdbc-driver

Automatically exported from code.google.com/p/starschema-bigquery-jdbc
1 stars 0 forks source link

Bundling in jackson causes problems. #2

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Bundling in jackson causes problems.

My app includes jackson-core-asl-1.5.5.jar. This appears to be incompatible 
with the jackson classes that you sneaked into bqjdbc-0.0.7.jar. I confirmed 
this was the issue by removing my copy. After that I was able to connect. But 
this breaks other things in my app.

I realize you don't want to separate your driver into 2 jar files. And while 
that would make the problem more apparent... it wouldn't really solve it 
anyway. I'm not sure what the ideal solution is. Maybe building your classes 
with an alternative package would be a possibility.

This is a non-complete list of some clashing classes:
$ jar -tf 
../ireport/4.6.0/modules/ext/org.codehaus.jackson/jackson-core-asl-1.5.5.jar | 
grep JsonGenerator
org/codehaus/jackson/JsonGenerator$Feature.class
org/codehaus/jackson/JsonGenerator.class
org/codehaus/jackson/impl/JsonGeneratorBase$1.class
org/codehaus/jackson/impl/JsonGeneratorBase.class
org/codehaus/jackson/util/JsonGeneratorDelegate.class

$ jar -tf ~/JDBC/bqjdbc-0.0.7.jar | grep JsonGenerator
com/google/api/client/json/JsonGenerator.class
org/codehaus/jackson/JsonGenerator$Feature.class
org/codehaus/jackson/JsonGenerator.class
org/codehaus/jackson/impl/JsonGeneratorBase$1.class
org/codehaus/jackson/impl/JsonGeneratorBase.class
org/codehaus/jackson/util/JsonGeneratorDelegate.class

Original issue reported on code.google.com by matt.dah...@gmail.com on 7 Sep 2012 at 10:50

GoogleCodeExporter commented 9 years ago
That's true, the supplied jar package contains all the dependencies required to 
run 3rd party tools. I will ask the guys to upload the standalone package as 
well up this big bundle. 

So, the solution will be: 

 - have this big bundled jar file with a warning message
 - have a driver only jar without the dependencies plus a Wiki page where everyone can find the list of the required 3rd party packages 

Original comment by tfo...@starschema.net on 8 Sep 2012 at 5:47

GoogleCodeExporter commented 9 years ago

Original comment by tfo...@starschema.net on 8 Sep 2012 at 5:50

GoogleCodeExporter commented 9 years ago
Now we have two jars to download:

bqjdbc-0.0.8-standalone.jar - this one is for you, without dependencies
bqjdbc-0.0.8.jar - this one is with dependencies for instant usage

http://code.google.com/p/starschema-bigquery-jdbc/downloads/list

All required jar files to run the standalone one are listed here: 
http://code.google.com/p/starschema-bigquery-jdbc/wiki/Dependencies 

Original comment by tfo...@starschema.net on 10 Sep 2012 at 12:11