You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jetspeed-user@portals.apache.org by "mail@felixguntrum.de" <ma...@felixguntrum.de> on 2003/11/18 00:23:45 UTC

Jetspeed2 compile problem -> [junit] [ERROR] TEST org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Dear Mailinglist,

I´m a little bit distressed with compiling J2.

First of all, I´m using java build 1.4.2_02-b03, Tomcat 4.1.29, Maven 
1.0-rc1 and the latest J2 sources vom cvs.

I act on the GETTING-STARTED.htm, I put the required .jars in 
$(USER_HOME)/.marven/repository, i didn´t renamed the marven.xml (it 
seems right for me because there was no |maven-0.9-and-up.xml|) and put 
the build.properties in my $(USER_HOME).

When I try to build J2 whith "maven allBuild" the process aborts while 
the junit tests:

    [junit] Tests run: 2, Failures: 1, Errors: 0, Time elapsed: 7,19 sec
    [junit] [ERROR] TEST 
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

You find the complete output from the build process and my 
build.properties attached to this email.

Any help is appricated, i´m in hurry to get J2 to work .. it´s surely a 
stupid newbie failure ..

Ups, and by the way, when I ever get J2 to work ;) -> It´s possible to 
run J2 in Webshere? Or is there any tomcat specific code (maybe in pluto?)

Many many thanks!
Felix



Re: Jetspeed2 compile problem -> Testcase: testLoadCache FAILED

Posted by "mail@felixguntrum.de" <ma...@felixguntrum.de>.
Ups .. there is another error while try to compile "procedure 2" in the 
step "build jetspeed portal".

When I try -> $J2_HOME/portal maven war

Testcase: testLoadCache took 10,004 sec
    FAILED
null
junit.framework.AssertionFailedError
    at 
org.apache.jetspeed.cache.file.TestFileCache.testLoadCache(TestFileCache.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)


maven:
    .....
    .....
    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 7,11 sec
    [junit] Running org.apache.jetspeed.services.registry.TestRegistry
    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 12,277 sec
    [junit] Running 
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor
    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 7,36 sec

BUILD FAILED
File...... file:/C:/Dokumente und 
Einstellungen/felix/.maven/plugins/maven-test-plugin-1.4/
Element... fail
Line...... 130
Column.... 54
There were test failures.
Total time: 1 minutes 44 seconds
Finished at: Tue Nov 18 14:39:06 CET 2003


>> Well this time I tested with English, it passed.
>> Changed my system's locale to German, and the test passed.
>> Try again
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>


Re: Jetspeed2 compile problem -> BUILD SUCCESSFUL !!

Posted by "mail@felixguntrum.de" <ma...@felixguntrum.de>.
no can I rest easy, it works ;)  .. thank´s a lot for your "first class 
support"!

cheers,
felix


David Sean Taylor wrote:

>
> On Tuesday, November 18, 2003, at 03:16  AM, mail@felixguntrum.de wrote:
>
>> very nice, we are moving on, but now i get another error, i found 
>> the  following output in the junit-log:
>>
>> Testcase: testLoadPortletApplicationTree took 2,393 sec
>>    Caused an ERROR
>> null
>> java.lang.NullPointerException
>>    at  
>> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.validateHello 
>> Portlet(TestPortletDescriptor.java:199)
>>    at  
>> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testLoadPortl 
>> etApplicationTree(TestPortletDescriptor.java:159)
>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>    at  
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
>> va:39)
>>    at  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
>> rImpl.java:25)
>>
>
> Well this time I tested with English, it passed.
> Changed my system's locale to German, and the test passed.
> Try again
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>



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


Re: Jetspeed2 compile problem -> [junit] [ERROR] TEST org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Tuesday, November 18, 2003, at 03:16  AM, mail@felixguntrum.de wrote:

> very nice, we are moving on, but now i get another error, i found the  
> following output in the junit-log:
>
> Testcase: testLoadPortletApplicationTree took 2,393 sec
>    Caused an ERROR
> null
> java.lang.NullPointerException
>    at  
> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.validateHello 
> Portlet(TestPortletDescriptor.java:199)
>    at  
> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testLoadPortl 
> etApplicationTree(TestPortletDescriptor.java:159)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>    at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>

