Hi. I tried building DBReplicator 2.2.3 on JDK1.6, and had a couple of errors with RBlob and RClob not implementing new 1.6 methods in Blob and Clob. I also received a stern warning about using a Sun internal API for Base64. The attached patch adds those methods, and also the public domain Base64 class that a lot of people use in their projects. This makes for a clean build, with only a couple of 1.5-type warnings.
The other patch tweaks build.xml and adds a "clean" target.
Thanks for a very nice db tool.
Bob (ishmal)
| Attachment | Size |
|---|---|
| dbreplicator-2.2.3-jdk1.6.patch_.txt | 76.29 KB |
| dbreplicator-2.2.3-build.xml_.patch_.txt | 554 bytes |


Oops. Never mind. I see
Oops. Never mind. I see that 2.2.4 is out. Thanks!
Since I missed 2.2.4 and the
Since I missed 2.2.4 and the 1.6 fixes, maybe just the base64 stuff by itself might be of use. :-). This compiles on 2.2.4 also.
bob
Re:Simple patch for JDK1.6
Re:Simple patch for JDK1.6 build
Thank you! I'd actually come to the same realization about JDK 1.6, and added the missing methods in the 2.2.4 release (23 December). I'll have a look at what you did, and try using the public domain bas64 class. I'm concerned with performance, so I'll test that and it will probably have to wait for the 2.2.5 release, after I've tested its performance. I'll also add the clean target to the build.xml. I've got a clean target in the Makefile, but of course that won't work for building on Windows. :)
You might want to try the 2.2.4 version. It's better at handling memory, etc. (check the changelogs)
Again, Thanks! You're the first person to volunteer something!
Brian
Yeah, I like to contribute
Yeah, I like to contribute to things. Reason I needed to get away from the Sun classes, is that I want my project to run on OpenJDK1.6, 1.7, etc, which will start becoming the default engine on linux distros soon. I haven't had a problem with this Base64 class, but I guess your mileage may vary. Apache Tomcat has a version, too.
bob
I definitely appreciate it.
I definitely appreciate it. I had talked to someone about getting the project included in the debian repositories a while back, and I was stuck with multiverse because of the Sun stuff. I'd like to be able to compile on OpenJDK, but I just haven't had time to deal with it at all. I'm not sure I would have a problem with the Base64 class, but I've got the replicator running pretty quickly now, and I'm being careful not to hurt performance. It's not used extensively, but it can be called upon quite frequently during a sync session in certain cases. (It's used to encode fields containing non-ascii characters into xml). What I'll do is put it into 2.2.5 and test using it, and if there's no noticeable degradation of performance, then we'll use it.
Thanks Again,
Brian
Here's the Apache version I
Here's the Apache version I mentioned:
http://svn.apache.org/repos/asf/tomcat/container/tc5.5.x/catalina/src/sh...
bob
Thanks, I'll check it
Thanks, I'll check it out.
Brian