简体   繁体   English

应用程序运行正常,然后突然java.util.MissingResourceException

[英]Application running fine then suddenly java.util.MissingResourceException

Does anyone know of any reason why I might encounter java.util.MissingResourceException on an application which is running fine with no issues and constantly using this resource bundle, then suddenly gets this error. 有谁知道为什么我会在运行正常且没有问题的应用程序中不断遇到java.util.MissingResourceException的任何原因,并不断使用此资源包,然后突然收到此错误。 Simply stopping the app and starting it resolves the error. 只需停止应用程序并启动它即可解决错误。

So I don't believe it's anything to do with application setup or configuration since its working fine and suddenly happens and resolved by simply stop and start. 因此,我认为这与应用程序的设置或配置无关,因为它可以正常工作,突然发生并通过停止和启动来解决。

2016-07-30 17:23:28,343 [TestScheduler_Worker-10]     ERROR (TRIPSPortingTimeUtil.java:63) - Error Loading the file TRIPSB4NConfig.properties
java.util.MissingResourceException: Can't find bundle for base name TRIPSB4NConfig, locale en_GB
        at java.util.ResourceBundle.throwMissingResourceException(ResourceBundle.java:1499)
        at java.util.ResourceBundle.getBundleImpl(ResourceBundle.java:1322)
        at java.util.ResourceBundle.getBundle(ResourceBundle.java:724)

UPDATE One thing i have observed is that this seems to happen just after i see database transaction timeout and the following error 更新我观察到的一件事是,这似乎是在我看到数据库事务超时和以下错误之后发生的

2016-05-26 20:11:25,995 [TestScheduler_Worker-8]     ERROR (SqlHelperBean.java:1829) - Error while getting transaction Id -
weblogic.jdbc.extensions.ConnectionDeadSQLException: weblogic.common.resourcepool.ResourceDeadException: 0:weblogic.common.ResourceException: Could not create pool connection. The DBMS driver exception was: IO Error: The Network Adapter could not establish the connection

is it possible that this could have some knock on effect to my resource bundle? 这可能会对我的资源包产生一些影响吗?

Probably you don't need the resource before the error happens. 可能在发生错误之前不需要资源。 When the application needs it a crash happens. 当应用程序需要它时,会发生崩溃。

Can you check your resources files to check if the resource is present or not? 您可以检查资源文件以检查资源是否存在吗?

TRIPSB4NConfig.properties for language en_GB

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM