Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Log warning "There is not exactly one config for this scheme ({}). Configs are {}.".

Mark Jansen
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
July 8, 2021

Hello,

We have an Jira server app in the marketplace called "edit custom field values". A client of ours gets the following warning "There is not exactly one config for this scheme ({}). Configs are {}." when interacting with our app.

I have since determined that this has to do with calling the following Jira function in the class `FieldConfigSchemeImpl.class`.

@Nullable
public FieldConfig getOneAndOnlyConfig() {
MultiMap configsByConfig = this.getConfigsByConfig();
if (configsByConfig != null) {
if (configsByConfig.size() == 1) {
return (FieldConfig)configsByConfig.keySet().iterator().next();
}

log.warn("There is not exactly one config for this scheme ({}). Configs are {}.", this.id, configsByConfig);
}

return null;
}

Apparently our client has more than one field configuration in a scheme, which causes the function above to return a null value that causes a problem the code of our app.

I have difficulty reproducing the issue our client is experiencing. I'm unable to get more than one field configuration in a scheme.

Does anyone know how I could get this done? Or how to make is so our client doesn't have two configurations for one scheme?

I have already tried to create a field configuration scheme and field configurations in settings > issues.

If there are gaps in the information I provided, let me know and I'll elaborate.

 

Thanks in advance.

2 answers

0 votes
Kris Doizaki
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
September 16, 2015

Yes, I successfully created and tested a Secure Pop server connection. The next step was to add an incoming mail handler, and that's when I get a grayed out screen.

I wanted to reply yesterday, but apparently I'm limited to one question/comment per 24-hour period... sad

0 votes
Timothy
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Champions.
September 15, 2015

Have you added a POP / IMAP server yet?

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events