Please help.
I met a problem when I built a server side rampart service. Im using Axis2 server to receive a Rampart client request.
I got a bad response in my Eclipse axis client. The server side is also in local.
Please see the full stack trace(log4j) below. I can only see an ClassNotFound exception for JuiCEProviderOpenSSL, but someone else said I can ignore it.
And I suspect the bold part causes this issue because after that a builder started to create fault message.
So, it makes me crazy. I can find out nothing about this issue.
Please help me. Thanks. Also, forgive my format, it's the first time to ask here.T-T
axis2.log - log4j
2012-05-22 18:00:52,585 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - Calling MTOMXMLStreamWriter.flush
2012-05-22 18:00:52,585 [HttpConnection-8080-1] DEBUG org.apache.rampart.MESSAGE - *********************** RampartReceiver received
<?xml version='1.0' encoding='utf-8'?><soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"><soapenv:Header><wsse:Security xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd" soapenv:mustUnderstand="1"><wsse:BinarySecurityToken xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" EncodingType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" wsu:Id="CertId-984C299ACFD3E6AABA13376808432101">MIIDSzCCAjOgAwIBAgIEeiVTTzANBgkqhkiG9w0BAQUFADBWMQswCQYDVQQGEwJDTjELMAkGA1UECBMCTE4xCzAJBgNVBAcTAkRMMQ0wCwYDVQQKEwRDaXRpMQ8wDQYDVQQLEwZKUFRlY2gxDTALBgNVBAMTBFN0YXIwHhcNMTIwNTE3MDQzNjQxWhcNMTIwODE1MDQzNjQxWjBWMQswCQYDVQQGEwJDTjELMAkGA1UECBMCTE4xCzAJBgNVBAcTAkRMMQ0wCwYDVQQKEwRDaXRpMQ8wDQYDVQQLEwZKUFRlY2gxDTALBgNVBAMTBFN0YXIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCbDDrpjwITkzxFzNkGV7W5SHTMuNdw+miscGymTDAjJvQZU/FXScu5TtnqQzgef+FDE+Nuu4olMUAB1dYx3r8vucnNRo3i36N/mxA4lD3Y0A0JM1r0lCzxaYQPAaIw7FxQ2Tu7Vmso9b9Vpp4DrDL7U6Si7JlRB7RmzuEViWnvVfgK0cRN3KpjfaJc3Zpdj549dGLpVA/g2feXhEvpTxoCHfRuqUHGjbdHN0dRlmDk8KMi8MBuH+kivcKoWZAsQL8VCJwBgOg232v4ZcodOLyHUfA0eeKK/dht1NhOavlE8Mn/Lq4e8+B7RE8n4bq7wtYshXO02Vc2rSodqWHecm4TAgMBAAGjITAfMB0GA1UdDgQWBBS614JqGc6WsHsY8ZbC9p8R/38sHjANBgkqhkiG9w0BAQUFAAOCAQEALFwI0+ARt4BoCZDEjjBZjvMerCLOXirx3p5e1CYv5R8UTU+l7kTssQpQpDQuxVsyHuClnORyBadhuBKO78Ztq5MyPTBSf4tCxvtRd6ghM8B1FB7aopkHoP6CI016IMrVEfka+OVELrphOxyAeQU0/IOsT6zOWOzN2uUTvzqTYOtP+hI1DL9pYVIr+2R+4Qr5NuVv0Wi+nhFJTohpWRKZy7u27j07SHJ4rOfsaquNz1PohgbMDWULPLoivdUYEFgvDzolk/veqJ0ypqt3iIdQRSPfaIL6/eSZINmrjHvFo4EBi8s7zi12J3iFFpahVOoTZrb2RzC1UtWtfgkLfQWDsQ==</wsse:BinarySecurityToken><ds:Signature xmlns:ds="http://www.w3.org/2000/09/xmldsig#" Id="Signature-1">
<ds:SignedInfo>
<ds:CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
<ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
<ds:Reference URI="#Id-6349096">
<ds:Transforms>
<ds:Transform Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#" />
</ds:Transforms>
<ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
<ds:DigestValue>7Fk2H6qKHzE7LpXN0BbMnULTuZk=</ds:DigestValue>
</ds:Reference>
</ds:SignedInfo>
<ds:SignatureValue>
c4XDzwPEh58ungiFCp7QaF+LvTjRqW3gE5iiLwWWJiq+AUVyN6l4zN2zRmpWhnAoNr9ecP48ZjkS
pk7LY8DsjEXLQ6j4mroM+fm9vuEoeXlVUmSLezC0cByVBGYDHNxLFC5hpVGYAhfC4gOqZBhmtT3U
ZNGn/5ZjR1aQowUrveCaBQ8Zoz8YjUnMsmdgDK9VD3G2gPwJ3Hujb4TicVP8jN9/FNn7jPPKFRDr
cqjvyApVEj1xn/VcpYlnpJxWG2/Jv9pLNTCBBnHE4gGXRjae5ZznLLYESeEaYRNYWqSKz51F28fU
+Imkj7qS06e8WHcxh2SnKat1fVwM6Agj4D5PnQ==
</ds:SignatureValue>
<ds:KeyInfo Id="KeyId-984C299ACFD3E6AABA13376808432422">
<wsse:SecurityTokenReference xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="STRId-984C299ACFD3E6AABA13376808432423"><wsse:Reference URI="#CertId-984C299ACFD3E6AABA13376808432101" ValueType="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3" /></wsse:SecurityTokenReference>
</ds:KeyInfo>
</ds:Signature></wsse:Security></soapenv:Header><soapenv:Body xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" wsu:Id="Id-6349096"><ns1:concat xmlns:ns1="http://ttdev.com/ss"><s1>xyz</s1><s2>123</s2></ns1:concat></soapenv:Body></soapenv:Envelope>
2012-05-22 18:00:53,570 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSConfig - The provider BC was added at position: 2
2012-05-22 18:00:53,570 [HttpConnection-8080-1] DEBUG org.apache.ws.security.util.Loader - org.apache.security.juice.provider.JuiCEProviderOpenSSL
java.lang.ClassNotFoundException: org.apache.security.juice.provider.JuiCEProviderOpenSSL
at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
at java.security.AccessController.doPrivileged(Native Method)
at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:268)
at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
at org.apache.ws.security.util.Loader.loadClass(Loader.java:185)
at org.apache.ws.security.WSSConfig.loadProvider(WSSConfig.java:605)
at org.apache.ws.security.WSSConfig.addJceProvider(WSSConfig.java:662)
at org.apache.ws.security.WSSConfig.staticInit(WSSConfig.java:306)
at org.apache.ws.security.WSSConfig.<init>(WSSConfig.java:324)
at org.apache.ws.security.WSSConfig.getNewInstance(WSSConfig.java:333)
at org.apache.ws.security.WSSConfig.getDefaultWSConfig(WSSConfig.java:342)
at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:345)
at org.apache.rampart.RampartEngine.process(RampartEngine.java:78)
at org.apache.rampart.handler.RampartReceiver.invoke(RampartReceiver.java:92)
at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:168)
at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
at org.apache.axis2.transport.http.HTTPWorker.service(HTTPWorker.java:296)
at org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:281)
at org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
at org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
at java.lang.Thread.run(Thread.java:595)
2012-05-22 18:00:53,585 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSConfig - The provider JuiCE could not be added: org.apache.security.juice.provider.JuiCEProviderOpenSSL
2012-05-22 18:00:53,585 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.builder.StAXOMBuilder - START_ELEMENT:
2012-05-22 18:00:53,585 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.builder.StAXOMBuilder - QName: {http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd}Security
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Loading Signature crypto
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.RampartEngine - Processing security header in normal path
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Loading encryption crypto
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Trying the signature crypto info
2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.rampart.util.RampartUtil - Loading Signature crypto
**2012-05-22 18:00:53,632 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSecurityEngine - enter processSecurityHeader()
2012-05-22 18:00:53,648 [HttpConnection-8080-1] DEBUG org.apache.ws.security.WSSecurityEngine - Processing WS-Security header for '' actor.
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - getAction (null) from org.apache.axis2.client.Options#12cfd62
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext - Old WSAAction is (null)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext - New WSAAction is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - setAction Old action is (null)
2012-05-22 18:00:53,679 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - setAction New action is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - start createFaultEnvelope()**
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - faultCode == null
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - context.isSOAP11() = true
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.util.MessageContextBuilder - End createFaultEnvelope()
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper - [MessageContext: logID=19f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] isFaultRedirected: FaultTo is null. Returning isReplyRedirected
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.addressing.AddressingHelper - [MessageContext: logID=19f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] isReplyRedirected: ReplyTo is null. Returning false
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.engine.AxisEngine - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] sendFault:null
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking pre-condition for Phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'AddressingOutHandler' in Phase 'MessageOut'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.handlers.addressing.AddressingOutHandler - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Addressing is disabled. Not adding WS-Addressing headers.
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking post-conditions for phase "MessageOut"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking pre-condition for Phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'SecurityOutHandler' in Phase 'Security'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking Handler 'Apache Rampart outflow handler' in Phase 'Security'
2012-05-22 18:00:53,695 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Checking post-conditions for phase "Security"
2012-05-22 18:00:53,695 [HttpConnection-8080-1] TRACE org.apache.axis2.addressing.EndpointReference - hasAnonymousAddress: http://www.w3.org/2005/08/addressing/anonymous is Anonymous: true
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.client.Options - getAction (http://www.w3.org/2005/08/addressing/soap/fault) from org.apache.axis2.client.Options#12cfd62
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.context.MessageContext - SoapAction is (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.CommonsHTTPTransportSender - SOAP Action from messageContext : (http://www.w3.org/2005/08/addressing/soap/fault)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.OMOutputFormat - Start getContentType: OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=null ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.OMOutputFormat - getContentType= {text/xml} OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - contentType from the OMOutputFormat =text/xml
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - contentType returned =text/xml; charset=UTF-8
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - start writeTo()
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - preserve=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - isOptimized=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - isDoingSWA=false
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - Creating MTOMXMLStreamWriter
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - OutputStream =class org.apache.axis2.transport.http.server.AxisHttpResponseImpl$AutoCommitOutputStream
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - OMFormat = OMOutputFormat [ mimeBoundary =null rootContentId=null doOptimize=false doingSWA=false isSOAP11=true charSetEncoding=UTF-8 xmlVersion=null contentType=text/xml ignoreXmlDeclaration=false autoCloseWriter=true actionProperty=null optimizedThreshold=0]
2012-05-22 18:00:53,710 [HttpConnection-8080-1] TRACE org.apache.axiom.om.impl.MTOMXMLStreamWriter - Call Stack =DEBUG_FRAME = org.apache.axiom.om.util.CommonUtils.callStackToString(CommonUtils.java:78)
DEBUG_FRAME = org.apache.axiom.om.impl.MTOMXMLStreamWriter.<init>(MTOMXMLStreamWriter.java:100)
DEBUG_FRAME = org.apache.axiom.om.impl.llom.OMSerializableImpl.serializeAndConsume(OMSerializableImpl.java:191)
DEBUG_FRAME = org.apache.axis2.transport.http.SOAPMessageFormatter.writeTo(SOAPMessageFormatter.java:74)
DEBUG_FRAME = org.apache.axis2.transport.http.CommonsHTTPTransportSender.sendUsingOutputStream(CommonsHTTPTransportSender.java:364)
DEBUG_FRAME = org.apache.axis2.transport.http.CommonsHTTPTransportSender.invoke(CommonsHTTPTransportSender.java:241)
DEBUG_FRAME = org.apache.axis2.engine.AxisEngine.sendFault(AxisEngine.java:526)
DEBUG_FRAME = org.apache.axis2.transport.http.server.AxisHttpService.doService(AxisHttpService.java:320)
DEBUG_FRAME = org.apache.axis2.transport.http.server.AxisHttpService.handleRequest(AxisHttpService.java:187)
DEBUG_FRAME = org.apache.axis2.transport.http.server.HttpServiceProcessor.run(HttpServiceProcessor.java:82)
DEBUG_FRAME = java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:650)
DEBUG_FRAME = java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:675)
DEBUG_FRAME = java.lang.Thread.run(Thread.java:595)
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.util.StAXUtils - XMLStreamWriter is org.apache.axiom.util.stax.dialect.WoodstoxStreamWriterWrapper
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl - Could not close builder or parser due to:
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.soap.impl.llom.SOAPEnvelopeImpl - builder is null
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - Calling MTOMXMLStreamWriter.flush
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << HTTP/1.1 500 Internal server error
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Date: Tue, 22 May 2012 10:00:53 GMT
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Server: Simple-Server/1.1
2012-05-22 18:00:53,710 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Transfer-Encoding: chunked
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.wire - << Content-Type: text/xml; charset=UTF-8
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axiom.om.impl.MTOMXMLStreamWriter - close
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.SOAPMessageFormatter - end writeTo()
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.TransportUtils - Did not find RequestResponseTransport cannot set response written
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() in Phase "Security"
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'Apache Rampart outflow handler' in Phase 'Security'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'SecurityOutHandler' in Phase 'Security'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() in Phase "MessageOut"
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.engine.Phase - [MessageContext: logID=09f9baf1b4a9bb41bd81e508daa5dfcc964b902ec7eb7e33] Invoking flowComplete() for Handler 'AddressingOutHandler' in Phase 'MessageOut'
2012-05-22 18:00:53,726 [HttpConnection-8080-1] DEBUG org.apache.axis2.transport.http.server.AxisHttpService - Remote address of the connection : 127.0.0.1
I finally found out the issue, however, I dont think my solution can help others because I made a very silly mistake.
I think the way I solve the problem is more valuable. I debugged the source code and traced every step to find out the position of the exception.
Next, I found that Rampart could not get security configuration from services.xml in which I put the Rampart configuration.
The error occurred because I missed the xmlns='..../rampart/policy' announcement. Therefor, the code couldn't recognize them as a RampartConfig object.
It would be much great if you have attached the service policy as well. What is the algorithm suit used in your policy. The JCE is need to be installed in your JVM in many cryptographic operations specially in cases where keys that are longer than 128bit is required. Refer to my blog at http://sureshatt.blogspot.com/2012/03/java-cryptography-extension-jce.html , install JCE and try the service again.
Related
I am trying to load a file into an application but while loading it throws an error
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Unexpected error
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : java.lang.NullPointerException
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.timestamp.SimpleTimestampFormat.parse(SimpleTimestampFormat.java:347)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at java.text.DateFormat.parse(DateFormat.java:364)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.timestamp.SimpleTimestampFormat.parse(SimpleTimestampFormat.java:449)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.ValueMetaTimestamp.convertStringToTimestamp(ValueMetaTimestamp.java:256)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.core.row.value.ValueMetaTimestamp.convertData(ValueMetaTimestamp.java:418)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.trans.steps.selectvalues.SelectValues.metadataValues(SelectValues.java:328)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.trans.steps.selectvalues.SelectValues.processRow(SelectValues.java:381)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at org.pentaho.di.trans.step.RunThread.run(RunThread.java:62)
2022/11/03 19:35:49 - ExtractRowDataTimeStamp.0 - at java.lang.Thread.run(Thread.java:748)
2022/11/03 19:35:49 - DataValidatorSequential.0 - Finished processing (I=0, O=0, R=9, W=9, U=0, E=0)
2022/11/03 19:35:49 - AVIVAPolicyHome - ERROR (version 8.2.0.0-342, build 8.2.0.0-342 from 2018-11-14 10.30.55 by buildguy) : Errors detected!
2022/11/03 19:35:49 - updateRiesgoHogar.0 - Finished reading query, closing connection.
2022/11/03 19:35:49 - DataValidatorRow11.0 - Finished processing (I=0, O=0, R=51, W=0, U=0, E=0)
2022/11/03 19:35:49 - deleteCustomerRemovedFromPersona.0 - Finished reading query, closing connection.
What could be the possible resolution?
I am completely new to the Objective-C language. All I need to implement is the Push Notifications bit on my app for now. I have written the Client side on XCode 6 and the server side in Java using the javapns library. Now, while the server manages to send the notification (I get the confirmation message), I receive nothing on my device, be it the app is active or running in background.
Can somebody please direct me in the right direction? Thank you!
#import "AppDelegate.h"
#interface AppDelegate ()
#end
#implementation AppDelegate
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
UIUserNotificationSettings *settings = [UIUserNotificationSettings settingsForTypes:UIUserNotificationTypeAlert |UIUserNotificationTypeBadge | UIUserNotificationTypeSound categories:nil];
[[UIApplication sharedApplication] registerUserNotificationSettings:settings];
[[UIApplication sharedApplication] registerForRemoteNotifications];
return YES;
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)newDeviceToken{
//Store the Device Token
NSLog(#"%#", newDeviceToken);
}
- (void)application:(UIApplication *)application didFailToRegisterForRemoteNotificationsWithError:(NSError *)error{
NSLog(#"Failed to register with error: %#", error);
}
- (void)application:(UIApplication *)application didReceiveRemoteNotification:(NSDictionary *)userInfo {
NSLog(#"Push received: %#", userInfo);
}
Server side:
public class PushServer {
public static void main(String[] args) {
try {
BasicConfigurator.configure();
Push.alert("Message!", "***.p12", "***", false,
"92ab*************91af4");
} catch (CommunicationException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (KeystoreException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
This is the output I receive when I try to send the notification:
0 [main] DEBUG javapns.notification.Payload - Adding alert [Message!]
210 [main] DEBUG javapns.communication.ConnectionToAppleServer - Creating SSLSocketFactory
229 [main] DEBUG javapns.communication.ConnectionToAppleServer - Creating SSLSocket to gateway.sandbox.push.apple.com:2195
1077 [main] DEBUG javapns.notification.PushNotificationManager - Initialized Connection to Host: [gateway.sandbox.push.apple.com] Port: [2195]: 735b478[SSL_NULL_WITH_NULL_NULL: Socket[addr=gateway.sandbox.push.apple.com/17.172.232.46,port=2195,localport=53762]]
1079 [main] DEBUG javapns.notification.PushNotificationManager - Building Raw message from deviceToken and payload
1080 [main] DEBUG javapns.notification.PushNotificationManager - Built raw message ID 1 of total length 73
1080 [main] DEBUG javapns.notification.PushNotificationManager - Attempting to send notification: {"aps":{"alert":"Message!"}}
1080 [main] DEBUG javapns.notification.PushNotificationManager - to device: 92a**********1af4
2327 [main] DEBUG javapns.notification.PushNotificationManager - Flushing
2327 [main] DEBUG javapns.notification.PushNotificationManager - At this point, the entire 73-bytes message has been streamed out successfully through the SSL connection
2327 [main] DEBUG javapns.notification.PushNotificationManager - Notification sent on first attempt
2327 [main] DEBUG javapns.notification.PushNotificationManager - Reading responses
2749 [main] DEBUG javapns.notification.PushNotificationManager - Found 0 notifications that must be re-sent
2749 [main] DEBUG javapns.notification.PushNotificationManager - No notifications remaining to be resent
2749 [main] DEBUG javapns.notification.PushNotificationManager - Closing connection
Any help is appreciated.
By chance would you happen to be building with Xcode 7 and targeting iOS 9?
If so, you are likely running into the new security default setting which requires accessing URLs securely, as described here:
Disabling ATS for an in-app browser in iOS 9?
Also, you seem to be mixing old methods with new.
registerUserNotificationSettings is an iOS 8 method that replaced registerForRemoteNotificationTypes.
So, only using the former, it looks like you're only targeting iOS 8 and later.
But then you use didReceiveRemoteNotification:, which is the old version of the method, corresponding to registerForRemoteNotificationTypes. But since you're going with the newer versions, you should be using
didReceiveRemoteNotification:fetchCompletionHandler.
You need to convert NSData to string and get actual device token by implementing following changes in your method.
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken
{
NSString *myToken = [[[[deviceToken description] stringByReplacingOccurrencesOfString: #"<" withString: #""]
stringByReplacingOccurrencesOfString: #">" withString: #""]
stringByReplacingOccurrencesOfString: #" " withString: #""];
// *** Now user `myToken` to send notification ***
NSLog(#"%#",myToken);
}
Along with it you need to make sure you are running your application with same provisional profile (Developer/Distribution) which is used to send push notification on your server side. both should be same. I hope its clear to you.
PO(self);
PO(_locationManager.delegate);
PO([CLLocationHandler singleton]);
_locationManager = [[CLLocationManager alloc] init];
_locationManager.delegate = self;
PO(self);
PO(_locationManager.delegate);
NSAssert(_locationManager.delegate==self,#"They are meant for each other");
So this code works in simulator and in most iPhone. There is one magical iPhone belonging to my biz partner that I can't debug program with.
If I run the installed program directly the code will yield this:
��
<Warning>: *** -[NSKeyedUnarchiver initForReadingWithData:]: data is NULL
<Warning>: self: <CLLocationHandler: 0x1f8df560>
<Warning>: _locationManager.delegate: (null) <Warning>: [CLLocationHandler singleton]: <CLLocationHandler: 0x1f8df560>
<Warning>: self: <CLLocationHandler: 0x1f8df560>
<Warning>: _locationManager.delegate: <RwXSxTb_DelegateProxy: 0x1e594d00>
<Warning>: *** Assertion failure in -[CLLocationHandler additionalInitialization], /business/Dropbox/badgers/BadgerNew/CLLocationHandler.m:251
<Error>: *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'They are meant for each other'
What the hell is delegateProxy?
May be the device in which you are debugging is JB(Jail Break).
So, you are unable to debug in that device.
There is no guarantee that reading from property will return exactly the same value.
Properties are syntactic sugar for calling getter and setter methods, and those methods can do anything.
It seems that in your case, -[CLLocationHandler setDelegate:] wraps the value in a proxy. Try comparing objects with isEqual: instead, many proxies will handle that correctly.
I found one solution related with Addresponse - adding to memory only on Stackoverflow, but my App still reporting it even doing the recommended.
Addresponse - adding to memory only (XCode)
AppDelegate.m
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
{
...
// Enable Cache System
NSURLCache *cache = [[NSURLCache alloc] initWithMemoryCapacity:4*1024*1024 diskCapacity:32*1024*1024 diskPath:nil];
[NSURLCache setSharedURLCache:cache];
...
}
Log:
2013-05-22 19:44:21.648 Setparty[12912:380f] ADDRESPONSE - ADDING TO MEMORY ONLY: http://SERVER/api/1.0/appimages/?view=1
2013-05-22 19:44:21.667 Setparty[12912:380f] ADDRESPONSE - ADDING TO MEMORY ONLY: http://SERVER/api/1.0/appimages/?view=2
2013-05-22 19:44:21.689 Setparty[12912:380f] ADDRESPONSE - ADDING TO MEMORY ONLY: http://itunes.apple.com/lookup/?id=634476579
Does anyone have any idea what may be related with these logs?
It is an error message coming from the framework. Best guess, your path on disk is nil and, thus, that error message is telling you that nothing will be written to disk.
Connect opefire server ok , and then to authentication:
- (void)xmppStreamDidConnect:(XMPPStream *)sender{
NSLog(#"connected --->YES");
isOpen = YES;
NSError *error = nil;
[xmppStream authenticateWithPassword:#"password" error:&error];
}
Openfire logs show:
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000065 (01/05/00) - Connection #5 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000066 (01/05/00) - Connection #5 tested: OK
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.AuthorizationManager - AuthorizationManager: Trying Default Mapping.map(shitiven)
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.DefaultAuthorizationMapping - DefaultAuthorizationMapping: No realm found
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.AuthorizationManager - AuthorizationManager: Trying Default Policy.authorize(shitiven , shitiven)
2012.08.01 19:13:35 org.jivesoftware.openfire.auth.DefaultAuthorizationPolicy - DefaultAuthorizationPolicy: Checking authenID realm
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000066 (01/05/00) - Connection #2 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000067 (01/05/00) - Connection #2 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000067 (01/05/00) - Connection #1 tested: OK
2012.08.01 19:13:35 org.jivesoftware.util.log.util.CommonsLogFactory - 000068 (01/05/00) - Connection #1 tested: OK
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Launching thread for /121.0.29.220:60789
2012.08.01 19:13:35 org.apache.mina.filter.executor.ExecutorFilter - Exiting since queue is empty for /121.0.29.220:60789
But the delegate method "xmppStreamDidAuthenticate" not call:
- (void)xmppStreamDidAuthenticate:(XMPPStream *)sender{
NSLog(#"login success!!");
[self goOnline];
}
When I type wrong userid or password , the delegate method "didNotAuthenticate" call:
- (void)xmppStream:(XMPPStream *)sender didNotAuthenticate:(NSXMLElement *)error{
NSLog(#"authenticate fail %#",error); //console to the debug pannel
}
Can anyone help me?
I suspect that you're being haunted by the issue described here: https://github.com/robbiehanson/XMPPFramework/issues/81
You will have to update xmppframework to fix this.