Announcement Announcement Module
Collapse
No announcement yet.
NullPointer Exception while loading bean file through ClassPathXmlApplicationContext Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • #16
    Did you try with a FileSystemXmlApplicationContext?

    Code:
    ApplicationContext ctx = new FileSystemXmlApplicationContext("exact path");

    Comment


    • #17
      The problem is solved!

      By using JDK6 and Spring frame work 3.1.0 release!

      But it didn't worked when using 3.1.2 release! I don't know why? Can any one explain ?

      Will there be a relation between the version we use?

      Comment


      • #18
        I tested it on 3.1.2 without any problems...

        I still find it strange that it gives a NullPointer in a static initializer block, which if I look correctly doesn't make any sense. Which JDK version en type (32 or 64 bit) did you try?

        Comment


        • #19
          Originally posted by Marten Deinum View Post
          I tested it on 3.1.2 without any problems...

          I still find it strange that it gives a NullPointer in a static initializer block, which if I look correctly doesn't make any sense. Which JDK version en type (32 or 64 bit) did you try?

          64bit version.

          Comment


          • #20
            Ah... I tested on a 32bit system... So there could be a difference in JDK implementation...

            Could you create a small testcase (preferable maven or gradle driven) and a description (especially the 64bit part) and register a JIRA issue so that the spring team can look into it.

            Comment

            Working...
            X