Selin Ebeci

Greenhorn
+ Follow
since Dec 17, 2009
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Selin Ebeci

Hi all,

Finally I was able to solve the problem by changing the surefire version. I believe it is a bug of surefire which was fixed at later versions. Here is the change:

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.9</version>
<configuration>
<systemPropertyVariables>
<log4j.configuration>log4j-test.properties</log4j.configuration>
</systemPropertyVariables>
</configuration>
</plugin>
</plugins>
</pluginManagement>
</build>
11 years ago
Thanks, I am going to try that now. Log(-X command) is attached. Thanks!

Peter Johnson wrote:Yes, capture the full mvn output when you used -X and attach that output to the post.

The other thing I would try is to remove unit test classes one a a time until the mvn build doesn't fail. It could very well be that one of the tests is causing this issue and by removing them one at a time, you should be able to identify the bad test class. Once you have the test class identified, do the same with the test methods.

11 years ago
Hi,

-X doesn't bring any extra logs unfortunately. I still deal with the same issue. Any other suggestions?

Peter Johnson wrote:Wow, that's a new one to me. Try running with mvn with -X and see if it provides any additional information. (I assume that none of your tests are calling System.exit()...)

11 years ago
Hi,

I am trying to create an installation package in a specific structure using maven but I am getting an unexpected error.
Although all my unit tests are successful, I get a fatal error in the end. Maven log and my war pom file that I've recently changed are attached.(I suspect that the pom file is causing the problem but I am not sure.)

Your help will be truly appreciated.

Many thanks in advance!
Selin Ebeci

Results :

Tests run: 47, Failures: 0, Errors: 0, Skipped: 2

[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
[INFO] ------------------------------------------------------------------------
[INFO] Trace
java.lang.RuntimeException: The forked VM terminated without saying properly goodbye. VM crash or System.exit called ?
11 years ago
Hi,

You can only convert a Node object to an XML string due to the fact that the root element must be well-formed. Anyway you can convert NodeList object to a Node easily, check this out... :

/* To read xml string*/
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
InputSource is = new InputSource();
is.setCharacterStream(new StringReader(xmlString));
Document doc = db.parse(is);

/* Create a sub xml starts with given tag name soaphead*/
NodeList soaphead = doc.getElementsByTagName("soaphead");
StringWriter sw = new StringWriter();
Transformer serializer = TransformerFactory.newInstance().newTransformer();
serializer.transform(new DOMSource(soaphead.item(0)), new StreamResult(sw));
String result = sw.toString();

Cheers,
Selin Ebeci