Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8270761
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T06:40:55+00:00 2026-06-08T06:40:55+00:00

Afer upgrading a grails application from 1.3.7 to 2.0, a java NullPointerException is being

  • 0

Afer upgrading a grails application from 1.3.7 to 2.0, a java NullPointerException is being thrown (the complete error is below).

I’m using debian squeeze and java version OpenJDK “1.6.0_18”, although have tried with prepackaged debian sun-jdk too.

I’ve tried to uninstall all the plugins with no luck; debugging mode does not give me a clue, either. I’ve also checked my datasource in development environment:

dataSource {
    pooled = true
    driverClassName = "com.mysql.jdbc.Driver"
    dialect = org.hibernate.dialect.MySQLInnoDBDialect
}
hibernate {
cache.use_second_level_cache = true
cache.use_query_cache = true
cache.region.factory_class = 'net.sf.ehcache.hibernate.EhCacheRegionFactory'
}
// environment specific settings
environments {
    development {
        dataSource {

        dbCreate = "create-drop" // one of 'create', 'create-drop','update'
    //url = "jdbc:hsqldb:mem:devDB"  //hsql
        url = "jdbc:mysql://server.domain/database" //mysql
        username = "user"
        password = "password"

    }
}

No luck at all.. any ideas? I’ve checked related posts, but cannot find the same problems here…

Thanks in advance

Error 2012-02-07 13:24:15,024 [Thread-11] ERROR context.GrailsContextLoader  - Error         executing bootstraps: Error creating bean with name 'transactionManagerPostProcessor':     Initialization of bean failed; nested exception is     org.springframework.beans.factory.BeanCreationException: Error creating bean with name     'transactionManager': Cannot resolve reference to bean 'sessionFactory' while setting bean     property 'sessionFactory'; nested exception is     org.springframework.beans.factory.BeanCreationException: Error creating bean with name     'sessionFactory': Invocation of init method failed; nested exception is     java.lang.NullPointerException
Message: Error creating bean with name 'transactionManagerPostProcessor': Initialization     of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException:     Error creating bean with name 'transactionManager': Cannot resolve reference to bean     'sessionFactory' while setting bean property 'sessionFactory'; nested exception is     org.springframework.beans.factory.BeanCreationException: Error creating bean with name     'sessionFactory': Invocation of init method failed; nested exception is     java.lang.NullPointerException
    Line | Method
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    636 | run . . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'transactionManager':     Cannot resolve reference to bean 'sessionFactory' while setting bean property     'sessionFactory'; nested exception is     org.springframework.beans.factory.BeanCreationException: Error creating bean with name     'sessionFactory': Invocation of init method failed; nested exception is     java.lang.NullPointerException
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    636 | run . . . in java.lang.Thread

Caused by BeanCreationException: Error creating bean with name 'sessionFactory':     Invocation of init method failed; nested exception is java.lang.NullPointerException
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    636 | run . . . in java.lang.Thread

Caused by NullPointerException: null
->>  334 | innerRun  in java.util.concurrent.FutureTask$Sync
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 
|    166 | run       in java.util.concurrent.FutureTask
|   1110 | runWorker in java.util.concurrent.ThreadPoolExecutor
|    603 | run       in java.util.concurrent.ThreadPoolExecutor$Worker
^    636 | run . . . in java.lang.Thread
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-08T06:40:56+00:00Added an answer on June 8, 2026 at 6:40 am

    Just for closing this issue, it was related to spring-security-plugin ugprade from acegi-plugin. I used spring-security-plugin default classes and properties and everything was ok.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Why am i getting an error: buffsize musth be an integer afer this line:
I have been using DOM for parsing my small xml docs for sometime.Afer reading
Hi I want to check JRE version before my application is installed in Mac
I have a raw H.264 Stream from an IP Camera packed in RTP frames.
Afer reading this topic C++ interview preparation (Matt's answer) I've got a question about
My Rails 3 application has a Product resource. In my ProductsController specs, the generated
I have a form that adds rows in with the jQuery .afer() method (on
Hi guys i have an issue currently when using a Socket to send data.
I am using a ObservableCollection to store the Environment Variables of Windows. class VariableVieWModel
im using a phone call listener in my activity but after finishing my activity

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.