'Compilation aborted' problem

Hi!

Just recently I'm constantly getting 'Compilation aborted', but no indication as to what happened (i.e. no Messages window). I was unable to isolate a single module within the project in question causing this. Any idea where to look for a logfile of some kind? Or on possible causes for this?
Building via ANT works, so I guess it is not related to any source code problems. I'm using 6.0.4 btw, just upgraded today. The problem first showed up on 6.0.2 (and it was the reason to look for an update).

Regards,
Wolfram.

16 comments
Comment actions Permalink

Does your project contain EJB/Web/JSF parts? If yes, then maybe this is an
unexpected behaviour of our DTD/Schema validation, that is performed on
compile. Are you sure that your configuration files are well-formed, and
references to DTD/Schema uris are green?

"Wolfram Saringer" <intellij@plak.at> wrote in message
news:6119906.1168951533721.JavaMail.itn@is.intellij.net...

Hi!

>

Just recently I'm constantly getting 'Compilation aborted', but no
indication as to what happened (i.e. no Messages window). I was unable to
isolate a single module within the project in question causing this. Any
idea where to look for a logfile of some kind? Or on possible causes for
this?
Building via ANT works, so I guess it is not related to any source code
problems. I'm using 6.0.4 btw, just upgraded today. The problem first
showed up on 6.0.2 (and it was the reason to look for an update).

>

Regards,
Wolfram.



0
Comment actions Permalink

The project contains several web-modules using Struts. All web.xml files I checked look OK (i.e. green dot at the upper right hand corner) while all struts-config.xml files show several errors regarding the definition of data sources: source with this name already exists (which is not true: only the driver class is the same, the key is different) and unknown properties (which are recognized by this driver class anyway).
I just tried to run 'Make this module' on one of them and there actually appears said 'Compilation aborted' message after the status in the compile window reads 'Validating web.xml'. This does not appear when making another non-web-module but it does appear when making a module that does not use struts (but has a web.xml of course, which is green by the way).

So, yes: it seems to be related to validation. Can I turn this off or get a more meaningful error message in any way?

Thank you for your answer, it seems to point to the right direction.

0
Comment actions Permalink

What if you exclude web.xml and struts-config's from compilation?


0
Comment actions Permalink

What if you exclude web.xml and struts-config's from
compilation?


How do I do this? I did not find a setting in the module configuration or the compiler settings etc. Removing the mark from the enabled checkbox under Web Module Settings tab for one of the modules in project structure did not resolve this issue (i.e. make this module still ends with compilation aborted).

0
Comment actions Permalink

Settings | Compiler | Exclude from Compile list

"Wolfram Saringer" <intellij@plak.at> wrote in message
news:18390977.1169115734855.JavaMail.itn@is.intellij.net...
>> What if you exclude web.xml and struts-config's from
>> compilation?
>>
>>
>

How do I do this? I did not find a setting in the module configuration or
the compiler settings etc. Removing the mark from the enabled checkbox
under Web Module Settings tab for one of the modules in project structure
did not resolve this issue (i.e. make this module still ends with
compilation aborted).



0
Comment actions Permalink

I did find this, but the Add button opens a window where just the directories configured as containing source files are listed. So I could not select the web.xml file.
Due to sharing these projects with other users working with Eclipse, the source is located under WEB-INF/src. They said, they could not configure their environment to accept the sources for a webproject outside of WEB-INF/src...
I tried to move web.xml away in one module. Still 'make this module' ended with compilation aborted.

0
Comment actions Permalink

>I did find this, but the Add button opens a window where just the
>directories configured as containing source files are listed. So I could
>not select the web.xml file.

Due to sharing these projects with other users working with Eclipse, the
source is located under WEB-INF/src. They said, they could not configure
their environment to accept the sources for a webproject outside of
WEB-INF/src...


An idea. You could make an error (for example, wrong class name) in web.xml,
run compile, get this error in the messages, right-click it and select
'Exclude from compile'.

I tried to move web.xml away in one module. Still 'make this module' ended
with compilation aborted.

I don't understand 'move web.xml away in one module' at all. Was it excluded
now?


0
Comment actions Permalink

I had this problem as well, when using a struts. I removed the struts
assistant plugin (and some others). That resolved it.


best
Roland
Peter Gromov (JetBrains) schrieb:

Does your project contain EJB/Web/JSF parts? If yes, then maybe this is an
unexpected behaviour of our DTD/Schema validation, that is performed on
compile. Are you sure that your configuration files are well-formed, and
references to DTD/Schema uris are green?

