BuildError: JAXWS fails with java.security.InvalidAlgorithmParameterException

Kumar Kandasami kumaravel.kandasami at gmail.com
Tue May 7 16:23:14 PDT 2013


Hi:  Currently my build fails on the JaxWS component. Also, I am using the
"ALLOW_DOWNLOADS" tag to download the .zip files during the build process.
Is there any workaround for the InvalidAlgorithmParameterException ?

Thank you.


-- Environment --

RHEL 6.4/PPC64

-- BUILD COMMAND --

make fastdebug_build \

ALT_OUTPUTDIR=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist \

ANT_HOME=/home/u0012225/openjdk-7-src/apache-ant-1.8.0 \

ALT_BOOTDIR=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03 \

FT_CFLAGS=-m64 \

ARCH_DATA_MODEL=64 \

ALT_FREETYPE_HEADERS_PATH=/usr/include/freetype2/freetype/ \

VERBOSE=true CC_INTERP=true \
OPENJDK=true \
HOTSPOT_BUILD_JOBS=8 \
PARALLEL_COMPILE_JOBS=8 \
*ALLOW_DOWNLOADS=true*


-- ERROR -- -


########################################################################
########################################################################
##### Entering jaxws for target(s) all                             #####
########################################################################

(cd  ./jaxws/make && \
 make JDK_TOPDIR=/home/u0012225/openjdk-7-src/jdk7/jdk
JDK_MAKE_SHARED_DIR=/home/u0012225/openjdk-7-src/jdk7/jdk/make/common/shared
EXTERNALSANITYCONTROL=true SOURCE_LANGUAGE_VERSION=7 TARGET_CLASS_VERSION=7
MILESTONE=internal BUILD_NUMBER=b00 JDK_BUILD_NUMBER=b00
FULL_VERSION=1.7.0-internal-fastdebug-u0012225_2013_05_07_18_16-b00
PREVIOUS_JDK_VERSION=1.6.0 JDK_VERSION=1.7.0 JDK_MKTG_VERSION=7
JDK_MAJOR_VERSION=1 JDK_MINOR_VERSION=7 JDK_MICRO_VERSION=0
PREVIOUS_MAJOR_VERSION=1 PREVIOUS_MINOR_VERSION=6 PREVIOUS_MICRO_VERSION=0
ARCH_DATA_MODEL=64 VARIANT=DBG FASTDEBUG=true DEBUG_CLASSFILES=true
COOKED_BUILD_NUMBER=0
ANT_HOME="/home/u0012225/openjdk-7-src/apache-ant-1.8.0"
ALT_OUTPUTDIR=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/jaxws
ALT_BOOTDIR=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03
ALT_JDK_IMPORT_PATH=/NOT-SET/re/jdk/1.7.0/promoted/latest/binaries/linux-ppc64
ALT_LANGTOOLS_DIST=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/langtools/dist
all)
make[3]: Entering directory `/home/u0012225/openjdk-7-src/jdk7/jaxws/make'
cd .. && JAVA_HOME=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03
/home/u0012225/openjdk-7-src/apache-ant-1.8.0/bin/ant -verbose
-Djavac.target=7 -Djavac.source=7 -Dallow.downloads=true
-Ddrops.dir=/java/devtools/share/jdk7-drops
-Doutput.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/jaxws
-Djdk.home=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03
-Dbootstrap.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/langtools/dist/bootstrap
-version
Apache Ant version 1.8.0 compiled on February 1 2010
cd .. && JAVA_HOME=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03
/home/u0012225/openjdk-7-src/apache-ant-1.8.0/bin/ant -verbose
-Djavac.target=7 -Djavac.source=7 -Dallow.downloads=true
-Ddrops.dir=/java/devtools/share/jdk7-drops
-Doutput.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/jaxws
-Djdk.home=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03
-Dbootstrap.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/langtools/dist/bootstrap
all
Apache Ant version 1.8.0 compiled on February 1 2010
Trying the default build file: build.xml
Buildfile: /home/u0012225/openjdk-7-src/jdk7/jaxws/build.xml
Detected Java version: 1.6 in:
/home/u0012225/openjdk1.7.0-ppc-aix-port-b03/jre
Detected OS: Linux
parsing buildfile /home/u0012225/openjdk-7-src/jdk7/jaxws/build.xml with
URI = file:/home/u0012225/openjdk-7-src/jdk7/jaxws/build.xml
Project base dir set to: /home/u0012225/openjdk-7-src/jdk7/jaxws
parsing buildfile
jar:file:/home/u0012225/openjdk-7-src/apache-ant-1.8.0/lib/ant.jar!/org/apache/tools/ant/antlib.xml
with URI =
jar:file:/home/u0012225/openjdk-7-src/apache-ant-1.8.0/lib/ant.jar!/org/apache/tools/ant/antlib.xml
from a zip file
 [property] Loading /home/u0012225/openjdk-7-src/jdk7/jaxws/build.properties
Property "drop.dir" has not been set
Override ignored for property "output.dir"
Override ignored for property "javac.source"
Override ignored for property "jdk.home"
Override ignored for property "drops.dir"
Override ignored for property "javac.target"
[available] Unable to find dir drop_included
Importing file /home/u0012225/openjdk-7-src/jdk7/jaxws/build-defs.xml from
/home/u0012225/openjdk-7-src/jdk7/jaxws/build.xml
parsing buildfile /home/u0012225/openjdk-7-src/jdk7/jaxws/build-defs.xml
with URI = file:/home/u0012225/openjdk-7-src/jdk7/jaxws/build-defs.xml
 [property] Loading /home/u0012225/openjdk-7-src/jdk7/jaxws/jaxws.properties
 [macrodef] creating macro  drop-import
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated
because it already exists.
     [copy] /home/u0012225/openjdk-7-src/jdk7/jaxws/build-drop-template.xml
omitted as
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaxws_src.xml
is up to date.
  [replace] Replacing in
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaxws_src.xml:
@DROP@ --> jaxws_src
Importing file
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaxws_src.xml
from /home/u0012225/openjdk-7-src/jdk7/jaxws/build-defs.xml
parsing buildfile
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaxws_src.xml
with URI =
file:/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaxws_src.xml
[available] Unable to find file
/java/devtools/share/jdk7-drops/jdk7-jaxws2_2_4-b03-2011_05_27.zip
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated
because it already exists.
     [copy] /home/u0012225/openjdk-7-src/jdk7/jaxws/build-drop-template.xml
omitted as
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaf_src.xml
is up to date.
  [replace] Replacing in
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaf_src.xml:
@DROP@ --> jaf_src
Importing file
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaf_src.xml
from /home/u0012225/openjdk-7-src/jdk7/jaxws/build-defs.xml
parsing buildfile
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaf_src.xml
with URI =
file:/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaf_src.xml
[available] Unable to find file
/java/devtools/share/jdk7-drops/jdk7-jaf-2010_08_19.zip
[available] Found file:
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/langtools/dist/bootstrap/lib/javac.jar
Build sequence for target(s) `all' is [-banner, -javac-jar-exists, sanity,
init, -jaxws_src-ready, -jaxws_src-copy-bundle,
-jaxws_src-url-should-be-used, -jaxws_src-url-bundle, jaxws_src-update,
-jaf_src-ready, -jaf_src-copy-bundle, -jaf_src-url-should-be-used,
-jaf_src-url-bundle, jaf_src-update, -set-props, -use-drop, -src-help,
-init-src-dirs, compile, -drop-build-setup, -build-setup, build,
-dist-classes-jar-uptodate, -dist-classes-jar, -drop-src-zip,
-dist-src-zip, dist, all]
Complete build sequence is [-banner, -javac-jar-exists, sanity, init,
-jaxws_src-ready, -jaxws_src-copy-bundle, -jaxws_src-url-should-be-used,
-jaxws_src-url-bundle, jaxws_src-update, -jaf_src-ready,
-jaf_src-copy-bundle, -jaf_src-url-should-be-used, -jaf_src-url-bundle,
jaf_src-update, -set-props, -use-drop, -src-help, -init-src-dirs, compile,
-drop-build-setup, -build-setup, build, -dist-classes-jar-uptodate,
-dist-classes-jar, -drop-src-zip, -dist-src-zip, dist, all, ,
jaf_src-drop.-jaf_src-url-should-be-used, test,
jaf_src-drop.jaf_src-update, jaf_src-drop.-jaf_src-url-bundle,
jaxws_src-drop.-jaxws_src-url-bundle, jaxws_defs.-use-drop,
jaxws_defs.-dist-src-zip, jaxws_defs.-init-src-dirs,
jaf_src-drop.-jaf_src-copy-bundle, clean, clobber, drop_included,
jaxws_defs.-drop-build-setup, source, jaxws_defs.-set-props,
jaxws_src-drop.-jaxws_src-ready, jaxws_src-drop.jaxws_src-update,
jaxws_defs.-src-help, jaxws_src-drop.-jaxws_src-copy-bundle,
jaxws_defs.-drop-src-zip, jaf_src-drop.-jaf_src-ready,
jaxws_src-drop.-jaxws_src-url-should-be-used]

