java.io.UnsupportedEncodingException

68 views
Skip to first unread message

Sri

unread,
Oct 6, 2014, 8:58:11 AM10/6/14
to diffki...@googlegroups.com


Hi

My plan file has something like this:

   <bean id="plan" class="org.diffkit.diff.conf.DKMagicPlan">
<property name="lhsDBTableName" value="STND_FSM_TYPE_STATE_RULE" />
<property name="rhsDBTableName" value="STND_FSM_TYPE_STATE_RULE" />
<property name="lhsDBConnectionInfo" ref="lhsDBConnectionInfo" />
<property name="rhsDBConnectionInfo" ref="rhsDBConnectionInfo" />
<property name="sqlPatchFilePath" value="./test18.sink.patch" />
   </bean>


and while executing the diff, I get the following error. Can someone please help?

planfile(s)->[test18.plan.xml]
ERROR[08:51:31.900]{main}(DKApplication.main:135)-null
java.lang.RuntimeException: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[(DKPassthroughPlan,null)]
        at org.diffkit.diff.conf.DKMagicPlan.getBuiltPlan(DKMagicPlan.java:353) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlan.getLhsSource(DKMagicPlan.java:330) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKApplication.runPlan(DKApplication.java:167) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKApplication.main(DKApplication.java:115) [diffkit-app.jar:na]
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) [na:1.6.0_45]
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) [na:1.6.0_45]
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) [na:1.6.0_45]
        at java.lang.reflect.Method.invoke(Method.java:597) [na:1.6.0_45]
        at com.jdotsoft.jarloader.JarClassLoader.invokeMain(JarClassLoader.java:571) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKLauncher.main(DKLauncher.java:29) [diffkit-app.jar:na]
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[(DKPassthroughPlan,null)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:110) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.build(DKMagicPlanBuilder.java:56) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlan.getBuiltPlan(DKMagicPlan.java:350) [diffkit-app.jar:na]
        ... 9 common frames omitted
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[DKPassthroughPlan(DKSqlPatchSink,sink_)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:102) [diffkit-app.jar:na]
        ... 11 common frames omitted
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[DKPassthroughPlan(DKSqlPatchSink,sink_)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:110) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:82) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:99) [diffkit-app.jar:na]
        ... 11 common frames omitted
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[DKSqlPatchSink(DKDBConnectionInfo,connectionInfo_)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:102) [diffkit-app.jar:na]
        ... 13 common frames omitted
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[DKSqlPatchSink(DKDBConnectionInfo,connectionInfo_)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:110) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:99) [diffkit-app.jar:na]
        ... 13 common frames omitted
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[DKDBConnectionInfo(String,name_)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:102) [diffkit-app.jar:na]
        ... 14 common frames omitted
Caused by: java.lang.RuntimeException: Could not resolve automatically; need rule for dependency->Dependency[DKDBConnectionInfo(String,name_)]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:110) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:99) [diffkit-app.jar:na]
        ... 14 common frames omitted
Caused by: org.diffkit.common.DKConstructorNotFoundException: more than one longest Constructor: public java.lang.String(byte[],int,int,int) & public java.lang.String(byte[],int,int,java.lang.String) throws java.io.UnsupportedEncodingException
        at org.diffkit.util.DKClassUtil.findLongestConstructor(DKClassUtil.java:283) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicDependency.findConstructor(DKMagicDependency.java:205) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicDependency.getConstructor(DKMagicDependency.java:128) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicDependency.getDependencies(DKMagicDependency.java:63) [diffkit-app.jar:na]
        at org.diffkit.diff.conf.DKMagicPlanBuilder.resolve(DKMagicPlanBuilder.java:94) [diffkit-app.jar:na]
        ... 15 common frames omitted

Kelly Beard

unread,
Oct 15, 2015, 12:21:20 PM10/15/15
to diffkit-user
Did you ever find an answer to this?
Reply all
Reply to author
Forward
0 new messages