struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Khurram (JIRA)" <j...@apache.org>
Subject [jira] [Comment Edited] (WW-4758) @autowired does not work since Struts 2.3.28.1
Date Wed, 15 Mar 2017 06:21:41 GMT

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

Khurram edited comment on WW-4758 at 3/15/17 6:21 AM:
------------------------------------------------------

Hi Luckasz,

Yes we are using struts2-spring-plugin version 4.1.2.RELEASE and detail of other versions
as follows
<spring.version>4.1.2.RELEASE</spring.version>
<struts.version>2.3.28.1</struts.version> or <struts.version>2.3.32</struts.version>
<hibernate.version>4.3.7.Final</hibernate.version>
<aspectj.version>1.8.5</aspectj.version>


was (Author: khurram.rashid):
Hi Luckasz,

Yes we are using struts2-spring-plugin version 4.1.2.RELEASE and detail of other versions
as follows
<spring.version>4.1.2.RELEASE</spring.version>
<struts.version>2.3.29</struts.version> or <struts.version>2.3.32</struts.version>
<hibernate.version>4.3.7.Final</hibernate.version>
<aspectj.version>1.8.5</aspectj.version>

> @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
>             Fix For: 2.5.next
>
>
> I am trying to run on Tomcat a Spring 3 + 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.3.15#6346)

Mime
View raw message