Continuum

strange trouble on solaris

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Fixed
  • Affects Version/s: 1.0.3
  • Fix Version/s: 1.1-beta-1
  • Component/s: Environmental
  • Labels:
    None
  • Environment:
    solaris
  • Complexity:
    Intermediate
  • Number of attachments :
    2

Description

Hi,
I have a junit test with contains the following code :

SimpleDateFormat simpleDateFormat = new SimpleDateFormat( "yyyy-MM-dd",
Locale.FRANCE );
// harcoded date due to xmlunit comparaison
Date timeStamp = simpleDateFormat.parse( "2001-05-28" );
return DateTools.setNoonHour( timeStamp );

FastDateFormat.getInstance( "yyyy-MM-dd'T'HH:mm:ss.SSSZZ"
).format(date);

On windows+cygwin : 2001-05-28T12:00:00.000+02:00
On solaris with same user who start continuum exec junit with cli :
2001-05-28T12:00:00.000+02:00
The same junit with continuum says : 2001-05-28T12:00:00.000+00:00

Error says :
Expected attribute value '2001-05-28T12:00:00.000+02:00' but was
'2001-05-28T12:00:00.000+00:00' - comparing at
/OTA_HotelAvailRS[1]/@TimeStamp to at /OTA_HotelAvailRS[1]/@TimeStamp

I start continuum with $CONTINUUM_HOME/bin/plexus.sh > /dev/null &

The .profile contains :
...
LANG=en_US.ISO8859-15
export LANG

##opts maven
MAVEN_OPTS="-Xmx512m -Xms512m -Dfile.encoding=ISO-8859-1"
export MAVEN_OPTS
...

I don't change anything on plexus.sh script.

Any ideas ??
Thanks,

Olivier

  1. build.xml
    12/Jul/07 2:40 AM
    0.5 kB
    Otto Kolsi
  2. CONTINUUM-723.tar.gz
    07/Jun/06 6:19 AM
    2 kB
    Olivier Lamy

Activity

Hide
Olivier Lamy added a comment -

Provided simple test case.
You need to scm attributes in the pom to test with continuum.
mvn test works with the cli but the build failed with continuum.

Olivier

Show
Olivier Lamy added a comment - Provided simple test case. You need to scm attributes in the pom to test with continuum. mvn test works with the cli but the build failed with continuum. – Olivier
Hide
Olivier Lamy added a comment -

I have found a workaroud in setup in my tests.
With forcing timeZone :
TimeZone.setDefault( TimeZone.getTimeZone( "MET" ) );

But what I don't understand is why when you using same user same machine same jvm.
log.debug( "TimeZone.getDefault().getID() : " + TimeZone.getDefault().getID() );
display different values with running test with maven in cli and running the same test in continuum ??

Thanks for light,

Olivier

Show
Olivier Lamy added a comment - I have found a workaroud in setup in my tests. With forcing timeZone : TimeZone.setDefault( TimeZone.getTimeZone( "MET" ) ); But what I don't understand is why when you using same user same machine same jvm. log.debug( "TimeZone.getDefault().getID() : " + TimeZone.getDefault().getID() ); display different values with running test with maven in cli and running the same test in continuum ?? Thanks for light, – Olivier
Hide
Olivier Lamy added a comment -

confirm as fix (test with the attached test project which failed on 1.1-alpha-2)
See thread on user ML too (http://www.nabble.com/System-time-problem-in-Solaris-10-environment-%28Ant-%2B-Continuum%29-tf4029050.html)
Looks fixed by plexus-utils-svn rev 6555.
Try same version of continuum with p-u 1.4.2 and it failed.

Show
Olivier Lamy added a comment - confirm as fix (test with the attached test project which failed on 1.1-alpha-2) See thread on user ML too (http://www.nabble.com/System-time-problem-in-Solaris-10-environment-%28Ant-%2B-Continuum%29-tf4029050.html) Looks fixed by plexus-utils-svn rev 6555. Try same version of continuum with p-u 1.4.2 and it failed.
Hide
Otto Kolsi added a comment -

Added very simple Ant test build file which when executed in Solaris 10 SPARC environment with Continuum 1.0.3 gives wrong system time (does not take into account timezones). Same test works correctly with Continuum 1.1 SNAPSHOT.

Show
Otto Kolsi added a comment - Added very simple Ant test build file which when executed in Solaris 10 SPARC environment with Continuum 1.0.3 gives wrong system time (does not take into account timezones). Same test works correctly with Continuum 1.1 SNAPSHOT.

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: