This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 36966 - java.security.NoSuchAlgorithmException with j2sdk1.4.1 by IBM on powerpc
Summary: java.security.NoSuchAlgorithmException with j2sdk1.4.1 by IBM on powerpc
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 3.x
Hardware: Other Linux
: P3 blocker (vote)
Assignee: Jesse Glick
URL: https://listman.redhat.com/archives/r...
Keywords: JDK_SPECIFIC
Depends on:
Blocks:
 
Reported: 2003-11-01 21:45 UTC by eppesuigoccas
Modified: 2008-12-22 16:59 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
output of the execution and of java -version (1.10 KB, text/plain)
2003-11-01 21:46 UTC, eppesuigoccas
Details
the source code (383 bytes, text/plain)
2003-11-05 13:49 UTC, eppesuigoccas
Details
provider list (2.36 KB, text/plain)
2003-11-05 13:50 UTC, eppesuigoccas
Details
Possible patch - pls. check if it works for you on IBM JDK, if you have time to build from sources (1.34 KB, patch)
2003-11-05 16:43 UTC, Jesse Glick
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description eppesuigoccas 2003-11-01 21:45:10 UTC
NetBeansIDE-dev-200310291900.tar.bz2
 on Linux/PPC
IDE doesn't even startup because of
java.security.NoSuchAlgorithmException: SHA1PRNG
SecureRandom not available

The java version is 1.4.1 from IBM
Comment 1 eppesuigoccas 2003-11-01 21:46:59 UTC
Created attachment 12035 [details]
output of the execution and of java -version
Comment 2 David Konecny 2003-11-03 11:05:56 UTC
Jesse, cvs annotate says that you are the last person working on
org.netbeans.CLIHandler class. I have no idea whether this algorithm
is required and it is bug of IBM JDK or not. Post at
<https://listman.redhat.com/archives/redhat-ccm-list/2003-January/msg00043.html>
suggests to try different algorithm for IBM JDK.
Comment 3 Jesse Glick 2003-11-04 06:09:12 UTC
Hmm, according to

http://java.sun.com/j2se/1.4.1/docs/guide/security/CryptoSpec.html#AppA

it seems that the IBM JDK is in error for not supporting this
algorithm - but maybe I am misreading the specification. Anyway,
thanks for the tip, I will try to fix.
Comment 4 eppesuigoccas 2003-11-05 13:49:28 UTC
Created attachment 12072 [details]
the source code
Comment 5 eppesuigoccas 2003-11-05 13:50:24 UTC
Created attachment 12073 [details]
provider list
Comment 6 eppesuigoccas 2003-11-05 13:51:43 UTC
I just wrote a program that lists all security provider from IBM JVM.
Comment 7 Jesse Glick 2003-11-05 16:43:55 UTC
Created attachment 12077 [details]
Possible patch - pls. check if it works for you on IBM JDK, if you have time to build from sources
Comment 8 eppesuigoccas 2003-11-11 20:33:16 UTC
I never tried to rebuild the NetBeans, but I will try to have a look
at it. I am downloading all sources right now.
Comment 9 eppesuigoccas 2003-11-12 00:37:13 UTC
Actually I cannot compile the vanilla sources:

all-xml/tax:
     [echo] Building module xml/tax...

init:

compile:
 [for-each] Process 'lib' location with 'compile' target ...

set-buildnumber:

init:
     [echo] buildnumber = 031112

unscramble:

compile:
     [echo] Compiling TAX library classes...
    [javac] Compiling 139 source files to
/home/giuseppe/src/netbeans-src/xml/tax/lib/src
 [for-each]
/home/giuseppe/src/netbeans-src/xml/tax/lib/src/org/netbeans/tax/io/XNIBuilder.java:1513:
cannot resolve symbol
 [for-each] symbol  : method getSystemId ()
 [for-each] location: interface org.apache.xerces.xni.XMLLocator
 [for-each]                     String entity = locator.getSystemId ();
 [for-each]                                            ^
 [for-each] 1 error
Comment 10 eppesuigoccas 2003-11-12 01:14:53 UTC
I just checked out the trunk_ant module from CVS and then compield it.
The compilation failed in this way. Do you have any suggestion?

netbeans:
  [genlist] Generating information for Auto Update...

all-ui/welcome:
     [echo] Building module ui/welcome...

BUILD FAILED
file:/home/giuseppe/src/netbeans-cvs/nbbuild/build.xml:737: Basedir
/home/giuseppe/src/netbeans-cvs/ui/welcome does not exist
Comment 11 eppesuigoccas 2003-11-12 01:26:35 UTC
I will not keep compiling the source for today.
anyway: I checked your source and I think it is good.
Comment 12 Jesse Glick 2003-11-12 09:56:28 UTC
Don't worry about building from sources, I will try to put the patch
into the trunk and you can check in a dev build after it is committed.
Comment 13 eppesuigoccas 2003-11-12 10:13:12 UTC
I found that I am not the only one that can't compile from CVS. In
this email the netbeans builder say how to get the latest compilable
CVS source.

http://www.netbeans.org/servlets/ReadMsg?msgId=614981&listName=automated_builds

so I checked out the compilable version and tried to compile with ant.
After some time I got the same error.
So, as you suggested, I will wait for your commit.
Anyway, I think there is some other problem, compiling with IBM JSDK.

compile:
     [echo] Compiling TAX library classes...
    [javac] Compiling 139 source files to
/home/giuseppe/src/netbeans-stable-cvs/xml/tax/lib/src
 [for-each]
/home/giuseppe/src/netbeans-stable-cvs/xml/tax/lib/src/org/netbeans/tax/io/XNIBuilder.java:1513:
cannot resolve symbol
 [for-each] symbol  : method getSystemId ()
 [for-each] location: interface org.apache.xerces.xni.XMLLocator
 [for-each]                     String entity = locator.getSystemId ();
 [for-each]                                            ^
 [for-each] 1 error
Comment 14 eppesuigoccas 2003-11-14 06:49:08 UTC
I did try the new development snapshot dated 20031113 and it works. I
think that this patch is applied but I coundn't check (lack of time).

Moreover I found other problems in starting the new netbeans, like
having the option -J-ea in bin/ide.cfg that block netbeans since the
IBM java command gives error when run with this option.

should I close this issue and open a new one for so small problem or
is enought to send en email to nbdev mailing list?
Comment 15 Jesse Glick 2003-11-14 11:11:28 UTC
This patch has not yet been applied, so I am curious how a new dev
build could have changed the behavior.

Re. -ea: please open a fresh bug, it is not related to this at all.
Use core component, subcomponent code, keyword JDK_SPECIFIC. Please
add any info you know re. what the IBM VM uses to turn on assertions.
Comment 16 Jesse Glick 2003-11-14 14:27:43 UTC
Patch applied in trunk, should be in next dev build produced.

committed     Up-To-Date  1.7        
core/bootstrap/src/org/netbeans/CLIHandler.java
Comment 17 Marian Mirilovic 2005-07-13 13:27:01 UTC
closed