Why does my Studio complain about BonitaScriptContext.groovy file?

Hi,

In my Studio 2021.1 log file (STUDIO_HOME/workspace/.metadata/.log), I can see multiple error messages referencing a file named BonitaScriptContext.groovy:

  • Message type #1:
    !ENTRY org.eclipse.jdt.groovy.core 4 0 2021-02-11 07:36:49.615
    !MESSAGE Groovy-Eclipse Type Inferencing: Error visiting types for BonitaScriptContext.groovy
    !STACK 0
    java.util.ConcurrentModificationException
        at java.util.LinkedList$ListItr.checkForComodification(Unknown Source)
        at java.util.LinkedList$ListItr.next(Unknown Source)
        at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitJDT(TypeInferencingVisitorWithRequestor.java:328)
        at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitCompilationUnit(TypeInferencingVisitorWithRequestor.java:256)
        at org.codehaus.groovy.eclipse.editor.highlighting.GatherSemanticReferences.findSemanticHighlightingReferences(GatherSemanticReferences.java:43)
        at org.codehaus.groovy.eclipse.editor.highlighting.GroovySemanticReconciler.reconciled(GroovySemanticReconciler.java:288)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.reconciled(CompilationUnitEditor.java:1691)
        at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconciled(JavaReconcilingStrategy.java:222)
        at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconciled(JavaCompositeReconcilingStrategy.java:167)
        at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:115)
        at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
        at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)


     
  • Message type #2:
    !ENTRY org.eclipse.jdt.groovy.core 4 0 2021-02-11 07:37:18.660
    !MESSAGE Groovy-Eclipse Type Inferencing: Error visiting types for BonitaScriptContext.groovy
    !STACK 1
    Java Model Exception: Java Model Status [BonitaScriptContext.groovy [in <default> [in src-providedGroovy [in MyPersonalProject]]] n’existe pas]
        at org.eclipse.jdt.internal.core.JavaElement.newJavaModelException(JavaElement.java:585)
        at org.eclipse.jdt.internal.core.Openable.generateInfos(Openable.java:256)
        at org.eclipse.jdt.internal.core.JavaElement.openWhenClosed(JavaElement.java:598)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:325)
        at org.eclipse.jdt.internal.core.JavaElement.getElementInfo(JavaElement.java:311)
        at org.eclipse.jdt.internal.core.JavaElement.getChildren(JavaElement.java:266)
        at org.eclipse.jdt.internal.core.JavaElement.getChildrenOfType(JavaElement.java:280)
        at org.eclipse.jdt.internal.core.CompilationUnit.getTypes(CompilationUnit.java:973)
        at org.eclipse.jdt.groovy.search.TypeInferencingVisitorWithRequestor.visitCompilationUnit(TypeInferencingVisitorWithRequestor.java:255)
        at org.codehaus.groovy.eclipse.editor.highlighting.GatherSemanticReferences.findSemanticHighlightingReferences(GatherSemanticReferences.java:43)
        at org.codehaus.groovy.eclipse.editor.highlighting.GroovySemanticReconciler.reconciled(GroovySemanticReconciler.java:288)
        at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitEditor.reconciled(CompilationUnitEditor.java:1691)
        at org.eclipse.jdt.internal.ui.text.java.JavaReconcilingStrategy.reconciled(JavaReconcilingStrategy.java:222)
        at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconciled(JavaCompositeReconcilingStrategy.java:167)
        at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.reconcile(JavaCompositeReconcilingStrategy.java:115)
        at org.eclipse.jface.text.reconciler.MonoReconciler.process(MonoReconciler.java:76)
        at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:210)
    !SUBENTRY 1 org.eclipse.jdt.core 4 969 2021-02-11 07:37:18.661
    !MESSAGE BonitaScriptContext.groovy [in <default> [in src-providedGroovy [in MyPersonalProject]]] n’existe pas

     

 

  1. What is this BonitaScriptContext.groovy file?
  2. What do these errors means? Do I need to worry?
  3. Why is my Studio not finding it?

 

Thank you for your help.

    Unai

1 Like

Hi @unai.gaston.caminos

Don't worry about this file!

This file specified for current Script you try to work, for example in Operation in editor you want to edit script, Studio Try to Save Script by that file and random extension code.

And When happened ?! When you try to Use CTRL+S Keyboard hotkey in that script editor , Studio think you need to save script externally to new file and try to create this file for you !! wink

 

Best regards,

Ali

Yes, this file is a temporary file used by the groovy script editor.
The logs are harmless, but I will check if it is possible to get rid of them by aborting the compilation background job before deleting the temp file.

Thank you both, Ali and Romain!

Regards,

   Unai