Open GauthierPLM opened 1 year ago
Hi @GauthierPLM , kudos for noticing the availability in EU before we even announced it. And for digging into the logs. Looks like the team knows what is going on and will fix asap. I'll keep you posted.
Thanks @GauthierPLM for raising this concern. That error is a validation but nothing got broken, however we shouldn't log it. I will create a ticket to fix it. Welcome to ACB Europe 💪
I saw a big blue button, I clicked on it! ;)
Quick question: is the maven exception in the DX logs a problem? I am asking this because I initially tried to import a spec from Design Center which uses Exchange dependencies, but none of the dependencies were downloaded in ACB. Hence why I started to investigate.
As I have a meeting with @simoneegeib tomorrow, we can check this and I'll open a ticket if appropriate.
I saw a big blue button, I clicked on it! ;)
Quick question: is the maven exception in the DX logs a problem? I am asking this because I initially tried to import a spec from Design Center which uses Exchange dependencies, but none of the dependencies were downloaded in ACB. Hence why I started to investigate.
As I have a meeting with @simoneegeib tomorrow, we can check this and I'll open a ticket if appropriate.
You should be able to resolve dependencies without issues, if assets are shown in the exchange search it should be successfully resolved in your local repo. Do you have more info about the issue? and I will take a look.
@GauthierPLM if you have the opportunity to face this issue again and the dependencies are not resolved form the import command, once you have the API imported, try to build it manually executing mvn clean install
from the terminal view and share with me the result. Thanks!
Hi @marinarv The issue I have since the beginning is that ACB doesn't seem to have the rights to pull assets from exchange. My account is still properly connected to Anypoint as I could use the Import API from Design Center command.
These are the mvn clean install
logs:
These are the Mule DX logs:
Before opening this issue, I tried with a fresh ACB instance following these steps:
I haven't modified anything in my .m2 settings after connecting to the Anypoint Platform.
As discussed together, it seems the issue comes from the dependencies:
Removing the ruleset is not a problem for us, but removing the fragment breaks the API as it contains the types used by the API. We may have a workaround, which would be publishing all our RAML dev assets to our own Maven repository, but as mentioned, it may be time consuming and inefficient, so we hope ACB can replicate the Design Center behaviour of pulling development assets when referenced by the API.
Hello,
I noticed the following error when opening a new ACB from the EU Cloud:
This happens no matter how many times I reload the IDE. This is my settings.json:
And the Mule DX Runtime logs (also containing an exception):
``` WARNING: sun.reflect.Reflection.getCallerClass is not supported. This will impact performance. 2023-06-06 13:26:25 [main] INFO org.pf4j.DefaultPluginStatusProvider - Enabled plugins: [] 2023-06-06 13:26:25 [main] INFO org.pf4j.DefaultPluginStatusProvider - Disabled plugins: [] 2023-06-06 13:26:25 [main] INFO org.pf4j.DefaultPluginManager - PF4J version 3.7.1 in 'deployment' mode 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Plugin 'mule-dev-core@3.7.3' resolved 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Plugin 'mule-dx-data-weave-component-server@0.3.5' resolved 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Plugin 'mule-dx-apikit-component-server@0.1.3' resolved 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Plugin 'mule-dx-api-server@4.0.0' resolved 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Start plugin 'mule-dev-core@3.7.3' 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Start plugin 'mule-dx-data-weave-component-server@0.3.5' 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Start plugin 'mule-dx-apikit-component-server@0.1.3' 2023-06-06 13:26:26 [main] INFO org.pf4j.AbstractPluginManager - Start plugin 'mule-dx-api-server@4.0.0' WARNING: An illegal reflective access operation has occurred WARNING: Illegal reflective access by com.google.inject.internal.cglib.core.$ReflectUtils$1 (file:/opt/code-server/extensions/mulesoftinc.mule-dx-vscode-4.7.1/libs/mule-dx-platform-3.7.1-all.jar) to method java.lang.ClassLoader.defineClass(java.lang.String,byte[],int,int,java.security.ProtectionDomain) WARNING: Please consider reporting this to the maintainers of com.google.inject.internal.cglib.core.$ReflectUtils$1 WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations WARNING: All illegal access operations will be denied in a future release 2023-06-06 13:26:27 [main] INFO org.mule.dx.platform.MuleDXLauncher - Received log level param: WARN 2023-06-06 13:26:30 [ForkJoinPool.commonPool-worker-3] INFO org.mule.tooling.client.internal.ExtensionModelServiceCache - Initialising Extension Model Service cache 2023-06-06 13:26:30 [ForkJoinPool.commonPool-worker-3] INFO org.mule.tooling.client.internal.ExtensionModelServiceCache - Extension Model Service cache working in memory only 2023-06-06 13:26:30 [ForkJoinPool.commonPool-worker-3] WARN org.mule.runtime.container.internal.ClasspathModuleDiscoverer - Ignoring duplicated module 'mule-metadata-model-persistence' 2023-06-06 13:26:30 [ForkJoinPool.commonPool-worker-3] INFO org.mule.tooling.client.internal.ApplicationCache - Initialising Application cache 2023-06-06 13:26:30 [ForkJoinPool.commonPool-worker-3] INFO org.mule.tooling.client.internal.DomainCache - Initialising Domain cache 2023-06-06 13:26:30 [ForkJoinPool.commonPool-worker-3] INFO org.mule.tooling.client.internal.dsl.DslSyntaxServiceCache - Initialising DSL Syntax cache 2023-06-06 13:26:32 [ForkJoinPool.commonPool-worker-7] ERROR org.mule.dx.platform.region.RegionManager - Trying to update region for an unsupported environment: server-distro 2023-06-06 13:26:33 [ToolingClient-4-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: c1614db0-046d-11ee-a412-02424a8765c8:c1614db0-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... Jun 06, 2023 1:26:34 PM org.mule.weave.lsp.WeaveLanguageServer connect INFO: connect Jun 06, 2023 1:26:35 PM org.mule.weave.lsp.WeaveLanguageServer $anonfun$initialize$1 INFO: Initialize(InitializeParams [ workDoneToken = null processId = 2622 rootPath = null rootUri = null initializationOptions = null capabilities = ClientCapabilities [ workspace = WorkspaceClientCapabilities [ applyEdit = true workspaceEdit = WorkspaceEditCapabilities [ documentChanges = true resourceChanges = null resourceOperations = ArrayList ( "create", "rename", "delete" ) failureHandling = "textOnlyTransactional" normalizesLineEndings = true changeAnnotationSupport = WorkspaceEditChangeAnnotationSupportCapabilities [ groupsOnLabel = true ] ] didChangeConfiguration = DidChangeConfigurationCapabilities [ dynamicRegistration = true ] didChangeWatchedFiles = DidChangeWatchedFilesCapabilities [ dynamicRegistration = true ] symbol = SymbolCapabilities [ symbolKind = SymbolKindCapabilities [ valueSet = ArrayList ( File, Module, Namespace, Package, Class, Method, Property, Field, Constructor, Enum, Interface, Function, Variable, Constant, String, Number, Boolean, Array, Object, Key, Null, EnumMember, Struct, Event, Operator, TypeParameter ) ] tagSupport = SymbolTagSupportCapabilities [ valueSet = ArrayList ( Deprecated ) ] dynamicRegistration = true ] executeCommand = ExecuteCommandCapabilities [ dynamicRegistration = true ] workspaceFolders = true configuration = true semanticTokens = SemanticTokensWorkspaceCapabilities [ refreshSupport = true ] codeLens = CodeLensWorkspaceCapabilities [ refreshSupport = true ] fileOperations = FileOperationsWorkspaceCapabilities [ didCreate = true willCreate = true didRename = true willRename = true didDelete = true willDelete = true dynamicRegistration = true ] ] textDocument = TextDocumentClientCapabilities [ synchronization = SynchronizationCapabilities [ willSave = true willSaveWaitUntil = true didSave = true dynamicRegistration = true ] completion = CompletionCapabilities [ completionItem = CompletionItemCapabilities [ snippetSupport = true commitCharactersSupport = true documentationFormat = ArrayList ( "markdown", "plaintext" ) deprecatedSupport = true preselectSupport = true tagSupport = CompletionItemTagSupportCapabilities [ valueSet = ArrayList ( Deprecated ) ] insertReplaceSupport = true resolveSupport = CompletionItemResolveSupportCapabilities [ properties = ArrayList ( "documentation", "detail", "additionalTextEdits" ) ] insertTextModeSupport = CompletionItemInsertTextModeSupportCapabilities [ valueSet = ArrayList ( AsIs, AdjustIndentation ) ] ] completionItemKind = CompletionItemKindCapabilities [ valueSet = ArrayList ( Text, Method, Function, Constructor, Field, Variable, Class, Interface, Module, Property, Unit, Value, Enum, Keyword, Snippet, Color, File, Reference, Folder, EnumMember, Constant, Struct, Event, Operator, TypeParameter ) ] contextSupport = true dynamicRegistration = true ] hover = HoverCapabilities [ contentFormat = ArrayList ( "markdown", "plaintext" ) dynamicRegistration = true ] signatureHelp = SignatureHelpCapabilities [ signatureInformation = SignatureInformationCapabilities [ documentationFormat = ArrayList ( "markdown", "plaintext" ) parameterInformation = ParameterInformationCapabilities [ labelOffsetSupport = true ] activeParameterSupport = true ] contextSupport = true dynamicRegistration = true ] references = ReferencesCapabilities [ dynamicRegistration = true ] documentHighlight = DocumentHighlightCapabilities [ dynamicRegistration = true ] documentSymbol = DocumentSymbolCapabilities [ symbolKind = SymbolKindCapabilities [ valueSet = ArrayList ( File, Module, Namespace, Package, Class, Method, Property, Field, Constructor, Enum, Interface, Function, Variable, Constant, String, Number, Boolean, Array, Object, Key, Null, EnumMember, Struct, Event, Operator, TypeParameter ) ] hierarchicalDocumentSymbolSupport = true tagSupport = SymbolTagSupportCapabilities [ valueSet = ArrayList ( Deprecated ) ] labelSupport = true dynamicRegistration = true ] formatting = FormattingCapabilities [ dynamicRegistration = true ] rangeFormatting = RangeFormattingCapabilities [ dynamicRegistration = true ] onTypeFormatting = OnTypeFormattingCapabilities [ dynamicRegistration = true ] declaration = DeclarationCapabilities [ linkSupport = true dynamicRegistration = true ] definition = DefinitionCapabilities [ linkSupport = true dynamicRegistration = true ] typeDefinition = TypeDefinitionCapabilities [ linkSupport = true dynamicRegistration = true ] implementation = ImplementationCapabilities [ linkSupport = true dynamicRegistration = true ] codeAction = CodeActionCapabilities [ codeActionLiteralSupport = CodeActionLiteralSupportCapabilities [ codeActionKind = CodeActionKindCapabilities [ valueSet = ArrayList ( "", "quickfix", "refactor", "refactor.extract", "refactor.inline", "refactor.rewrite", "source", "source.organizeImports" ) ] ] isPreferredSupport = true disabledSupport = true dataSupport = true resolveSupport = CodeActionResolveSupportCapabilities [ properties = ArrayList ( "edit" ) ] honorsChangeAnnotations = false dynamicRegistration = true ] codeLens = CodeLensCapabilities [ dynamicRegistration = true ] documentLink = DocumentLinkCapabilities [ tooltipSupport = true dynamicRegistration = true ] colorProvider = ColorProviderCapabilities [ dynamicRegistration = true ] rename = RenameCapabilities [ prepareSupport = true prepareSupportDefaultBehavior = Identifier honorsChangeAnnotations = true dynamicRegistration = true ] publishDiagnostics = PublishDiagnosticsCapabilities [ relatedInformation = true tagSupport = Either [ left = null right = DiagnosticsTagSupport [ valueSet = ArrayList ( Unnecessary, Deprecated ) ] ] versionSupport = false codeDescriptionSupport = true dataSupport = true ] foldingRange = FoldingRangeCapabilities [ rangeLimit = 5000 lineFoldingOnly = true dynamicRegistration = true ] typeHierarchyCapabilities = null callHierarchy = CallHierarchyCapabilities [ dynamicRegistration = true ] selectionRange = SelectionRangeCapabilities [ dynamicRegistration = true ] semanticTokens = SemanticTokensCapabilities [ requests = SemanticTokensClientCapabilitiesRequests [ range = Either [ left = true right = null ] full = Either [ left = null right = SemanticTokensClientCapabilitiesRequestsFull [ delta = true ] ] ] tokenTypes = ArrayList ( "namespace", "type", "class", "enum", "interface", "struct", "typeParameter", "parameter", "variable", "property", "enumMember", "event", "function", "method", "macro", "keyword", "modifier", "comment", "string", "number", "regexp", "operator" ) tokenModifiers = ArrayList ( "declaration", "definition", "readonly", "static", "deprecated", "abstract", "async", "modification", "documentation", "defaultLibrary" ) formats = ArrayList ( "relative" ) overlappingTokenSupport = false multilineTokenSupport = false dynamicRegistration = true ] moniker = null linkedEditingRange = LinkedEditingRangeCapabilities [ dynamicRegistration = true ] ] window = WindowClientCapabilities [ workDoneProgress = true showMessage = WindowShowMessageRequestCapabilities [ messageActionItem = WindowShowMessageRequestActionItemCapabilities [ additionalPropertiesSupport = true ] ] showDocument = ShowDocumentCapabilities [ support = true ] ] general = GeneralClientCapabilities [ regularExpressions = RegularExpressionsCapabilities [ engine = "ECMAScript" version = "ES2020" ] markdown = MarkdownCapabilities [ parser = "marked" version = "1.1.0" ] ] experimental = null ] clientName = null clientInfo = ClientInfo [ name = "code-server" version = "1.76.1" ] locale = "en" trace = "off" workspaceFolders = null ]) Jun 06, 2023 1:26:36 PM org.mule.weave.lsp.WeaveLanguageServer getWorkspaceService INFO: getWorkspaceService Jun 06, 2023 1:26:36 PM org.mule.weave.lsp.services.DataWeaveWorkspaceService didChangeConfiguration INFO: didChangeConfiguration: {} Exception in thread "dw-lang-server-language-0" java.lang.NoClassDefFoundError: org/jboss/shrinkwrap/resolver/api/maven/Maven at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.$anonfun$resolveDependency$1(SimpleProjectKind.scala:133) at org.mule.weave.lsp.utils.JavaLoggerForwarder$.interceptLog(JavaLoggerForwarder.scala:41) at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.resolveDependency(SimpleProjectKind.scala:132) at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.$anonfun$loadNewArtifacts$1(SimpleProjectKind.scala:127) at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.$anonfun$loadNewArtifacts$1$adapted(SimpleProjectKind.scala:126) at scala.collection.immutable.List.flatMap(List.scala:366) at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.loadNewArtifacts(SimpleProjectKind.scala:126) at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.reloadDependencies(SimpleProjectKind.scala:120) at org.mule.weave.lsp.project.impl.simple.SimpleDependencyManager.start(SimpleProjectKind.scala:114) at org.mule.weave.lsp.WeaveLanguageServer.$anonfun$initialized$1(WeaveLanguageServer.scala:232) at org.mule.weave.lsp.jobs.JobManagerService$$anon$3.doTheJob(JobManagerService.scala:100) at org.mule.weave.lsp.jobs.Job.run(JobManagerService.scala:122) at org.mule.weave.lsp.jobs.JobManagerService.execute(JobManagerService.scala:43) at org.mule.weave.lsp.jobs.JobManagerService$$anon$1.run(JobManagerService.scala:23) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628) at java.base/java.lang.Thread.run(Thread.java:829) Caused by: java.lang.ClassNotFoundException: org.jboss.shrinkwrap.resolver.api.maven.Maven at org.pf4j.PluginClassLoader.loadClass(PluginClassLoader.java:144) ... 17 more DEBUG ResolutionTaskManager:Processing request changeState: PROCESSING_PROJECT DEBUG ResolutionTaskManager:Processing request changeState: IDLE DEBUG WorkspaceList:buildWorkspaceAt created default WorkspaceContentManager DEBUG ParserStagingArea:enqueue enqueueing [CHANGE_CONFIG - ] DEBUG WorkspaceContentManager:Processing request changeState: PROCESSING_PROJECT DEBUG WorkspaceContentManager:processTask Tree unit: DEBUG LanguageServerImpl:logParams trace: off DEBUG LanguageServerImpl:logParams rootUri: None DEBUG LanguageServerImpl:logParams rootPath: None DEBUG LanguageServerImpl:logParams workspaceFolders: List() DEBUG LanguageServerImpl:logParams configuration: AlsConfiguration(Map(),BOTH,false) DEBUG LanguageServerImpl:logParams capabilities: AlsClientCapabilities(Some(WorkspaceClientCapabilities(Some(true),Some(WorkspaceEditClientCapabilities(Some(true))),Some(DidChangeConfigurationClientCapabilities(Some(true))),Some(DidChangeWatchedFilesClientCapabilities(Some(true))),Some(WorkspaceSymbolClientCapabilities(Some(true))),Some(ExecuteCommandClientCapabilities(Some(true))))),Some(TextDocumentClientCapabilities(Some(Synchro DEBUG LanguageServerImpl:logParams hotReload: Some(false) DEBUG TextDocumentManager:applyConfig Config applied DEBUG CodeActionManager:applyConfig actions to be used: Extract to Declaration Extract to Declaration Extract to Fragment Extract to Fragment Delete declaration (Cascade) Extract to Library Convert to Json schema Convert to RAML Type Extract resource type Extract trait Synthesize vocabulary for missing terms Convert external vocabulary to a local one DEBUG CodeActionManager:applyConfig supports documentChanges: true DEBUG SerializationManager:applyConfig Serialization manager enabled: true DEBUG CustomValidationManager:applyConfig Custom validation manager enabled? false 2023-06-06 13:26:38 [ToolingClient-4-1146821751] WARN org.mule.runtime.extension.internal.loader.enricher.ConfigRefDeclarationEnricher - Component 'console' in extension 'APIKit' already has a 'config-ref' parameter defined. Skipping ConfigRefDeclarationEnricher for it. 2023-06-06 13:26:38 [ToolingClient-4-1146821751] WARN org.mule.runtime.extension.internal.loader.enricher.ConfigRefDeclarationEnricher - Component 'router' in extension 'APIKit' already has a 'config-ref' parameter defined. Skipping ConfigRefDeclarationEnricher for it. DEBUG WorkspaceList:changeWorkspace Changing workspaces, added: List(), deleted: List() DEBUG WorkspaceList:buildWorkspaceAt created default WorkspaceContentManager DEBUG ParserStagingArea:enqueue enqueueing [CHANGE_CONFIG - ] DEBUG WorkspaceContentManager:Processing request changeState: PROCESSING_PROJECT DEBUG WorkspaceContentManager:processTask Tree unit: DEBUG LanguageServerImpl:initialize Server initialized DEBUG WorkspaceContentManager:processTask units for main file: [no main file] DEBUG WorkspaceContentManager:processTask units for main file: [no main file] DEBUG WorkspaceContentManager:Processing request changeState: PROCESSING_PROJECT DEBUG WorkspaceContentManager:processChangeConfigChanges Processing Config Changes DEBUG WorkspaceContentManager:Processing request changeState: PROCESSING_PROJECT DEBUG WorkspaceContentManager:processChangeConfigChanges Processing Config Changes DEBUG WorkspaceContentManager:Processing request next DEBUG WorkspaceContentManager:Processing request changeState: IDLE DEBUG WorkspaceContentManager:init Finished initialization for workspace at '' DEBUG WorkspaceContentManager:Processing request next DEBUG WorkspaceContentManager:Processing request changeState: IDLE DEBUG WorkspaceContentManager:init Finished initialization for workspace at '' 2023-06-06 13:26:39 [ToolingClient-3-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: c4c671b0-046d-11ee-a412-02424a8765c8:c4c671b0-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... 2023-06-06 13:26:41 [ToolingClient-1-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: c5b98440-046d-11ee-a412-02424a8765c8:c5b98440-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... 2023-06-06 13:26:41 [ToolingClient-2-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: c60162b0-046d-11ee-a412-02424a8765c8:c60162b0-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... 2023-06-06 13:26:47 [ToolingClient-4-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: c96acc70-046d-11ee-a412-02424a8765c8:c96acc70-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... 2023-06-06 13:26:48 [ToolingClient-3-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: c9e1d130-046d-11ee-a412-02424a8765c8:c9e1d130-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... 2023-06-06 13:26:49 [ToolingClient-1-1146821751] INFO org.mule.maven.client.internal.AetherMavenClient - About to fetch required dependencies for artifact: caf95bb0-046d-11ee-a412-02424a8765c8:caf95bb0-046d-11ee-a412-02424a8765c8:pom:4.4.0-20230417. This may take a while... Jun 06, 2023 1:28:45 PM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify INFO: Unsupported notification method: $/setTrace Jun 06, 2023 1:28:45 PM org.eclipse.lsp4j.jsonrpc.services.GenericEndpoint notify INFO: Unsupported notification method: $/setTrace ```