[Seasar-user:7110] [S2Dxo] Tigerのenumの変換について

加藤 潤一 [E-MAIL ADDRESS DELETED]
2007年 4月 8日 (日) 02:06:40 JST


加藤 (j5ik2o) です.

S2Dxoについて教えてください.

Tigerの列挙型をプロパティに持ったオブジェクトをエンティティに変換しようとしているのですが,ConversionRuntimeExceptionです.
独自のコンバータを作らないといけないでしょうか?作り方を教えてくださいm(_ _)m

org.seasar.extension.dxo.exception.ConversionRuntimeException: [WSSR0000]org.seasar.chronos.ThreadPoolType
        at org.seasar.extension.dxo.converter.impl.NumberConverter.convert(NumberConverter.java:57)
        at org.seasar.extension.dxo.converter.impl.BeanConverter.setValue(BeanConverter.java:155)
        at org.seasar.extension.dxo.converter.impl.BeanConverter.setValues(BeanConverter.java:106)
        at org.seasar.extension.dxo.converter.impl.BeanConverter.convert(BeanConverter.java:80)
        at org.seasar.extension.dxo.converter.impl.BeanConverter.convert(BeanConverter.java:70)
        at org.seasar.extension.dxo.command.impl.BeanToBeanDxoCommand.convertScalar(BeanToBeanDxoCommand.java:42)
        at org.seasar.extension.dxo.command.impl.AbstractDxoCommand$ScalarConversionHelper.convert(AbstractDxoCommand.java:114)
        at org.seasar.extension.dxo.command.impl.AbstractDxoCommand.execute(AbstractDxoCommand.java:58)
        at org.seasar.extension.dxo.DxoInterceptor.invoke(DxoInterceptor.java:49)
        at org.seasar.chronos.store.dxo.TaskDxo$$EnhancedByS2AOP$$1612190$$MethodInvocation$$toEntity0.proceed(MethodInvocationClassGenerator.java)
        at org.seasar.chronos.store.dxo.TaskDxo$$EnhancedByS2AOP$$1612190.toEntity(TaskDxo$$EnhancedByS2AOP$$1612190.java)
        at org.seasar.chronos.store.TaskStore.saveToStore(TaskStore.java:32)
        at org.seasar.chronos.store.task.strategy.impl.StoredTaskExecuteStrategyDecorator.save(StoredTaskExecuteStrategyDecorator.java:24)
        at org.seasar.chronos.task.strategy.impl.TaskExecuteStrategyImplTest.testSerialize(TaskExecuteStrategyImplTest.java:29)
        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:164)
        at org.seasar.framework.unit.S2FrameworkTestCase.doRunTest(S2FrameworkTestCase.java:306)
        at org.seasar.extension.unit.S2TestCase.doRunTest(S2TestCase.java:92)
        at org.seasar.framework.unit.S2FrameworkTestCase.runBare(S2FrameworkTestCase.java:189)
        at junit.framework.TestResult$1.protect(TestResult.java:106)
        at junit.framework.TestResult.runProtected(TestResult.java:124)
        at junit.framework.TestResult.run(TestResult.java:109)
        at junit.framework.TestCase.run(TestCase.java:120)
        at junit.framework.TestSuite.runTest(TestSuite.java:230)
        at junit.framework.TestSuite.run(TestSuite.java:225)
        at org.eclipse.jdt.internal.junit.runner.junit3.JUnit3TestReference.run(JUnit3TestReference.java:128)
        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)




Seasar-user メーリングリストの案内