Seems like the axis2 server couldn't figure out the operation that the
incoming action value is mapped to.

Does this service and client work without any rampart/security configuration?

Thanks,
Ruchith

Manish Verma wrote:
> Hi Nandana,
>
> Thanks for your help. Yes, now I'm able to move past that problem.
>
> Now I'm stuck at another problem. I see the following --
> org.apache.axis2.AxisFault: The server did not recognise the action which it
> received
>
> Could you please help.
>
>
> Regards,
> Manish
>
>
> <ns1:echo
> xmlns:ns1="http://service.SymmEncSecurity.WS.Axis2.eklavya.org";><ns1:param0>
> Hello world</ns1:param0></ns1:echo>
> org.apache.axis2.AxisFault: The server did not recognise the action which it
> received:
>       at
> org.apache.axis2.handlers.addressing.AddressingInFaultHandler.invoke(Address
> ingInFaultHandler.java:114)
>       at org.apache.axis2.engine.Phase.invoke(Phase.java:292)
>       at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:212)
>       at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:132)
>       at
> org.apache.axis2.description.OutInAxisOperationClient.handleResponse(OutInAx
> isOperation.java:336)
>       at
> org.apache.axis2.description.OutInAxisOperationClient.send(OutInAxisOperatio
> n.java:389)
>       at
> org.apache.axis2.description.OutInAxisOperationClient.executeImpl(OutInAxisO
> peration.java:211)
>       at
> org.apache.axis2.client.OperationClient.execute(OperationClient.java:163)
>       at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:528)
>       at
> org.apache.axis2.client.ServiceClient.sendReceive(ServiceClient.java:508)
>       at
> org.eklavya.Axis2.WS.SymmEncSecurity.client.SymmEncSecurityServiceClient.mai
> n(Unknown Source)
> null
>
> ----------------------------------
> Manish Verma
> +91 99155 98590  (Cell)
> +91 172 3056 502 (Work)
> VermaM1947 (AOL)
> [EMAIL PROTECTED]
>
>
> -----Original Message-----
> From: Nandana Mihindukulasooriya [mailto:[EMAIL PROTECTED]
> Sent: Thursday, November 15, 2007 5:02 PM
> To: rampart-dev@ws.apache.org
> Subject: Re: Not able to use Symmetric binding -- Illegal key size or
> default parameters
>
> Hi Manish,
>          Did you download the JCE Unlimited Strength Jurisdiction Policy
> files from sun and replaced the necessary files ?
> link [1] shows how to do this if you have not already done it.
>
> Regards,
> Nandana
>
>
> [1] http://wso2.org/forum/thread/2520
>
> On Nov 15, 2007 4:15 PM, Manish Verma <[EMAIL PROTECTED]> wrote:
>
>>  Hi,
>>
>>
>>
>> I am working with Rampart1.3 on Axis 2-1.3. I have successfully executed
>> all the samples, using policy.xml, that comes with Rampart. I am now
>> trying to execute a symmetric encryption example. I am using the attached
>> policy.xml and services.xml file.
>>
>>
>>
>> When I run my client, I get the following error. There may be some problem
>> with the way my services.xml and policy.xml files are written. I will
>> highly appreciate if someone could help me with it.
>>
>>
>>
>> Regards
>>
>> Manish Verma
>>
>>
>>
>>
>>
>> <ns1:echo xmlns:ns1="
>> http://service.SymmetricEncSecurity.WS.Axis2.eklavya.org";><param0>Hello
>> world</param0></ns1:echo>
>>
>> org.apache.axis2.AxisFault: Error during encryption
>>
>>       at org.apache.rampart.handler.RampartSender.invoke(*
>> RampartSender.java:70*)
>>
>>       at org.apache.axis2.engine.Phase.invoke(*Phase.java:292*)
>>
>>       at org.apache.axis2.engine.AxisEngine.invoke(*AxisEngine.java:212*)
>>
>>       at org.apache.axis2.engine.AxisEngine.send(*AxisEngine.java:377*)
>>
>>       at org.apache.axis2.description.OutInAxisOperationClient.send(*
>> OutInAxisOperation.java:374*)
>>
>>       at org.apache.axis2.description.OutInAxisOperationClient.executeImpl
>> (*OutInAxisOperation.java:211*)
>>
>>       at org.apache.axis2.client.OperationClient.execute(*
>> OperationClient.java:163*)
>>
>>       at org.apache.axis2.client.ServiceClient.sendReceive(*
>> ServiceClient.java:528*)
>>
>>       at org.apache.axis2.client.ServiceClient.sendReceive(*
>> ServiceClient.java:508*)
>>
>>       at
>>
> org.eklavya.Axis2.WS.SymmetricEncSecurity.client.SymmetricEncSecurityService
> Client.main
>> (*SymmetricEncSecurityServiceClient.java:70*)
>>
>> Caused by: *org.apache.rampart.RampartException*: Error during encryption
>>
>>       at
>> org.apache.rampart.builder.SymmetricBindingBuilder.doSignBeforeEncrypt(*
>> SymmetricBindingBuilder.java:540*)
>>
>>       at org.apache.rampart.builder.SymmetricBindingBuilder.build(*
>> SymmetricBindingBuilder.java:80*)
>>
>>       at org.apache.rampart.MessageBuilder.build(*MessageBuilder.java:128*
>> )
>>
>>       at org.apache.rampart.handler.RampartSender.invoke(*
>> RampartSender.java:64*)
>>
>>       ... 9 more
>>
>> Caused by: *org.apache.ws.security.WSSecurityException*: Cannot
>> encrypt/decrypt data; nested exception is:
>>
>>       *org.apache.xml.security.encryption.XMLEncryptionException*: Illegal
>> key size or default parameters
>>
>> Original Exception was *java.security.InvalidKeyException*: Illegal key
>> size or default parameters
>>
>>       at org.apache.ws.security.message.WSSecEncrypt.doEncryption(*
>> WSSecEncrypt.java:480*)
>>
>>       at org.apache.ws.security.message.WSSecEncrypt.doEncryption(*
>> WSSecEncrypt.java:406*)
>>
>>       at org.apache.ws.security.message.WSSecEncrypt.encryptForExternalRef
>> (*WSSecEncrypt.java:362*)
>>
>>       at
>> org.apache.rampart.builder.SymmetricBindingBuilder.doSignBeforeEncrypt(*
>> SymmetricBindingBuilder.java:528*)
>>
>>       ... 12 more
>>
>> Caused by: *org.apache.xml.security.encryption.XMLEncryptionException*:
>> Illegal key size or default parameters
>>
>> Original Exception was *java.security.InvalidKeyException*: Illegal key
>> size or default parametersnull
>>
>>
>>
>>       at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown
>> Source)
>>
>>       at org.apache.xml.security.encryption.XMLCipher.encryptData(Unknown
>> Source)
>>
>>       at
>> org.apache.xml.security.encryption.XMLCipher.encryptElementContent(Unknown
>> Source)
>>
>>       at org.apache.xml.security.encryption.XMLCipher.doFinal(Unknown
>> Source)
>>
>>       at org.apache.ws.security.message.WSSecEncrypt.doEncryption(*
>> WSSecEncrypt.java:475*)
>>
>>       ... 15 more
>>
>>
>>
>>
>>
>> ----------------------------------
>>
>> Manish Verma
>>
>> +91 99155 98590  (Cell)
>>
>> +91 172 3056 502 (Work)
>>
>> VermaM1947 (AOL)
>>
>> [EMAIL PROTECTED]
>>
>>
>>
>>
>>
>
>
>

-- 
http://blog.ruchith.org
http://wso2.org

Reply via email to