You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@synapse.apache.org by "Hubert, Eric" <er...@jamba.net> on 2008/05/10 17:03:45 UTC

build problem: test errors on windows

Hi all,
 
trying to build synapse 1.2 branch including execution of unit tests I receive the following errors:
 
Tests in error: 
  testThreadSafety(org.apache.synapse.mediators.bsf.ScriptMediatorTest)
  testThreadSafety(org.apache.synapse.mediators.bsf.ScriptMediatorTest)
  [...]
  testThreadSafety(org.apache.synapse.mediators.bsf.ScriptMediatorTest)
 
Tests run: 124, Failures: 0, Errors: 55, Skipped: 0
[INFO] ------------------------------------------------------------------------
[ERROR] BUILD FAILURE
 
Any idea?
 
Regards,
   Eric

AW: build problem: test errors on windows

Posted by "Hubert, Eric" <er...@jamba.net>.
Hi Asankha,
 
thanks for you hint. Switching to Java 5 did the trick. I already have a small wrapper script around maven and can easily switch between different environments for building. I just didn't know the limitation of BSF and that I have to use Java 5. Thanks for that info!
 
Regards,
  Eric

________________________________

Von: Asankha C. Perera [mailto:asankha@wso2.com]
Gesendet: Sa 10.05.2008 17:08
An: dev@synapse.apache.org
Betreff: Re: build problem: test errors on windows

 
Are you using JDK 1.6.x by any chance? BSF doesn't like JDK > 1.5 AFAIK.. this is something we want to fix for an upcoming release, as this limits us to JDK 1.5 only.. 

Thus can you try building using JDK 1.5 (you can just change your JAVA_HOME and PATH for a single command window)...

asankha


Re: build problem: test errors on windows

Posted by "Asankha C. Perera" <as...@wso2.com>.
Eric
> trying to build synapse 1.2 branch including execution of unit tests I 
> receive the following errors:
>  
> Tests in error:
>   testThreadSafety(org.apache.synapse.mediators.bsf.ScriptMediatorTest)
>   testThreadSafety(org.apache.synapse.mediators.bsf.ScriptMediatorTest)
>   [...]
>   testThreadSafety(org.apache.synapse.mediators.bsf.ScriptMediatorTest)
>  
> Tests run: 124, Failures: 0, Errors: 55, Skipped: 0
> [INFO] 
> ------------------------------------------------------------------------
> [ERROR] BUILD FAILURE
>
Are you using JDK 1.6.x by any chance? BSF doesn't like JDK > 1.5 
AFAIK.. this is something we want to fix for an upcoming release, as 
this limits us to JDK 1.5 only..

Thus can you try building using JDK 1.5 (you can just change your 
JAVA_HOME and PATH for a single command window)...

asankha