[Seasar-user:16729] Re: 【S2Struts】 HotDeployモードでIllegalArgumentExceptionが発生しています。

minami [E-MAIL ADDRESS DELETED]
2009年 1月 22日 (木) 20:15:18 JST


‚²•ÔM‚ ‚肪‚Æ‚¤‚²‚´‚¢‚Ü‚·B

‚Ü‚¸AXX0101LoginActionƒNƒ‰ƒXÝ’肵‚½“à—e‚Å‚·B
=================================================================================
static {
try {
Field field = CA0101LoginAction.class.getField("loginUserInfoDto");
Class type = field.getType();
LOG.debug(type);
LOG.debug(type.getClassLoader());
} catch (Exception ex) {
ex.printStackTrace();
}
}
=================================================================================

ˆÈ‰º‚ÍŒ‹‰Ê‚Å‚·B

‡@‹N“®’¼Œã‚̃ƒO

INFO 2009-01-22 19:45:30,437 [main] Loading validation rules file from
'/WEB-INF/config/common/validator/validator-rules.xml'
DEBUG 2009-01-22 19:45:30,734 [main] HOT deploy‚ðŠJŽn‚µ‚Ü‚·
java.lang.NoSuchFieldException: loginUserInfoDto
at java.lang.Class.getField(Class.java:1507)
at
com.xxx.xx.xxxxx.cl.action.gmpXX.XX0101.XX0101LoginAction.<clinit>(XX0101LoginAction.java:53)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.seasar.framework.util.ClassUtil.forName(ClassUtil.java:98)
at
org.seasar.struts.lessconfig.util.ClassPool.forResourceName(ClassPool.java:168)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:147)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadFromDir(ClassPool.java:142)
at
org.seasar.struts.lessconfig.util.ClassPool.loadAllClass(ClassPool.java:73)
at
org.seasar.struts.lessconfig.util.ClassPool.loadAllClass(ClassPool.java:56)
at
org.seasar.struts.lessconfig.util.ClassFinderImpl.find(ClassFinderImpl.java:75)
at
org.seasar.struts.lessconfig.util.ClassFinderImpl.find(ClassFinderImpl.java:93)
at
org.seasar.struts.lessconfig.util.ClassFinderImpl.find(ClassFinderImpl.java:87)
at
org.seasar.struts.lessconfig.plugin.AutoStrutsConfigRegisterPlugIn.register(AutoStrutsConfigRegisterPlugIn.java:108)
at
org.seasar.struts.lessconfig.plugin.AutoStrutsConfigRegisterPlugIn.init(AutoStrutsConfigRegisterPlugIn.java:88)
at
org.apache.struts.action.ActionServlet.initModulePlugIns(ActionServlet.java:871)
at org.apache.struts.action.ActionServlet.init(ActionServlet.java:359)
at javax.servlet.GenericServlet.init(GenericServlet.java:212)
at
org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1139)
at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:966)
at
org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:3956)
at org.apache.catalina.core.StandardContext.start(StandardContext.java:4230)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardHost.start(StandardHost.java:736)
at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1014)
at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:443)
at org.apache.catalina.core.StandardService.start(StandardService.java:448)
at org.apache.catalina.core.StandardServer.start(StandardServer.java:700)
at org.apache.catalina.startup.Catalina.start(Catalina.java:552)
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 org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)
DEBUG 2009-01-22 19:45:33,046 [main] class
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto
DEBUG 2009-01-22 19:45:33,046 [main]
[E-MAIL ADDRESS DELETED]
DEBUG 2009-01-22 19:45:33,937 [main] class
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto
DEBUG 2009-01-22 19:45:33,937 [main]
[E-MAIL ADDRESS DELETED]

‡A‰Šú‰æ–Ê•\Ž¦Žž

