You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@maven.apache.org by Nathan Coast <na...@codeczar.com> on 2003/09/23 04:55:15 UTC

test errors

Hi,

I'm getting this message when I attempt to execute some tests.  How can 
I find out what the error is?  I've tried -X but no extra info.  Are 
there some jvm args I need to pass to junit?

test:test:
     [junit] dir attribute ignored if running in the same VM
     [junit] Running java.com.oneport.bom.logistics.equipment.EquipmentTest
     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
     [junit] [ERROR] TEST 
java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED

When I check the maven.log I see this stack.  could this have something 
to do with it?  No idea what this stack is about, any ideas?

cheers
Nathan


2003-09-23 10:46:56,327 WARN 
org.apache.commons.jelly.expression.jexl.JexlExpression - Caught 
exception evaluating: org.apache.commons.jexl.ExpressionImpl@6214f5. 
Reason: java.lang.NumberFormatException: For input string: "excludes"
java.lang.NumberFormatException: For input string: "excludes"
	at 
java.lang.NumberFormatException.forInputString(NumberFormatException.java:48)
	at java.lang.Integer.parseInt(Integer.java:426)
	at java.lang.Integer.valueOf(Integer.java:532)
	at org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
	at 
org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177)
	at 
org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104)
	at 
org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
	at org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:88)
	at org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:123)
	at 
org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:115)
	at 
org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168)
	at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:106)
	at 
org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:146)
	at org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:127)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:271)
	at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:267)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
	at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
	at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112)
	at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:113)
	at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:140)
	at org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:757)
	at 
org.apache.maven.plugin.PluginManager.prepDynamicTagLib(PluginManager.java:631)
	at 
org.apache.maven.plugin.PluginManager.prepDynaTagLibs(PluginManager.java:606)
	at org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:706)
	at 
org.apache.maven.plugin.PluginManager.loadPlugins(PluginManager.java:789)
	at 
org.apache.maven.plugin.PluginManager.prepForCallbacks(PluginManager.java:574)
	at 
org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:545)
	at 
org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:435)
	at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
	at org.apache.maven.cli.App.doMain(App.java:543)
	at org.apache.maven.cli.App.main(App.java:1109)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
	at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
	at java.lang.reflect.Method.invoke(Method.java:324)
	at com.werken.forehead.Forehead.run(Forehead.java:543)
	at com.werken.forehead.Forehead.main(Forehead.java:573)




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: test errors

Posted by Nathan Coast <na...@codeczar.com>.
just noticed the 'java.' before the classname. could be the problem, 
I'll see where that's coming from

Nathan Coast wrote:

