我的程序中有一個循環引用。我認爲我的計劃沒有問題。它可以在windows
上運行。當我將它放在linux
上時,它會導致異常。linux上的循環引用
下面是錯誤日誌:
org.springframework.beans.factory.BeanCurrentlyInCreationException: Error creating bean with name 'customGroupDataManager':
Requested bean is currently in creation: Is there an unresolvable circular reference?`
下面是我的代碼:
<bean id="customUserDataManager" lazy-init="true" class="com.hand.hap.activiti.manager.CustomUserDataManager">
<constructor-arg ref="processEngineConfiguration"/>
</bean>
<bean id="customBehaviorFactory" class="com.hand.hap.activiti.custom.CustomBehaviorFactory"/>
<bean id="activitiBeanProvider" class="com.hand.hap.activiti.custom.ActivitiBeanProvider"/>
<bean id="notificationListener" class="com.hand.hap.activiti.listeners.NotificationListener"/>
<bean id="processEngineConfiguration" class="org.activiti.spring.SpringProcessEngineConfiguration">
<property name="dataSource" ref="dataSource"/>
<property name="transactionManager" ref="transactionManager"/>
<property name="databaseSchemaUpdate" value="true"/>
<property name="mailServerHost" value="smtp.126.com"/>
<property name="mailServerPort" value="25"/>
<property name="mailServerUsername" value="[email protected]"/>
<property name="mailServerPassword" value="hapdev11"/>
<property name="asyncExecutorActivate" value="true"/>
<property name="dbIdentityUsed" value="false"/>
<property name="activityBehaviorFactory" ref="customBehaviorFactory"/>
<property name="groupDataManager" ref="customGroupDataManager"/>
<property name="userDataManager" ref="customUserDataManager"/>
<property name="beans" ref="activitiBeanProvider"/>
<property name="customDefaultBpmnParseHandlers" >
<list>
<bean class="com.hand.hap.activiti.custom.AddListenerUserTaskParseHandler">
<constructor-arg index="0" value="create"/>
<constructor-arg index="1" ref="notificationListener"/>
</bean>
</list>
</property>
</bean>
當你說它不是在Windows和Linux上的相同結果,有什麼區別?你在Windows上使用IDE而不使用Linux嗎?是在這兩種情況下手動進行satart的jar還是以war/ear/jar方式放入JEE服務器?你的春天是什麼樣的? – Asoub