[
https://issues.apache.org/jira/browse/WW-3486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12919949#action_12919949
]
David Altenhof edited comment on WW-3486 at 10/11/10 3:10 PM:
--------------------------------------------------------------
I'm also getting this. Partial stack trace:
ERROR org.apache.struts2.dispatcher.Dispatcher.error:38 - Dispatcher
initialization failed
java.lang.NullPointerException
at
org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:592)
at
org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:336)
at
org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
[snip]
was (Author: daltenho):
I'm also getting this. Partial stack trace:
ERROR org.apache.struts2.dispatcher.Dispatcher.error:38 - Dispatcher
initialization failed
java.lang.NullPointerException
at
org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildConfiguration(PackageBasedActionConfigBuilder.java:592)
at
org.apache.struts2.convention.PackageBasedActionConfigBuilder.buildActionConfigs(PackageBasedActionConfigBuilder.java:336)
at
org.apache.struts2.convention.ClasspathPackageProvider.loadPackages(ClasspathPackageProvider.java:53)
at
com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:215)
at
com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
at
org.apache.struts2.dispatcher.ng.InitOperations.initDispatcher(InitOperations.java:69)com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:55)
at
org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:371)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:415)
[snip]
> NullPointerException on struts initialization
> ----------------------------------------------
>
> Key: WW-3486
> URL: https://issues.apache.org/jira/browse/WW-3486
> Project: Struts 2
> Issue Type: Bug
> Components: Plugin - Convention
> Affects Versions: 2.1.8.1, 2.2.1
> Environment: Tomcat 5.5.26 jdk 1.6.0_01-b06 struts 2.2.1
> Reporter: Hugo Robayo
> Priority: Blocker
>
> When migrate from 2.1.8.1 to 2.2.1 the same project fails in initialization,
> in the convention plugin PackageBasedconfigBuilder method buildconfiguration
> line 592 it seems the method getPackge() return null. I solve the problem
> replace convention-plugin 2.2.1 for 2.1.8.1.
> I dont make extensive test but works fine replacing the library.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.