"Wolfram Saringer" <intellij@plak.at> wrote in message
news:6119906.1168951533721.JavaMail.itn@is.intellij.net...

>> Hi!
>>
>> Just recently I'm constantly getting 'Compilation aborted', but no
>> indication as to what happened (i.e. no Messages window). I was unable to
>> isolate a single module within the project in question causing this. Any
>> idea where to look for a logfile of some kind? Or on possible causes for
>> this?
>> Building via ANT works, so I guess it is not related to any source code
>> problems. I'm using 6.0.4 btw, just upgraded today. The problem first
>> showed up on 6.0.2 (and it was the reason to look for an update).
>>
>> Regards,
>> Wolfram.


0
Comment actions Permalink


An idea. You could make an error (for example, wrong
class name) in web.xml,
run compile, get this error in the messages,
right-click it and select
'Exclude from compile'.


I've tried this, but although the web.xml file is now marked red in the upper right corner as well as in the project window there is no error messageduring compile. The last message in the compile dialog that I could read was something like 'validating web.xml', then die dialog disappears and the status line at the bottom of the window says 'Compilation aborted', just as before.

I tried to move web.xml away in one module. Still

'make this module' ended

with compilation aborted.

I don't understand 'move web.xml away in one module'
at all. Was it excluded
now?


I removed the file itself from the filesystem. Did not change anything.

0
Comment actions Permalink

The same could happen on struts-config validation. So exlude it as well.

"Wolfram Saringer" <intellij@plak.at> wrote in message
news:25276991.1169210787144.JavaMail.itn@is.intellij.net...
>>
>> An idea. You could make an error (for example, wrong
>> class name) in web.xml,
>> run compile, get this error in the messages,
>> right-click it and select
>> 'Exclude from compile'.
>>
>

I've tried this, but although the web.xml file is now marked red in the
upper right corner as well as in the project window there is no error
messageduring compile. The last message in the compile dialog that I could
read was something like 'validating web.xml', then die dialog disappears
and the status line at the bottom of the window says 'Compilation
aborted', just as before.

>
>> > I tried to move web.xml away in one module. Still
>> 'make this module' ended
>> > with compilation aborted.
>> I don't understand 'move web.xml away in one module'
>> at all. Was it excluded
>> now?
>>
>

I removed the file itself from the filesystem. Did not change anything.



0
Comment actions Permalink

I am having this problem also (v.6.0.4). Excluded all descriptors, no struts, no errors or clues as to what else is hanging up compilation. I noticed also the hourglass cursor in my project browser even though nothing is red and the UI is still responsive.. I'm basically stuck and unable to debug unit tests.. please advise..

0
Comment actions Permalink

Also found a bunch of traces in idea.log (com.intellij.util.Alarm - java.lang.StackOverflowError
at com.intellij.psi.impl.source.PsiJavaCodeReferenceElementImpl.getReferenceNameElement(PsiJavaCodeReferenceElementImpl.java:335)), etc.

0
Comment actions Permalink

Sorry for the delay.

I've removed the struts assistant plugin and moved struts-config.xml out of WEB-INF. Unfortunately both steps did not change anything, 'make this module' still ended with 'Compilation aborted'...

It would be very helpful to simply get a more informational message (as to when exactly in the process which error occurred). It seems very likely that it is related to validation of XML configuration files as compilation using ant (even from within IDEA) works without problems. The deployed applications do work btw. (deployment is done manually by copying the WAR file over).

0
Comment actions Permalink

I've just tracked hat file during compilation, unfortunately nothing showed up regarding my problem.

Btw.: did you check how much memory IDEA uses? Maybe it just ran out of heap space. If compilation works again after restarting IDEA try to adjust the settings related to memory usage (mainly the Java parameter -Xmx).

0
Comment actions Permalink

Wolfram Saringer ?????:

Sorry for the delay.

I've removed the struts assistant plugin and moved struts-config.xml out of WEB-INF. Unfortunately both steps did not change anything, 'make this module' still ended with 'Compilation aborted'...

It would be very helpful to simply get a more informational message (as to when exactly in the process which error occurred). It seems very likely that it is related to validation of XML configuration files as compilation using ant (even from within IDEA) works without problems. The deployed applications do work btw. (deployment is done manually by copying the WAR file over).


And which compiler message did you see just before this message? As I
understand, earlier it could be something like 'Validation web.xml' or
'validating struts model'. And what's now?

0
Comment actions Permalink

Issue seems to be resolved with 6.0.5 -- many thanks.

Regards,
Wolfram.

0

Please sign in to leave a comment.