Code Intelligence can not resolve maven dependencies

Hi, expert,

when I enabled "code intelligence" on my project in upsource(run on PC), it always showed me the error tip “Analysis complete: errors found” in the top right corner, and the problem like this

https://upsource-support.jetbrains.com/hc/en-us/community/posts/115000013924-Problems-with-Code-Intelligence-and-resolving-dependencies?input_string=Code%20Intelligence 

 

the settings are as below,

the content of "maven settings" was pasted from setting.xml, and it worked fine on idea in my PC, and the project works fine in Idea

 

From the log file <Upsource_home_dir>/logs/upsource-frontend/error.log&warn.log, I have found the errors as below,

1. Project '$' not found

the error log:

[2018-02-23 11:16:59,823] ERROR PsiIndexerQueue #1 xxx-130DEV pl.lang.LanguagePsiServiceBase - Error processing reference '<artifactId>xsqlbuilder</artifactId>' in file /myprojectDEV{f0750ffb94b1624cb19c36bbeaff3a323bf26349}/mp-app/pom.xml 
java.util.concurrent.CompletionException: com.jetbrains.upsource.backend.server.core.db.ProjectNotFoundException: Project '$' not found
at java.util.concurrent.CompletableFuture.reportJoin(CompletableFuture.java:375)
at java.util.concurrent.CompletableFuture.join(CompletableFuture.java:1934)
at com.jetbrains.upsource.psi.impl.PsiProject$projectConfiguration$2.invoke(PsiProject.kt:27)
at com.jetbrains.upsource.psi.impl.PsiProject$projectConfiguration$2.invoke(PsiProject.kt:22)
at com.jetbrains.upsource.psi.impl.PsiProject$ResettableLazy.getValue(PsiProject.kt:100)
at com.jetbrains.upsource.psi.impl.PsiProject.getProjectConfiguration(PsiProject.kt)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$getSettingsHash$1.apply(PsiServicesFactory.kt:317)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$getSettingsHash$1.apply(PsiServicesFactory.kt:40)
at java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1660)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory.c(PsiServicesFactory.kt:317)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory.a(PsiServicesFactory.kt:257)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory.access$lockService(PsiServicesFactory.kt:40)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1$1.invoke(PsiServicesFactory.kt:77)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1$1.invoke(PsiServicesFactory.kt:40)
at com.jetbrains.upsource.psi.impl.PsiProjectHolder.with(PsiProjectHolder.kt:27)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1.execute(PsiServicesFactory.kt:76)
at com.jetbrains.upsource.lifetimes.Lifetime.a(Lifetime.java:102)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:115)
at com.jetbrains.upsource.lifetimes.Lifetime.runSync(Lifetime.java:102)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory.with(PsiServicesFactory.kt:75)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceFileSystem$getFile$1.invoke(UpsourceFileSystem.kt:54)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceFileSystem$getFile$1.invoke(UpsourceFileSystem.kt:20)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceFileSystem$Companion$memoize$1.invoke(UpsourceFileSystem.kt:90)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceVirtualFile.getFileTree(UpsourceVirtualFile.kt:51)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceVirtualFile.findChild(UpsourceVirtualFile.kt:92)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceVirtualFile.findChild(UpsourceVirtualFile.kt:22)
at com.intellij.openapi.vfs.VirtualFile.findFileByRelativePath(VirtualFile.java:378)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceFileSystem.findFileByLocalPath(UpsourceFileSystem.kt:80)
at com.jetbrains.upsource.psi.impl.intellij.fileSystem.UpsourceFileSystem.findFileByPath(UpsourceFileSystem.kt:31)
at org.jetbrains.idea.maven.dom.converters.MavenDependencySystemPathConverter.fromString(MavenDependencySystemPathConverter.java:38)
at org.jetbrains.idea.maven.dom.converters.MavenDependencySystemPathConverter.fromString(MavenDependencySystemPathConverter.java:34)
at com.intellij.util.xml.impl.GetInvocation.a(GetInvocation.java:99)
at com.intellij.util.xml.impl.GetInvocation.a(GetInvocation.java:74)
at com.intellij.util.xml.impl.GetInvocation.invoke(GetInvocation.java:62)
at com.intellij.util.xml.impl.DomInvocationHandler.invoke(DomInvocationHandler.java:681)
at com.intellij.util.xml.GenericDomValue$$EnhancerByJetBrainsMainCglib$$2e754a1e.getValue(<generated>)
at org.jetbrains.idea.maven.dom.converters.MavenArtifactCoordinatesConverter$DependencyStrategy.resolveBySpecifiedPath(MavenArtifactCoordinatesConverter.java:312)
at org.jetbrains.idea.maven.dom.converters.MavenArtifactCoordinatesConverter$ConverterStrategy.isValid(MavenArtifactCoordinatesConverter.java:184)
at org.jetbrains.idea.maven.dom.converters.MavenArtifactCoordinatesConverter.fromString(MavenArtifactCoordinatesConverter.java:58)
at org.jetbrains.idea.maven.dom.converters.MavenArtifactCoordinatesConverter.fromString(MavenArtifactCoordinatesConverter.java:51)
at com.intellij.util.xml.impl.GetInvocation.a(GetInvocation.java:99)
at com.intellij.util.xml.impl.GetInvocation.a(GetInvocation.java:74)
at com.intellij.util.xml.impl.GetInvocation.invoke(GetInvocation.java:62)
at com.intellij.util.xml.impl.DomInvocationHandler.invoke(DomInvocationHandler.java:681)
at com.intellij.util.xml.GenericDomValue$$EnhancerByJetBrainsMainCglib$$2e754a1e.getValue(<generated>)
at com.intellij.util.xml.impl.GenericDomValueReference.resolve(GenericDomValueReference.java:140)
at com.jetbrains.upsource.psi.impl.lang.LanguagePsiServiceBase.getReferences(LanguagePsiServiceBase.java:91)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1$build$1$1.a(FilePsiServices.kt:353)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1$build$1$1.visitElement(FilePsiServices.kt:328)
at com.intellij.psi.impl.source.xml.XmlTagImpl.accept(XmlTagImpl.java:1040)
at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:70)
at com.intellij.psi.PsiWalkingState.visit(PsiWalkingState.java:27)
at com.intellij.util.WalkingState.walkChildren(WalkingState.java:65)
at com.intellij.util.WalkingState.elementStarted(WalkingState.java:52)
at com.intellij.psi.PsiWalkingState.elementStarted(PsiWalkingState.java:79)
at com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitElement(PsiRecursiveElementWalkingVisitor.java:48)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1$build$1$1.visitElement(FilePsiServices.kt:329)
at com.intellij.psi.PsiElementVisitor.visitFile(PsiElementVisitor.java:34)
at com.intellij.psi.PsiRecursiveElementWalkingVisitor.visitFile(PsiRecursiveElementWalkingVisitor.java:70)
at com.intellij.psi.impl.source.xml.XmlFileImpl.accept(XmlFileImpl.java:74)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1$build$1.compute(FilePsiServices.kt:319)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1$build$1.compute(FilePsiServices.kt:298)
at com.jetbrains.upsource.psi.impl.intellij.UpsourceApplication.a(UpsourceApplication.java:99)
at __. read_lock_myprojectDEV_f0750ffb94b1624cb19c36bbeaff3a323bf26349 .__.execute(JavaGeneratorTemplate.java:51)
at com.jetbrains.upsource.psi.impl.intellij.UpsourceLocksManager.runAction(UpsourceLocksManager.java:308)
at com.jetbrains.upsource.psi.impl.intellij.UpsourceLocksManager.runAction(UpsourceLocksManager.java:279)
at com.jetbrains.upsource.psi.impl.intellij.UpsourceApplication.runReadAction(UpsourceApplication.java:97)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1.build(FilePsiServices.kt:317)
at com.jetbrains.upsource.psi.impl.FilePsiServices$getReferencesMarkup$1.build(FilePsiServices.kt:298)
at com.jetbrains.upsource.psi.impl.FilePsiServices$withCache$markup$1.invoke(FilePsiServices.kt:514)
at com.jetbrains.upsource.psi.impl.RevisionPsiServices.withProjectContext(RevisionPsiServices.kt:295)
at com.jetbrains.upsource.psi.impl.FilePsiServices.a(FilePsiServices.kt:512)
at com.jetbrains.upsource.psi.impl.FilePsiServices.getReferencesMarkup(FilePsiServices.kt:298)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue$preComputePsi$1$1.execute(PsiIndexerQueue.kt:209)
at com.jetbrains.upsource.lifetimes.Lifetime.a(Lifetime.java:123)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:115)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:123)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue$preComputePsi$1.run(PsiIndexerQueue.kt:198)
at __. project_xxx-130DEV .__.run(JavaGeneratorTemplate.java:43)
at com.jetbrains.upsource.common.NamedFrameUtil.withProject(NamedFrameUtil.java:21)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue.a(PsiIndexerQueue.kt:197)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue.access$preComputePsi(PsiIndexerQueue.kt:28)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue$PreComputePsiTask$doIndex$1.invoke(PsiIndexerQueue.kt:255)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue$PreComputePsiTask$doIndex$1.invoke(PsiIndexerQueue.kt:254)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1$1$$special$$inlined$resource$lambda$1$1.invoke(PsiServicesFactory.kt:82)
at com.jetbrains.upsource.psi.impl.RevisionPsiServices.withProjectContext(RevisionPsiServices.kt:295)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1$1$$special$$inlined$resource$lambda$1.execute(PsiServicesFactory.kt:81)
at com.jetbrains.upsource.lifetimes.Lifetime.a(Lifetime.java:102)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:115)
at com.jetbrains.upsource.lifetimes.Lifetime.runSync(Lifetime.java:102)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1$1.invoke(PsiServicesFactory.kt:80)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1$1.invoke(PsiServicesFactory.kt:40)
at com.jetbrains.upsource.psi.impl.PsiProjectHolder.with(PsiProjectHolder.kt:27)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory$with$1.execute(PsiServicesFactory.kt:76)
at com.jetbrains.upsource.lifetimes.Lifetime.a(Lifetime.java:102)
at com.jetbrains.upsource.lifetimes.Lifetime.nested(Lifetime.java:115)
at com.jetbrains.upsource.lifetimes.Lifetime.runSync(Lifetime.java:102)
at com.jetbrains.upsource.psi.impl.PsiServicesFactory.with(PsiServicesFactory.kt:75)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue$PreComputePsiTask.doIndex(PsiIndexerQueue.kt:255)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue.a(PsiIndexerQueue.kt:151)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue.access$loop(PsiIndexerQueue.kt:28)
at com.jetbrains.upsource.psi.impl.PsiIndexerQueue$thread$1.run(PsiIndexerQueue.kt:42)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.jetbrains.upsource.backend.server.core.db.ProjectNotFoundException: Project '$' not found
at com.jetbrains.upsource.backend.server.core.db.SystemDatabase.getProjectRecord(SystemDatabase.java:244)
at com.jetbrains.upsource.backend.server.core.db.ProjectHolder.lock(ProjectHolder.kt:112)
at com.jetbrains.upsource.psi.broker.DatabaseServiceRPCFactory$getGetProjectConfigurationCommand$1.execute(DatabaseServiceRPCFactory.kt:125)
at com.jetbrains.upsource.psi.broker.DatabaseServiceRPCFactory$getGetProjectConfigurationCommand$1.execute(DatabaseServiceRPCFactory.kt:20)
at com.jetbrains.upsource.psi.broker.DatabaseTaskRunnable.run(DatabaseTaskRunnable.java:32)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:111)
at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:58)
at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:75)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
... 1 more

