How to specify web service client security policy in weblogic? - weblogic
I am building a web service client deployed in Weblogic 12c as part of a web application. The web service that I am trying to consume has the following security policy:
wss11_saml_or_username_token_with_message_protection_service_policy
As I read here, in this case a web service client must use either of the following two policies:
oracle/wss11_saml_token_with_message_protection_client_policy
oracle/wss11_username_token_with_message_protection_client_policy
So far I have downloaded and installed all certificates in the certificate chain in the trust keystore of my weblogic server.
I generated a web service client using Netbeans (using JAX-WS RI 2.2.6-1b01).
I set up username and password as follows:
Map<String, Object> rc = ((BindingProvider) port).getRequestContext();
rc.put(BindingProvider.USERNAME_PROPERTY, "username");
rc.put(BindingProvider.PASSWORD_PROPERTY, "password");
And I invoked one of the web service operations.
Unfortunately, I am getting an error at runtime involving a NullPointerException when trying to use the SAML credentials. This is the server log:
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <Use JSSE SSL (default strength)>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: Set weblogic.security.utils.SSLTruster to weblogic.security.utils.SSLTrustValidator#40c05e98.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: Set weblogic.security.utils.SSLHostnameVerifier to weblogic.security.utils.SSLWLSHostnameVerifier#261be85a.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: Set enforceConstraints level to 0.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <SSLSetup: loading trusted CA certificates>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: addTrustedCA called.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: addTrustedCA called.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: addTrustedCA called.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: addTrustedCA called.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: addTrustedCA called.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: addTrustedCA called.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLCONTEXT: Got SSLContext, protocol=TLS, provider=SunJSSE>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setEnabledCipherSuites(String[]): value=TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA256,TLS_RSA_WITH_AES_128_CBC_SHA256,TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA256,TLS_ECDH_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_RSA_WITH_AES_128_CBC_SHA256,TLS_DHE_DSS_WITH_AES_128_CBC_SHA256,TLS_ECDHE_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDHE_RSA_WITH_AES_128_CBC_SHA,TLS_RSA_WITH_AES_128_CBC_SHA,TLS_ECDH_ECDSA_WITH_AES_128_CBC_SHA,TLS_ECDH_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_RSA_WITH_AES_128_CBC_SHA,TLS_DHE_DSS_WITH_AES_128_CBC_SHA,TLS_ECDHE_ECDSA_WITH_RC4_128_SHA,TLS_ECDHE_RSA_WITH_RC4_128_SHA,SSL_RSA_WITH_RC4_128_SHA,TLS_ECDH_ECDSA_WITH_RC4_128_SHA,TLS_ECDH_RSA_WITH_RC4_128_SHA,TLS_ECDHE_ECDSA_WITH_3DES_EDE_CBC_SHA,TLS_ECDHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_RSA_WITH_3DES_EDE_CBC_SHA,TLS_ECDH_ECDSA_WITH_3DES_EDE_CBC_SHA,TLS_ECDH_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_RSA_WITH_3DES_EDE_CBC_SHA,SSL_DHE_DSS_WITH_3DES_EDE_CBC_SHA,SSL_RSA_WITH_RC4_128_MD5,TLS_EMPTY_RENEGOTIATION_INFO_SCSV.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setEnabledProtocols(String[]): value=SSLv2Hello,SSLv3,TLSv1,TLSv1.1,TLSv1.2.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setEnableSessionCreation(boolean): value=true.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setUseClientMode(boolean): value=true.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setWantClientAuth(boolean): value=false.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setNeedClientAuth(boolean): value=false.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setNeedClientAuth(boolean): value=false.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setUseClientMode(boolean): value=true.>
<5/07/2014 10:36:36 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.setUseClientMode(boolean): value=true.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.wrap(ByteBuffer,ByteBuffer) called: result=Status = OK HandshakeStatus = NEED_UNWRAP
bytesConsumed = 0 bytesProduced = 145.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = BUFFER_UNDERFLOW HandshakeStatus = NEED_UNWRAP
bytesConsumed = 0 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = NEED_TASK
bytesConsumed = 86 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = BUFFER_UNDERFLOW HandshakeStatus = NEED_UNWRAP
bytesConsumed = 0 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = NEED_TASK
bytesConsumed = 3223 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = NEED_TASK
bytesConsumed = 9 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.wrap(ByteBuffer,ByteBuffer) called: result=Status = OK HandshakeStatus = NEED_WRAP
bytesConsumed = 0 bytesProduced = 267.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.wrap(ByteBuffer,ByteBuffer) called: result=Status = OK HandshakeStatus = NEED_WRAP
bytesConsumed = 0 bytesProduced = 6.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.wrap(ByteBuffer,ByteBuffer) called: result=Status = OK HandshakeStatus = NEED_UNWRAP
bytesConsumed = 0 bytesProduced = 53.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = BUFFER_UNDERFLOW HandshakeStatus = NEED_UNWRAP
bytesConsumed = 0 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = NEED_UNWRAP
bytesConsumed = 6 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = FINISHED
bytesConsumed = 53 bytesProduced = 0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: negotiatedCipherSuite: SSL_RSA_WITH_3DES_EDE_CBC_SHA>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.getNeedClientAuth(): false>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: Peer certificate chain: [Ljava.security.cert.X509Certificate;#6a313eac>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: weblogic.security.utils.SSLTrustValidator.isPeerCertsRequired(): false>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <validationCallback: validateErr = 0>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <weblogic user specified trustmanager validation status 0>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <SSLTrustValidator returns: 0>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: No trust failure, validateErr=0.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <Performing hostname validation checks: caar-test.crm.us1.oraclecloud.com>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: Successfully completed post-handshake processing.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.wrap(ByteBuffer,ByteBuffer) called: result=Status = OK HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 349 bytesProduced = 389.>
<5/07/2014 10:36:37 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.wrap(ByteBuffer,ByteBuffer) called: result=Status = OK HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 1606 bytesProduced = 1645.>
<5/07/2014 10:36:38 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 1325 bytesProduced = 1291.>
<5/07/2014 10:36:38 AM COT> <Debug> <SecuritySSL> <BEA-000000> <[Thread[[ACTIVE] ExecuteThread: '1' for queue: 'weblogic.kernel.Default (self-tuning)',5,Pooled Threads]]weblogic.security.SSL.jsseadapter: SSLENGINE: SSLEngine.unwrap(ByteBuffer,ByteBuffer[]) called: result=Status = OK HandshakeStatus = NOT_HANDSHAKING
bytesConsumed = 1245 bytesProduced = 1206.>
<5/07/2014 10:36:38 AM COT> <Error> <HTTP> <WL-101020> <[ServletContext#822614083[app:mypackage_ServicioWeb_war_1.0-SNAPSHOT module:ServicioWeb-1.0-SNAPSHOT path:null spec-version:3.0]] Servlet failed with an Exception
java.lang.NullPointerException
at weblogic.wsee.security.saml.SAMLTrustCredentialProvider.getCredentialFromRSTR(SAMLTrustCredentialProvider.java:494)
at weblogic.wsee.security.saml.SAMLTrustCredentialProvider.createCredential(SAMLTrustCredentialProvider.java:443)
at weblogic.wsee.security.saml.SAMLTrustCredentialProvider.getCredentialSTSCSS(SAMLTrustCredentialProvider.java:189)
at weblogic.wsee.security.saml.SAMLTrustCredentialProvider.getCredential(SAMLTrustCredentialProvider.java:101)
at weblogic.xml.crypto.wss.WrapperCredentialProvider.getCredential(WrapperCredentialProvider.java:55)
at weblogic.xml.crypto.wss.SecurityBuilderImpl.getCredential(SecurityBuilderImpl.java:778)
at weblogic.xml.crypto.wss.SecurityBuilderImpl.getSecurityToken(SecurityBuilderImpl.java:751)
at weblogic.xml.crypto.wss.SecurityBuilderImpl.addSecurityToken(SecurityBuilderImpl.java:287)
at weblogic.wsee.security.wss.plan.SecurityMessageArchitect.doProcessIdentity(SecurityMessageArchitect.java:924)
at weblogic.wsee.security.wss.plan.SecurityMessageArchitect.processIdentity(SecurityMessageArchitect.java:890)
at weblogic.wsee.security.wss.plan.SecurityMessageArchitect.constructMessage(SecurityMessageArchitect.java:185)
at weblogic.wsee.security.wss.plan.SecurityMessageArchitect.buildWssMessage(SecurityMessageArchitect.java:138)
at weblogic.wsee.security.wss.plan.SecurityMessageArchitect.buildWssMessage(SecurityMessageArchitect.java:121)
at weblogic.wsee.security.wss.SecurityPolicyArchitect.processOutbound(SecurityPolicyArchitect.java:226)
at weblogic.wsee.security.wss.SecurityPolicyArchitect.processMessagePolicy(SecurityPolicyArchitect.java:134)
at weblogic.wsee.security.wss.SecurityPolicyConductor.processRequestOutbound(SecurityPolicyConductor.java:120)
at weblogic.wsee.security.wss.SecurityPolicyConductor.processRequestOutbound(SecurityPolicyConductor.java:92)
at weblogic.wsee.security.wssp.handlers.WssClientHandler.processOutbound(WssClientHandler.java:114)
at weblogic.wsee.security.wssp.handlers.WssClientHandler.processRequest(WssClientHandler.java:66)
at weblogic.wsee.security.wssp.handlers.WssHandler.handleRequest(WssHandler.java:113)
at weblogic.wsee.jaxws.framework.jaxrpc.TubeFactory$JAXRPCTube.processRequest(TubeFactory.java:269)
at com.sun.xml.ws.api.pipe.Fiber.__doRun(Fiber.java:1136)
at com.sun.xml.ws.api.pipe.Fiber._doRun(Fiber.java:1050)
at com.sun.xml.ws.api.pipe.Fiber.doRun(Fiber.java:1019)
at com.sun.xml.ws.api.pipe.Fiber.runSync(Fiber.java:877)
at com.sun.xml.ws.client.Stub.process(Stub.java:464)
at com.sun.xml.ws.client.sei.SEIStub.doProcess(SEIStub.java:174)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:108)
at com.sun.xml.ws.client.sei.SyncMethodHandler.invoke(SyncMethodHandler.java:91)
at com.sun.xml.ws.client.sei.SEIStub.invoke(SEIStub.java:154)
at com.sun.proxy.$Proxy144.createOpportunity(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at weblogic.wsee.jaxws.spi.ClientInstanceInvocationHandler.invoke(ClientInstanceInvocationHandler.java:84)
at com.sun.proxy.$Proxy145.createOpportunity(Unknown Source)
at mypackage.servicioweb.ConsumirOportunidad.processRequest(ConsumeService.java:74)
at mypackage.servicioweb.ConsumeService.doGet(ConsumeService.java:99)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:731)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:844)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:280)
at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:254)
at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:136)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:341)
at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:238)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.wrapRun(WebAppServletContext.java:3363)
at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3333)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:120)
at weblogic.servlet.provider.WlsSubjectHandle.run(WlsSubjectHandle.java:57)
at weblogic.servlet.internal.WebAppServletContext.doSecuredExecute(WebAppServletContext.java:2220)
at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2146)
at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2124)
at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1564)
at weblogic.servlet.provider.ContainerSupportProviderImpl$WlsRequestExecutor.run(ContainerSupportProviderImpl.java:254)
at weblogic.work.ExecuteThread.execute(ExecuteThread.java:295)
at weblogic.work.ExecuteThread.run(ExecuteThread.java:254)
I assume that weblogic is trying to consume the web
service using the policy "oracle/wss11_saml_token_with_message_protection_client_policy" instead of "oracle/wss11_username_token_with_message_protection_client_policy".
I have been able to consume the web service successfully using SoapUI, a standalone client and the same war application deployed in Apache Tomcat.
I want to keep the web service client logic as simple as possible, i.e. sending the username and password using basic authentication without using a mapping credential provider o saml.
Please let me know if you have any ideas or suggestions that can help me with this.
Related
How to fit model to a multidimensional output space using pandas dataframe as input?
I want to fit a dataframe to a sequential deep learning model with multiple units in the final layer of the model. I'm new to deep learning. Code: import pandas as pd import tensorflow as tf from tensorflow import keras from tensorflow.keras import layers from sklearn.preprocessing import LabelEncoder # Label encode encoder = LabelEncoder() df["survival"] = encoder.fit_transform(df[["survival"]]) df["type"] = encoder.fit_transform(df[["type"]]) df["subtype"] = encoder.fit_transform(df[["subtype"]]) # Define Sequential model def get_model(): model = keras.Sequential( [ layers.Dense(10, activation="relu", name="layer1"), layers.Dense(10, activation="relu", name="layer2"), layers.Dense(2, name="layer3"), ] ) model.compile(optimizer='adam', loss=tf.keras.losses.BinaryCrossentropy(from_logits=True), metrics=['accuracy']) return model model = get_model() X2 = df.iloc[:,7:9] # Retrieve 2 features tf.convert_to_tensor(X2) # Convert to tensor normalizer = tf.keras.layers.Normalization(axis=-1) normalizer.adapt(X2) model.fit(X2, df[["survival"]], epochs=15, batch_size=BATCH_SIZE) Traceback: --------------------------------------------------------------------------- ValueError Traceback (most recent call last) /tmp/ipykernel_17/2890126290.py in <module> 3 normalizer = tf.keras.layers.Normalization(axis=-1) 4 normalizer.adapt(X2) ----> 5 model.fit(X2, df[["survival"]], epochs=15, batch_size=BATCH_SIZE) 6 model.fit(X2, df[["type"]], epochs=15, batch_size=BATCH_SIZE) 7 model.fit(X2, df[["subtype"]], epochs=15, batch_size=BATCH_SIZE) /opt/conda/lib/python3.7/site-packages/keras/engine/training.py in fit(self, x, y, batch_size, epochs, verbose, callbacks, validation_split, validation_data, shuffle, class_weight, sample_weight, initial_epoch, steps_per_epoch, validation_steps, validation_batch_size, validation_freq, max_queue_size, workers, use_multiprocessing) 1182 _r=1): 1183 callbacks.on_train_batch_begin(step) -> 1184 tmp_logs = self.train_function(iterator) 1185 if data_handler.should_sync: 1186 context.async_wait() /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in __call__(self, *args, **kwds) 883 884 with OptionalXlaContext(self._jit_compile): --> 885 result = self._call(*args, **kwds) 886 887 new_tracing_count = self.experimental_get_tracing_count() /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in _call(self, *args, **kwds) 931 # This is the first call of __call__, so we have to initialize. 932 initializers = [] --> 933 self._initialize(args, kwds, add_initializers_to=initializers) 934 finally: 935 # At this point we know that the initialization is complete (or less /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in _initialize(self, args, kwds, add_initializers_to) 758 self._concrete_stateful_fn = ( 759 self._stateful_fn._get_concrete_function_internal_garbage_collected( # pylint: disable=protected-access --> 760 *args, **kwds)) 761 762 def invalid_creator_scope(*unused_args, **unused_kwds): /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py in _get_concrete_function_internal_garbage_collected(self, *args, **kwargs) 3064 args, kwargs = None, None 3065 with self._lock: -> 3066 graph_function, _ = self._maybe_define_function(args, kwargs) 3067 return graph_function 3068 /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py in _maybe_define_function(self, args, kwargs) 3461 3462 self._function_cache.missed.add(call_context_key) -> 3463 graph_function = self._create_graph_function(args, kwargs) 3464 self._function_cache.primary[cache_key] = graph_function 3465 /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/function.py in _create_graph_function(self, args, kwargs, override_flat_arg_shapes) 3306 arg_names=arg_names, 3307 override_flat_arg_shapes=override_flat_arg_shapes, -> 3308 capture_by_value=self._capture_by_value), 3309 self._function_attributes, 3310 function_spec=self.function_spec, /opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py in func_graph_from_py_func(name, python_func, args, kwargs, signature, func_graph, autograph, autograph_options, add_control_dependencies, arg_names, op_return_value, collections, capture_by_value, override_flat_arg_shapes, acd_record_initial_resource_uses) 1005 _, original_func = tf_decorator.unwrap(python_func) 1006 -> 1007 func_outputs = python_func(*func_args, **func_kwargs) 1008 1009 # invariant: `func_outputs` contains only Tensors, CompositeTensors, /opt/conda/lib/python3.7/site-packages/tensorflow/python/eager/def_function.py in wrapped_fn(*args, **kwds) 666 # the function a weak reference to itself to avoid a reference cycle. 667 with OptionalXlaContext(compile_with_xla): --> 668 out = weak_wrapped_fn().__wrapped__(*args, **kwds) 669 return out 670 /opt/conda/lib/python3.7/site-packages/tensorflow/python/framework/func_graph.py in wrapper(*args, **kwargs) 992 except Exception as e: # pylint:disable=broad-except 993 if hasattr(e, "ag_error_metadata"): --> 994 raise e.ag_error_metadata.to_exception(e) 995 else: 996 raise ValueError: in user code: /opt/conda/lib/python3.7/site-packages/keras/engine/training.py:853 train_function * return step_function(self, iterator) /opt/conda/lib/python3.7/site-packages/keras/engine/training.py:842 step_function ** outputs = model.distribute_strategy.run(run_step, args=(data,)) /opt/conda/lib/python3.7/site-packages/tensorflow/python/distribute/distribute_lib.py:1286 run return self._extended.call_for_each_replica(fn, args=args, kwargs=kwargs) /opt/conda/lib/python3.7/site-packages/tensorflow/python/distribute/distribute_lib.py:2849 call_for_each_replica return self._call_for_each_replica(fn, args, kwargs) /opt/conda/lib/python3.7/site-packages/tensorflow/python/distribute/distribute_lib.py:3632 _call_for_each_replica return fn(*args, **kwargs) /opt/conda/lib/python3.7/site-packages/keras/engine/training.py:835 run_step ** outputs = model.train_step(data) /opt/conda/lib/python3.7/site-packages/keras/engine/training.py:789 train_step y, y_pred, sample_weight, regularization_losses=self.losses) /opt/conda/lib/python3.7/site-packages/keras/engine/compile_utils.py:201 __call__ loss_value = loss_obj(y_t, y_p, sample_weight=sw) /opt/conda/lib/python3.7/site-packages/keras/losses.py:141 __call__ losses = call_fn(y_true, y_pred) /opt/conda/lib/python3.7/site-packages/keras/losses.py:245 call ** return ag_fn(y_true, y_pred, **self._fn_kwargs) /opt/conda/lib/python3.7/site-packages/tensorflow/python/util/dispatch.py:206 wrapper return target(*args, **kwargs) /opt/conda/lib/python3.7/site-packages/keras/losses.py:1809 binary_crossentropy backend.binary_crossentropy(y_true, y_pred, from_logits=from_logits), /opt/conda/lib/python3.7/site-packages/tensorflow/python/util/dispatch.py:206 wrapper return target(*args, **kwargs) /opt/conda/lib/python3.7/site-packages/keras/backend.py:5000 binary_crossentropy return tf.nn.sigmoid_cross_entropy_with_logits(labels=target, logits=output) /opt/conda/lib/python3.7/site-packages/tensorflow/python/util/dispatch.py:206 wrapper return target(*args, **kwargs) /opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/nn_impl.py:246 sigmoid_cross_entropy_with_logits_v2 logits=logits, labels=labels, name=name) /opt/conda/lib/python3.7/site-packages/tensorflow/python/util/dispatch.py:206 wrapper return target(*args, **kwargs) /opt/conda/lib/python3.7/site-packages/tensorflow/python/ops/nn_impl.py:133 sigmoid_cross_entropy_with_logits (logits.get_shape(), labels.get_shape())) ValueError: logits and labels must have the same shape ((None, 2) vs (None, 1)) I can only fit the model if I set the units to 1 in the final layer. model = keras.Sequential( [ layers.Dense(10, activation="relu", name="layer1"), layers.Dense(10, activation="relu", name="layer2"), layers.Dense(1, name="layer3"), ] ) How do I use multiple units in the final layer of the model? I tried reshape(-1,1) and still get the same error. Data: df.head().to_dict() {'admin.disease_code': {'TCGA-2K-A9WE-01A': 'KIRP', 'TCGA-2Z-A9J1-01A': 'KIRP', 'TCGA-2Z-A9J2-01A': 'KIRP', 'TCGA-2Z-A9J3-01A': 'KIRP', 'TCGA-2Z-A9J5-01A': 'KIRP'}, 'days_to_death': {'TCGA-2K-A9WE-01A': nan, 'TCGA-2Z-A9J1-01A': nan, 'TCGA-2Z-A9J2-01A': nan, 'TCGA-2Z-A9J3-01A': 1771.0, 'TCGA-2Z-A9J5-01A': nan}, 'vital_status': {'TCGA-2K-A9WE-01A': 'alive', 'TCGA-2Z-A9J1-01A': 'alive', 'TCGA-2Z-A9J2-01A': 'alive', 'TCGA-2Z-A9J3-01A': 'dead', 'TCGA-2Z-A9J5-01A': 'alive'}, 'age_at_initial_pathologic_diagnosis': {'TCGA-2K-A9WE-01A': 53.0, 'TCGA-2Z-A9J1-01A': 71.0, 'TCGA-2Z-A9J2-01A': 71.0, 'TCGA-2Z-A9J3-01A': 67.0, 'TCGA-2Z-A9J5-01A': 80.0}, 'gender': {'TCGA-2K-A9WE-01A': 'male', 'TCGA-2Z-A9J1-01A': 'male', 'TCGA-2Z-A9J2-01A': 'female', 'TCGA-2Z-A9J3-01A': 'male', 'TCGA-2Z-A9J5-01A': 'male'}, 'karnofsky_performance_score': {'TCGA-2K-A9WE-01A': nan, 'TCGA-2Z-A9J1-01A': nan, 'TCGA-2Z-A9J2-01A': nan, 'TCGA-2Z-A9J3-01A': nan, 'TCGA-2Z-A9J5-01A': nan}, 'survival': {'TCGA-2K-A9WE-01A': 'lts', 'TCGA-2Z-A9J1-01A': 'lts', 'TCGA-2Z-A9J2-01A': 'lts', 'TCGA-2Z-A9J3-01A': 'lts', 'TCGA-2Z-A9J5-01A': 'lts'}, 'cg00000029': {'TCGA-2K-A9WE-01A': 0.461440642939772, 'TCGA-2Z-A9J1-01A': 0.595894468074615, 'TCGA-2Z-A9J2-01A': 0.481304782143526, 'TCGA-2Z-A9J3-01A': 0.553849599144766, 'TCGA-2Z-A9J5-01A': 0.184349035247422}, 'cg00000165': {'TCGA-2K-A9WE-01A': 0.143910373119058, 'TCGA-2Z-A9J1-01A': 0.0807243779293262, 'TCGA-2Z-A9J2-01A': 0.437447195378987, 'TCGA-2Z-A9J3-01A': 0.0642332527783939, 'TCGA-2Z-A9J5-01A': 0.126118535539944}, 'cg00000236': {'TCGA-2K-A9WE-01A': 0.847164847154162, 'TCGA-2Z-A9J1-01A': 0.867305510246114, 'TCGA-2Z-A9J2-01A': 0.898927359292032, 'TCGA-2Z-A9J3-01A': 0.917290578229414, 'TCGA-2Z-A9J5-01A': 0.928017823091886}, 'cg00000289': {'TCGA-2K-A9WE-01A': 0.737361955793681, 'TCGA-2Z-A9J1-01A': 0.70680600651273, 'TCGA-2Z-A9J2-01A': 0.758108726247342, 'TCGA-2Z-A9J3-01A': 0.675537604266578, 'TCGA-2Z-A9J5-01A': 0.677846427070521}, 'cg00000292': {'TCGA-2K-A9WE-01A': 0.716794733144112, 'TCGA-2Z-A9J1-01A': 0.217862460492399, 'TCGA-2Z-A9J2-01A': 0.868604834806246, 'TCGA-2Z-A9J3-01A': 0.543087013952312, 'TCGA-2Z-A9J5-01A': 0.850473788130218}, 'cg00000321': {'TCGA-2K-A9WE-01A': 0.351877113536983, 'TCGA-2Z-A9J1-01A': 0.169408257004071, 'TCGA-2Z-A9J2-01A': 0.577744851436078, 'TCGA-2Z-A9J3-01A': 0.85044433769089, 'TCGA-2Z-A9J5-01A': 0.44473521937132}, 'cg00000363': {'TCGA-2K-A9WE-01A': 0.248986769373366, 'TCGA-2Z-A9J1-01A': 0.173115013795265, 'TCGA-2Z-A9J2-01A': 0.567241575633452, 'TCGA-2Z-A9J3-01A': 0.470810530680518, 'TCGA-2Z-A9J5-01A': 0.204529155293748}, 'cg00000622': {'TCGA-2K-A9WE-01A': 0.0121360989202765, 'TCGA-2Z-A9J1-01A': 0.0108902025634162, 'TCGA-2Z-A9J2-01A': 0.0122683781097633, 'TCGA-2Z-A9J3-01A': 0.0125681212511168, 'TCGA-2Z-A9J5-01A': 0.0122330126903632}, 'cg00000658': {'TCGA-2K-A9WE-01A': 0.876303885229884, 'TCGA-2Z-A9J1-01A': 0.813866558997356, 'TCGA-2Z-A9J2-01A': 0.881366097769717, 'TCGA-2Z-A9J3-01A': 0.870735609192125, 'TCGA-2Z-A9J5-01A': 0.906102120405464}, 'cg00000721': {'TCGA-2K-A9WE-01A': 0.944311384947134, 'TCGA-2Z-A9J1-01A': 0.938576461648791, 'TCGA-2Z-A9J2-01A': 0.936584647488041, 'TCGA-2Z-A9J3-01A': 0.956356142020249, 'TCGA-2Z-A9J5-01A': 0.938145301973259}, 'cg00000734': {'TCGA-2K-A9WE-01A': 0.0490407302658151, 'TCGA-2Z-A9J1-01A': 0.0426568318037534, 'TCGA-2Z-A9J2-01A': 0.0428379760439674, 'TCGA-2Z-A9J3-01A': 0.0577007291016598, 'TCGA-2Z-A9J5-01A': 0.0491650645308977}, 'cg00000769': {'TCGA-2K-A9WE-01A': 0.0200484962577958, 'TCGA-2Z-A9J1-01A': 0.0133187057875756, 'TCGA-2Z-A9J2-01A': 0.0193220859926812, 'TCGA-2Z-A9J3-01A': 0.017072120017994, 'TCGA-2Z-A9J5-01A': 0.0184242706692516}, 'cg00000905': {'TCGA-2K-A9WE-01A': 0.0623434271852525, 'TCGA-2Z-A9J1-01A': 0.0540543120983417, 'TCGA-2Z-A9J2-01A': 0.0551810635627895, 'TCGA-2Z-A9J3-01A': 0.055021036675329, 'TCGA-2Z-A9J5-01A': 0.0565152834168852}, 'cg00000924': {'TCGA-2K-A9WE-01A': 0.489865398138095, 'TCGA-2Z-A9J1-01A': 0.317547629906197, 'TCGA-2Z-A9J2-01A': 0.5065017863301, 'TCGA-2Z-A9J3-01A': 0.504135768615145, 'TCGA-2Z-A9J5-01A': 0.466643054300025}, 'cg00000948': {'TCGA-2K-A9WE-01A': 0.920994933496615, 'TCGA-2Z-A9J1-01A': 0.89911570032979, 'TCGA-2Z-A9J2-01A': 0.855015243009544, 'TCGA-2Z-A9J3-01A': 0.911116565506201, 'TCGA-2Z-A9J5-01A': 0.934397425301759}, 'cg00000957': {'TCGA-2K-A9WE-01A': 0.92663932531651, 'TCGA-2Z-A9J1-01A': 0.525131175543627, 'TCGA-2Z-A9J2-01A': 0.86481442167794, 'TCGA-2Z-A9J3-01A': 0.855796126141919, 'TCGA-2Z-A9J5-01A': 0.907979957948096}, 'cg00001245': {'TCGA-2K-A9WE-01A': 0.0149191766670711, 'TCGA-2Z-A9J1-01A': 0.0152198596492253, 'TCGA-2Z-A9J2-01A': 0.0154433022292077, 'TCGA-2Z-A9J3-01A': 0.0158006072782886, 'TCGA-2Z-A9J5-01A': 0.0149090955954903}, 'type': {'TCGA-2K-A9WE-01A': 'tumor', 'TCGA-2Z-A9J1-01A': 'tumor', 'TCGA-2Z-A9J2-01A': 'tumor', 'TCGA-2Z-A9J3-01A': 'tumor', 'TCGA-2Z-A9J5-01A': 'tumor'}, 'subtype': {'TCGA-2K-A9WE-01A': 'KIRP', 'TCGA-2Z-A9J1-01A': 'KIRP', 'TCGA-2Z-A9J2-01A': 'KIRP', 'TCGA-2Z-A9J3-01A': 'KIRP', 'TCGA-2Z-A9J5-01A': 'KIRP'}}
Why is optimizer.minimize not working if we pass loss as tf.constant?
I simply have train = optimizer.minimize(loss = tf.constant(4,dtype="float32")) Line of code that i change before everything is working. Why it is giving error ? Because documentation say it can be tensor Here is Docs W = tf.Variable([0.5],tf.float32) b = tf.Variable([0.1],tf.float32) x = tf.placeholder(tf.float32) y= tf.placeholder(tf.float32) discounted_reward = tf.placeholder(tf.float32,shape=[4,], name="discounted_reward") linear_model = W*x + b squared_delta = tf.square(linear_model - y) print(squared_delta) loss = tf.reduce_sum(squared_delta*discounted_reward) print(loss) optimizer = tf.train.GradientDescentOptimizer(0.01) train = optimizer.minimize(loss = tf.constant(4,dtype="float32")) init = tf.global_variables_initializer() sess = tf.Session() sess.run(init) for i in range(3): sess.run(train,{x:[1,2,3,4],y:[0,-1,-2,-3],discounted_reward:[1,2,3,4]}) print(sess.run([W,b])) I really need this thing to work. In this particular example we can have other ways to solve it but i need it to work as my actual code can do this only Error is > ValueError: No gradients provided for any variable, check your graph > for ops that do not support gradients, between variables > ["<tf.Variable 'Variable:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_1:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_2:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_3:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_4:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_5:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_6:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_7:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_8:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_9:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_10:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_11:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_12:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_13:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_14:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_15:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_16:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_17:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_18:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_19:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_20:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_21:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_22:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_23:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_24:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_25:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_26:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_27:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_28:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_29:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_30:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_31:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_32:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_33:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_34:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_35:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_36:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_37:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_38:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_39:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_40:0' shape=(1,) dtype=float32_ref>", > "<tf.Variable 'Variable_41:0' shape=(1,) dtype=float32_ref>"] and loss > Tensor("Const_4:0", shape=(), dtype=float32).
How to fix "javax.net.ssl.SSLHandshakeException: Chain validation failed"
I updated my application from market store,then I tried to login with my account,but it failed and shows the error: javax.net.ssl.SSLHandshakeException: Chain validation failed. But when I killed the app in task manager or reboot my phone, it worked fine and did't appear the error anymore.How can I fix this. I have searched some answers, some answers show my certificate expired, but why does it work fine when I reboot the phone and restart my app. 04-25 10:35:30.505 9127 15685 W System.err: javax.net.ssl.SSLHandshakeException: Chain validation failed 04-25 10:35:30.505 9127 15685 W System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:355) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.c.b.a(RealConnection.java:195) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.c.b.a(RealConnection.java:148) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.c.b.a(RealConnection.java:111) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.b.r.a(StreamAllocation.java:188) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.b.r.b(StreamAllocation.java:127) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.b.r.a(StreamAllocation.java:97) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.b.g.o(HttpEngine.java:289) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.a.b.g.a(HttpEngine.java:241) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.z.a(RealCall.java:240) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.z$a.a(RealCall.java:198) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.z.a(RealCall.java:160) 04-25 10:35:30.505 9127 15685 W System.err: at okhttp3.z.b(RealCall.java:57) 04-25 10:35:30.505 9127 15685 W System.err: at com.yaok.a.g.a(HttpLoader.java:190) 04-25 10:35:30.505 9127 15685 W System.err: at com.yaok.a.d.a(DataLoader.java:308) 04-25 10:35:30.505 9127 15685 W System.err: at com.yaok.a.d.a(DataLoader.java:72) 04-25 10:35:30.505 9127 15685 W System.err: at com.yaok.a.j.run(Loader.java:10) 04-25 10:35:30.505 9127 15685 W System.err: Caused by: java.security.cert.CertificateException: Chain validation failed 04-25 10:35:30.505 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:705) 04-25 10:35:30.505 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:537) 04-25 10:35:30.505 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:558) 04-25 10:35:30.505 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrustedRecursive(TrustManagerImpl.java:603) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:493) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.checkTrusted(TrustManagerImpl.java:416) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.getTrustedChainForServer(TrustManagerImpl.java:337) 04-25 10:35:30.506 9127 15685 W System.err: at android.security.net.config.NetworkSecurityTrustManager.checkServerTrusted(NetworkSecurityTrustManager.java:94) 04-25 10:35:30.506 9127 15685 W System.err: at android.security.net.config.RootTrustManager.checkServerTrusted(RootTrustManager.java:88) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.Platform.checkServerTrusted(Platform.java:203) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.verifyCertificateChain(OpenSSLSocketImpl.java:592) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.NativeCrypto.SSL_do_handshake(Native Method) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.OpenSSLSocketImpl.startHandshake(OpenSSLSocketImpl.java:351) 04-25 10:35:30.506 9127 15685 W System.err: ... 16 more 04-25 10:35:30.506 9127 15685 W System.err: Caused by: java.security.cert.CertPathValidatorException: timestamp check failed 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:133) 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:225) 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.PKIXCertPathValidator.validate(PKIXCertPathValidator.java:143) 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.PKIXCertPathValidator.engineValidate(PKIXCertPathValidator.java:79) 04-25 10:35:30.506 9127 15685 W System.err: at java.security.cert.CertPathValidator.validate(CertPathValidator.java:301) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.TrustManagerImpl.verifyChain(TrustManagerImpl.java:701) 04-25 10:35:30.506 9127 15685 W System.err: ... 28 more 04-25 10:35:30.506 9127 15685 W System.err: Caused by: java.security.cert.CertificateExpiredException: Certificate expired at Tue Jan 15 15:39:44 GMT+08:00 2019 (compared to Thu Apr 25 10:35:30 GMT+08:00 2019) 04-25 10:35:30.506 9127 15685 W System.err: at com.android.org.conscrypt.OpenSSLX509Certificate.checkValidity(OpenSSLX509Certificate.java:244) 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.BasicChecker.verifyTimestamp(BasicChecker.java:194) 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.BasicChecker.check(BasicChecker.java:144) 04-25 10:35:30.506 9127 15685 W System.err: at sun.security.provider.certpath.PKIXMasterCertPathValidator.validate(PKIXMasterCertPathValidator.java:125) 04-25 10:35:30.506 9127 15685 W System.err: ... 33 more
Unexpected end-of-input at index 0 dataweave exception
I am using below code to access a date value stored in a flow variabale but it is throwing exception. Dataweave code is : %dw 1.0 %output application/java --- flowVars.testEffDate Exception message is : ERROR 2017-07-10 18:31:30,976 [[ testItemSync].HTTP_Listener_Configuration.worker.01] org.mule.exception.CatchMessagingExceptionStrategy: ******************************************************************************** Message : Exception while executing: { ^ Unexpected end-of-input at index 0 (line 1, position 1), expected JSON Value. Payload :Id,Version,EffectiveDate "",1, 20be1,2,2017-09-01 Payload Type : java.lang.String Element : /PrFlow/processors/9/1/2/checkNProcessSubflow/subprocessors/1/0/3/0/7/0/3/0/1/subProcessSubflow/subprocessors/7/0/3/0/1 # testItemSync:testPr.xml:436 (Transform Message) Element XML : <dw:transform-message doc:name="Transform Message"> <dw:set-payload>%dw 1.0%output application/java---flowVars.testEffDate</dw:set-payload> </dw:transform-message> -------------------------------------------------------------------------------- Root Exception stack trace: com.mulesoft.weave.mule.exception.WeaveExecutionException: Exception while executing: { ^ Unexpected end-of-input at index 0 (line 1, position 1), expected JSON Value. at com.mulesoft.weave.mule.exception.WeaveExecutionException$.apply(WeaveExecutionException.scala:12) at com.mulesoft.weave.mule.WeaveMessageProcessor.execute(WeaveMessageProcessor.scala:121) at com.mulesoft.weave.mule.WeaveMessageProcessor.process(WeaveMessageProcessor.scala:67) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:193) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:193) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:193) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:193) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:193) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:193) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.routing.AbstractSelectiveRouter.processEventWithProcessor(AbstractSelectiveRouter.java:303) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessors(AbstractSelectiveRouter.java:293) at org.mule.routing.AbstractSelectiveRouter.routeWithProcessor(AbstractSelectiveRouter.java:283) at org.mule.routing.AbstractSelectiveRouter.process(AbstractSelectiveRouter.java:198) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:102) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.construct.DynamicPipelineMessageProcessor.process(DynamicPipelineMessageProcessor.java:55) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.interceptor.AbstractEnvelopeInterceptor.processBlocking(AbstractEnvelopeInterceptor.java:58) at org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:52) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AbstractRequestResponseMessageProcessor.processBlocking(AbstractRequestResponseMessageProcessor.java:56) at org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.construct.AbstractPipeline$3.process(AbstractPipeline.java:233) at org.mule.module.http.internal.listener.HttpMessageProcessorTemplate.routeEvent(HttpMessageProcessorTemplate.java:73) at org.mule.execution.AsyncResponseFlowProcessingPhase$1.process(AsyncResponseFlowProcessingPhase.java:72) at org.mule.execution.AsyncResponseFlowProcessingPhase$1.process(AsyncResponseFlowProcessingPhase.java:59) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16) at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:35) at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:22) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:67) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:44) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:50) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:110) at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:58) at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:35) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:69) at com.mulesoft.mule.throttling.ThrottlingPhase.runPhase(ThrottlingPhase.java:187) at com.mulesoft.mule.throttling.ThrottlingPhase.runPhase(ThrottlingPhase.java:58) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65) at com.mulesoft.gateway.http.phases.GatewayValidationPhase.runPhase(GatewayValidationPhase.java:93) at com.mulesoft.gateway.http.phases.GatewayValidationPhase.runPhase(GatewayValidationPhase.java:49) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65) at org.mule.modules.cors.CorsPhase.runPhase(CorsPhase.java:113) at org.mule.modules.cors.CorsPhase.runPhase(CorsPhase.java:40) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.process(PhaseExecutionEngine.java:114) at org.mule.execution.PhaseExecutionEngine.process(PhaseExecutionEngine.java:41) at org.mule.execution.MuleMessageProcessingManager.processMessage(MuleMessageProcessingManager.java:32) at org.mule.module.http.internal.listener.DefaultHttpListener$1.handleRequest(DefaultHttpListener.java:133) at org.mule.module.http.internal.listener.grizzly.GrizzlyRequestDispatcherFilter.handleRead(GrizzlyRequestDispatcherFilter.java:83) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.run0(ExecutorPerServerAddressIOStrategy.java:102) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.access$100(ExecutorPerServerAddressIOStrategy.java:30) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy$WorkerThreadRunnable.run(ExecutorPerServerAddressIOStrategy.java:125) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ******************************************************************************** We are using anypointstudio 6.0.0. version. Please help me to solve this issue. Thanks
The problem is with the metadata set in your dataweave input side.Just right click on metadata and clear it.
what kind of date / date-format do you have in your Variable? Is a key pair of values or just the date value ? If you want to transform a date to string, try with: %dw 1.0 %output application/java --- date: flowVars.testEffDate as :string {format: "<< Introduce the format of your date there >>"}
Your payload is of CSV format and dataweave is expecting JSON. Please add <dw:input-payload mimeType="application/csv"/> to your dataweave transform code. <dw:transform-message doc:name="Transform Message"> <dw:input-payload mimeType="application/csv"/> <dw:set-payload><![CDATA[%dw 1.0 %output application/java --- flowVars.testEffDate]]></dw:set-payload> </dw:transform-message> Hope this helps.
Mule batch - java.lang.ClassNotFoundException: org.apache.commons.csv.CSVFormat
I am getting this error when the flow comes to 'Execute a batch element' processor. java.lang.ClassNotFoundException: org.apache.commons.csv.CSVFormat I have nothing to do with CSV, and I am getting this error sometimes not all the time in the same flow. When I added the dependency for commons-csv I get the below exception Message : Could not serialize object (org.mule.api.serialization.SerializationException). Root Exception stack trace: java.util.ConcurrentModificationException at java.util.Vector$Itr.checkForComodification(Vector.java:1184) at java.util.Vector$Itr.next(Vector.java:1137) at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:92) at com.esotericsoftware.kryo.serializers.CollectionSerializer.write(CollectionSerializer.java:40) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628) at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:366) at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:307) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:606) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:87) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628) at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:366) at com.esotericsoftware.kryo.serializers.DefaultArraySerializers$ObjectArraySerializer.write(DefaultArraySerializers.java:307) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628) at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:113) at com.esotericsoftware.kryo.serializers.MapSerializer.write(MapSerializer.java:39) at com.esotericsoftware.kryo.Kryo.writeObjectOrNull(Kryo.java:579) at com.mulesoft.module.serialization.kryo.internal.CopyOnWriteCaseInsensitiveMapSerializer.write(CopyOnWriteCaseInsensitiveMapSerializer.java:30) at com.mulesoft.module.serialization.kryo.internal.CopyOnWriteCaseInsensitiveMapSerializer.write(CopyOnWriteCaseInsensitiveMapSerializer.java:1) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.mulesoft.module.serialization.kryo.internal.MuleEventKryoSerializer.write(MuleEventKryoSerializer.java:36) at com.mulesoft.module.serialization.kryo.internal.MuleEventKryoSerializer.write(MuleEventKryoSerializer.java:1) at com.esotericsoftware.kryo.Kryo.writeObject(Kryo.java:552) at com.esotericsoftware.kryo.serializers.ObjectField.write(ObjectField.java:80) at com.esotericsoftware.kryo.serializers.FieldSerializer.write(FieldSerializer.java:518) at com.esotericsoftware.kryo.Kryo.writeClassAndObject(Kryo.java:628) at com.mulesoft.module.serialization.kryo.internal.KryoObjectSerializer.doSerialize(KryoObjectSerializer.java:105) at com.mulesoft.module.serialization.kryo.internal.KryoObjectSerializer.doSerialize(KryoObjectSerializer.java:97) at org.mule.serialization.internal.AbstractObjectSerializer.serialize(AbstractObjectSerializer.java:64) at com.mulesoft.module.batch.engine.DefaultBatchJobInstanceStore.doStore(DefaultBatchJobInstanceStore.java:351) at com.mulesoft.module.batch.engine.DefaultBatchJobInstanceStore.store(DefaultBatchJobInstanceStore.java:96) at com.mulesoft.module.batch.engine.DefaultBatchEngine.createNewJobInstance(DefaultBatchEngine.java:226) at com.mulesoft.module.batch.DefaultBatchJob.execute(DefaultBatchJob.java:371) at com.mulesoft.module.batch.processor.BatchExecuteMessageProcessor.process(BatchExecuteMessageProcessor.java:49) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:108) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.construct.DynamicPipelineMessageProcessor.process(DynamicPipelineMessageProcessor.java:55) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.interceptor.AbstractEnvelopeInterceptor.processBlocking(AbstractEnvelopeInterceptor.java:58) at org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:52) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AbstractRequestResponseMessageProcessor.processBlocking(AbstractRequestResponseMessageProcessor.java:56) at org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.construct.Flow$2.process(Flow.java:138) at org.mule.construct.Flow$2.process(Flow.java:133) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16) at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:35) at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:22) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:67) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:50) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) at org.mule.execution.ErrorHandlingExecutionTemplate.execute(ErrorHandlingExecutionTemplate.java:60) at org.mule.execution.ErrorHandlingExecutionTemplate.execute(ErrorHandlingExecutionTemplate.java:30) at org.mule.construct.Flow.process(Flow.java:132) at org.mule.module.apikit.AbstractRouter.processBlockingRequest(AbstractRouter.java:108) at org.mule.module.apikit.AbstractRouter.processBlocking(AbstractRouter.java:98) at org.mule.module.apikit.AbstractRouter.process(AbstractRouter.java:80) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AsyncInterceptingMessageProcessor.process(AsyncInterceptingMessageProcessor.java:108) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.construct.DynamicPipelineMessageProcessor.process(DynamicPipelineMessageProcessor.java:55) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.interceptor.AbstractEnvelopeInterceptor.processBlocking(AbstractEnvelopeInterceptor.java:58) at org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AbstractFilteringMessageProcessor.process(AbstractFilteringMessageProcessor.java:52) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:98) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.processor.AbstractRequestResponseMessageProcessor.processBlocking(AbstractRequestResponseMessageProcessor.java:56) at org.mule.processor.AbstractRequestResponseMessageProcessor.process(AbstractRequestResponseMessageProcessor.java:47) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.processor.BlockingProcessorExecutor.executeNext(BlockingProcessorExecutor.java:88) at org.mule.processor.BlockingProcessorExecutor.execute(BlockingProcessorExecutor.java:59) at org.mule.execution.ExceptionToMessagingExceptionExecutionInterceptor.execute(ExceptionToMessagingExceptionExecutionInterceptor.java:27) at org.mule.execution.MessageProcessorNotificationExecutionInterceptor.execute(MessageProcessorNotificationExecutionInterceptor.java:108) at org.mule.execution.MessageProcessorExecutionTemplate.execute(MessageProcessorExecutionTemplate.java:44) at org.mule.construct.AbstractPipeline$3.process(AbstractPipeline.java:232) at org.mule.module.http.internal.listener.HttpMessageProcessorTemplate.routeEvent(HttpMessageProcessorTemplate.java:73) at org.mule.execution.AsyncResponseFlowProcessingPhase$1.process(AsyncResponseFlowProcessingPhase.java:72) at org.mule.execution.AsyncResponseFlowProcessingPhase$1.process(AsyncResponseFlowProcessingPhase.java:59) at org.mule.execution.ExecuteCallbackInterceptor.execute(ExecuteCallbackInterceptor.java:16) at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:35) at org.mule.execution.CommitTransactionInterceptor.execute(CommitTransactionInterceptor.java:22) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:30) at org.mule.execution.HandleExceptionInterceptor.execute(HandleExceptionInterceptor.java:14) at org.mule.execution.BeginAndResolveTransactionInterceptor.execute(BeginAndResolveTransactionInterceptor.java:67) at org.mule.execution.ResolvePreviousTransactionInterceptor.execute(ResolvePreviousTransactionInterceptor.java:44) at org.mule.execution.SuspendXaTransactionInterceptor.execute(SuspendXaTransactionInterceptor.java:50) at org.mule.execution.ValidateTransactionalStateInterceptor.execute(ValidateTransactionalStateInterceptor.java:40) at org.mule.execution.IsolateCurrentTransactionInterceptor.execute(IsolateCurrentTransactionInterceptor.java:41) at org.mule.execution.ExternalTransactionInterceptor.execute(ExternalTransactionInterceptor.java:48) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:28) at org.mule.execution.RethrowExceptionInterceptor.execute(RethrowExceptionInterceptor.java:13) at org.mule.execution.TransactionalErrorHandlingExecutionTemplate.execute(TransactionalErrorHandlingExecutionTemplate.java:110) at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:58) at org.mule.execution.AsyncResponseFlowProcessingPhase.runPhase(AsyncResponseFlowProcessingPhase.java:35) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:69) at com.mulesoft.mule.throttling.ThrottlingPhase.runPhase(ThrottlingPhase.java:187) at com.mulesoft.mule.throttling.ThrottlingPhase.runPhase(ThrottlingPhase.java:58) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65) at com.mulesoft.gateway.http.phases.GatewayValidationPhase.runPhase(GatewayValidationPhase.java:93) at com.mulesoft.gateway.http.phases.GatewayValidationPhase.runPhase(GatewayValidationPhase.java:49) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.phaseSuccessfully(PhaseExecutionEngine.java:65) at org.mule.modules.cors.CorsPhase.runPhase(CorsPhase.java:112) at org.mule.modules.cors.CorsPhase.runPhase(CorsPhase.java:39) at org.mule.execution.PhaseExecutionEngine$InternalPhaseExecutionEngine.process(PhaseExecutionEngine.java:114) at org.mule.execution.PhaseExecutionEngine.process(PhaseExecutionEngine.java:41) at org.mule.execution.MuleMessageProcessingManager.processMessage(MuleMessageProcessingManager.java:32) at org.mule.module.http.internal.listener.DefaultHttpListener$1.handleRequest(DefaultHttpListener.java:133) at org.mule.module.http.internal.listener.grizzly.GrizzlyRequestDispatcherFilter.handleRead(GrizzlyRequestDispatcherFilter.java:83) at org.glassfish.grizzly.filterchain.ExecutorResolver$9.execute(ExecutorResolver.java:119) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeFilter(DefaultFilterChain.java:284) at org.glassfish.grizzly.filterchain.DefaultFilterChain.executeChainPart(DefaultFilterChain.java:201) at org.glassfish.grizzly.filterchain.DefaultFilterChain.execute(DefaultFilterChain.java:133) at org.glassfish.grizzly.filterchain.DefaultFilterChain.process(DefaultFilterChain.java:112) at org.glassfish.grizzly.ProcessorExecutor.execute(ProcessorExecutor.java:77) at org.glassfish.grizzly.nio.transport.TCPNIOTransport.fireIOEvent(TCPNIOTransport.java:526) at org.glassfish.grizzly.strategies.AbstractIOStrategy.fireIOEvent(AbstractIOStrategy.java:112) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.run0(ExecutorPerServerAddressIOStrategy.java:102) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy.access$100(ExecutorPerServerAddressIOStrategy.java:30) at org.mule.module.http.internal.listener.grizzly.ExecutorPerServerAddressIOStrategy$WorkerThreadRunnable.run(ExecutorPerServerAddressIOStrategy.java:125) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) ******************************************************************************** . The flow calling the batch is very simple, basically just call the batch process. The error is coming from input phase of the batch where I have 'set variable's, 'database connector's, collection splitter-aggregator which makes calculations and modifies records.
#mCeviker, can you please share your flow? Normally, you will have to add the commons-csv dependency. Although the batch execute element does not require that dependency.
#mCeviker, you are probably trying to iterate over a collection (with a foreach) an try to modify it (remove elements) in the same loop. You should use an iterator instead. Maybe this link could help you.