#7821 - Maven import not possible anymore, can't find any projects

I tried #7821 with a project I have in use in 7.0.3.
Clicking on the "Maven"-Tab tells me to re-import the project, nothing else visible there.
When saying "New Project" and trying to import as Maven model, 7821 doesn't find any Maven projects and I can't continue. Nothing to be found in log file.
All I can say is that it's a multi module Maven project with a parent POM and it worked in 7.0.3 and is now broken.

Is this a known bug or do you need further information? If so, how can I help?

Edited by: Tobias on May 14, 2008 12:47 PM

10 comments

I had this same problem and another one, on May 12th. I had imported a maven project with 7.0.3.
I pressed 'synchronize with the maven', and IntelliJ ran out of Heap memory (256MB heap) EOM. After 30 minutes
of synchronizing I killed IntelliJ. Here is a small log sample, it goes on for many,many MegaBytes:


2008-05-12 17:29:27,108 ERROR - startup.FileSystemSynchronizer -
java.lang.OutOfMemoryError: Java heap space
at java.util.Arrays.copyOf(Arrays.java:2786)
at java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:94)
at java.io.DataOutputStream.write(DataOutputStream.java:90)
at java.io.FilterOutputStream.write(FilterOutputStream.java:80)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$AttributeOutputStream.close(FSRecords.java:6)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS$1.close(PersistentFS.java:8)
at com.intellij.openapi.vfs.newvfs.NewVirtualFile.contentsToByteArray(NewVirtualFile.java:47)
at com.intellij.ide.startup.FileContent.getBytes(FileContent.java:45)
at com.intellij.psi.impl.cache.impl.CacheUtil.getContentText(CacheUtil.java:11)
at com.intellij.psi.impl.cache.impl.idCache.IdTableBuilding.getBuildingRunnable(IdTableBuilding.java:56)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheImpl.a(IdCacheImpl.java:155)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheImpl.access$000(IdCacheImpl.java:172)
at com.intellij.psi.impl.cache.impl.idCache.IdCacheImpl$1.processFile(IdCacheImpl.java:7)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:191)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:72)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl$1.run(RefreshSessionImpl.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:8)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:50)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:8)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:9)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:1)
2008-05-12 17:29:27,111 ERROR - startup.FileSystemSynchronizer - IntelliJ IDEA 7.0.3 Build #7757
2008-05-12 17:29:27,111 ERROR - startup.FileSystemSynchronizer - JDK: 1.6.0_05
2008-05-12 17:29:27,111 ERROR - startup.FileSystemSynchronizer - VM: Java HotSpot(TM) Client VM
2008-05-12 17:29:27,111 ERROR - startup.FileSystemSynchronizer - Vendor: Sun Microsystems Inc.
2008-05-12 17:29:27,111 ERROR - startup.FileSystemSynchronizer - OS: Windows Vista
2008-05-12 17:29:27,111 ERROR - startup.FileSystemSynchronizer - Last Action: Maven.Synchronize
2008-05-12 17:29:27,165 ERROR - ellij.vfs.persistent.FSRecords -
java.lang.RuntimeException: java.io.EOFException
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.a(FSRecords.java:29)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords$DbConnection.access$400(FSRecords.java:71)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.readAttribute(FSRecords.java:17)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS.readAttribute(PersistentFS.java:151)
at com.intellij.openapi.vfs.newvfs.FileAttribute.readAttribute(FileAttribute.java:51)
at com.intellij.openapi.vfs.newvfs.persistent.PersistentFS.getInputStream(PersistentFS.java:48)
at com.intellij.openapi.vfs.newvfs.impl.VirtualFileImpl.getInputStream(VirtualFileImpl.java:7)
at com.intellij.patterns.impl.VirtualFilePattern$3.accepts(VirtualFilePattern.java:4)
at com.intellij.patterns.impl.VirtualFilePattern$3.accepts(VirtualFilePattern.java:7)
at com.intellij.patterns.impl.Pattern$11.accepts(Pattern.java:1)
at com.intellij.patterns.impl.Pattern.accepts(Pattern.java:28)
at com.intellij.patterns.impl.Pattern.accepts(Pattern.java:4)
at com.intellij.facet.impl.autodetecting.FacetDetectorRegistryEx$MyPatternFilter.accept(FacetDetectorRegistryEx.java:4)
at com.intellij.facet.impl.autodetecting.FacetAutodetectingManagerImpl.a(FacetAutodetectingManagerImpl.java:49)
at com.intellij.facet.impl.autodetecting.FacetAutodetectingManagerImpl.processFile(FacetAutodetectingManagerImpl.java:111)
at com.intellij.facet.impl.autodetecting.FacetDetectionIndex.doUpdateIndexEntry(FacetDetectionIndex.java:13)
at com.intellij.util.fileIndex.AbstractFileIndex.updateIndexEntry(AbstractFileIndex.java:54)
at com.intellij.util.fileIndex.FileIndexRefreshCacheUpdater.processFile(FileIndexRefreshCacheUpdater.java:22)
at com.intellij.ide.startup.FileSystemSynchronizer.updateFiles(FileSystemSynchronizer.java:191)
at com.intellij.ide.startup.FileSystemSynchronizer.execute(FileSystemSynchronizer.java:72)
at com.intellij.openapi.vfs.newvfs.RefreshSessionImpl$1.run(RefreshSessionImpl.java:2)
at com.intellij.openapi.progress.impl.ProgressManagerImpl$2.run(ProgressManagerImpl.java:8)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.executeProcessUnderProgress(ProgressManagerImpl.java:79)
at com.intellij.openapi.progress.impl.ProgressManagerImpl.runProcess(ProgressManagerImpl.java:50)
at com.intellij.openapi.application.impl.ApplicationImpl$7$1.run(ApplicationImpl.java:8)
at com.intellij.openapi.application.impl.ApplicationImpl$5.run(ApplicationImpl.java:9)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
at java.util.concurrent.FutureTask.run(FutureTask.java:138)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
at java.lang.Thread.run(Thread.java:619)
at com.intellij.openapi.application.impl.ApplicationImpl$1$1.run(ApplicationImpl.java:1)
Caused by: java.io.EOFException
at java.io.DataInputStream.readInt(DataInputStream.java:375)
at com.intellij.openapi.vfs.newvfs.persistent.FSRecords.readAttribute(FSRecords.java:180)
... 30 more
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - IntelliJ IDEA 7.0.3 Build #7757
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - JDK: 1.6.0_05
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - VM: Java HotSpot(TM) Client VM
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - Vendor: Sun Microsystems Inc.
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - OS: Windows Vista
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - Last Action: Maven.Synchronize
2008-05-12 17:29:27,166 ERROR - ellij.vfs.persistent.FSRecords - Original exception:


