Update of source to JDK1.4 compatibility?
Baltz, Kenneth
Kbaltz@firstam.com
Fri, 4 Oct 2002 09:46:33 -0700
This message is in MIME format. Since your mail reader does not understand
this format, some or all of this message may not be legible.
------_=_NextPart_001_01C26BC5.99024F70
Content-Type: text/plain;
charset=iso-8859-1
Content-Transfer-Encoding: 7bit
Our app has a need to connect to a remote sshv2 server and execute commands,
optionally capturing stdout/stderr in response. I was able to get this to
work with the source downloaded from AppGate, but not using the 1.4 JDK.
Using 1.3, everything compiles and executes fine, but with 1.4, I get:
java.lang.VerifyError: (class:
com/mindbright/security/publickey/DHKeyPairGenerator, method:
generateKeyPair signature: ()Lcom/mindbright/jca/security/KeyPair;)
Incompatible object argument for function call
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at
com.mindbright.jca.security.ProviderLookup.getImplementation(ProviderLookup.
java:66)
at
com.mindbright.jca.security.KeyPairGenerator.getInstance(KeyPairGenerator.ja
va:58)
at
com.mindbright.jca.security.KeyPairGenerator.getInstance(KeyPairGenerator.ja
va:48)
at
com.mindbright.ssh2.SSH2KEXDHGroup1SHA1.generateDHKeyPair(SSH2KEXDHGroup1SHA
1.java:191)
at
com.mindbright.ssh2.SSH2KEXDHGroup1SHA1.init(SSH2KEXDHGroup1SHA1.java:54)
at
com.mindbright.ssh2.SSH2Transport.processKEXINIT(SSH2Transport.java:1077)
at
com.mindbright.ssh2.SSH2Transport.transportReceiveLoop(SSH2Transport.java:12
70)
at
com.mindbright.ssh2.SSH2Transport.access$100(SSH2Transport.java:83)
at com.mindbright.ssh2.SSH2Transport$2.run(SSH2Transport.java:284)
at java.lang.Thread.run(Thread.java:536)
I assume this is related to the crypto classes being moved into the JDK.
Our company might be interested in purchasing a license, but we would need
to be able to use this code with JDK 1.4.
BTW, a number of posts in the mailing list archives reference example code.
There wasn't any in the source archive I downloaded. Where would I find
examples?
K.C. Baltz
------_=_NextPart_001_01C26BC5.99024F70
Content-Type: text/html;
charset=iso-8859-1
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Diso-8859-1">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
5.5.2653.12">
<TITLE>Update of source to JDK1.4 compatibility?</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=3D2 FACE=3D"Arial">Our app has a need to connect to a =
remote sshv2 server and execute commands, optionally capturing =
stdout/stderr in response. I was able to get this to work with =
the source downloaded from AppGate, but not using the 1.4 JDK. =
Using 1.3, everything compiles and executes fine, but with 1.4, I =
get:</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">java.lang.VerifyError: (class: =
com/mindbright/security/publickey/DHKeyPairGenerator, method: =
generateKeyPair signature: ()Lcom/mindbright/jca/security/KeyPair;) =
Incompatible object argument for function call</FONT></P>
<P><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
java.lang.Class.forName0(Native Method)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
java.lang.Class.forName(Class.java:130)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.jca.security.ProviderLookup.getImplementation(ProviderLoo=
kup.java:66)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.jca.security.KeyPairGenerator.getInstance(KeyPairGenerato=
r.java:58)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.jca.security.KeyPairGenerator.getInstance(KeyPairGenerato=
r.java:48)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.ssh2.SSH2KEXDHGroup1SHA1.generateDHKeyPair(SSH2KEXDHGroup=
1SHA1.java:191)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.ssh2.SSH2KEXDHGroup1SHA1.init(SSH2KEXDHGroup1SHA1.java:54=
)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.ssh2.SSH2Transport.processKEXINIT(SSH2Transport.java:1077=
)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.ssh2.SSH2Transport.transportReceiveLoop(SSH2Transport.jav=
a:1270)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.ssh2.SSH2Transport.access$100(SSH2Transport.java:83)</FON=
T>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
com.mindbright.ssh2.SSH2Transport$2.run(SSH2Transport.java:284)</FONT>
<BR><FONT SIZE=3D2 =
FACE=3D"Arial"> at =
java.lang.Thread.run(Thread.java:536)</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">I assume this is related to the crypto =
classes being moved into the JDK. </FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">Our company might be interested in =
purchasing a license, but we would need to be able to use this code =
with JDK 1.4.</FONT>
</P>
<P><FONT SIZE=3D2 FACE=3D"Arial">BTW, a number of posts in the mailing =
list archives reference example code. There wasn't any in the =
source archive I downloaded. Where would I find =
examples?</FONT></P>
<P><FONT SIZE=3D2 FACE=3D"Arial">K.C. Baltz</FONT>
</P>
</BODY>
</HTML>
------_=_NextPart_001_01C26BC5.99024F70--