struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emilio Liang (JIRA)" <j...@apache.org>
Subject [jira] Created: (WW-3244) ArrayIndexOutOfBoundsException in struts 2.1.6 convention plugin
Date Sat, 12 Sep 2009 18:34:33 GMT
ArrayIndexOutOfBoundsException in struts 2.1.6 convention plugin
----------------------------------------------------------------

                 Key: WW-3244
                 URL: https://issues.apache.org/struts/browse/WW-3244
             Project: Struts 2
          Issue Type: Bug
          Components: Plugin - Convention
    Affects Versions: 2.1.6
         Environment: struts 2.1.6 convention plugin
            Reporter: Emilio Liang


When put the self defined Action which extends  ActionSupport in the com.emilio.ba.actions
package together with other Action classes which extends com.emilio.ba.actions.Action, will
get a Exception and Application can't start.But when put  com.emilio.ba.actions.Action into
other package ,this error disappear

=============================================
2009-9-12 23:55:57 org.apache.catalina.core.StandardContext filterStart
severity: Exception starting filter struts2
java.lang.ArrayIndexOutOfBoundsException: 0
	at org.apache.struts2.convention.SEOActionNameBuilder.build(SEOActionNameBuilder.java:69)
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.determineActionName(PackageBasedActionConfigBuilder.java:601)
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:445)
	at org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:278)
	at org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:52)
	at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:200)
	at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
	at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:360)
	at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:403)
	at org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)
	at org.apache.struts2.dispatcher.ng.filter.StrutsPrepareAndExecuteFilter.init(StrutsPrepareAndExecuteFilter.java:48)
	at org.apache.catalina.core.ApplicationFilterConfig.getFilter(ApplicationFilterConfig.java:221)
	at org.apache.catalina.core.ApplicationFilterConfig.setFilterDef(ApplicationFilterConfig.java:302)
	at org.apache.catalina.core.ApplicationFilterConfig.<init>(ApplicationFilterConfig.java:78)
	at org.apache.catalina.core.StandardContext.filterStart(StandardContext.java:3666)
	at org.apache.catalina.core.StandardContext.start(StandardContext.java:4258)
	at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:760)
	at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:740)
	at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:544)
	at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:626)
	at org.apache.catalina.startup.HostConfig.deployDescriptors(HostConfig.java:553)
	at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:488)
	at org.apache.catalina.startup.HostConfig.start(HostConfig.java:1150)
	at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:311)
	at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:120)
	at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1022)
	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:597)
	at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:295)
	at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:433)

=============================================
package com.emilio.ba.actions;
import com.opensymphony.xwork2.ActionSupport;
public class Action extends ActionSupport{
    private static final long serialVersionUID = -8137741914987527857L;
    public static final String ADD = "add"; 
    public static final String EDIT = "edit";
    public static final String SAVE = "save";
    public static final String LIST = "list";
    public static final String SHOW = "show";
    public static final String DEL = "del";
    public static final String CHAIN = "chain";
}
================================================
@Namespace("/menu")
@InterceptorRefs({
    @InterceptorRef("defaultStack")
})

public class MenuAction extends com.emilio.ba.actions.Action {
.....................
}

=================================================





-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message