-banner:
     [echo] +---------------------------------------+
     [echo] + Starting ant project jaxws +
     [echo] +---------------------------------------+

-javac-jar-exists:
Skipped because property 'javac.jar.exists' set.

sanity:
     [echo] Sanity Settings:
     [echo] ant.home=/home/u0012225/openjdk-7-src/apache-ant-1.8.0
     [echo] ant.version=Apache Ant version 1.8.0 compiled on February 1 2010
     [echo] ant.java.version=1.6
     [echo] java.home=/home/u0012225/openjdk1.7.0-ppc-aix-port-b03/jre
     [echo] java.version=1.7.0-internal
     [echo] os.name=Linux
     [echo] os.arch=ppc64
     [echo] os.version=2.6.32-358.el6.ppc64
     [echo]
bootstrap.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/langtools/dist/bootstrap
     [echo]
javac.jar=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/langtools/dist/bootstrap/lib/javac.jar
     [echo] javac.memoryInitialSize=256m
     [echo] javac.memoryMaximumSize=512m
     [echo] javac.source=7
     [echo] javac.debug=true
     [echo] javac.target=7
     [echo] javac.version.opt=
     [echo] javac.lint.opts=
     [echo] javac.no.jdk.warnings=-XDignore.symbol.file=true
     [echo]
output.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/jaxws
     [echo]
build.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/jaxws/build
     [echo]
dist.dir=/home/u0012225/openjdk-7-src/jdk7/jdk7-dist/../jdk7-dist-fastdebug/jaxws/dist
     [echo] drop.dir=${drop.dir}
     [echo] drops.dir=/java/devtools/share/jdk7-drops
     [echo]

init:
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build because
it already exists.
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/classes
because it already exists.
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/dist because it
already exists.
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/dist/lib
because it already exists.

-jaxws_src-ready:
[available] Unable to find dir drop_included
[available] Found directory:
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/jaxws_src
[available] Found file:
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/jaxws_src/PATCHED

-jaxws_src-copy-bundle:
Skipped because property 'jaxws_src.master.bundle.copy.exists' not set.

-jaxws_src-url-should-be-used:

-jaxws_src-url-bundle:
Skipped because property 'jaxws_src.ready' set.

jaxws_src-update:
Skipped because property 'jaxws_src.master.bundle.found' not set.

-jaf_src-ready:
[available] Unable to find dir drop_included
[available] Unable to find dir
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/jaf_src

-jaf_src-copy-bundle:
Skipped because property 'jaf_src.master.bundle.copy.exists' not set.

-jaf_src-url-should-be-used:

-jaf_src-url-bundle:
     [echo] Downloading from
https://java.net/downloads/jax-ws/JDK7/jdk7-jaf-2010_08_19.zip
    [mkdir] Skipping
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/bundles
because it already exists.
   [delete] Could not find file
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/bundles/jdk7-jaf-2010_08_19.zip.temp
to delete.
   [delete] Could not find file
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/bundles/jdk7-jaf-2010_08_19.zip
to delete.
      [get] Getting:
https://java.net/downloads/jax-ws/JDK7/jdk7-jaf-2010_08_19.zip
      [get] To:
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/bundles/jdk7-jaf-2010_08_19.zip.temp
      [get] Error getting
https://java.net/downloads/jax-ws/JDK7/jdk7-jaf-2010_08_19.zip to
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/drop/bundles/jdk7-jaf-2010_08_19.zip.temp

BUILD FAILED
/home/u0012225/openjdk-7-src/jdk7/jdk7-dist-fastdebug/jaxws/build/xml_generated/build-drop-jaf_src.xml:96:
javax.net.ssl.SSLException: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
 at sun.security.ssl.Alerts.getSSLException(Alerts.java:208)
at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1902)
 at sun.security.ssl.SSLSocketImpl.fatal(SSLSocketImpl.java:1860)
at sun.security.ssl.SSLSocketImpl.handleException(SSLSocketImpl.java:1843)
 at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1362)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1339)
 at
sun.net.www.protocol.https.HttpsClient.afterConnect(HttpsClient.java:515)
at
sun.net.www.protocol.https.AbstractDelegateHttpsURLConnection.connect(AbstractDelegateHttpsURLConnection.java:185)
 at
sun.net.www.protocol.https.HttpsURLConnectionImpl.connect(HttpsURLConnectionImpl.java:153)
at org.apache.tools.ant.taskdefs.Get$GetThread.openConnection(Get.java:661)
 at org.apache.tools.ant.taskdefs.Get$GetThread.get(Get.java:581)
at org.apache.tools.ant.taskdefs.Get$GetThread.run(Get.java:571)
Caused by: java.lang.RuntimeException: Unexpected error:
java.security.InvalidAlgorithmParameterException: the trustAnchors
parameter must be non-empty
at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:90)
 at sun.security.validator.Validator.getInstance(Validator.java:179)
at
sun.security.ssl.X509TrustManagerImpl.getValidator(X509TrustManagerImpl.java:314)
 at
sun.security.ssl.X509TrustManagerImpl.checkTrustedInit(X509TrustManagerImpl.java:173)
at
sun.security.ssl.X509TrustManagerImpl.checkTrusted(X509TrustManagerImpl.java:186)
 at
sun.security.ssl.X509TrustManagerImpl.checkServerTrusted(X509TrustManagerImpl.java:126)
at
sun.security.ssl.ClientHandshaker.serverCertificate(ClientHandshaker.java:1320)
 at
sun.security.ssl.ClientHandshaker.processMessage(ClientHandshaker.java:154)
at sun.security.ssl.Handshaker.processLoop(Handshaker.java:868)
 at sun.security.ssl.Handshaker.process_record(Handshaker.java:804)
at sun.security.ssl.SSLSocketImpl.readRecord(SSLSocketImpl.java:1032)
 at
sun.security.ssl.SSLSocketImpl.performInitialHandshake(SSLSocketImpl.java:1328)
at sun.security.ssl.SSLSocketImpl.startHandshake(SSLSocketImpl.java:1355)
 ... 7 more
Caused by: java.security.InvalidAlgorithmParameterException: the
trustAnchors parameter must be non-empty
at
java.security.cert.PKIXParameters.setTrustAnchors(PKIXParameters.java:200)
 at java.security.cert.PKIXParameters.<init>(PKIXParameters.java:120)
at
java.security.cert.PKIXBuilderParameters.<init>(PKIXBuilderParameters.java:104)
 at sun.security.validator.PKIXValidator.<init>(PKIXValidator.java:88)
... 19 more

Total time: 1 second
make[3]: *** [all] Error 1
make[3]: Leaving directory `/home/u0012225/openjdk-7-src/jdk7/jaxws/make'
make[2]: *** [jaxws-build] Error 2
make[2]: Leaving directory `/home/u0012225/openjdk-7-src/jdk7'
make[1]: *** [generic_debug_build] Error 2
make[1]: Leaving directory `/home/u0012225/openjdk-7-src/jdk7'
make: *** [build_fastdebug_image] Error 2

Kumar    _/|\_
www.saisk.com
kumar at saisk.com
"making a profound difference with knowledge and creativity..."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.openjdk.java.net/pipermail/ppc-aix-port-dev/attachments/20130507/f052ba4f/attachment-0001.html 


More information about the ppc-aix-port-dev mailing list