the dependency "xsqlbuilder"  in pom.xml like the below code, and the jar file "lib/xsqlbuilder.jar" had already uploaded to the server.

<dependency>
<groupId>org.xsql</groupId>
<artifactId>xsqlbuilder</artifactId>
<version>1.0</version>
<scope>system</scope>
<systemPath>${basedir}/lib/xsqlbuilder.jar</systemPath>
</dependency>

 

2. File content too big to index

[2018-02-24 15:07:02,122] WARN 15b79ef63b72a4b8e}-1 myprojectDEV l.indexing.ProjectFilesIndexer - File content too big to index: jar://D:/develop/upsource-2017.3.2593/data/upsource-frontend/maven-cache/com/google/gwt/gwt-user/2.5.1/gwt-user-2.5.1.jar!/com/google/gwt/user/User.gwtar 
com.intellij.openapi.util.io.FileTooBigException: D:\develop\upsource-2017.3.2593\data\upsource-frontend\maven-cache\com\google\gwt\gwt-user\2.5.1\gwt-user-2.5.1.jar!/com/google/gwt/user/User.gwtar
at com.intellij.openapi.vfs.impl.ZipHandlerBase.contentsToByteArray(ZipHandlerBase.java:135)
at com.intellij.openapi.vfs.newvfs.ArchiveFileSystem.contentsToByteArray(ArchiveFileSystem.java:211)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFSImpl.contentsToByteArray(PersistentFSImpl.java:509)
at com.jetbrains.upsource.psi.impl.intellij.UpsourceManagingFS.contentsToByteArray(UpsourceManagingFS.java:99)
at com.jetbrains.upsource.psi.impl.indexing.ProjectFilesIndexer$1.a(ProjectFilesIndexer.java:327)
at com.jetbrains.upsource.psi.impl.intellij.UpsourceIndexUtil.projectAwareContent(UpsourceIndexUtil.java:236)
at com.jetbrains.upsource.psi.impl.indexing.ProjectFilesIndexer$1.visitFile(ProjectFilesIndexer.java:324)
at com.intellij.openapi.vfs.VirtualFileVisitor.visitFileEx(VirtualFileVisitor.java:132)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:272)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
at com.intellij.openapi.vfs.VfsUtilCore.visitChildrenRecursively(VfsUtilCore.java:304)
at com.jetbrains.upsource.psi.impl.indexing.ProjectFilesIndexer.b(ProjectFilesIndexer.java:315)
at com.jetbrains.upsource.psi.impl.indexing.ProjectFilesIndexer.c(ProjectFilesIndexer.java:303)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at com.jetbrains.upsource.psi.impl.indexing.ProjectRevisionIndexer$1.a(ProjectRevisionIndexer.java:247)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at com.jetbrains.upsource.util.NamedDaemonThreadFactory.a(NamedDaemonThreadFactory.java:34)
at java.lang.Thread.run(Thread.java:748)

 

Thanks for help!

 

Please sign in to leave a comment.