This Question is Possibly Answered

1 "correct" answer available (4 pts) 2 "helpful" answers available (2 pts)
10 Replies Last post: May 15, 2008 11:13 PM by Rob  
Tobias Novice 143 posts since
Mar 5, 2003
Currently Being Moderated

May 14, 2008 2:47 PM

#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

Rob  Novice 285 posts since
Aug 27, 2002
Currently Being Moderated
May 14, 2008 9:31 PM in response to: Tobias
Re: #7821 - Maven import not possible anymore, can't find any projects

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 700134  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 700137  ERROR - startup.FileSystemSynchronizer - IntelliJ IDEA 7.0.3  Build #7757

2008-05-12 17:29:27,111 700137  ERROR - startup.FileSystemSynchronizer - JDK: 1.6.0_05

2008-05-12 17:29:27,111 700137  ERROR - startup.FileSystemSynchronizer - VM: Java HotSpot(TM) Client VM

2008-05-12 17:29:27,111 700137  ERROR - startup.FileSystemSynchronizer - Vendor: Sun Microsystems Inc.

2008-05-12 17:29:27,111 700137  ERROR - startup.FileSystemSynchronizer - OS: Windows Vista

2008-05-12 17:29:27,111 700137  ERROR - startup.FileSystemSynchronizer - Last Action: Maven.Synchronize

2008-05-12 17:29:27,165 700191  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 700192  ERROR - ellij.vfs.persistent.FSRecords - IntelliJ IDEA 7.0.3  Build #7757

2008-05-12 17:29:27,166 700192  ERROR - ellij.vfs.persistent.FSRecords - JDK: 1.6.0_05

2008-05-12 17:29:27,166 700192  ERROR - ellij.vfs.persistent.FSRecords - VM: Java HotSpot(TM) Client VM

2008-05-12 17:29:27,166 700192  ERROR - ellij.vfs.persistent.FSRecords - Vendor: Sun Microsystems Inc.

2008-05-12 17:29:27,166 700192  ERROR - ellij.vfs.persistent.FSRecords - OS: Windows Vista

2008-05-12 17:29:27,166 700192  ERROR - ellij.vfs.persistent.FSRecords - Last Action: Maven.Synchronize

2008-05-12 17:29:27,166 700192  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

George Coller Newbie 7 posts since
May 1, 2003
Currently Being Moderated
May 15, 2008 12:10 AM in response to: Tobias
Re: #7821 - Maven import not possible anymore, can't find any projects

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.

Norris Shelton Apprentice 669 posts since
Aug 29, 2002
Currently Being Moderated
May 15, 2008 1:34 AM in response to: George Coller
Re: #7821 - Maven import not possible anymore, can't find any projects

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.

Anton Makeev JetBrains 745 posts since
Dec 19, 2006
Currently Being Moderated
May 15, 2008 3:36 PM in response to: Tobias
Re: #7821 - Maven import not possible anymore, can't find any projects

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.

Anton Makeev JetBrains 745 posts since
Dec 19, 2006
Currently Being Moderated
May 15, 2008 3:48 PM in response to: Tobias
Re: #7821 - Maven import not possible anymore, can't find any projects

Does it work with Open Project?

Anton Makeev JetBrains 745 posts since
Dec 19, 2006
Currently Being Moderated
May 15, 2008 4:10 PM in response to: Tobias
Re: #7821 - Maven import not possible anymore, can't find any projects

Oh... This is a problem. That apparently was a bad idea.

OK, I'll have a look and try to fix it.

 

Thanks

Rob  Novice 285 posts since
Aug 27, 2002
Currently Being Moderated
May 15, 2008 11:15 PM in response to: Anton Makeev
Re: #7821 - Maven import not possible anymore, can't find any projects

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

More Like This

  • Retrieving data ...