DEBUG 2009-01-22 19:55:25,296 [http-8090-Processor24] class
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto
DEBUG 2009-01-22 19:55:25,296 [http-8090-Processor24]
[E-MAIL ADDRESS DELETED]
DEBUG 2009-01-22 19:55:25,390 [http-8090-Processor24] ƒNƒ‰ƒX
(com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto
[gmpXX_XX0101_XX0101LoginUserInfoDto])‚̃Rƒ“ƒ|[ƒlƒ“ƒg’è‹`‚ð“o˜^‚µ‚Ü‚·

** after *****************************************:
/gmpXX/XX0101/XX0101Init.do
[session]gmpXX_XX0101_XX0101LoginUserInfoDto=
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto$$EnhancedByS2AOP$$[E-MAIL ADDRESS DELETED]

‡BƒƒOƒCƒ“ƒ{ƒ^ƒ“‰Ÿ‰ºŽži—áŠO‚ª”­¶‚µ‚Ü‚·Bj

** before *****************************************: /XX0101Login.do
[session]gmpXX_XX0101_XX0101LoginUserInfoDto=
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto$$EnhancedByS2AOP$$[E-MAIL ADDRESS DELETED]

DEBUG 2009-01-22 20:00:22,265 [http-8090-Processor23] Initializing
module path '' action configs
java.lang.NoSuchFieldException: loginUserInfoDto
at java.lang.Class.getField(Class.java:1507)
at
com.xxx.xx.xxxxx.cl.action.gmpXX.XX0101.XX0101LoginAction.<clinit>(XX0101LoginAction.java:53)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:242)
at org.seasar.framework.util.ClassUtil.forName(ClassUtil.java:98)
at
org.seasar.struts.action.impl.ClassRegisterImpl.getClass(ClassRegisterImpl.java:59)
at
org.seasar.struts.pojo.processor.commands.CreatePojoAction.getAction(CreatePojoAction.java:37)
at
org.apache.struts.chain.commands.AbstractCreateAction.execute(AbstractCreateAction.java:90)
at
org.apache.struts.chain.commands.ActionCommandBase.execute(ActionCommandBase.java:51)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at
org.apache.commons.chain.generic.LookupCommand.execute(LookupCommand.java:304)
at org.apache.commons.chain.impl.ChainBase.execute(ChainBase.java:190)
at
org.apache.struts.chain.ComposableRequestProcessor.process(ComposableRequestProcessor.java:283)
at org.apache.struts.action.ActionServlet.process(ActionServlet.java:1913)
at org.apache.struts.action.ActionServlet.doPost(ActionServlet.java:462)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:269)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.seasar.extension.filter.RequestDumpFilter.doFilter(RequestDumpFilter.java:127)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at org.seasar.struts.filter.S2StrutsFilter.doFilter(S2StrutsFilter.java:58)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.seasar.struts.hotdeploy.filter.S2StrutsHotdeployFilter.doFilter(S2StrutsHotdeployFilter.java:51)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.seasar.framework.container.hotdeploy.HotdeployFilter.doFilter(HotdeployFilter.java:63)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.seasar.framework.container.filter.S2ContainerFilter.doFilter(S2ContainerFilter.java:79)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.seasar.extension.filter.EncodingFilter.doFilter(EncodingFilter.java:69)
at
org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:215)
at
org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:188)
at
org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:210)
at
org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:174)
at
org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:117)
at
org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:108)
at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:151)
at
org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:870)
at
org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.processConnection(Http11BaseProtocol.java:665)
at
org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint.java:528)
at
org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollowerWorkerThread.java:81)
at
org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool.java:685)
at java.lang.Thread.run(Thread.java:595)
DEBUG 2009-01-22 20:00:22,359 [http-8090-Processor23] ƒNƒ‰ƒX
(com.xxx.xx.xxxxx.cl.action.gmpXX.XX0101.XX0101LoginAction
[gmpXX_XX0101_XX0101LoginAction])‚̃Rƒ“ƒ|[ƒlƒ“ƒg’è‹`‚ð“o˜^‚µ‚Ü‚·
DEBUG 2009-01-22 20:00:22,515 [http-8090-Processor23] class
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto
DEBUG 2009-01-22 20:00:22,515 [http-8090-Processor23]
[E-MAIL ADDRESS DELETED]
DEBUG 2009-01-22 20:00:22,546 [http-8090-Processor23] ƒNƒ‰ƒX
(com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto
[gmpXX_XX0101_XX0101LoginUserInfoDto])‚̃Rƒ“ƒ|[ƒlƒ“ƒg’è‹`‚ð“o˜^‚µ‚Ü‚·
WARN 2009-01-22 20:00:22,828 [http-8090-Processor23] Unhandled exception
org.seasar.framework.exception.SIllegalArgumentException:
[ESSR0094]IllegalArgumentException‚ªƒNƒ‰ƒX
(com.xxx.xx.xxxxx.cl.action.gmpXX.XX0101.XX0101LoginAction)‚ÌŒ^(class
com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto)‚̃tƒB[ƒ‹ƒh
(loginUserInfoDto)‚ÉŒ^
(com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto$$EnhancedByS2AOP
$$d2ee0f)‚Ì’l
(com.xxx.xx.xxxxx.cl.dto.gmpXX.XX0101.XX0101LoginUserInfoDto$
$EnhancedByS2AOP$$[E-MAIL ADDRESS DELETED])‚ðÝ’è‚·‚é‚Æ‚«‚É”­¶‚µ‚Ü‚µ‚½B‘Ώۂ̃Nƒ‰
ƒX‚Í
(com.xxx.xx.xxxxx.cl.action.gmpXX.XX0101.XX0101LoginAction$$EnhancedByS2AOP
$$1376b96)‚Å‚·B
at org.seasar.framework.util.FieldUtil.set(FieldUtil.java:167)
at
org.seasar.framework.container.assembler.AbstractBindingTypeDef.setValue(AbstractBindingTypeDef.java:346)
at
org.seasar.framework.container.assembler.AbstractBindingTypeDef.bindManual(AbstractBindingTypeDef.java:110)
at
org.seasar.framework.container.assembler.AbstractBindingTypeDef.bind(AbstractBindingTypeDef.java:87)
at
org.seasar.framework.container.assembler.AccessTypeFieldDef.bind(AccessTypeFieldDef.java:50)
at
org.seasar.framework.container.assembler.AccessTypeFieldDef.bind(AccessTypeFieldDef.java:42)
at
org.seasar.framework.container.assembler.AutoPropertyAssembler.assemble(AutoPropertyAssembler.java:56)
at
org.seasar.framework.container.deployer.RequestComponentDeployer.deploy(RequestComponentDeployer.java:67)
at
org.seasar.framework.container.impl.ComponentDefImpl.getComponent(ComponentDefImpl.java:111)
at
org.seasar.framework.container.impl.S2ContainerImpl.getComponent(S2ContainerImpl.java:129)
at
org.seasar.struts.pojo.PojoProcessAction.execute(PojoProcessAction.java:75)
at
org.apache.struts.chain.commands.servlet.ExecuteAction.execute(ExecuteAction.java:58)
at
org.seasar.struts.pojo.processor.commands.ExecuteActionAndClearPageValue.execute(ExecuteActionAndClearPageValue.java:41)
[—ª]





Koichi Kobayashi ‚³‚ñ‚͏‘‚«‚Ü‚µ‚½:
> ¬—Ñ (koichik) ‚Å‚·D
>
> Ž–ŒÌ^h^hŽ©ŒÈƒŒƒX
>
> Date: Thu, 22 Jan 2009 19:00:21 +0900
> From: Koichi Kobayashi <[E-MAIL ADDRESS DELETED]>
> To: [E-MAIL ADDRESS DELETED]
> Subject: [Seasar-user:16726] Re: yS2Strutsz HotDeployƒ‚[ƒh‚Å
IllegalArgumentException‚ª”­¶‚µ‚Ä‚¢‚Ü‚·B
>
>> logger.debug(fieldType.getClass().getClassLoader());
>
> fieldType ‚Í Class ‚È‚Ì‚Å getClass() ‚Í•s—v‚Å‚µ‚½D
>
> logger.debug(fieldType.getClassLoader());
>
>



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