Well this time I tested with English, it passed.
Changed my system's locale to German, and the test passed.
Try again


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


Re: Jetspeed2 compile problem -> [junit] [ERROR] TEST org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Posted by "mail@felixguntrum.de" <ma...@felixguntrum.de>.
very nice, we are moving on, but now i get another error, i found the 
following output in the junit-log:

Testcase: testLoadPortletApplicationTree took 2,393 sec
    Caused an ERROR
null
java.lang.NullPointerException
    at 
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.validateHelloPortlet(TestPortletDescriptor.java:199)
    at 
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testLoadPortletApplicationTree(TestPortletDescriptor.java:159)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

cheers,
felix


David Sean Taylor wrote:

>
> On Tuesday, November 18, 2003, at 12:04  AM, mail@felixguntrum.de wrote:
>
>> thank´s for your quick reply and the hint (i´m never used junit 
>> before  ...) . I had a look at this file, it say´s:
>>
>> Display Name is null
>> junit.framework.AssertionFailedError: Display Name is null
>>    at  
>> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.validateHello 
>> Portlet(TestPortletDescriptor.java:186)
>>    at  
>> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testLoadPortl 
>> etApplicationTree(TestPortletDescriptor.java:160)
>>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>>    at  
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
>> va:39)
>>    at  
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
>> rImpl.java:25)
>>
>> any idea?
>>
> Yes.
> Judging from your email address, your default locale must be German.
> We don't have an entry for German in the test data, thus when we go 
> to  get the display name with the default locale, we get null.
> The test was written with only the English locale in mind.
> I'll fix the unit test to not use the default locale, and specify  
> English, otherwise this is going to keep popping up
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jetspeed-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jetspeed-user-help@jakarta.apache.org
>


Re: Jetspeed2 compile problem -> [junit] [ERROR] TEST org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Tuesday, November 18, 2003, at 12:04  AM, mail@felixguntrum.de wrote:

> thank´s for your quick reply and the hint (i´m never used junit before  
> ...) . I had a look at this file, it say´s:
>
> Display Name is null
> junit.framework.AssertionFailedError: Display Name is null
>    at  
> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.validateHello 
> Portlet(TestPortletDescriptor.java:186)
>    at  
> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testLoadPortl 
> etApplicationTree(TestPortletDescriptor.java:160)
>    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>    at  
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.ja 
> va:39)
>    at  
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccesso 
> rImpl.java:25)
>
> any idea?
>
Yes.
Judging from your email address, your default locale must be German.
We don't have an entry for German in the test data, thus when we go to  
get the display name with the default locale, we get null.
The test was written with only the English locale in mind.
I'll fix the unit test to not use the default locale, and specify  
English, otherwise this is going to keep popping up


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


Re: Jetspeed2 compile problem -> [junit] [ERROR] TEST org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Posted by "mail@felixguntrum.de" <ma...@felixguntrum.de>.
thank´s for your quick reply and the hint (i´m never used junit before 
...) . I had a look at this file, it say´s:

Display Name is null
junit.framework.AssertionFailedError: Display Name is null
    at 
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.validateHelloPortlet(TestPortletDescriptor.java:186)
    at 
org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.testLoadPortletApplicationTree(TestPortletDescriptor.java:160)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

any idea?

David Sean Taylor wrote:

>
> On Monday, November 17, 2003, at 11:23  PM, mail@felixguntrum.de wrote:
>
>>     [junit] [ERROR] TEST 
>> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED
>
>
> Under the portal/target/test-reports directory there should be a 
> TEST-org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.txt
> Have a look at that, it will have the reason for the unit test failing


Re: Jetspeed2 compile problem -> [junit] [ERROR] TEST org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Posted by David Sean Taylor <da...@bluesunrise.com>.
On Monday, November 17, 2003, at 11:23  PM, mail@felixguntrum.de wrote:

>     [junit] [ERROR] TEST 
> org.apache.jetspeed.tools.pamanager.TestPortletDescriptor FAILED

Under the portal/target/test-reports directory there should be a 
TEST-org.apache.jetspeed.tools.pamanager.TestPortletDescriptor.txt
Have a look at that, it will have the reason for the unit test failing


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