You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-dev@portals.apache.org by David Pankros <dp...@everestkc.net> on 2004/05/21 19:13:05 UTC

[j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

First, forgive me if I'm way off base or missing something here.  I'm new to
the list (and the source).

Secondly, thanks to David Taylor for fixing the "Registry test failure."
That saved me some pain.  :-)


When building j2 with an "allClean allBuild" I get the following, which
prevents successful completion of the build.  (see below) Is anyone else
getting this error?

-Dave

---- log -----

<snip/>
+----------------------------------------
| Build and Install the Portlet WAR Jetspeed-2 Portal Engine
| Memory: 46M/68M
+----------------------------------------
<snip/>

test:test:
dbsetup:
db.test.properties:

    [copy] Copying 1 file to
C:\jakarta-jetspeed-2\portal\target\test-classes

    [junit] Running org.apache.jetspeed.aggregator.TestAggregator
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.375 sec
    [junit] Running org.apache.jetspeed.aggregator.TestRenderer
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.281 sec
    [junit] Running org.apache.jetspeed.capability.TestCapability
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 2.781 sec
    [junit] Running
org.apache.jetspeed.container.session.TestNavigationalState
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.218 sec
    [junit] Running org.apache.jetspeed.container.TestPortletContainer
    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 1.078 sec
    [junit] Running org.apache.jetspeed.deployment.TestSimpleDeployment
    [junit] log4j:WARN No appenders could be found for logger
(org.apache.jetspeed.Jetspeed).
    [junit] log4j:WARN Please initialize the log4j system properly.
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
    [junit] groovy.lang.GroovyRuntimeException: Could not find which method
to invoke from this list: [public
org.picocontainer.defaults.ComponentParameter(java.lang.Class), public
org.picocontainer.defaults.ComponentParameter(java.lang.Object)] for
arguments: []
    [junit] 	at groovy.lang.MetaClass.chooseMethod(MetaClass.java:1104)
    [junit] 	at
groovy.lang.MetaClass.invokeConstructor(MetaClass.java:323)
    [junit] 	at
org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:148)
    [junit] 	at
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.
java:120)
    [junit] 	at nanocontainer.run(nanocontainer.groovy:202)
    [junit] 	at
org.nanocontainer.script.groovy.GroovyContainerBuilder.createContainer(Groov
yContainerBuilder.java:57)
    [junit] 	at
org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(Li
fecycleContainerBuilder.java:25)
    [junit] 	at
org.nanocontainer.NanoContainer.<init>(NanoContainer.java:88)
    [junit] 	at
org.nanocontainer.NanoContainer.<init>(NanoContainer.java:59)
    [junit] 	at
org.apache.jetspeed.components.ComponentManager.<init>(ComponentManager.java
:77)
    [junit] 	at
org.apache.jetspeed.engine.JetspeedEngine.initComponents(JetspeedEngine.java
:288)
    [junit] 	at
org.apache.jetspeed.engine.JetspeedEngine.init(JetspeedEngine.java:116)
    [junit] 	at
org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:60)
    [junit] 	at
org.apache.jetspeed.test.JetspeedTestSuite.startEngine(JetspeedTestSuite.jav
a:104)
    [junit] 	at
org.apache.jetspeed.test.JetspeedTestSuite.<init>(JetspeedTestSuite.java:76)
    [junit] 	at
org.apache.jetspeed.deployment.TestSimpleDeployment.suite(TestSimpleDeployme
nt.java:78)
    [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
    [junit] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    [junit] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    [junit] 	at java.lang.reflect.Method.invoke(Method.java:324)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:257)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:532)
    [junit] org.apache.jetspeed.exception.JetspeedException: Jetspeed
Initialization exception!
    [junit] 	at
org.apache.jetspeed.engine.JetspeedEngine.init(JetspeedEngine.java:138)
    [junit] 	at
org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:60)
    [junit] 	at
org.apache.jetspeed.test.JetspeedTestSuite.startEngine(JetspeedTestSuite.jav
a:104)
    [junit] 	at
org.apache.jetspeed.test.JetspeedTestSuite.<init>(JetspeedTestSuite.java:76)
    [junit] 	at
org.apache.jetspeed.deployment.TestSimpleDeployment.suite(TestSimpleDeployme
nt.java:78)
    [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
    [junit] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    [junit] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    [junit] 	at java.lang.reflect.Method.invoke(Method.java:324)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:257)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:532)
    [junit] Caused by: groovy.lang.GroovyRuntimeException: Could not find
which method to invoke from this list: [public
org.picocontainer.defaults.ComponentParameter(java.lang.Class), public
org.picocontainer.defaults.ComponentParameter(java.lang.Object)] for
arguments: []
    [junit] 	at groovy.lang.MetaClass.chooseMethod(MetaClass.java:1104)
    [junit] 	at
groovy.lang.MetaClass.invokeConstructor(MetaClass.java:323)
    [junit] 	at
org.codehaus.groovy.runtime.Invoker.invokeConstructorOf(Invoker.java:148)
    [junit] 	at
