[JIRA] [core] (JENKINS-18687) Intermittent failure whilst recording test results caused by java.util.MissingResourceException

117 views
Skip to first unread message

ogondza@gmail.com (JIRA)

unread,
Jun 22, 2015, 5:18:01 AM6/22/15
to jenkinsc...@googlegroups.com
Oliver Gondža commented on Bug JENKINS-18687
 
Re: Intermittent failure whilst recording test results caused by java.util.MissingResourceException

What Java version was used when this exception was thrown?

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v6.4.2#64017-sha1:e244265)
Atlassian logo

goikhman.yuri@gmail.com (JIRA)

unread,
Jun 22, 2015, 9:10:01 AM6/22/15
to jenkinsc...@googlegroups.com

Oliver Gondža - in my case it was

java version "1.6.0_41"
Java(TM) SE Runtime Environment (build 1.6.0_41-b02)
Java HotSpot(TM) 64-Bit Server VM (build 20.14-b01, mixed mode)

lvotypko@redhat.com (JIRA)

unread,
Feb 5, 2016, 7:30:02 AM2/5/16
to jenkinsc...@googlegroups.com

I did a more investigation - I finally got the problem when it occurs - usually slave was restarted and fine when I received the ticket about this problem.
I even find exact place where it is. To more explanation there is a difference in obtaining property.

for example my code on affected slave:

PropertyResourceBundle.getBundle("com.sun.org.apache.xerces.internal.impl.msg.SAXMessages", Locale.US)

this return right bundle without problems.

but calling (as it is done in by in SAXReader used by this plugin)

SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.SAXMessages", new Locale("en", "US"));

this throws exception MissingResourceException.

It is very strange because SecuritySupport.getResourceBundle() calls the same code (PropertyResourceBundle.getBundle("com.sun.org.apache.xerces.internal.impl.msg.SAXMessages", Locale.US) ) bud under AccessController.doPrivileged():

public static ResourceBundle getResourceBundle(final String bundle, final Locale locale) {
return AccessController.doPrivileged(new PrivilegedAction<ResourceBundle>() {
public ResourceBundle run() {
try

{ return PropertyResourceBundle.getBundle(bundle, locale); }

catch (MissingResourceException e) {
try

{ return PropertyResourceBundle.getBundle(bundle, new Locale("en", "US")); }

catch (MissingResourceException e2)

{ throw new MissingResourceException( "Could not load any resource bundle by " + bundle, bundle, ""); }

}
}
});
}

It seems that there is some difference in execution this code (despite it is the same). I will try to investigate what is different. That could be a way how to realized what is wrong. I think that it maybe will not be problem in plugin itself (bug in jdk or remoting or leaking some classes for master....).
Have any of us idea?

lvotypko@redhat.com (JIRA)

unread,
Feb 5, 2016, 7:32:03 AM2/5/16
to jenkinsc...@googlegroups.com
Lucie Votypkova edited a comment on Bug JENKINS-18687

lvotypko@redhat.com (JIRA)

unread,
Feb 5, 2016, 7:32:03 AM2/5/16
to jenkinsc...@googlegroups.com

lvotypko@redhat.com (JIRA)

unread,
Feb 5, 2016, 7:33:03 AM2/5/16
to jenkinsc...@googlegroups.com

lvotypko@redhat.com (JIRA)

unread,
Feb 5, 2016, 7:33:04 AM2/5/16
to jenkinsc...@googlegroups.com

lvotypko@redhat.com (JIRA)

unread,
Feb 5, 2016, 7:34:02 AM2/5/16
to jenkinsc...@googlegroups.com
Lucie Votypkova edited a comment on Bug JENKINS-18687
I did a more investigation - I finally got the problem when it occurs - usually slave was restarted and fine when I received the ticket about this problem.
I even find exact place where it is. To more explanation there is a difference in obtaining property.  

for example my code on affected slave:

{{PropertyResourceBundle.getBundle("com.sun.org.apache.xerces.internal.impl.msg.SAXMessages", Locale.US)}} 

this return right bundle without problems. 

but calling (as it is done in by in SAXReader used by this plugin) 

{{SecuritySupport.getResourceBundle("com.sun.org.apache.xerces.internal.impl.msg.SAXMessages", new Locale("en", "US"));}}

this throws exception MissingResourceException.

It is very strange because SecuritySupport.getResourceBundle() calls the same code (PropertyResourceBundle.getBundle("com.sun.org.apache.xerces.internal.impl.msg.SAXMessages", Locale.US) ) bud under AccessController.doPrivileged():

{{public static ResourceBundle getResourceBundle(final String bundle, final Locale locale) {}}
{{        return AccessController http://grepcode . doPrivileged(new PrivilegedAction<ResourceBundle>() {}}
            public ResourceBundle run() {
                try {
                    return PropertyResourceBundle
com/file/repository . getBundle(bundle, locale);
                } catch (MissingResourceException e) {
                    try {
                        return PropertyResourceBundle
grepcode . getBundle(bundle, new Locale("en", "US")); com/java/root/jdk/openjdk/8-b132/com/sun/org/apache/xerces/internal/utils/SecuritySupport.java#165
                    } catch (MissingResourceException e2) {
                        throw new MissingResourceException(
                                "Could not load any resource bundle by " + bundle, bundle, "");
                    }
                }
            }
        });
    }

It seems that there is some difference in execution this code (despite it is the same). I will try to investigate what is different. That could be a way how to realized what is wrong. I think that it maybe will not be problem in plugin itself (bug in jdk or remoting or leaking some classes for master....).
Have any of us idea?

saki@chare.eu (JIRA)

unread,
Nov 4, 2016, 8:05:03 PM11/4/16
to jenkinsc...@googlegroups.com
Petr Sakař edited a comment on Bug JENKINS-18687
I was experiences experiencing failure caused by the same message "Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.XMLMessages" when was upgraded java (by yum update) while application server (in my case tomcat) was still running. The restart of server resolved the issue.
This message was sent by Atlassian JIRA (v7.1.7#71011-sha1:2526d7c)
Atlassian logo

saki@chare.eu (JIRA)

unread,
Nov 4, 2016, 8:05:03 PM11/4/16
to jenkinsc...@googlegroups.com

I was experiences failure caused by the same "Could not load any resource bundle by com.sun.org.apache.xerces.internal.impl.msg.XMLMessages" when was upgraded java (by yum update) while application server (in my case tomcat) was still running. The restart of server resolved the issue.

Reply all
Reply to author
Forward
0 new messages