[Seasar-user:17825] 【S2AXIS】同一クラスに複数メソッドを用意する場合のdiconの記述について
houjyou
[E-MAIL ADDRESS DELETED]
2009年 6月 22日 (月) 21:50:48 JST
お世話になっております、北条です。
クイックリファレンスを見ながら、S2AXISを使いはじめたのですが
サービス側で以下のようなdiconファイルを定義する場合どうして良いかわからないので質問させてください。
【サービス側のdiconファイル】
(getAAAInfoの定義のみであれば正常に動作する。)
<component name="getAAAInfo" class="co.jp.AAA.service.AAAInfoServiceImpl">
<meta name="axis-service"/>
<property name="AAAInfoDao">AAAInfoDao</property>
</component>
(同じくAAAInfoServiceImplにもう1つメソッドを追加するとgetAAAInfo呼び出し時にエラーが発生する)
<component name="regAAAInfo" class="co.jp.AAA.service.AAAInfoServiceImpl">
<meta name="axis-service"/>
<property name="AAAInfoDao">AAAInfoDao</property>
</component>
リファレンスの真似をして1クラスに1つだけメソッドを用意する場合はできたのですが
同一クラスにもう1つメソッドを用意する場合にどう記述してよいのか見つかられませんでした
インターフェース(AAAInfoService)にはサービス側、クライアント側両メソッド(getAAAInfo,regAAAInfo)用意しています。
お忙しいところ申し訳ありませんがご教授ください。
以下クライアント側にて取得したエラー内容です。
2009/06/22 21:15:40 org.apache.catalina.core.StandardWrapperValve invoke
致命的: サーブレット facesServlet のServlet.service()が例外を投げました
org.seasar.remoting.axis2.client.S2AxisClientException: [EAXS1002]サービスの呼び出しに失敗しました : Address:
http://localhost:8080/s2axis2-examples/services/getAAAInfo
at
org.seasar.remoting.axis2.connector.AbstractRPCConnector.invoke(AbstractRPCConnector.java:133)
at
org.seasar.remoting.common.connector.impl.TargetSpecificURLBasedConnector.invoke(TargetSpecificURLBasedConnector.java:105)
at
org.seasar.remoting.common.interceptor.RemotingInterceptor.invoke(RemotingInterceptor.java:90)
at
co.jp.AAA.service.AAAInfoService$$EnhancedByS2AOP$$1c4cc17$$MethodInvocation$$getAAAInfo0.proceed(MethodInvocationClassGenerator.java)
at
co.jp.AAA.service.AAAInfoService$$EnhancedByS2AOP$$1c4cc17.getAAAInfo(AAAInfoService$$EnhancedByS2AOP$$1c4cc17.java)
at hoge.test.AAAInfoTestClient.execute(AAAInfoTestClient.java:17)
at hoge.test.AAAInfoTestClient.main(AAAInfoTestClient.java:40)
at com.hoge.web.bbb.MenuPage.initialize(MenuPage.java:26)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f.$$initialize$$invokeSuperMethod$$(MenuPage$$EnhancedByS2AOP$$1261f7f.java)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f$$MethodInvocation$$initialize0.proceed(MethodInvocationClassGenerator.java)
at
org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:55)
at
com.hoge.interceptor.AccessLogInterceptor.invoke(AccessLogInterceptor.java:36)
at
org.seasar.framework.aop.impl.NestedMethodInvocation.proceed(NestedMethodInvocation.java:53)
at
org.seasar.framework.container.customizer.AspectCustomizer$LookupAdaptorInterceptor.invoke(AspectCustomizer.java:198)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f$$MethodInvocation$$initialize0.proceed(MethodInvocationClassGenerator.java)
at
org.seasar.extension.tx.DefaultTransactionCallback.execute(DefaultTransactionCallback.java:58)
at
org.seasar.extension.tx.adapter.JTATransactionManagerAdapter.required(JTATransactionManagerAdapter.java:65)
at
org.seasar.extension.tx.RequiredInterceptor.invoke(RequiredInterceptor.java:41)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f$$MethodInvocation$$initialize0.proceed(MethodInvocationClassGenerator.java)
at
org.seasar.framework.aop.interceptors.ThrowsInterceptor.invoke(ThrowsInterceptor.java:77)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f$$MethodInvocation$$initialize0.proceed(MethodInvocationClassGenerator.java)
at
org.seasar.framework.aop.interceptors.TraceInterceptor.invoke(TraceInterceptor.java:73)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f$$MethodInvocation$$initialize0.proceed(MethodInvocationClassGenerator.java)
at
com.hoge.web.bbb.MenuPage$$EnhancedByS2AOP$$1261f7f.initialize(MenuPage$$EnhancedByS2AOP$$1261f7f.java)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.seasar.framework.util.MethodUtil.invoke(MethodUtil.java:93)
at
org.seasar.framework.beans.impl.BeanDescImpl.invoke(BeanDescImpl.java:213)
at
org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invoke(HtmlComponentInvokerImpl.java:163)
at
org.seasar.teeda.extension.html.impl.HtmlComponentInvokerImpl.invokeInitialize(HtmlComponentInvokerImpl.java:134)
at
org.seasar.teeda.extension.render.TViewRootRenderer.invoke(TViewRootRenderer.java:92)
at
org.seasar.teeda.extension.render.TViewRootRenderer.encodeBegin(TViewRootRenderer.java:63)
at
javax.faces.component.UIComponentBase.encodeBegin(UIComponentBase.java:330)
at javax.faces.component.UIViewRoot.encodeBegin(UIViewRoot.java:100)
at javax.faces.webapp.UIComponentTag.encodeBegin(UIComponentTag.java:247)
at javax.faces.webapp.UIComponentTag.doStartTag(UIComponentTag.java:184)
at org.seasar.teeda.extension.taglib.TViewTag.doStartTag(TViewTag.java:98)
at
org.seasar.teeda.extension.html.processor.ElementProcessorImpl.processTag(ElementProcessorImpl.java:145)
at
org.seasar.teeda.extension.html.processor.ElementProcessorImpl.process(ElementProcessorImpl.java:138)
at
org.seasar.teeda.extension.html.processor.ElementProcessorImpl.process(ElementProcessorImpl.java:119)
at
org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:157)
at
org.seasar.teeda.extension.html.impl.HtmlViewHandler.renderView(HtmlViewHandler.java:143)
at
org.seasar.teeda.core.lifecycle.impl.RenderResponsePhase.executePhase(RenderResponsePhase.java:39)
at
org.seasar.teeda.core.lifecycle.AbstractPhase.execute(AbstractPhase.java:57)
at
org.seasar.teeda.core.lifecycle.LifecycleImpl.render(LifecycleImpl.java:131)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:101)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:70)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:77)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:845)
at
org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447)
at java.lang.Thread.run(Unknown Source)
Caused by: org.apache.axis2.AxisFault: java.lang.NullPointerException
at
org.apache.axis2.util.Utils.getInboundFaultFromMessageContext(Utils.java:486)
at
org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAxisOperation.java:343)
at
org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperation.java:389)
at
org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisOperation.java:211)
at
org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
at
org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
at
org.apache.axis2.rpc.client.RPCServiceClient.invokeBlocking(RPCServiceClient.java:101)
at
org.seasar.remoting.axis2.connector.AxisInOutConnector.execute(AxisInOutConnector.java:55)
at
org.seasar.remoting.axis2.connector.AbstractRPCConnector.invoke(AbstractRPCConnector.java:131)
... 68 more
-------------- next part --------------
HTMLの添付ファイルを保管しました...
URL: <http://ml.seasar.org/archives/seasar-user/attachments/20090622/45f2d834/attachment.html>
Seasar-user メーリングリストの案内