[WSS4J] XMLEncryptionException: Paddding: ISO10126PADDING not implemented
"Dimuthu Leelarathne." <[email protected]> Mon, 2 Feb 2004 12:52:57 -0800
| Newsgroups | gmane.text.xml.wss4j |
|---|---|
| Message-ID | <001301c3e9ce$8950bb10$eb08f8c0@SecureZone> |
This is a multi-part message in MIME format.
------=_NextPart_000_0010_01C3E98B.7B264F20
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
Hi all,
I have set all the classpaths correctly, and this code nicely build and =
run at the university lab,
but I am getting the following exception, when I build it at home. I am =
using widnows-XP and tomcat4.1.24 on both machines.
I am a bit confused about the phenomena.
The exceoption I get is "XMLEncryptionException: Paddding: =
ISO10126PADDING not implemented".
I have given the stack trace below. I am using a slightly older code. I =
downloaded the code last week.
It is a great help if someone can point out what I am doing wrong? I am =
really confused.
Thanking you in advance,
Dimuthu.
org.apache.xml.security.encryption.XMLEncryptionException: Paddding: =
ISO10126PADDING not implemented
Original Exception was javax.crypto.NoSuchPaddingException: Paddding: =
ISO10126PADDING not implemented
at =
org.apache.xml.security.encryption.XMLCipher.getInstance(XMLCipher.java:3=
19)
at =
org.apache.ws.security.message.WSEncryptBody.build(WSEncryptBody.java:286=
)
at =
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:333)
at =
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at =
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)
at org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)
javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not =
implemented
at com.sun.crypto.provider.DESedeCipher.engineSetPadding(DashoA6275)
at javax.crypto.Cipher.getInstance(DashoA6275)
at =
org.apache.xml.security.encryption.XMLCipher.getInstance(XMLCipher.java:3=
12)
at =
org.apache.ws.security.message.WSEncryptBody.build(WSEncryptBody.java:286=
)
at =
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:333)
at =
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at =
org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)Paddding: =
ISO10126PADDING not implemented
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at =
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)
at org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)
AxisFault
faultCode: =
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:=20
faultString: Paddding: ISO10126PADDING not implementedWSDoAllSender: =
Encryption: error during message =
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding: ISO10126PADDING not implemented
Original Exception was javax.crypto.NoSuchPaddingException: Paddding: =
ISO10126PADDING not implemented
faultActor:=20
faultNode:=20
faultDetail:=20
{http://xml.apache.org/axis/}stackTrace:AxisFault
faultCode: =
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException
faultSubcode:=20
faultString: Paddding: ISO10126PADDING not implementedWSDoAllSender: =
Encryption: error during message =
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding: ISO10126PADDING not implemented
Original Exception was javax.crypto.NoSuchPaddingException: Paddding: =
ISO10126PADDING not implemented
faultActor:=20
faultNode:=20
faultDetail:=20
Paddding: ISO10126PADDING not implementedWSDoAllSender: Encryption: =
error during message =
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding: ISO10126PADDING not implemented
Original Exception was javax.crypto.NoSuchPaddingException: Paddding: =
ISO10126PADDING not implemented
at =
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:335)
at =
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at =
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)
at org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)
Paddding: ISO10126PADDING not implementedWSDoAllSender: Encryption: =
error during message =
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding: ISO10126PADDING not implemented
Original Exception was javax.crypto.NoSuchPaddingException: Paddding: =
ISO10126PADDING not implemented
at =
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:335)
at =
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)
at org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)
at org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)
at org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)
at org.apache.axis.client.Call.invokeEngine(Call.java:2682)
at org.apache.axis.client.Call.invoke(Call.java:2665)
at org.apache.axis.client.Call.invoke(Call.java:2355)
at org.apache.axis.client.Call.invoke(Call.java:2278)
at org.apache.axis.client.Call.invoke(Call.java:1772)
at =
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)
at org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)
Exception in thread "main"=20
------=_NextPart_000_0010_01C3E98B.7B264F20
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2600.0" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>I have set all the classpaths =
correctly, and this=20
code nicely build and run at the university lab,<BR>but I am getting the =
following exception, when I build it at home. I am using widnows-XP and=20
tomcat4.1.24 on both machines.<BR>I am a bit confused about the=20
phenomena.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>The exceoption I get is =
"XMLEncryptionException:=20
Paddding: ISO10126PADDING not implemented".<BR>I have given the stack =
trace=20
below. I am using a slightly older code. I downloaded the code last=20
week.</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>It is a great help if someone can point =
out what I=20
am doing wrong? I am really confused.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT> </DIV>
<DIV><FONT face=3DArial size=3D2>Thanking you in advance,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>Dimuthu.</FONT></DIV><FONT face=3DArial =
size=3D2>
<DIV><BR>org.apache.xml.security.encryption.XMLEncryptionException: =
Paddding:=20
ISO10126PADDING not implemented<BR>Original Exception was=20
javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not=20
implemented<BR> at=20
org.apache.xml.security.encryption.XMLCipher.getInstance(XMLCipher.java:3=
19)<BR> at=20
org.apache.ws.security.message.WSEncryptBody.build(WSEncryptBody.java:286=
)<BR> at=20
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:333)<=
BR> at=20
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)<BR> at=20
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)<BR> at =
org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)<BR> at=20
org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)<BR> at=
=20
org.apache.axis.client.Call.invokeEngine(Call.java:2682)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2665)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2355)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2278)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:1772)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)<BR>jav=
ax.crypto.NoSuchPaddingException:=20
Paddding: ISO10126PADDING not implemented<BR> at=20
com.sun.crypto.provider.DESedeCipher.engineSetPadding(DashoA6275)<BR>&nbs=
p;at=20
javax.crypto.Cipher.getInstance(DashoA6275)<BR> at=20
org.apache.xml.security.encryption.XMLCipher.getInstance(XMLCipher.java:3=
12)<BR> at=20
org.apache.ws.security.message.WSEncryptBody.build(WSEncryptBody.java:286=
)<BR> at=20
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:333)<=
BR> at=20
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)<BR> at=20
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)<BR> at =
org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)<BR> at=20
org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)Paddding:=20
ISO10126PADDING not implemented</DIV>
<DIV> </DIV>
<DIV> at=20
org.apache.axis.client.Call.invokeEngine(Call.java:2682)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2665)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2355)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2278)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:1772)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)<BR>Axi=
sFault<BR> faultCode:=20
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException<BR>&nb=
sp;faultSubcode:=20
<BR> faultString: Paddding: ISO10126PADDING not =
implementedWSDoAllSender:=20
Encryption: error during message=20
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding:=20
ISO10126PADDING not implemented<BR>Original Exception was=20
javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not=20
implemented<BR> faultActor: <BR> faultNode: =
<BR> faultDetail:=20
<BR> {http://xml.apache.org/axis/}stackTrace:AxisFault<BR> faul=
tCode:=20
{http://schemas.xmlsoap.org/soap/envelope/}Server.generalException<BR>&nb=
sp;faultSubcode:=20
<BR> faultString: Paddding: ISO10126PADDING not =
implementedWSDoAllSender:=20
Encryption: error during message=20
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding:=20
ISO10126PADDING not implemented<BR>Original Exception was=20
javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not=20
implemented<BR> faultActor: <BR> faultNode: =
<BR> faultDetail:=20
</DIV>
<DIV> </DIV>
<DIV>Paddding: ISO10126PADDING not implementedWSDoAllSender: Encryption: =
error=20
during message=20
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding:=20
ISO10126PADDING not implemented<BR>Original Exception was=20
javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not=20
implemented<BR> at=20
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:335)<=
BR> at=20
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)<BR> at=20
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)<BR> at =
org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)<BR> at=20
org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)<BR> at=
=20
org.apache.axis.client.Call.invokeEngine(Call.java:2682)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2665)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2355)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2278)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:1772)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)</DIV>
<DIV> </DIV>
<DIV><BR>Paddding: ISO10126PADDING not implementedWSDoAllSender: =
Encryption:=20
error during message=20
processingorg.apache.xml.security.encryption.XMLEncryptionException: =
Paddding:=20
ISO10126PADDING not implemented<BR>Original Exception was=20
javax.crypto.NoSuchPaddingException: Paddding: ISO10126PADDING not=20
implemented<BR> at=20
org.apache.ws.axis.security.WSDoAllSender.invoke(WSDoAllSender.java:335)<=
BR> at=20
org.apache.axis.strategies.InvocationStrategy.visit(InvocationStrategy.ja=
va:71)<BR> at=20
org.apache.axis.SimpleChain.doVisiting(SimpleChain.java:157)<BR> at =
org.apache.axis.SimpleChain.invoke(SimpleChain.java:122)<BR> at=20
org.apache.axis.client.AxisClient.invoke(AxisClient.java:164)<BR> at=
=20
org.apache.axis.client.Call.invokeEngine(Call.java:2682)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2665)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2355)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:2278)<BR> at=20
org.apache.axis.client.Call.invoke(Call.java:1772)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.axisSec.SecBindingStub.secSend(Sec=
BindingStub.java:104)<BR> at=20
org.apache.ws.axis.samples.wssec.doall.Tester.main(Tester.java:54)<BR>Exc=
eption=20
in thread "main" <BR></FONT></DIV></BODY></HTML>
------=_NextPart_000_0010_01C3E98B.7B264F20--
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn