From owner-freebsd-java@FreeBSD.ORG Tue Apr 22 09:25:10 2014 Return-Path: Delivered-To: freebsd-java@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 23EE6D13 for ; Tue, 22 Apr 2014 09:25:10 +0000 (UTC) Received: from smarthost1.greenhost.nl (smarthost1.greenhost.nl [195.190.28.81]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id D92B11AE6 for ; Tue, 22 Apr 2014 09:25:09 +0000 (UTC) Received: from smtp.greenhost.nl ([213.108.104.138]) by smarthost1.greenhost.nl with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1WcWhx-00050h-W7 for freebsd-java@freebsd.org; Tue, 22 Apr 2014 11:09:42 +0200 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes To: freebsd-java@freebsd.org Subject: Re: Difference between openjdk and linux-sun-java References: Date: Tue, 22 Apr 2014 11:09:40 +0200 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: "Ronald Klop" Message-ID: In-Reply-To: User-Agent: Opera Mail/12.16 (Win32) X-Authenticated-As-Hash: 398f5522cb258ce43cb679602f8cfe8b62a256d1 X-Virus-Scanned: by clamav at smarthost1.samage.net X-Spam-Level: - X-Spam-Score: -1.0 X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, BAYES_40 autolearn=disabled version=3.3.2 X-Scan-Signature: c09395f469c52153b963e4ff2d10f427 X-BeenThere: freebsd-java@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: Porting Java to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Apr 2014 09:25:10 -0000 On Sat, 19 Apr 2014 20:47:52 +0200, Juris Kaminskis wrote: > Hello, > > I have $ java -version > openjdk version "1.6.0_32" > OpenJDK Runtime Environment (build 1.6.0_32-b30) > OpenJDK 64-Bit Server VM (build 23.25-b01, mixed mode) > > and > > $ /usr/local/linux-sun-jdk1.7.0/bin/java -version > java version "1.7.0_51" > Java(TM) SE Runtime Environment (build 1.7.0_51-b13) > Java HotSpot(TM) Server VM (build 24.51-b03, mixed mode) > > When I run my compiled class with openjdk I get: > > 21:43:47,348 ERROR [I] > java.lang.NullPointerException > at org.jcp.xml.dsig.internal.dom.Utils.getBoolean(Utils.java:114) > at org.jcp.xml.dsig.internal.dom.Utils.secureValidation(Utils.java:110) > > but when I run with linux-sun-java version no error is generated. I > understood that it is related to Interface XMLCryptoContext, but how can > I > pinpoint the difference to trace why openjdk is not working for me on > freebsd? > > thanks for any hints > Juris Quite a hard question for people to answer without any example code which people can use to replay your issue. According to some on-line docs there is no secureValidation() or getBoolean() method in that Utils class: http://www.docjar.com/html/api/org/jcp/xml/dsig/internal/dom/Utils.java.html So I can't comment on your issue without more information. My advice would be to download the source of the org.jcp...bla package you are using (maybe it is inside the jdk, I don't know from your information and don't the time to look it up for you) and look at the mentioned line numbers what is happening so it generates a NPE. Regards, Ronald.