struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (WW-4758) @autowired does not work since Struts 2.3.28.1
Date Sun, 18 Jun 2017 09:34:00 GMT

    [ https://issues.apache.org/jira/browse/WW-4758?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16053138#comment-16053138
] 

Hudson commented on WW-4758:
----------------------------

SUCCESS: Integrated in Jenkins build Struts-JDK7-master #637 (See [https://builds.apache.org/job/Struts-JDK7-master/637/])
WW-4758 Uses ObjectFactory to create Tiles' ViewPrepare (lukaszlenart: rev 93dba5bce22e9e7e539e3e631166d6510efca023)
* (add) plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsPreparerFactory.java
* (edit) plugins/tiles/src/main/java/org/apache/struts2/tiles/StrutsTilesContainerFactory.java


> @autowired does not work since Struts 2.3.28.1 
> -----------------------------------------------
>
>                 Key: WW-4758
>                 URL: https://issues.apache.org/jira/browse/WW-4758
>             Project: Struts 2
>          Issue Type: Bug
>          Components: Plugin - Spring
>    Affects Versions: 2.3.28
>            Reporter: Khurram
>            Assignee: Lukasz Lenart
>             Fix For: 2.5.next
>
>
> I am trying to run on Tomcat a Spring 4 + Struts 2 + Hibernate web app, but it fails
to start with NullPointerException for autowired field. This issue is happening after release
of 2.3.28.1 So please help
> 2017-03-15 15:28:35,308 [http-bio-8009-exec-1] ERROR au.com.presentation.struts.action.tiles.landing.LandingSummaryPreparer
- Error Id:
> java.lang.NullPointerException
> 	at au.com.presentation.struts.action.tiles.landing.LandingSummaryPreparer.performPreparer(LandingSummaryPreparer.java:142
> and in my code I have autowired that always returning null
> @Autowired
> private Services services;



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message