I'm developing a web application. WildFly 8.1, SQL Server 2012 I have a problem in my local environment, even though the code and the state of the database is identical to preproduction, where everything works fine.
1) I just restored my database from preproduction database, so the database is identical.
2) I checked out on the same changeset that is used in preproduction. So the code is identical.
There's a feature where I'm making a native SQL query to the database.
select IIF(number.accountnumber is not null,number.accountnumber,def.accountnumber)
from salesaccountnumber def
left join salesaccountnumber number on
number.fk_service = def.fk_service
and number.pricetitle= 'STARTINGPRICE'
where def.pricetitle = 'STARTINGPRICE'
and def.fk_service = 2
The query mentioned above works just fine when I execute it in SQL Management Studio.
On every other developer's environment and in preproduction it works as intended, but on my development environment where the code and the state of the database are IDENTICAL to their preproduction equivalents, I get the following Exception when getting single result from that query:
12:16:44,934 ERROR [my.project.BillingAction] (default task-59) [SESSION=Gvo7TGbOw4nIPo6p_WphSUrn]Could not build/send INVOICE out of bill : javax.persistence.PersistenceException: org.hibernate.HibernateException: Provider is closed!
12:16:44,935 ERROR [stderr] (default task-59) javax.persistence.PersistenceException: org.hibernate.HibernateException: Provider is closed!
I have no other problems in my local environment compared to the preproduction.
None of us has ever seen this Exception before, so, any ideas where to even start to look for the explanation?