org.codehaus.groovy.runtime.InvokerHelper.invokeConstructorOf(InvokerHelper.
java:120)
    [junit] 	at nanocontainer.run(nanocontainer.groovy:202)
    [junit] 	at
org.nanocontainer.script.groovy.GroovyContainerBuilder.createContainer(Groov
yContainerBuilder.java:57)
    [junit] 	at
org.nanocontainer.integrationkit.LifecycleContainerBuilder.buildContainer(Li
fecycleContainerBuilder.java:25)
    [junit] 	at
org.nanocontainer.NanoContainer.<init>(NanoContainer.java:88)
    [junit] 	at
org.nanocontainer.NanoContainer.<init>(NanoContainer.java:59)
    [junit] 	at
org.apache.jetspeed.components.ComponentManager.<init>(ComponentManager.java
:77)
    [junit] 	at
org.apache.jetspeed.engine.JetspeedEngine.initComponents(JetspeedEngine.java
:288)
    [junit] 	at
org.apache.jetspeed.engine.JetspeedEngine.init(JetspeedEngine.java:116)
    [junit] 	... 11 more
    [junit] org.apache.jetspeed.exception.JetspeedException: Unable to
create Engine
    [junit] 	at
org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:70)
    [junit] 	at
org.apache.jetspeed.test.JetspeedTestSuite.startEngine(JetspeedTestSuite.jav
a:104)
    [junit] 	at
org.apache.jetspeed.test.JetspeedTestSuite.<init>(JetspeedTestSuite.java:76)
    [junit] 	at
org.apache.jetspeed.deployment.TestSimpleDeployment.suite(TestSimpleDeployme
nt.java:78)
    [junit] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
    [junit] 	at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39
)
    [junit] 	at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl
.java:25)
    [junit] 	at java.lang.reflect.Method.invoke(Method.java:324)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:257)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.<init>(JUnitTes
tRunner.java:210)
    [junit] 	at
org.apache.tools.ant.taskdefs.optional.junit.JUnitTestRunner.main(JUnitTestR
unner.java:532)
    [junit] Caused by: org.apache.jetspeed.exception.JetspeedException:
Jetspeed Initialization exception!
    [junit] 	at
org.apache.jetspeed.engine.JetspeedEngine.init(JetspeedEngine.java:138)
    [junit] 	at
org.apache.jetspeed.Jetspeed.createEngine(Jetspeed.java:60)
    [junit] 	... 10 more
<snip/>


BUILD FAILED
File...... C:\jakarta-jetspeed-2\maven.xml
Element... maven:reactor
Line...... 159
Column.... 40
Unable to obtain goal [test:test] -- C:\Documents and
Settings\xxxx\.maven\plugins\maven-test-plugin-1.6.1\plugin.jelly:162:54:
<fail> There were test failures.



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

Posted by David Sean Taylor <da...@bluesunrise.com>.
On May 21, 2004, at 1:38 PM, David Pankros wrote:

>
>>> I was getting that exact same error!
>>> Roger, see, Im not the only one!
>>
>>
>> we should get a snapshot of the repository for builds that
>> fail. We might discover a pattern in library conflicts.
>> I don't see another solution. FOr now at least!
>
> Well, my re-build on windows failed with the same error again.  My 
> build
> under linux is still going (slow server).
>
> One thing I forgot to mention is that the maven.xml I have doesn't 
> know how
> to create jetspeed-api-2.0-a1-dev.jar.  Because of this I need to go 
> into
> that directory and build it with the deployJar goal.

Thats standard procedure, its a new sub project and you need to 'prime 
the pump'

>
> One other item of note is that I DID change change the configuration 
> to use
> mysql (as per the instructions).  The linux build is using HSQL. Maybe
> (crossing fingers) it will work better.
>
Im building with MySQL too

