FeitianSmartcardReader / eid-applet

Automatically exported from code.google.com/p/eid-applet
Other
1 stars 0 forks source link

revision 723 build on windows has errors #81

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. download revision 723 (trunk)
2. build on windows 7 system (software versions see below)
3.

What is the expected output? What do you see instead?

Expected: no fails

I see instead:

"FedICT eID Applet Service" fails a test

Failed tests:   
testHandleMessageCorruptIntegritySignature(test.unit.be.fedict.eid.applet.servic
e.IdentityDataMessageHandlerTest): expected:<remote-address> but was:<null>

What version of the product are you using? On what operating system?

Apache Maven 3.0.4 (r1232337; 2012-01-17 09:44:56+0100)
Maven home: C:\turtoisesvn\apache-maven-3.0.4\bin\..
Java version: 1.7.0_09, vendor: Oracle Corporation
Java home: C:\Program Files\Java\jdk1.7.0_09\jre
Default locale: en_US, platform encoding: Cp1252
OS name: "windows 7", version: "6.1", arch: "x86", family: "windows"

Please provide any additional information below.

Here are the mvn errors:

Failed tests:   
testHandleMessageCorruptIntegritySignature(test.unit.be.fedict.eid.applet.servic
e.IdentityDataMessageHandlerTest): expected:<remote-address> but was:<null>

Tests run: 71, Failures: 1, Errors: 0, Skipped: 0

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] FedICT eID Applet Project ......................... SUCCESS [0.444s]
[INFO] FedICT eID Applet Shared .......................... SUCCESS [3.490s]
[INFO] FedICT eID Applet Core ............................ SUCCESS [3.448s]
[INFO] FedICT eID Applet Package ......................... SUCCESS [5.509s]
[INFO] FedICT eID Applet JavaScript ...................... SUCCESS [0.644s]
[INFO] FedICT eID Applet Service SPI ..................... SUCCESS [1.138s]
[INFO] FedICT eID Applet Service ......................... FAILURE [13.758s]
[INFO] FedICT eID Applet Service Signer .................. SKIPPED
[INFO] FedICT eID Applet Service CDI ..................... SKIPPED
[INFO] FedICT eID Applet Test Project .................... SKIPPED
[INFO] FedICT eID Applet Test Model ...................... SKIPPED
[INFO] FedICT eID Applet Test Web Application ............ SKIPPED
[INFO] FedICT eID Applet Test EAR ........................ SKIPPED
[INFO] FedICT eID Applet Test Web Application ............ SKIPPED
[INFO] FedICT eID Applet SQL DDL Plugin .................. SKIPPED
[INFO] FedICT eID Applet BOM ............................. SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 29.041s
[INFO] Finished at: Wed Oct 31 16:01:34 CET 2012
[INFO] Final Memory: 37M/90M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.
9:test (default-test) on project eid-applet-service: There are test failures.
[ERROR]
[ERROR] Please refer to C:\turtoisesvn\eid-applet-read-only\eid-applet-service\t
arget\surefire-reports for the individual test results.
[ERROR] -> [Help 1]
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal o
rg.apache.maven.plugins:maven-surefire-plugin:2.9:test (default-test) on project
 eid-applet-service: There are test failures.

Please refer to C:\turtoisesvn\eid-applet-read-only\eid-applet-service\target\su
refire-reports for the individual test results.
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:213)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:153)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:145)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:84)
        at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProje
ct(LifecycleModuleBuilder.java:59)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.singleThreadedBu
ild(LifecycleStarter.java:183)
        at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(Lifecycl
eStarter.java:161)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:320)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:156)
        at org.apache.maven.cli.MavenCli.execute(MavenCli.java:537)
        at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:196)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:141)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:57)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:601)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced(Laun
cher.java:290)
        at org.codehaus.plexus.classworlds.launcher.Launcher.launch(Launcher.jav
a:230)
        at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode(La
uncher.java:409)
        at org.codehaus.plexus.classworlds.launcher.Launcher.main(Launcher.java:
352)
Caused by: org.apache.maven.plugin.MojoFailureException: There are test failures
.

Please refer to C:\turtoisesvn\eid-applet-read-only\eid-applet-service\target\su
refire-reports for the individual test results.
        at org.apache.maven.plugin.surefire.SurefireHelper.reportExecution(Suref
ireHelper.java:87)
        at org.apache.maven.plugin.surefire.SurefirePlugin.writeSummary(Surefire
Plugin.java:631)
        at org.apache.maven.plugin.surefire.SurefirePlugin.handleSummary(Surefir
ePlugin.java:605)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.executeAfterPre
conditionsChecked(AbstractSurefireMojo.java:136)
        at org.apache.maven.plugin.surefire.AbstractSurefireMojo.execute(Abstrac
tSurefireMojo.java:97)
        at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(Default
BuildPluginManager.java:101)
        at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor
.java:209)
        ... 19 more

Original issue reported on code.google.com by kristof....@gmail.com on 31 Oct 2012 at 3:12

GoogleCodeExporter commented 9 years ago
Try to use Java 6 instead of Java 7.

Original comment by frank.co...@gmail.com on 1 Nov 2012 at 6:00

GoogleCodeExporter commented 9 years ago
Hi,

With Java 6 it is the same issue. It seems to be a problem with the 
FilenameUtils.normalize(String filename) function that normalizes with a '\' on 
windows and with a '/' on Linux/Unix. The idPackageObjectReferenceUris always 
contains links with a '/'. Maybe by using the normalize(String filename, 
boolean unixSeparator) function this can be done by always using the 
unixSeparator for comparisons... 

Best regards,

Kristof

Original comment by kristof....@gmail.com on 2 Nov 2012 at 10:36

GoogleCodeExporter commented 9 years ago
You're right. This is a known problem. Never got fixed as we're not developing 
on Windows.

Original comment by frank.co...@gmail.com on 3 Nov 2012 at 4:58

GoogleCodeExporter commented 9 years ago
Hi,

After changing the 
  FilenameUtils.normalize( string path ) 
commands in the OOXMLSignatureFacet.java and OOXMLSignatureVerifier.java files 
to
  FilenameUtils.separatorsToUnix(FilenameUtils.normalize( string path ))
the build succeeded on windows as well.

I have not read all documentation yet but if I understand correctly all server 
side services should be compiled and tested on Linux and client side code can 
be compiled and tested on all targetted platforms (Linux, Windows and OSX).

Original comment by kristof....@gmail.com on 4 Nov 2012 at 8:05

GoogleCodeExporter commented 9 years ago

Original comment by frank.co...@gmail.com on 30 Nov 2012 at 3:00

GoogleCodeExporter commented 9 years ago
http://code.google.com/p/eid-applet/source/detail?r=774

Original comment by frank.co...@gmail.com on 29 Jul 2013 at 10:58