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
image1
0
21 comments
Please try to save (export) all important workflows, erase the folder '{home_user}/.youtrack4.0' and restart the Workflow Editor.

If it won't help please attach the log file ({home_user}/.youtrack4.0/system/log/idea.log) for investigation.
0
Hi
Still the same message.
I also have this on another pc.

See log attached
idea.zip (4.2KB)
0
Please ensure the latest Workflow Editor.

If it isn't help remove the workflow jetbrains-youtrack-+1Comment from your YouTrack and download custom fields scheme again.
0
I have the latest version from July 25.
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.
0
I created a new Workflow, and it is uploaded to the server, but I can't attach to a project. I choose attach to project, but after I click Ok nothing happens. I attached the Workflow.
Zet Fixed op Te testen .zip (1.5KB)
0
Sorry for long delay,

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.
0
I deleted the workflow onevotecomment and again deleted the .Youtrack folder to start fresh.
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
0
I also created some other threads in the last couple of months to wich I didn't get any feedback.
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
0
May I kindly ask you to attach the log file and reinstall the Workflow Editor?
0
My previous post (the first one on jan 23 already had the log file attached (although it's only visible when I click edit) + describes I restarted everything from fresh. I also did a fresh install after I deleted all workflows from the editor and Youtrack.
I also tried everything on a second pc to be sure.
Logfile: idealog20140123.zip (3KB)
0
Hi Dmitry
Dit you find the time to look at the logfile?
0
Well, it seems logs refers to the problem JT-19057.

Could you please attach all workflows that are in your YouTrack? I'll try to define the problem.
0
As stated in the first post of 23 jan, I deleted all workflows to be sure that wasn't a 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.
0
Could you please attach your database archive here or upload it on our write-only ftp - ftp://ftp.intellij.net/.uploads/ ?
0
Do you mean a backup?
0
The file is uploaded and has CompuFit as prefix
0
Well, I also get NPE error, but I think it's the minor problem JT-19057.

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.
0
Thank you,
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?
0
Yep, it's the problem - workflows won't works.

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'.
0
Hi

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:
image1


Idea.log:
2014-02-05 17:48:33,069 [  10826]   WARN - jetbrains.youtrack.workflow.plugin.WorkflowUtil -  
java.lang.NullPointerException
java.lang.NullPointerException
 at jetbrains.youtrack.workflow.stubCreator.TypeResolver.attachCustomField(TypeResolver.java:188)
 at jetbrains.youtrack.workflow.stubCreator.TypeResolver.parse(TypeResolver.java:64)
 at jetbrains.youtrack.workflow.stubCreator.StubCreator.parseProjects(StubCreator.java:53)
 at jetbrains.youtrack.workflow.stubCreator.StubCreator$2.run(StubCreator.java:134)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess$CommandRunnable$1.run(WorkbenchModelAccess.java:784)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runWriteAction(WorkbenchModelAccess.java:146)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess$CommandRunnable.run(WorkbenchModelAccess.java:780)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:115)
 at com.intellij.openapi.command.impl.CommandProcessorImpl.executeCommand(CommandProcessorImpl.java:91)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runWriteActionInCommand(WorkbenchModelAccess.java:614)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runWriteActionInCommand(WorkbenchModelAccess.java:609)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess.runWriteActionInCommand(WorkbenchModelAccess.java:604)
 at jetbrains.youtrack.workflow.stubCreator.StubCreator.create(StubCreator.java:132)
 at jetbrains.youtrack.workflow.plugin.WorkflowDownloadUtil$2$3.run(WorkflowDownloadUtil.java:97)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess$10.compute(WorkbenchModelAccess.java:398)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess$10.compute(WorkbenchModelAccess.java:393)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess$TryWriteActionComputable$1.compute(WorkbenchModelAccess.java:867)
 at com.intellij.openapi.application.impl.ApplicationImpl$12.run(ApplicationImpl.java:862)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:844)
 at com.intellij.openapi.application.impl.ApplicationImpl.runWriteAction(ApplicationImpl.java:860)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess$TryWriteActionComputable.compute(WorkbenchModelAccess.java:864)
 at jetbrains.mps.ide.smodel.WorkbenchModelAccess.tryWrite(WorkbenchModelAccess.java:413)
 at jetbrains.mps.ide.smodel.EDTExecutor$2.tryRun(EDTExecutor.java:77)
 at jetbrains.mps.ide.smodel.EDTExecutor$Executor.worker(EDTExecutor.java:192)
 at jetbrains.mps.ide.smodel.EDTExecutor$Executor.access$300(EDTExecutor.java:129)
 at jetbrains.mps.ide.smodel.EDTExecutor$Executor$1.run(EDTExecutor.java:135)
 at java.awt.event.InvocationEvent.dispatch(Unknown Source)
 at java.awt.EventQueue.dispatchEvent(Unknown Source)
 at com.intellij.ide.IdeEventQueue.defaultDispatchEvent(IdeEventQueue.java:652)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:505)
 at com.intellij.ide.IdeEventQueue._dispatchEvent(IdeEventQueue.java:404)
 at com.intellij.ide.IdeEventQueue.dispatchEvent(IdeEventQueue.java:368)
 at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
 at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
 at java.awt.EventDispatchThread.run(Unknown Source)
0

Please sign in to leave a comment.