> Hi,
> 
> I'm getting this message when I attempt to execute some tests.  How can 
> I find out what the error is?  I've tried -X but no extra info.  Are 
> there some jvm args I need to pass to junit?
> 
> test:test:
>     [junit] dir attribute ignored if running in the same VM
>     [junit] Running java.com.oneport.bom.logistics.equipment.EquipmentTest
>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>     [junit] [ERROR] TEST 
> java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED
> 
> When I check the maven.log I see this stack.  could this have something 
> to do with it?  No idea what this stack is about, any ideas?
> 
> cheers
> Nathan
> 
> 
> 2003-09-23 10:46:56,327 WARN 
> org.apache.commons.jelly.expression.jexl.JexlExpression - Caught 
> exception evaluating: org.apache.commons.jexl.ExpressionImpl@6214f5. 
> Reason: java.lang.NumberFormatException: For input string: "excludes"
> java.lang.NumberFormatException: For input string: "excludes"
>     at 
> java.lang.NumberFormatException.forInputString(NumberFormatException.java:48) 
> 
>     at java.lang.Integer.parseInt(Integer.java:426)
>     at java.lang.Integer.valueOf(Integer.java:532)
>     at 
> org.apache.commons.jexl.util.Coercion.coerceInteger(Coercion.java:95)
>     at 
> org.apache.commons.jexl.parser.ASTArrayAccess.evaluateExpr(ASTArrayAccess.java:177) 
> 
>     at 
> org.apache.commons.jexl.parser.ASTIdentifier.execute(ASTIdentifier.java:104) 
> 
>     at 
> org.apache.commons.jexl.parser.ASTReference.execute(ASTReference.java:106)
>     at 
> org.apache.commons.jexl.parser.ASTReference.value(ASTReference.java:88)
>     at 
> org.apache.commons.jexl.ExpressionImpl.evaluate(ExpressionImpl.java:123)
>     at 
> org.apache.commons.jelly.expression.jexl.JexlExpression.evaluate(JexlExpression.java:115) 
> 
>     at 
> org.apache.commons.jelly.expression.jexl.JexlExpressionFactory$ExpressionSupportLocal.evaluate(JexlExpressionFactory.java:168) 
> 
>     at 
> org.apache.commons.jelly.expression.ExpressionSupport.evaluateRecurse(ExpressionSupport.java:106) 
> 
>     at 
> org.apache.commons.jelly.expression.ExpressionSupport.evaluateAsIterator(ExpressionSupport.java:146) 
> 
>     at 
> org.apache.commons.jelly.tags.core.ForEachTag.doTag(ForEachTag.java:127)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>     at org.apache.commons.jelly.TagSupport.getBodyText(TagSupport.java:271)
>     at org.apache.commons.jelly.tags.ant.AntTag.doTag(AntTag.java:267)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     at org.apache.commons.jelly.impl.ScriptBlock.run(ScriptBlock.java:135)
>     at org.apache.commons.jelly.TagSupport.invokeBody(TagSupport.java:233)
>     at com.werken.werkz.jelly.ProjectTag.doTag(ProjectTag.java:112)
>     at org.apache.commons.jelly.impl.TagScript.run(TagScript.java:279)
>     at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:113)
>     at org.apache.maven.jelly.JellyUtils.runScript(JellyUtils.java:140)
>     at 
> org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:757)
>     at 
> org.apache.maven.plugin.PluginManager.prepDynamicTagLib(PluginManager.java:631) 
> 
>     at 
> org.apache.maven.plugin.PluginManager.prepDynaTagLibs(PluginManager.java:606) 
> 
>     at 
> org.apache.maven.plugin.PluginManager.loadPlugin(PluginManager.java:706)
>     at 
> org.apache.maven.plugin.PluginManager.loadPlugins(PluginManager.java:789)
>     at 
> org.apache.maven.plugin.PluginManager.prepForCallbacks(PluginManager.java:574) 
> 
>     at 
> org.apache.maven.plugin.PluginManager.prepForGoal(PluginManager.java:545)
>     at 
> org.apache.maven.plugin.PluginManager.attainGoals(PluginManager.java:435)
>     at org.apache.maven.MavenSession.attainGoals(MavenSession.java:348)
>     at org.apache.maven.cli.App.doMain(App.java:543)
>     at org.apache.maven.cli.App.main(App.java:1109)
>     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>     at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) 
> 
>     at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) 
> 
>     at java.lang.reflect.Method.invoke(Method.java:324)
>     at com.werken.forehead.Forehead.run(Forehead.java:543)
>     at com.werken.forehead.Forehead.main(Forehead.java:573)
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: test errors

Posted by Nathan Coast <na...@codeczar.com>.
ah, ahem, yes, err....

that'll be where the errors go :)

free beer next time you're in Hong Kong.

dion@multitask.com.au wrote:

> What's in the test report file?
> 
> Are you using maven.junit.usefile ??
> 
> Nathan Coast <na...@codeczar.com> wrote on 23/09/2003 12:55:15 PM:
> 
> 
>>Hi,
>>
>>I'm getting this message when I attempt to execute some tests.  How can 
>>I find out what the error is?  I've tried -X but no extra info.  Are 
>>there some jvm args I need to pass to junit?
>>
>>test:test:
>>     [junit] dir attribute ignored if running in the same VM
>>     [junit] Running 
> 
> java.com.oneport.bom.logistics.equipment.EquipmentTest
> 
>>     [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>>     [junit] [ERROR] TEST 
>>java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED
>>
>>When I check the maven.log I see this stack.  could this have something 
>>to do with it?  No idea what this stack is about, any ideas?
>>
>>cheers
>>Nathan
>>
> 
> --
> dIon Gillard, Multitask Consulting
> Blog:      http://blogs.codehaus.org/people/dion/
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
> For additional commands, e-mail: users-help@maven.apache.org
> 
> 
> 
> .
> 




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org


Re: test errors

Posted by di...@multitask.com.au.
What's in the test report file?

Are you using maven.junit.usefile ??

Nathan Coast <na...@codeczar.com> wrote on 23/09/2003 12:55:15 PM:

> Hi,
> 
> I'm getting this message when I attempt to execute some tests.  How can 
> I find out what the error is?  I've tried -X but no extra info.  Are 
> there some jvm args I need to pass to junit?
> 
> test:test:
>      [junit] dir attribute ignored if running in the same VM
>      [junit] Running 
java.com.oneport.bom.logistics.equipment.EquipmentTest
>      [junit] Tests run: 1, Failures: 0, Errors: 1, Time elapsed: 0 sec
>      [junit] [ERROR] TEST 
> java.com.oneport.bom.logistics.equipment.EquipmentTest FAILED
> 
> When I check the maven.log I see this stack.  could this have something 
> to do with it?  No idea what this stack is about, any ideas?
> 
> cheers
> Nathan
> 
--
dIon Gillard, Multitask Consulting
Blog:      http://blogs.codehaus.org/people/dion/




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@maven.apache.org
For additional commands, e-mail: users-help@maven.apache.org