---
title: "Quartz在Spring中设置不正确 引发问题"
author: "conkeyn"
date: "2009-07-02T02:45:58Z"
tags: []
slug: "quartz-spring"
draft: false
lastmod: "2009-07-02T02:45:58Z"
id: 418703
url: "https://conkeyn.iteye.com/blog/418703"
---

1、如果在Spring与Quartz设置过程中，Spring方面只能调用到Service层。不然会出现Hibernate的连接池中的连接被引用待尽。引用待尽之时，整个环境将不运行。并且在重启该环境时会出现：“org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is java.lang.NullPointerException”这个错误。