> Do you want me to zip up my failed repo and ftp it somewhere?
>
>
I have no idea what to look for, so it wouldn't really help since I 
don't know the cause of the problem
This is a very strange problem with Pico
Im still suspicious that there are 2 different Pico jars in the build
But as was pointed out to me numerous times when I had this same 
problem, "Works for me" :-(


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

Posted by Roger Ruttimann <ro...@apache.org>.
David Pankros wrote:

>>>I was getting that exact same error!
>>>Roger, see, Im not the only one!
>>>      
>>>
>>we should get a snapshot of the repository for builds that 
>>fail. We might discover a pattern in library conflicts.
>>I don't see another solution. FOr now at least!
>>    
>>
>
>Well, my re-build on windows failed with the same error again.  My build
>under linux is still going (slow server).
>
>One thing I forgot to mention is that the maven.xml I have doesn't know how
>to create jetspeed-api-2.0-a1-dev.jar.  Because of this I need to go into
>that directory and build it with the deployJar goal.  
>
>One other item of note is that I DID change change the configuration to use
>mysql (as per the instructions).  The linux build is using HSQL. Maybe
>(crossing fingers) it will work better.
>
>Do you want me to zip up my failed repo and ftp it somewhere?
>  
>


A detailed listing of the repository would be enough (ls -laR). It could 
be used to compare with installation that work without any problems.

>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
>For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


RE: [j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

Posted by David Pankros <dp...@everestkc.net>.
> > I was getting that exact same error!
> > Roger, see, Im not the only one!
> 
> 
> we should get a snapshot of the repository for builds that 
> fail. We might discover a pattern in library conflicts.
> I don't see another solution. FOr now at least!

Well, my re-build on windows failed with the same error again.  My build
under linux is still going (slow server).

One thing I forgot to mention is that the maven.xml I have doesn't know how
to create jetspeed-api-2.0-a1-dev.jar.  Because of this I need to go into
that directory and build it with the deployJar goal.  

One other item of note is that I DID change change the configuration to use
mysql (as per the instructions).  The linux build is using HSQL. Maybe
(crossing fingers) it will work better.

Do you want me to zip up my failed repo and ftp it somewhere?



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

Posted by Roger Ruttimann <ro...@apache.org>.
David Sean Taylor wrote:

>
> On May 21, 2004, at 10:13 AM, David Pankros wrote:
>
>>
>> When building j2 with an "allClean allBuild" I get the following, which
>> prevents successful completion of the build.  (see below) Is anyone else
>> getting this error?
>>
>> -Dave
>>
>> ---- log -----
>>
>> <snip/>
>>     [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
>>     [junit] groovy.lang.GroovyRuntimeException: Could not find which 
>> method
>> to invoke from this list: [public
>> org.picocontainer.defaults.ComponentParameter(java.lang.Class), public
>> org.picocontainer.defaults.ComponentParameter(java.lang.Object)] for
>> arguments: []
>>     [junit]     at 
>> groovy.lang.MetaClass.chooseMethod(MetaClass.java:1104)
>>     [junit]     at
>> groovy.lang.MetaClass.invokeConstructor(MetaClass.java:323)
>>     [junit]     at
>>
> I was getting that exact same error!
> Roger, see, Im not the only one!


we should get a snapshot of the repository for builds that fail. We 
might discover a pattern in library conflicts.
I don't see another solution. FOr now at least!

>
> The only fix I had for it was to delete my entire local repository 
> (maven)
> The consensus is that a jar was corrupted, but hell, I had this exact 
> same problem on 3 different machines here
>
> Im thinking we have some pico jar problems
> I see in the build that there are now 2 different pico jars referenced 
> in different components
> I think that JS2-46 will solve this, but if you need a lunch break, 
> delete your repo, and rebuild...
>
> http://issues.apache.org/jira/browse/JS2-46?page=history
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


RE: [j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

Posted by David Pankros <dp...@everestkc.net>.
 > I was getting that exact same error!
> Roger, see, Im not the only one!

Well at least I'm not going crazy.  (yet)
 
> The only fix I had for it was to delete my entire local repository
> (maven)
> The consensus is that a jar was corrupted, but hell, I had 
> this exact same problem on 3 different machines here

I'll try it on my build server and see if it happens there too.

 
> Im thinking we have some pico jar problems I see in the build 
> that there are now 2 different pico jars referenced in 
> different components I think that JS2-46 will solve this, but 
> if you need a lunch break, delete your repo, and rebuild...

Funny thing is, I started off with a clean repo yesterday.  I'll try it
again, tho. If I still have problems, I'll report back.

Thanks again!



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org


Re: [j2] Portal Test Failue (groovy.lang.GroovyRuntimeException)

Posted by David Sean Taylor <da...@bluesunrise.com>.
On May 21, 2004, at 10:13 AM, David Pankros wrote:
>
> When building j2 with an "allClean allBuild" I get the following, which
> prevents successful completion of the build.  (see below) Is anyone 
> else
> getting this error?
>
> -Dave
>
> ---- log -----
>
> <snip/>
>     [junit] cn=org.nanocontainer.script.groovy.GroovyContainerBuilder
>     [junit] groovy.lang.GroovyRuntimeException: Could not find which 
> method
> to invoke from this list: [public
> org.picocontainer.defaults.ComponentParameter(java.lang.Class), public
> org.picocontainer.defaults.ComponentParameter(java.lang.Object)] for
> arguments: []
>     [junit] 	at groovy.lang.MetaClass.chooseMethod(MetaClass.java:1104)
>     [junit] 	at
> groovy.lang.MetaClass.invokeConstructor(MetaClass.java:323)
>     [junit] 	at
>
I was getting that exact same error!
Roger, see, Im not the only one!

The only fix I had for it was to delete my entire local repository 
(maven)
The consensus is that a jar was corrupted, but hell, I had this exact 
same problem on 3 different machines here

Im thinking we have some pico jar problems
I see in the build that there are now 2 different pico jars referenced 
in different components
I think that JS2-46 will solve this, but if you need a lunch break, 
delete your repo, and rebuild...

http://issues.apache.org/jira/browse/JS2-46?page=history


---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jetspeed-dev-help@jakarta.apache.org