Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MagicPlan does not work for tables that have all columns part of primary key. #63

Closed
GoogleCodeExporter opened this issue Jan 7, 2016 · 2 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1.
For example, I have usual MagicPlan configuration like this:
    <bean id="plan" class="org.diffkit.diff.conf.DKMagicPlan">
        <property name="lhsDBTableName" value="EMAIL_NOTIFY"/>
        <property name="rhsDBTableName" value="EMAIL_NOTIFY"/>
        <property name="lhsDBConnectionInfo" ref="lhsDBConnectionInfo"/>
        <property name="rhsDBConnectionInfo" ref="rhsDBConnectionInfo"/>
        <property name="sinkFilePath" value="C:/TEMP/diff_work/EMAIL_NOTIFY.sink.diff"/>
    </bean>

2. I run the tool (I have version 0.8.6)

3. I get an error

What is the expected output? 
-usal diff output

What do you see instead?
tableComparison->org.diffkit.diff.conf.DKAutomaticTableComparison@6906daba
ERROR[16:56:58.307]{main}(DKApplication.main:130)-null
java.lang.IllegalArgumentException: does not accept null args
    at org.diffkit.common.DKValidate.notNull(DKValidate.java:33) [diffkit-app.jar:na]
    at org.diffkit.diff.engine.DKStandardTableComparison.<init>(DKStandardTableComparison.java:81) [diffkit-app.jar:na]
    at org.diffkit.diff.conf.DKAutomaticTableComparison.buildStandardComparison(DKAutomaticTableComparison.java:148) [diffkit-app.jar:na]
    at org.diffkit.diff.conf.DKAutomaticTableComparison.getStandardComparison(DKAutomaticTableComparison.java:117) [diffkit-app.jar:na]
    at org.diffkit.diff.conf.DKAutomaticTableComparison.getDescription(DKAutomaticTableComparison.java:171) [diffkit-app.jar:na]
    at org.diffkit.diff.engine.DKDiffEngine.diff(DKDiffEngine.java:49) [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(NativeMethodAccessorImpl.java:39) [na:1.6.0_22]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_22]
    at java.lang.reflect.Method.invoke(Method.java:597) [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]

What version of the product are you using? On what operating system?
0.8.6 on Windows

Please provide any additional information below.
I checked source code and the reason for this error is that all columns of the 
table are part of primary key.

Original issue reported on code.google.com by jan.g...@gmail.com on 5 Jan 2011 at 8:12

@GoogleCodeExporter
Copy link
Author

duplicates Issue 62-- please track it there.

Original comment by trur...@gmail.com on 5 Jan 2011 at 8:55

  • Changed state: Duplicate

@GoogleCodeExporter
Copy link
Author

Original comment by trur...@gmail.com on 8 Jan 2011 at 1:51

  • Changed state: Verified

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant