On 08.10.2009 16:27, Jens Müller wrote:
> I have the following config:
> 
> * Apache Tomcat 6.0.20
>  * Apache Axis2 1.5
>   * Apache Rampart 1.5 RC1 (installed according to
> http://wso2.org/library/knowledge-base/run-rampart-samples-apache-tomcat)
>  * Apache Ode 1.3.3
> 

OK, I changed the sample.axis03 to this:

(sorry, the other policy did not match the receiving webservice at all ...)

> <?xml version="1.0" encoding="UTF-8"?>
> <!--
>  !
>  ! Copyright 2006 The Apache Software Foundation.
>  !
>  ! Licensed under the Apache License, Version 2.0 (the "License");
>  ! you may not use this file except in compliance with the License.
>  ! You may obtain a copy of the License at
>  !
>  !      http://www.apache.org/licenses/LICENSE-2.0
>  !
>  ! Unless required by applicable law or agreed to in writing, software
>  ! distributed under the License is distributed on an "AS IS" BASIS,
>  ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
>  ! See the License for the specific language governing permissions and
>  ! limitations under the License.
>  !-->
> 
> <service>
> 
>     <module ref="rampart"/>
> 
>     <wsp:Policy wsu:Id="SecConvPolicy2" 
> xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd";
>  xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
>         <wsp:ExactlyOne>
>             <wsp:All>
>                 <sp:AsymmetricBinding 
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>                     <wsp:Policy>
>                         <sp:InitiatorToken>
>                             <wsp:Policy>
>                                 <sp:X509Token 
> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>
> 
>                                     <wsp:Policy>
>                                         <sp:RequireThumbprintReference/>
>                                         <sp:WssX509V3Token10/>
>                                     </wsp:Policy>
>                                 </sp:X509Token>
>                             </wsp:Policy>
>                         </sp:InitiatorToken>
>                         <sp:RecipientToken>
>                             <wsp:Policy>
> 
>                                 <sp:X509Token 
> sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never";>
>                                     <wsp:Policy>
>                                         <sp:RequireThumbprintReference/>
>                                         <sp:WssX509V3Token10/>
>                                     </wsp:Policy>
>                                 </sp:X509Token>
>                             </wsp:Policy>
>                         </sp:RecipientToken>
>                         <sp:AlgorithmSuite>
> 
>                             <wsp:Policy>
>                                 <sp:TripleDesRsa15/>
>                             </wsp:Policy>
>                         </sp:AlgorithmSuite>
>                         <sp:Layout>
>                             <wsp:Policy>
>                                 <sp:Strict/>
>                             </wsp:Policy>
>                         </sp:Layout>
> 
>                         <sp:IncludeTimestamp/>
>                         <sp:OnlySignEntireHeadersAndBody/>
>                     </wsp:Policy>
>                 </sp:AsymmetricBinding>
>                 <sp:Wss10 
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>                     <sp:Policy>
>                         <sp:MustSupportRefKeyIdentifier/>
>                         <sp:MustSupportRefIssuerSerial/>
>                     </sp:Policy>
> 
>                 </sp:Wss10>
>                 <sp:SignedParts 
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>                     <sp:Body/>
>                 </sp:SignedParts>
>                 <sp:EncryptedParts 
> xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
>                     <sp:Body/>
>                 </sp:EncryptedParts>
> 
>                 
>                               
>                               
>                               <ramp:RampartConfig 
> xmlns:ramp="http://ws.apache.org/rampart/policy";> 
>                     <ramp:user>client</ramp:user>
>                     <ramp:encryptionUser>service</ramp:encryptionUser>
>                     
> <ramp:passwordCallbackClass>org.apache.rampart.samples.policy.sample03.PWCBHandler</ramp:passwordCallbackClass>
>                 
>                     <ramp:signatureCrypto>
>                         <ramp:crypto 
> provider="org.apache.ws.security.components.crypto.Merlin">
>                             <ramp:property 
> name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
>                             <!-- <ramp:property 
> name="org.apache.ws.security.crypto.merlin.file">client.jks</ramp:property> 
> -->
>                             <ramp:property 
> name="org.apache.ws.security.crypto.merlin.keystore.password">apache</ramp:property>
>                         </ramp:crypto>
>                     </ramp:signatureCrypto>
>                     <ramp:encryptionCypto>
>                         <ramp:crypto 
> provider="org.apache.ws.security.components.crypto.Merlin">
>                             <ramp:property 
> name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
>                             <!-- <ramp:property 
> name="org.apache.ws.security.crypto.merlin.file">client.jks</ramp:property> 
> -->
>                             <ramp:property 
> name="org.apache.ws.security.crypto.merlin.keystore.password">apache</ramp:property>
>                         </ramp:crypto>
>                     </ramp:encryptionCypto>
>                 
>                 </ramp:RampartConfig>
>             </wsp:All>
>         </wsp:ExactlyOne>
>     </wsp:Policy>
> 
> </service>



Now I get no reply and the following errors on the console:

> DEBUG - GeronimoLog.debug(66) | Invoking a partner operation: echo
> DEBUG - GeronimoLog.debug(66) | The service to invoke is the external service 
> {http://sample03.policy.samples.rampart.apache.org}sample03:sample03HttpSoa
> p11Endpoint
> DEBUG - GeronimoLog.debug(66) | Looking for Axis2 service configuration file: 
> file:/C:/apache-tomcat-6.0.20/webapps/ode/WEB-INF/processes/RampartOdeTest.
> 2/sample03.axis2
> DEBUG - GeronimoLog.debug(66) | Configuring service 
> axis_service_for_{http://sample03.policy.samples.rampart.apache.org}sample03#sample03HttpSoap11Endpoi
> nt_hqejbhcnphr4nofgog0r4l using: 
> file:/C:/apache-tomcat-6.0.20/webapps/ode/WEB-INF/processes/RampartOdeTest.2/sample03.axis2
> DEBUG - GeronimoLog.debug(66) | Create a new ServiceClient for 
> axis_service_for_{http://sample03.policy.samples.rampart.apache.org}sample03#sample03HttpS
> oap11Endpoint_hqejbhcnphr4nofgog0r4l
> DEBUG - GeronimoLog.debug(66) | Resolving endpoint reference <?xml 
> version="1.0" encoding="UTF-8"?>
> <service-ref 
> xmlns="http://docs.oasis-open.org/wsbpel/2.0/serviceref";><EndpointReference 
> xmlns="http://www.w3.org/2005/08/addressing";><Metadata><ServiceN
> ame xmlns="http://www.w3.org/2006/05/addressing/wsdl"; 
> EndpointName="sample03HttpSoap11Endpoint" 
> xmlns:servicens="http://sample03.policy.samples.rampart.a
> pache.org">servicens:sample03</ServiceName></Metadata><Address>http://localhost:8081/axis2/services/sample03.sample03HttpSoap11Endpoint/</Address></Endpo
> intReference></service-ref>
> DEBUG - GeronimoLog.debug(66) | GET MEX property 
> org.apache.ode.bpel.partnerRoleSessionId = null
> DEBUG - GeronimoLog.debug(66) | GET MEX property 
> org.apache.ode.bpel.myRoleSessionId = null
> DEBUG - GeronimoLog.debug(66) | My-Role EPR not specified, SEP will not be 
> used.
> DEBUG - GeronimoLog.debug(66) | Axis2 sending message to 
> http://localhost:8081/axis2/services/sample03.sample03HttpSoap11Endpoint/ 
> using MEX {PartnerRole
> Mex#hqejbhcnphr4nofgog0r4j [PID {http://example.com/Test1/Pool}Pool-1] 
> calling [email protected](...)}
> DEBUG - GeronimoLog.debug(66) | Message: <?xml version='1.0' 
> encoding='utf-8'?><soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/
> "><soapenv:Body><echo 
> xmlns="http://sample03.policy.samples.rampart.apache.org";>
>   <ns:args0 
> xmlns:ns="http://sample03.policy.samples.rampart.apache.org";>?</ns:args0>
> </echo></soapenv:Body></soapenv:Envelope>
> DEBUG - GeronimoLog.debug(66) | replyAsync mex=hqejbhcnphr4nofgog0r4j
> DEBUG - GeronimoLog.debug(66) | Setting execution state on instance 8101
> DEBUG - GeronimoLog.debug(66) | Sending stateful TO epr in message header 
> using session null
> DEBUG - GeronimoLog.debug(66) | Sending a message containing wsa endpoints in 
> headers for session passing.
> DEBUG - GeronimoLog.debug(66) | <?xml version='1.0' 
> encoding='utf-8'?><soapenv:Envelope 
> xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/";><soapen
> v:Header><addr:To 
> xmlns:addr="http://www.w3.org/2005/08/addressing";>http://localhost:8081/axis2/services/sample03.sample03HttpSoap11Endpoint/</addr:To><a
> ddr:Action 
> xmlns:addr="http://www.w3.org/2005/08/addressing";>urn:echo</addr:Action><addr:ReplyTo
>  xmlns:addr="http://www.w3.org/2005/08/addressing";><addr:
> Address>http://www.w3.org/2005/08/addressing/anonymous</addr:Address></addr:ReplyTo><addr:MessageID
>  xmlns:addr="http://www.w3.org/2005/08/addressing";>uui
> d:hqejbhcnphr4nofgog0r4m</addr:MessageID></soapenv:Header><soapenv:Body><echo 
> xmlns="http://sample03.policy.samples.rampart.apache.org";>
>   <ns:args0 
> xmlns:ns="http://sample03.policy.samples.rampart.apache.org";>?</ns:args0>
> </echo></soapenv:Body></soapenv:Envelope>
> ERROR - GeronimoLog.error(108) | Error sending message 
> (mex={PartnerRoleMex#hqejbhcnphr4nofgog0r4j [PID 
> {http://example.com/Test1/Pool}Pool-1] calling or
> [email protected](...)}): Cannot load password 
> callback class: org.apache.rampart.samples.policy.sample03.PWCBHandler
> org.apache.axis2.AxisFault: Cannot load password callback class: 
> org.apache.rampart.samples.policy.sample03.PWCBHandler
>         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.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:201)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: org.apache.rampart.RampartException: Cannot load password callback 
> class: org.apache.rampart.samples.policy.sample03.PWCBHandler
>         at 
> org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:116)
>         at 
> org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:92)
>         at 
> org.apache.rampart.builder.BindingBuilder.getSignatureBuider(BindingBuilder.java:256)
>         at 
> org.apache.rampart.builder.AsymmetricBindingBuilder.doSignature(AsymmetricBindingBuilder.java:596)
>         at 
> org.apache.rampart.builder.AsymmetricBindingBuilder.doSignBeforeEncrypt(AsymmetricBindingBuilder.java:385)
>         at 
> org.apache.rampart.builder.AsymmetricBindingBuilder.build(AsymmetricBindingBuilder.java:95)
>         at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:131)
>         at 
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64)
>         ... 12 more
> Caused by: java.lang.ClassNotFoundException: 
> org.apache.rampart.samples.policy.sample03.PWCBHandler
>         at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1387)
>         at 
> org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1233)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:169)
>         at org.apache.ws.security.util.Loader.loadClass(Loader.java:162)
>         at org.apache.ws.security.util.Loader.loadClass(Loader.java:135)
>         at 
> org.apache.rampart.util.RampartUtil.getPasswordCB(RampartUtil.java:114)
>         ... 19 more
> DEBUG - GeronimoLog.debug(66) | replyWithFailure mex=hqejbhcnphr4nofgog0r4j 
> failureType=COMMUNICATION_ERROR description=Error sending message (mex={Partn
> erRoleMex#hqejbhcnphr4nofgog0r4j [PID {http://example.com/Test1/Pool}Pool-1] 
> calling [email protected](...)}): Cannot load
> password callback class: 
> org.apache.rampart.samples.policy.sample03.PWCBHandler details=null
> DEBUG - GeronimoLog.debug(66) | create work event for 
> mex=hqejbhcnphr4nofgog0r4j
> WARN - GeronimoLog.warn(96) | connectionErrorOccurred called with null
> java.sql.SQLDataException: A truncation error was encountered trying to 
> shrink VARCHAR 'Error sending message 
> (mex={PartnerRoleMex#hqejbhcnphr4nofgo&' to
>  length 255.
>         at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.getSQLException(Unknown 
> Source)
>         at org.apache.derby.impl.jdbc.Util.generateCsSQLException(Unknown 
> Source)
>         at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.wrapInSQLException(Unknown 
> Source)
>         at 
> org.apache.derby.impl.jdbc.TransactionResourceImpl.handleException(Unknown 
> Source)
>         at org.apache.derby.impl.jdbc.EmbedConnection.handleException(Unknown 
> Source)
>         at org.apache.derby.impl.jdbc.ConnectionChild.handleException(Unknown 
> Source)
>         at org.apache.derby.impl.jdbc.EmbedStatement.executeStatement(Unknown 
> Source)
>         at 
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeStatement(Unknown 
> Source)
>         at 
> org.apache.derby.impl.jdbc.EmbedPreparedStatement.executeUpdate(Unknown 
> Source)
>         at 
> org.tranql.connector.jdbc.PreparedStatementHandle.executeUpdate(PreparedStatementHandle.java:103)
>         at 
> org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:269)
>         at 
> org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.jav
> a:981)
>         at 
> org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:269)
>         at 
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1580)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.executeUpdate(PreparedStatementManagerImpl.java:219)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushAndUpdate(PreparedStatementManagerImpl.java:112)
>         at 
> org.apache.openjpa.jdbc.kernel.BatchingPreparedStatementManagerImpl.flushAndUpdate(BatchingPreparedStatementManagerImpl.java:80)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:93)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:81)
>         at 
> org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager.flush(ConstraintUpdateManager.java:548)
>         at 
> org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager.flush(ConstraintUpdateManager.java:106)
>         at 
> org.apache.openjpa.jdbc.kernel.BatchingConstraintUpdateManager.flush(BatchingConstraintUpdateManager.java:59)
>         at 
> org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:89)
>         at 
> org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
>         at 
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:711)
>         at 
> org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
>         at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2011)
>         at 
> org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1909)
>         at 
> org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1827)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.beforeCompletion(TransactionImpl.java:514)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.beforeCompletion(TransactionImpl.java:498)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.beforePrepare(TransactionImpl.java:400)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:257)
>         at 
> org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
>         at 
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:226)
>         at 
> org.apache.ode.axis2.SoapExternalService.replyWithFailure(SoapExternalService.java:445)
>         at 
> org.apache.ode.axis2.SoapExternalService.access$500(SoapExternalService.java:82)
>         at 
> org.apache.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:215)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: java.sql.SQLException: A truncation error was encountered trying 
> to shrink VARCHAR 'Error sending message (mex={PartnerRoleMex#hqejbhcnphr4nof
> go&' to length 255.
>         at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory.getSQLException(Unknown Source)
>         at 
> org.apache.derby.impl.jdbc.SQLExceptionFactory40.wrapArgsForTransportAcrossDRDA(Unknown
>  Source)
>         ... 43 more
> Caused by: ERROR 22001: A truncation error was encountered trying to shrink 
> VARCHAR 'Error sending message (mex={PartnerRoleMex#hqejbhcnphr4nofgo&' to le
> ngth 255.
>         at org.apache.derby.iapi.error.StandardException.newException(Unknown 
> Source)
>         at org.apache.derby.iapi.types.SQLChar.hasNonBlankChars(Unknown 
> Source)
>         at org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)
>         at org.apache.derby.iapi.types.SQLVarchar.normalize(Unknown Source)
>         at org.apache.derby.iapi.types.DataTypeDescriptor.normalize(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.execute.NormalizeResultSet.normalizeRow(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.execute.NormalizeResultSet.getNextRowCore(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.execute.DMLWriteResultSet.getNextRowCore(Unknown 
> Source)
>         at 
> org.apache.derby.impl.sql.execute.UpdateResultSet.collectAffectedRows(Unknown 
> Source)
>         at org.apache.derby.impl.sql.execute.UpdateResultSet.open(Unknown 
> Source)
>         at org.apache.derby.impl.sql.GenericPreparedStatement.execute(Unknown 
> Source)
>         ... 37 more
> WARN - GeronimoLog.warn(96) | Unexpected exception from beforeCompletion; 
> transaction will roll back
> <openjpa-1.3.0-SNAPSHOT-r422266:724491 fatal general error> 
> org.apache.openjpa.persistence.PersistenceException: The transaction has been 
> rolled back.  S
> ee the nested exceptions for details on the errors that occurred.
>         at 
> org.apache.openjpa.kernel.BrokerImpl.newFlushException(BrokerImpl.java:2164)
>         at org.apache.openjpa.kernel.BrokerImpl.flush(BrokerImpl.java:2011)
>         at 
> org.apache.openjpa.kernel.BrokerImpl.flushSafe(BrokerImpl.java:1909)
>         at 
> org.apache.openjpa.kernel.BrokerImpl.beforeCompletion(BrokerImpl.java:1827)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.beforeCompletion(TransactionImpl.java:514)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.beforeCompletion(TransactionImpl.java:498)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.beforePrepare(TransactionImpl.java:400)
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:257)
>         at 
> org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
>         at 
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:226)
>         at 
> org.apache.ode.axis2.SoapExternalService.replyWithFailure(SoapExternalService.java:445)
>         at 
> org.apache.ode.axis2.SoapExternalService.access$500(SoapExternalService.java:82)
>         at 
> org.apache.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:215)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> Caused by: <openjpa-1.3.0-SNAPSHOT-r422266:724491 nonfatal general error> 
> org.apache.openjpa.persistence.PersistenceException: A truncation error was 
> enc
> ountered trying to shrink VARCHAR 'Error sending message 
> (mex={PartnerRoleMex#hqejbhcnphr4nofgo&' to length 255. {prepstmnt 24235184 
> UPDATE ODE_MESSAGE_E
> XCHANGE SET FAULT_EXPLANATION = ?, STATUS = ? WHERE MESSAGE_EXCHANGE_ID = ? 
> [params=(String) Error sending message (mex={PartnerRoleMex#hqejbhcnphr4nofgo
> g0r4j [P..., (String) FAILURE, (String) hqejbhcnphr4nofgog0r4j]} [code=20000, 
> state=22001]
> FailedObject: 
> org.apache.ode.dao.jpa.MessageExchangeDAOImpl-hqejbhcnphr4nofgog0r4j
>         at 
> org.apache.openjpa.jdbc.sql.DBDictionary.narrow(DBDictionary.java:4240)
>         at 
> org.apache.openjpa.jdbc.sql.DBDictionary.newStoreException(DBDictionary.java:4207)
>         at 
> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:102)
>         at 
> org.apache.openjpa.jdbc.sql.SQLExceptions.getStore(SQLExceptions.java:72)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushAndUpdate(PreparedStatementManagerImpl.java:127)
>         at 
> org.apache.openjpa.jdbc.kernel.BatchingPreparedStatementManagerImpl.flushAndUpdate(BatchingPreparedStatementManagerImpl.java:80)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushInternal(PreparedStatementManagerImpl.java:93)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flush(PreparedStatementManagerImpl.java:81)
>         at 
> org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager.flush(ConstraintUpdateManager.java:548)
>         at 
> org.apache.openjpa.jdbc.kernel.ConstraintUpdateManager.flush(ConstraintUpdateManager.java:106)
>         at 
> org.apache.openjpa.jdbc.kernel.BatchingConstraintUpdateManager.flush(BatchingConstraintUpdateManager.java:59)
>         at 
> org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:89)
>         at 
> org.apache.openjpa.jdbc.kernel.AbstractUpdateManager.flush(AbstractUpdateManager.java:72)
>         at 
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager.flush(JDBCStoreManager.java:711)
>         at 
> org.apache.openjpa.kernel.DelegatingStoreManager.flush(DelegatingStoreManager.java:130)
>         ... 17 more
> Caused by: org.apache.openjpa.lib.jdbc.ReportingSQLException: A truncation 
> error was encountered trying to shrink VARCHAR 'Error sending message (mex={Pa
> rtnerRoleMex#hqejbhcnphr4nofgo&' to length 255. {prepstmnt 24235184 UPDATE 
> ODE_MESSAGE_EXCHANGE SET FAULT_EXPLANATION = ?, STATUS = ? WHERE MESSAGE_EXCHA
> NGE_ID = ? [params=(String) Error sending message 
> (mex={PartnerRoleMex#hqejbhcnphr4nofgog0r4j [P..., (String) FAILURE, (String) 
> hqejbhcnphr4nofgog0r4j]}
> [code=20000, state=22001]
>         at 
> org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.wrap(LoggingConnectionDecorator.java:193)
>         at 
> org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator.access$700(LoggingConnectionDecorator.java:58)
>         at 
> org.apache.openjpa.lib.jdbc.LoggingConnectionDecorator$LoggingConnection$LoggingPreparedStatement.executeUpdate(LoggingConnectionDecorator.jav
> a:983)
>         at 
> org.apache.openjpa.lib.jdbc.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:269)
>         at 
> org.apache.openjpa.jdbc.kernel.JDBCStoreManager$CancelPreparedStatement.executeUpdate(JDBCStoreManager.java:1580)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.executeUpdate(PreparedStatementManagerImpl.java:219)
>         at 
> org.apache.openjpa.jdbc.kernel.PreparedStatementManagerImpl.flushAndUpdate(PreparedStatementManagerImpl.java:112)
>         ... 27 more
> ERROR - GeronimoLog.error(108) | Error executing replyWithFailure 
> transaction; reply will be lost.
> javax.transaction.RollbackException: Unable to commit: transaction marked for 
> rollback
>         at 
> org.apache.geronimo.transaction.manager.TransactionImpl.commit(TransactionImpl.java:271)
>         at 
> org.apache.geronimo.transaction.manager.TransactionManagerImpl.commit(TransactionManagerImpl.java:238)
>         at 
> org.apache.ode.scheduler.simple.SimpleScheduler.execTransaction(SimpleScheduler.java:226)
>         at 
> org.apache.ode.axis2.SoapExternalService.replyWithFailure(SoapExternalService.java:445)
>         at 
> org.apache.ode.axis2.SoapExternalService.access$500(SoapExternalService.java:82)
>         at 
> org.apache.ode.axis2.SoapExternalService$1$1.call(SoapExternalService.java:215)
>         at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
>         at java.util.concurrent.FutureTask.run(FutureTask.java:138)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:885)
>         at 
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:907)
>         at java.lang.Thread.run(Thread.java:619)
> DEBUG - GeronimoLog.debug(66) | handleWorkEvent: InvokeCheck event for mexid 
> hqejbhcnphr4nof0ex72mx
> DEBUG - GeronimoLog.debug(66) | No response received for invoke 
> (mexId=hqejbhcnphr4nof0ex72mx), forcing it into a failed state.
> DEBUG - GeronimoLog.debug(66) | replyWithFailure mex=hqejbhcnphr4nof0ex72mx 
> failureType=COMMUNICATION_ERROR description=No response received for invoke (
> mexId=hqejbhcnphr4nof0ex72mx), forcing it into a failed state. details=null
> DEBUG - GeronimoLog.debug(66) | create work event for 
> mex=hqejbhcnphr4nof0ex72mx
> DEBUG - GeronimoLog.debug(66) | Thread[ODEServer-2,5,main]: lock(iid=7604, 
> time=1MICROSECONDS)
> DEBUG - GeronimoLog.debug(66) | Thread[ODEServer-2,5,main]: lock(iid=7604, 
> time=1MICROSECONDS)-->GRANTED
> DEBUG - GeronimoLog.debug(66) | >> 
> handleWorkEvent(jobData={mexid=hqejbhcnphr4nof0ex72mx, iid=7604, 
> type=INVOKE_RESPONSE, channel=23})
> DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for instance 
> 7604. INDEXED STATE={OSequence#26-sequence-activity-line-16::2=[SEQUENCE(self
> =(OSequence#26-sequence-activity-line-16,TerminationChannel#3,ParentScopeChannel#5),
>  linkframe=org.apache.ode.bpel.runtime.linkfr...@1f6c937, remaining=[
> {OScope 'Task-1' id=46}, {OAssign : Message_End_Event, joinCondition=null}, 
> OReply#59-Message_End_Event-1])], {OScope 'Task-1' id=46}::11=[ACTIVITYGUARD(
> ...)], {OScope '__PROCESS_SCOPE:Pool' id=3}::0=[SCOPE(...)], 
> OSequence#26-sequence-activity-line-16::1=[ACTIVITYGUARD(...)], {OScope 
> 'Task-1' id=46}::12=
> [SCOPE(...)], {OScope '__PROCESS_SCOPE:Pool' id=3}::0=[ACTIVE(...)], {OScope 
> 'Task-1' id=46}::12=[ACTIVE(...)], OInvoke#47-Task-1::14=[INVOKE(...)], OInv
> oke#47-Task-1::13=[ACTIVITYGUARD(...)]}
> DEBUG - GeronimoLog.debug(66) | InvokeResponse event for iid 7604
> DEBUG - GeronimoLog.debug(66) | Invoking message response for mexid 
> hqejbhcnphr4nof0ex72mx and channel 23
> DEBUG - GeronimoLog.debug(66) | Triggering response
> ERROR - GeronimoLog.error(104) | Failure during invoke: No response received 
> for invoke (mexId=hqejbhcnphr4nof0ex72mx), forcing it into a failed state.
> INFO - GeronimoLog.info(79) | ActivityRecovery: Registering activity 13, 
> failure reason: No response received for invoke 
> (mexId=hqejbhcnphr4nof0ex72mx),
> forcing it into a failed state. on channel 24
> DEBUG - GeronimoLog.debug(66) | Setting execution state on instance 7604
> DEBUG - GeronimoLog.debug(66) | Thread[ODEServer-2,5,main]: unlock(iid=7604)
> DEBUG - GeronimoLog.debug(66) | Received myrole mex response callback
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> ERROR - GeronimoLog.error(108) | Timeout or execution error when waiting for 
> response to MEX {MyRoleMex#hqejbhcnphr4nofgog0r4g [Client hqejbhcnphr4nofgog
> 0r4f] calling 
> {http://example.com/Test1/Pool}CanonicServiceForPool1.EventStartMessage(...)} 
> java.util.concurrent.TimeoutException: Message exchange org.a
> pache.ode.bpel.engine.myrolemessageexchangeimpl$responsefut...@1b40ab5 timed 
> out(120000 ms) when waiting for a response!
> java.util.concurrent.TimeoutException: Message exchange 
> org.apache.ode.bpel.engine.myrolemessageexchangeimpl$responsefut...@1b40ab5 
> timed out(120000 ms)
> when waiting for a response!
>         at 
> org.apache.ode.bpel.engine.MyRoleMessageExchangeImpl$ResponseFuture.get(MyRoleMessageExchangeImpl.java:240)
>         at 
> org.apache.ode.axis2.ODEService.onAxisMessageExchange(ODEService.java:165)
>         at 
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:69)
>         at 
> org.apache.ode.axis2.hooks.ODEMessageReceiver.invokeBusinessLogic(ODEMessageReceiver.java:52)
>         at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:96)
>         at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:145)
>         at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:275)
>         at 
> org.apache.axis2.transport.http.AxisServlet.doPost(AxisServlet.java:120)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:637)
>         at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
>         at 
> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
>         at 
> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
>         at 
> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
>         at 
> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
>         at 
> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
>         at 
> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
>         at 
> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
>         at 
> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:849)
>         at 
> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
>         at 
> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:454)
>         at java.lang.Thread.run(Thread.java:619)
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> DEBUG - GeronimoLog.debug(66) | handleWorkEvent: InvokeCheck event for mexid 
> hqejbhcnphr4nofgog0r4j
> DEBUG - GeronimoLog.debug(66) | No response received for invoke 
> (mexId=hqejbhcnphr4nofgog0r4j), forcing it into a failed state.
> DEBUG - GeronimoLog.debug(66) | replyWithFailure mex=hqejbhcnphr4nofgog0r4j 
> failureType=COMMUNICATION_ERROR description=No response received for invoke (
> mexId=hqejbhcnphr4nofgog0r4j), forcing it into a failed state. details=null
> DEBUG - GeronimoLog.debug(66) | create work event for 
> mex=hqejbhcnphr4nofgog0r4j
> DEBUG - GeronimoLog.debug(66) | Thread[ODEServer-3,5,main]: lock(iid=8101, 
> time=1MICROSECONDS)
> DEBUG - GeronimoLog.debug(66) | Thread[ODEServer-3,5,main]: lock(iid=8101, 
> time=1MICROSECONDS)-->GRANTED
> DEBUG - GeronimoLog.debug(66) | >> 
> handleWorkEvent(jobData={mexid=hqejbhcnphr4nofgog0r4j, iid=8101, 
> type=INVOKE_RESPONSE, channel=23})
> DEBUG - GeronimoLog.debug(66) | BpelRuntimeContextImpl created for instance 
> 8101. INDEXED STATE={OInvoke#47-Task-1::14=[INVOKE(...)], {OScope 'Task-1' id
> =46}::11=[ACTIVITYGUARD(...)], OInvoke#47-Task-1::13=[ACTIVITYGUARD(...)], 
> {OScope 'Task-1' id=46}::12=[ACTIVE(...)], {OScope 'Task-1' id=46}::12=[SCOPE(
> ...)], {OScope '__PROCESS_SCOPE:Pool' id=3}::0=[ACTIVE(...)], 
> OSequence#26-sequence-activity-line-16::1=[ACTIVITYGUARD(...)], {OScope 
> '__PROCESS_SCOPE:Po
> ol' id=3}::0=[SCOPE(...)], 
> OSequence#26-sequence-activity-line-16::2=[SEQUENCE(self=(OSequence#26-sequence-activity-line-16,TerminationChannel#3,ParentSc
> opeChannel#5), linkframe=org.apache.ode.bpel.runtime.linkfr...@16f13bb, 
> remaining=[{OScope 'Task-1' id=46}, {OAssign : Message_End_Event, 
> joinCondition=n
> ull}, OReply#59-Message_End_Event-1])]}
> DEBUG - GeronimoLog.debug(66) | InvokeResponse event for iid 8101
> DEBUG - GeronimoLog.debug(66) | Invoking message response for mexid 
> hqejbhcnphr4nofgog0r4j and channel 23
> DEBUG - GeronimoLog.debug(66) | Triggering response
> ERROR - GeronimoLog.error(104) | Failure during invoke: No response received 
> for invoke (mexId=hqejbhcnphr4nofgog0r4j), forcing it into a failed state.
> INFO - GeronimoLog.info(79) | ActivityRecovery: Registering activity 13, 
> failure reason: No response received for invoke 
> (mexId=hqejbhcnphr4nofgog0r4j),
> forcing it into a failed state. on channel 24
> DEBUG - GeronimoLog.debug(66) | Setting execution state on instance 8101
> DEBUG - GeronimoLog.debug(66) | Thread[ODEServer-3,5,main]: unlock(iid=8101)
> DEBUG - GeronimoLog.debug(66) | Received myrole mex response callback
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []
> INFO - GeronimoLog.info(79) | Refreshing SYSTEM CRON jobs.
> INFO - GeronimoLog.info(79) | SYSTEM CRON configuration found cron jobs: []

Any ideas?

Thanks,

Jens
<?xml version="1.0" encoding="UTF-8"?>
<!--
 !
 ! Copyright 2006 The Apache Software Foundation.
 !
 ! Licensed under the Apache License, Version 2.0 (the "License");
 ! you may not use this file except in compliance with the License.
 ! You may obtain a copy of the License at
 !
 !      http://www.apache.org/licenses/LICENSE-2.0
 !
 ! Unless required by applicable law or agreed to in writing, software
 ! distributed under the License is distributed on an "AS IS" BASIS,
 ! WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 ! See the License for the specific language governing permissions and
 ! limitations under the License.
 !-->

<service>

    <module ref="rampart"/>

    <wsp:Policy wsu:Id="SecConvPolicy2" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"; xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy";>
        <wsp:ExactlyOne>
            <wsp:All>
                <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
                    <wsp:Policy>
                        <sp:InitiatorToken>
                            <wsp:Policy>
                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient";>

                                    <wsp:Policy>
                                        <sp:RequireThumbprintReference/>
                                        <sp:WssX509V3Token10/>
                                    </wsp:Policy>
                                </sp:X509Token>
                            </wsp:Policy>
                        </sp:InitiatorToken>
                        <sp:RecipientToken>
                            <wsp:Policy>

                                <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never";>
                                    <wsp:Policy>
                                        <sp:RequireThumbprintReference/>
                                        <sp:WssX509V3Token10/>
                                    </wsp:Policy>
                                </sp:X509Token>
                            </wsp:Policy>
                        </sp:RecipientToken>
                        <sp:AlgorithmSuite>

                            <wsp:Policy>
                                <sp:TripleDesRsa15/>
                            </wsp:Policy>
                        </sp:AlgorithmSuite>
                        <sp:Layout>
                            <wsp:Policy>
                                <sp:Strict/>
                            </wsp:Policy>
                        </sp:Layout>

                        <sp:IncludeTimestamp/>
                        <sp:OnlySignEntireHeadersAndBody/>
                    </wsp:Policy>
                </sp:AsymmetricBinding>
                <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
                    <sp:Policy>
                        <sp:MustSupportRefKeyIdentifier/>
                        <sp:MustSupportRefIssuerSerial/>
                    </sp:Policy>

                </sp:Wss10>
                <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
                    <sp:Body/>
                </sp:SignedParts>
                <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy";>
                    <sp:Body/>
                </sp:EncryptedParts>

                
				
				
				<ramp:RampartConfig xmlns:ramp="http://ws.apache.org/rampart/policy";> 
                    <ramp:user>client</ramp:user>
                    <ramp:encryptionUser>service</ramp:encryptionUser>
                    <ramp:passwordCallbackClass>org.apache.rampart.samples.policy.sample03.PWCBHandler</ramp:passwordCallbackClass>
                
                    <ramp:signatureCrypto>
                        <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
                            <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
                            <!-- <ramp:property name="org.apache.ws.security.crypto.merlin.file">client.jks</ramp:property> -->
                            <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">apache</ramp:property>
                        </ramp:crypto>
                    </ramp:signatureCrypto>
                    <ramp:encryptionCypto>
                        <ramp:crypto provider="org.apache.ws.security.components.crypto.Merlin">
                            <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.type">JKS</ramp:property>
                            <!-- <ramp:property name="org.apache.ws.security.crypto.merlin.file">client.jks</ramp:property> -->
                            <ramp:property name="org.apache.ws.security.crypto.merlin.keystore.password">apache</ramp:property>
                        </ramp:crypto>
                    </ramp:encryptionCypto>
                
                </ramp:RampartConfig>
            </wsp:All>
        </wsp:ExactlyOne>
    </wsp:Policy>

</service>

Reply via email to