I increased my heap to 512MB then started up 7.0.3 again.
Then when I tried to synchronize to the maven project it complained about a missing jar file ?!?
I figured something had gotten corrupted from the the OOM or me killing IntelliJ.

Then upgraded to #7821 because of all the Maven bug fixes.
When I Started up #7821 and opened the intelliJ project I pressed 'synchronize with the maven', and I was told that there
was no maven project. I was also unable to reimport the maven project over top of the existing project.
I was again told that there was a missing jar file ?!?

I performed a clean checkout of the source code from subversion and then maven import then worked !
Our maven project is both an aggregate and parent setup.

I also looked in the log file, unfortunately I had the XSLT debugger plugin installed(also had it with 7.0.3) and its logger output is very verbose
even when it isn't begin used. So I couldn't see any obvious errors from Build #7821.

-Rob

0

Same problem here.

With build 7757 my project works as expected. When I open the Maven window they all show up and I can run tasks, synchronize the iml files, etc.

In 7821 the Maven window says "Not a Maven project., If the project was imported with a previous Maven plugin please reimport it".

I claim that Maven 2 integration is basically broken in 7821. I've wiped out my IDEA cache and settings and all ipr, iml, iws files and tried to create a project over an existing maven structure from scratch and receive only errors.

I've tried to get more immediate support but haven't heard anything back yet other than the issue was forwarded to developers. This included my pom.xml and a step-by-step using the now-broken wizard.

If you are using Maven integration I strongly suggest jumping back to 7757 (aka 7.0.3). That is the advice from Serge Baranov who I've been working with.

0

I got a similar message. I closed the project and opened the pom file and it rebuilt the project files for me. I did not have any problems after that.

0

Apparently, the bug only occurs under certain circumstances. My guess is that it has something to do with the structure of the Maven project (multi module, parent poms, something else in the poms, ...).
Of course this is just a guess, because IDEA doesn't tell us anything about what is wrong. And then, probably there are several things broken: Rob at least got a stack trace in the log file, in my case IDEA just tells me that it didn't find any Maven projects and the log file shows nothing at all.
Is there any way to get IDEA to write more detail about what it's doing or trying to do in the log file?
If I can somehow help to sort out these new issues, let me know. Currently, the Maven integration into 7.0.4 looks severely broken.

0

The message "Not a Maven project..." is shown because in the new version format of iprs for maven project has been changed.

After re-import from scratch all should works fine.
If there is any problem occurs after reimport, please let me know.

0

After re-import from scratch all should works fine.
If there is any problem occurs after reimport, please let me know.


As I wrote above, I can't re-import the project from scratch: after scanning the specified root directory, IDEA presents an empty list of Maven projects. Of course when I click 'Next' I get an error message saying "Nothing found to import".
Same project worked (and still works) with 7.0.3, so apparently something is broken (the project structure and the poms didn't change).

0

Does it work with Open Project?

0

I just tried it and yes, when I select the "main" pom with "Open Project", it works.
With "main" pom, I mean the pom where all the Maven modules are referenced in our multi-module project.

Of course I lose all the project and Maven settings I made before that way, like placement of the .iml files, run configurations, compiler settings, code style, ...

0

Oh... This is a problem. That apparently was a bad idea.
OK, I'll have a look and try to fix it.

Thanks

0

Just filed
http://www.jetbrains.net/jira/browse/IDEA-18100
When I tried to open that project that I imported yesterday using #7821 with #7821
I received an exception ! I am dead in the water.
Rolling back to 7.0.3 or previous EA version.

-Rob Leland

0

Please sign in to leave a comment.