創建Bean eqSaml11TicketValidator
時出現以下異常。 我正在使用IBM Websphere 8.5.5。 上下文初始化失敗:
org.springframework.beans.factory.BeanCreationException:在類路徑資源[META-INF/eQSecurityClient.xml]中定義的名稱爲'eqSaml11TicketValidator'的bean創建時出錯:bean的實例化失敗;嵌套異常是java.lang.ExceptionInInitializerErrorWebsphere上的Bean創建問題
-1
A
回答
0
您嘗試創建的類不能由JVM實例化。該錯誤消息的ExceptionInInitializerError可以有幾個原因
至少一個類或實例初始化失敗,異常失敗類的構造,例如
public class Test {
private static int num = 1/(1-1); // Throws Exception
private Object object = new SomeObject(); // if new SomeObject() throws exception
另一個原因可能是因爲你缺少的一類在classpath中,這個類或這個類包括父類中使用的任何類要求。
如果在你的代碼中發生異常,你可以嘗試在try/catch塊中包裝對象的創建,並打印包含它的原因的cought異常。原因很可能會顯示失敗的真正原因。
相關問題
- 1. Websphere 7 EntityManagerFactory創建問題
- 2. Hybris和Spring Bean創建異常問題
- 3. Spring應用程序上下文問題 - 數據源Bean創建
- 4. 創建FileInputStream的bean
- 5. 在Websphere上創建虛擬主機
- 6. 創建spring bean
- 7. Websphere連接問題
- 8. Websphere面試問題
- 9. WebSphere web.xml/bindings問題
- 10. 的Websphere 6 webservice的問題
- 11. 問題Managed Bean的
- 12. 的WebSphere 6.1 - com.sun.xml.ws.spi.ProviderImpl問題
- 13. JSP的Websphere問題頁面
- 14. 問題上創建ActiveRecord的模型
- 15. 在tpanel上創建tpaintbox的問題
- 16. 創建名爲'Test_flow'的bean時出錯:無法創建內部bean'(內部bean)
- 17. 自動Bean創建
- 18. Bean創建失敗
- 19. Spring autowired bean創建
- 20. 創建REST Api bean
- 21. IBM WebSphere MQ創建腳本
- 22. 在iPhone上創建ADTS框架....問題
- 23. 類加載問題在WebSphere
- 24. beanWrapperImpl問題只與websphere
- 25. Websphere Log4j2類路徑問題
- 26. google.script.run.withSuccessHandler()創建問題
- 27. iphone:appID創建問題?
- 28. 創建UI問題
- 29. 問題創建qrcode
- 30. 帆創建問題