現在下記サイトを見てteraバッチを使ったDB連携のアプリを作っています。
http://www.atmarkit.co.jp/ait/articles/0806/06/news130_3.html
しかし下記のように実行したところエラーが発生してしまいました。
おそらくどこかで書き間違えやパッケージ構成のミスがあると思うのですが。
そこで質問があります。
結論から言うと
下記のエラーを解決するアドバイスをいただけたらと思います。
かなり長いですし、これを見ただけでは全体の把握は難しいと思うので、
何か解決の糸口となるようなアドバイスを頂けるだけでありがたいです。
よろしくお願いします。
[2015/10/16 09:21:39] [JobStarter ] [DEBUG] START Batch
[2015/10/16 09:21:39] [JobRequestInfo ] [DEBUG] Parameter values: [jobId=JB0001] [jobDiscriptPath=sample/UC0002/JB0001.xml] [parameters=[]] [jobRequestNo=]
[2015/10/16 09:21:39] [JobExecutor ] [INFO ] Job processing START : [jobId=JB0001] [jobRequestNo=] [StartType=SYNC]
[2015/10/16 09:21:40] [JobStarter ] [ERROR] Error creating bean with name 'jobManager' defined in class path resource [template/ChunkTransactionBean.xml]: Cannot resolve reference to bean 'collector' while setting bean property 'collector'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'collector' defined in class path resource [sample/UC0002/JB0001.xml]: Cannot resolve reference to bean 'queryDAO' while setting bean property 'queryDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryDAO' defined in class path resource [common/dataAccessContext-batch.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [common/dataAccessContext-batch.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'kokyaku
id' in class 'jp.terasoluna.batch.sample.uc0002.JB0001zandakaData'
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jobManager' defined in class path resource [template/ChunkTransactionBean.xml]: Cannot resolve reference to bean 'collector' while setting bean property 'collector'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'collector' defined in class path resource [sample/UC0002/JB0001.xml]: Cannot resolve reference to bean 'queryDAO' while setting bean property 'queryDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryDAO' defined in class path resource [common/dataAccessContext-batch.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [common/dataAccessContext-batch.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'kokyaku
id' in class 'jp.terasoluna.batch.sample.uc0002.JB0001zandakaData'
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'collector' defined in class path resource [sample/UC0002/JB0001.xml]: Cannot resolve reference to bean 'queryDAO' while setting bean property 'queryDAO'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryDAO' defined in class path resource [common/dataAccessContext-batch.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [common/dataAccessContext-batch.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'kokyaku
id' in class 'jp.terasoluna.batch.sample.uc0002.JB0001zandakaData'
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'queryDAO' defined in class path resource [common/dataAccessContext-batch.xml]: Cannot resolve reference to bean 'sqlMapClient' while setting bean property 'sqlMapClient'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [common/dataAccessContext-batch.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'kokyaku
id' in class 'jp.terasoluna.batch.sample.uc0002.JB0001zandakaData'
Caused by:
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sqlMapClient' defined in class path resource [common/dataAccessContext-batch.xml]: Invocation of init method failed; nested exception is java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'kokyaku
id' in class 'jp.terasoluna.batch.sample.uc0002.JB0001zandakaData'
Caused by:
java.lang.RuntimeException: Error occurred. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMapConfig/sqlMap'. Cause: com.ibatis.common.xml.NodeletException: Error parsing XML. Cause: java.lang.RuntimeException: Error parsing XPath '/sqlMap/insert'. Cause: com.ibatis.common.beans.ProbeException: There is no READABLE property named 'kokyaku
id' in class 'jp.terasoluna.batch.sample.uc0002.JB0001zandakaData'
at com.ibatis.sqlmap.engine.builder.xml.SqlMapConfigParser.parse(SqlMapConfigParser.java:109)
at com.ibatis.sqlmap.client.SqlMapClientBuilder.buildSqlMapClient(SqlMapClientBuilder.java:90)
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/10/16 05:04