plan file
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="
http://www.springframework.org/schema/beans"
xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd">
<bean id="plan" class="org.diffkit.diff.conf.DKMagicPlan">
<property name="lhsDBTableName" value="lhs" />
<property name="rhsDBTableName" value="rhs" />
<property name="dbConnectionInfo"
ref="connectionInfo" />
<property name="keyColumnNames">
<list>
<value>id</value>
<value>adclaim</value>
<value>adnumber</value>
</list>
</property>
<property name="sinkFilePath" value="./test10.sink.diff" />
</bean>
</beans>
command line I'm using (i can't cut and paste from the command line so
I hope i didnt miss type it here)
java -jar ..\diffkit-app.jar -planfiles
test10.plan.xml,dbconnectioninfo.postgres.xml
and the result (pipped into a file so i know i didnt miss type)
DiffKit home->C:\Program Files\DiffKit
planfile(s)->test10.plan.xml
lhsSource->DKDBSource@3ef810[lhs,jdbc:postgresql://smsdev1:5432/
jrctest]
rhsSource->DKDBSource@100363[rhs,jdbc:postgresql://smsdev1:5432/
jrctest]
sink->DKFileSink@bcda2d[.\test10.sink.diff]
tableComparison-
>org.diffkit.diff.conf.DKAutomaticTableComparison@97d01f
ERROR[14:45:24.278]{main}(DKApplication.main:130)-null
java.lang.OutOfMemoryError: Java heap space
at
com.jdotsoft.jarloader.JarClassLoader.getJarBytes(JarClassLoader.java:
681) [diffkit-app.jar:na]
at
com.jdotsoft.jarloader.JarClassLoader.findJarClass(JarClassLoader.java:
344) [diffkit-app.jar:na]
at
com.jdotsoft.jarloader.JarClassLoader.loadClass(JarClassLoader.java:
551) [diffkit-app.jar:na]
at java.lang.ClassLoader.loadClass(Unknown Source) [na:1.6.0_22]
at
org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:
1817) [diffkit-app.jar:na]
at
org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:
257) [diffkit-app.jar:na]
at
org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:
500) [diffkit-app.jar:na]
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:
374) [diffkit-app.jar:na]
at
org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:
254) [diffkit-app.jar:na]
at org.diffkit.util.DKSqlUtil.executeQuery(DKSqlUtil.java:400)
[diffkit-app.jar:na]
at org.diffkit.diff.sns.DKDBSource.createResultSet(DKDBSource.java:
219) [diffkit-app.jar:na]
at org.diffkit.diff.sns.DKDBSource.open(DKDBSource.java:134) [diffkit-
app.jar:na]
at org.diffkit.diff.engine.DKContext.open(DKContext.java:73) [diffkit-
app.jar:na]
at org.diffkit.diff.engine.DKDiffEngine.diff(DKDiffEngine.java:63)
[diffkit-app.jar:na]
at org.diffkit.diff.engine.DKDiffEngine.diff(DKDiffEngine.java:56)
[diffkit-app.jar:na]
at org.diffkit.diff.conf.DKApplication.doDiff(DKApplication.java:191)
[diffkit-app.jar:na]
at org.diffkit.diff.conf.DKApplication.runPlan(DKApplication.java:
172) [diffkit-app.jar:na]
at org.diffkit.diff.conf.DKApplication.main(DKApplication.java:110)
[diffkit-app.jar:na]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:
1.6.0_22]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) [na:
1.6.0_22]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
[na:1.6.0_22]
at java.lang.reflect.Method.invoke(Unknown Source) [na:1.6.0_22]
at
com.jdotsoft.jarloader.JarClassLoader.invokeMain(JarClassLoader.java:
520) [diffkit-app.jar:na]
at org.diffkit.diff.conf.DKLauncher.main(DKLauncher.java:26) [diffkit-
app.jar:na]