Can't download custom fields schema - java.lang.NullpointerException
Hi
Since a couple of months I get the message "Can't download custom fields schema - java.lang.NullpointerException" when downloading the workflows from the server.
The workflows I use work fine.
Now there's a workflow I have to modify, but I see a lot of errors (reference xxx(fieldDeclaration) is out of search scope).
I just created this workflow a couple of weeks ago and it works fine, but today it's full of errors (see screenshot). I can't modify it (maybe I can, but I don't get the required fields in the intellisense).
What could be the problem here?
See screenshot
Since a couple of months I get the message "Can't download custom fields schema - java.lang.NullpointerException" when downloading the workflows from the server.
The workflows I use work fine.
Now there's a workflow I have to modify, but I see a lot of errors (reference xxx(fieldDeclaration) is out of search scope).
I just created this workflow a couple of weeks ago and it works fine, but today it's full of errors (see screenshot). I can't modify it (maybe I can, but I don't get the required fields in the intellisense).
What could be the problem here?
See screenshot
Please sign in to leave a comment.
If it won't help please attach the log file ({home_user}/.youtrack4.0/system/log/idea.log) for investigation.
Still the same message.
I also have this on another pc.
See log attached
idea.zip (4.2KB)
If it isn't help remove the workflow jetbrains-youtrack-+1Comment from your YouTrack and download custom fields scheme again.
I saw there was also another workflow with errors in the log, so I also deleted this one and all other workflows I don't use.
Then deleted the youtrack folder again. I still get the error "Can't download custom fields schema".
See log attached
idea.zip (3.1KB)
PS. I also saw a workflow that only existed in Youtrack (cloneissue) but didn't exist in the workflow editor. To be sure I also deleted this one.
Zet Fixed op Te testen .zip (1.5KB)
logs says that the problem is in the 'jetbrains-youtrack-oneVoteComment' workflow.
The attached workflow 'Zet Fixed op Te testen.zip' is correct, I've successfully imported it into my Workflow Editor.
This didn't help.
So now I deleted all workflows. Then connected with a fresh Workflow editor so the lists of workflows in Youtrack and the workflow editor are empty.
I still get an error. The log shows 1 error on starting up, and one when downloading from the server.
See log attached
Workflow editor: 5.0 build 60.6166 - 25 juli 2013
JDK 1.6_017
Is it better to post them in youtrack.jetbrains.com?
http://forum.jetbrains.com/thread/YouTrack-1274
http://forum.jetbrains.com/thread/YouTrack-1324
http://forum.jetbrains.com/thread/YouTrack-1386
I also tried everything on a second pc to be sure.
Logfile: idealog20140123.zip (3KB)
Dit you find the time to look at the logfile?
Could you please attach all workflows that are in your YouTrack? I'll try to define the problem.
So today I have an empty list of workflows in the editor as well as in Youtrack.
If you want I can pm you the details to connect to our Youtrack installation.
So lets start from the beginning - you may get the errors shown on the your first screenshot:
- if the workflow uses fields whose aren't attached to the project this workflow is attached to
- workflow isn't attached to the project
- project fields have incompatible types, e.g. the Workflow Editor expects the 'Assignee' field of type 'user[1]' but the field 'Assignee' has type 'user[*]' in the YouTrack.
Please check it.
I do indeed have the assignee field setup as user[*], because we have issues that are assigned to multiple users.
Is that a problem? Is there a best practrice?
If we leave it like this and ignore the error in the editor would this be a problem in the future?
If you do need multiple 'Assignee' you can either recomplete (Ctrl+Space) all 'Assignee' entries in all workflows and reupload workflows or rename 'Assignee' to 'Assignees' in UI and replace (by Ctrl+Space as well) all 'Assignee' entries in all workflows to 'Assignees'.
Probably the second variant more preferable because it may help to avoid possible confusion of single-value 'Assignee' and mutli-value 'Assignee'.
I changed the assignee back to user[1] and still got the error.
I then deleted all workflows again to be sure there's no workflow causing the error & deleted the .youtrack folder of the workflow editor.
After that I still get the error.
See screenshot for my custom fields configuration:
Idea.log:
2014-02-05 17:48:33,069 [ 10826] WARN - jetbrains.youtrack.workflow.plugin.WorkflowUtil -