Uploaded image for project: 'Struts 2'
  1. Struts 2
  2. WW-4758

@autowired does not work since Struts 2.3.28.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3.28
    • Fix Version/s: 2.5.12
    • Component/s: Plugin - Spring
    • Labels:
      None

      Description

      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;

        Attachments

          Activity

            People

            • Assignee:
              lukaszlenart Lukasz Lenart
              Reporter:
              khurram.rashid Khurram
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: