S2Daoのjarを取り除いてJUnitを通すことを目標にして、いろいろいじくっていますが当然デグってます。
org.escafe.buri.dao.util.BuriDataUtilTestのtestDataUtilTxで以下のような例外がでている状況。なんだろう原因w
setupPkeyでif (util instanceof DataAccessUtilLongKey) がtrueでないようです。これが原因?
ちなみに、utilの中身は、
wakanagoTest.wakanagoTest_wp1_org_escafe_buri_entity_BuriTestINT_DataAccessUtil
になってました。
>id:imai78さん
log4j.propertiesをどう直せばいいんだっけ?
java.lang.NullPointerException at org.escafe.buri.util.packages.abst.AbstDataAccessUtilManyKey.getKey(AbstDataAccessUtilManyKey.java:19) at wakanagoTest.wakanagoTest_wp1_org_escafe_buri_entity_BuriTestINT_DataAccessUtil.getKey(wakanagoTest_wp1_org_escafe_buri_entity_BuriTestINT_DataAccessUtil.java:20) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl.setupPkey(BuriDataUtilImpl.java:274) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl.getBuriDataDto(BuriDataUtilImpl.java:233) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl.getBuriDataId(BuriDataUtilImpl.java:283) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl$$EnhancedByS2AOP$$969e65.$$getBuriDataId$$invokeSuperMethod$$(BuriDataUtilImpl$$EnhancedByS2AOP$$969e65.java) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl$$EnhancedByS2AOP$$969e65$$MethodInvocation$$getBuriDataId0.proceed(MethodInvocationClassGenerator.java) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:55) at org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73) at org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:53) at org.seasar.framework.aop.interceptors.InterceptorChain.invoke(InterceptorChain.java:49) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl$$EnhancedByS2AOP$$969e65$$MethodInvocation$$getBuriDataId0.proceed(MethodInvocationClassGenerator.java) at org.escafe.buri.dao.util.impl.BuriDataUtilImpl$$EnhancedByS2AOP$$969e65.getBuriDataId(BuriDataUtilImpl$$EnhancedByS2AOP$$969e65.java) at org.escafe.buri.dao.util.BuriDataUtilTest.testDataUtilTx(BuriDataUtilTest.java:50) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:585) at junit.framework.TestCase.runTest(TestCase.java:168) at org.seasar.framework.unit.S2FrameworkTestCase.doRunTest(S2FrameworkTestCase.java:519) at org.seasar.extension.unit.S2TestCase.doRunTest(S2TestCase.java:103) at org.seasar.framework.unit.S2FrameworkTestCase.runBare(S2FrameworkTestCase.java:308) at junit.framework.TestResult$1.protect(TestResult.java:110) at junit.framework.TestResult.runProtected(TestResult.java:128) at junit.framework.TestResult.run(TestResult.java:113) at junit.framework.TestCase.run(TestCase.java:124) at junit.framework.TestSuite.runTest(TestSuite.java:232) at junit.framework.TestSuite.run(TestSuite.java:227) at org.junit.internal.runners.JUnit38ClassRunner.run(JUnit38ClassRunner.java:81) at org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45) at org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386) at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)