Foro sobre Java SE > problemas con servicio
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BanorteWs2 1.3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ BanorteWs2 ---
[INFO] Deleting C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ BanorteWs2 >>>
[INFO]
[INFO] --- aspectj-maven-plugin:1.8:compile (default) @ BanorteWs2 ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\org\springframework\mock\staticmock\AnnotationDrivenStaticEntityMockingControl.aj:117
[INFO]
[INFO] --- aspectj-maven-plugin:1.8:test-compile (default) @ BanorteWs2 ---
[WARNING] No sources found skipping aspectJ compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ BanorteWs2 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ BanorteWs2 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- openlegacy-maven-plugin:3.5.0-RELEASE:oauth (oauth) @ BanorteWs2 ---
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ BanorteWs2 <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ BanorteWs2 ---
[INFO] Running war on http://localhost:8080/BanorteWs2
[INFO] Creating Tomcat server configuration at C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\tomcat
[INFO] create webapp with contextPath: /BanorteWs2
feb 28, 2017 4:47:13 PM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Initializing ProtocolHandler ["http-bio-8080"]
feb 28, 2017 4:47:13 PM org.apache.catalina.core.StandardService startInternal
INFORMACIÓN: Starting service Tomcat
feb 28, 2017 4:47:13 PM org.apache.catalina.core.StandardEngine startInternal
INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/7.0.47
feb 28, 2017 4:47:27 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: No Spring WebApplicationInitializer types detected on classpath
feb 28, 2017 4:47:28 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Initializing Spring root WebApplicationContext
2017-02-28 16:47:28,173 INFO [localhost-startStop-1] context.ContextLoader - Root WebApplicationContext: initialization started
2017-02-28 16:47:28,595 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin was loaded
2017-02-28 16:47:28,595 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin name: management-plugin
2017-02-28 16:47:28,595 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin version: 3.1.0-SNAPSHOT
2017-02-28 16:47:28,595 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin creator: OpenLegacy
2017-02-28 16:47:28,595 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin description: Management Plugin is responsible for managing session
2017-02-28 16:47:28,595 INFO [localhost-startStop-1] support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Tue Feb 28 16:47:28 CST 2017]; root of context hierarchy
2017-02-28 16:47:28,627 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]
2017-02-28 16:47:29,157 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/providers/openlegacy-rpc-mf/3.5.0-RELEASE-BANORTE/openlegacy-rpc-mf-3.5.0-RELEASE-BANORTE.jar!/META-INF/mf-openlegacy-rpc-provider.xml]
2017-02-28 16:47:29,219 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/openlegacy-rpc-basic-context.xml]
2017-02-28 16:47:29,252 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/openlegacy-common-basic-context.xml]
2017-02-28 16:47:29,626 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/openlegacy-api-usage-basic-context.xml]
2017-02-28 16:47:29,642 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/openlegacy-basic-cacheable-context.xml]
2017-02-28 16:47:29,657 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'serviceRegistry' with a different definition: replacing [Generic bean: class [org.openlegacy.support.SimpleServicesRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/openlegacy-rpc-basic-context.xml]] with [Generic bean: class [org.openlegacy.support.SimpleServicesRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]]
2017-02-28 16:47:29,657 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/serviceContext.xml]
2017-02-28 16:47:29,704 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
2017-02-28 16:47:29,704 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
2017-02-28 16:47:29,891 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/spring-security.xml]
2017-02-28 16:47:29,938 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/spring-security-basic-context.xml]
2017-02-28 16:47:30,063 INFO [localhost-startStop-1] core.SpringSecurityCoreVersion - You are running with Spring Security Core 4.0.3.RELEASE
2017-02-28 16:47:30,063 INFO [localhost-startStop-1] config.SecurityNamespaceHandler - Spring Security 'config' module version is 4.0.3.RELEASE
2017-02-28 16:47:30,078 INFO [localhost-startStop-1] method.GlobalMethodSecurityBeanDefinitionParser - Using bean 'oauth2MethodSecurityExpressionHandler' as method ExpressionHandler implementation
2017-02-28 16:47:30,125 INFO [localhost-startStop-1] http.HttpSecurityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, <clientCredentialsTokenEndpointFilter>, order = 1501, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2000, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2300]
2017-02-28 16:47:30,156 INFO [localhost-startStop-1] http.AuthenticationConfigBuilder - No login page configured. The default internal one will be used. Use the 'login-page' attribute to set the URL of the login page.
2017-02-28 16:47:30,156 INFO [localhost-startStop-1] http.HttpSecurityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 700, <org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>, order = 1100, Root bean: class [org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2100, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1>, order = 2300]
2017-02-28 16:47:30,156 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'cacheManager' with a different definition: replacing [Generic bean: class [org.openlegacy.cache.DummyCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/openlegacy-basic-cacheable-context.xml]] with [Generic bean: class [org.openlegacy.cache.ehcache.EhcacheCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]]
2017-02-28 16:47:30,156 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/plugin-resources/context/management-plugin-context.xml]
2017-02-28 16:47:30,172 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'sessionPropertiesProvider' with a different definition: replacing [Generic bean: class [org.openlegacy.support.SimpleSessionPropertiesProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/openlegacy-common-basic-context.xml]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [META-INF/plugin-resources/context/management-plugin-context.xml]]
2017-02-28 16:47:30,983 INFO [localhost-startStop-1] config.PropertiesFactoryBean - Loading properties file from class path resource [application.properties]
2017-02-28 16:47:31,296 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-02-28 16:47:31,296 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-02-28 16:47:31,296 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-02-28 16:47:31,296 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/UnmarshalHandlerMessages.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/ValidationMessages.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/ValidationMessages_it_IT.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/opensaml/xmltooling/1.3.2-1/xmltooling-1.3.2-1.jar!/credential-criteria-registry.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/net/sf/ehcache/ehcache/2.10.1/ehcache-2.10.1.jar!/build-info.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from class path resource [securedGateway.properties]
2017-02-28 16:47:31,312 WARN [localhost-startStop-1] config.PropertyOverrideConfigurer - Could not load properties from class path resource [securedGateway.properties]: class path resource [securedGateway.properties] cannot be opened because it does not exist
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from class path resource [application.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-02-28 16:47:31,312 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-02-28 16:47:31,437 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgma101 class, has not getter + setter pair.
2017-02-28 16:47:31,452 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmcer1 class, has not getter + setter pair.
2017-02-28 16:47:31,452 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmcom1 class, has not getter + setter pair.
2017-02-28 16:47:31,452 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmdetbd class, has not getter + setter pair.
2017-02-28 16:47:31,452 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmencbd class, has not getter + setter pair.
2017-02-28 16:47:31,468 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmpacem class, has not getter + setter pair.
2017-02-28 16:47:31,468 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgm186a class, has not getter + setter pair.
2017-02-28 16:47:31,468 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgm1866 class, has not getter + setter pair.
2017-02-28 16:47:31,468 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmmimp class, has not getter + setter pair.
2017-02-28 16:47:31,468 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmmpag class, has not getter + setter pair.
2017-02-28 16:47:31,483 ERROR [localhost-startStop-1] orchestrating.DefaultEntitiesRegistryManager - No qualifying bean of type [org.openlegacy.OrchestratedRegistry] is defined
2017-02-28 16:47:31,858 INFO [localhost-startStop-1] support.RpcEntityAnnotationLoader - RPC "Deposits" was added to the RPC registry (com.banortews2.openlegacy.Deposits)
2017-02-28 16:47:31,858 INFO [localhost-startStop-1] support.RpcActionsAnnotationLoader - RPC actions for "class com.banortews2.openlegacy.Deposits" was added to the rpc registry
2017-02-28 16:47:31,873 INFO [localhost-startStop-1] support.RpcEntityAnnotationLoader - RPC "PaymentsTest" was added to the RPC registry (com.banortews2.openlegacy.PaymentsTest)
2017-02-28 16:47:31,873 INFO [localhost-startStop-1] support.RpcActionsAnnotationLoader - RPC actions for "class com.banortews2.openlegacy.PaymentsTest" was added to the rpc registry
2017-02-28 16:47:32,154 INFO [localhost-startStop-1] annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-02-28 16:47:32,202 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'serviceProxyChecker' of type [class org.openlegacy.aop.services.ServiceProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
fehtyuA344
Guillermo
package org.openlegacy.providers.mfrpc;
import java.rmi.RemoteException;
import java.security.cert.CertificateException;
import java.security.cert.X509Certificate;
import javax.net.ssl.SSLContext;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.apache.http.conn.ssl.SSLConnectionSocketFactory;
import org.apache.http.conn.ssl.TrustSelfSignedStrategy;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.apache.http.ssl.SSLContexts;
import org.openlegacy.exceptions.OpenlegacyRemoteRuntimeException;
import org.openlegacy.rpc.LiveRpcConnectionFactory;
import org.openlegacy.rpc.RpcConnection;
import org.springframework.beans.factory.InitializingBean;
public class MfRpcConnectionFactory implements LiveRpcConnectionFactory, InitializingBean {
private final static Log logger = LogFactory.getLog(MfRpcConnectionFactory.class);
private String baseUrl;
private String codePage;
private int port;
private int msgLevel;
private Boolean allowSelfSigned;
private String ssltypes;
private String encriptions;
private static SSLConnectionSocketFactory sslsf = null;
private Integer payloadLength;
private String dumpFolder;
private String separator;
private String innerSeparator;
private String bufferEndIndicator;
@Override
public RpcConnection getConnection() {
CloseableHttpClient httpClient = null;
if (allowSelfSigned.equals(Boolean.TRUE) && baseUrl.startsWith("https")) {
// SSLContextBuilder builder = new SSLContextBuilder();
synchronized (sslsf) {
if (sslsf == null) {
try {
SSLContext sslContext = SSLContexts.custom().loadTrustMaterial(new TrustSelfSignedStrategy() {
@Override
public boolean isTrusted(X509Certificate[] chain, String authType) throws CertificateException {
return true;
}
}).build();
String[] supportedProtocols = this.ssltypes.split(",");
String[] supportedCipherSuites = this.encriptions.split(",");
// builder.loadTrustMaterial(null, new TrustSelfSignedStrategy());
sslsf = new SSLConnectionSocketFactory(sslContext, supportedProtocols, supportedCipherSuites, new NoopHostnameVerifier());
} catch (Exception e) {
logger.error("Failed to set SSLConnectionSocketFactory", e);
}
}
}
httpClient = HttpClients.custom().setSSLSocketFactory(sslsf).build();
} else {
httpClient = HttpClients.custom().build();
}
MfRpcConnection rpcConnection = new MfRpcConnection();
rpcConnection.setHttpClient(httpClient);
rpcConnection.setCodePage(codePage);
rpcConnection.setUrl(baseUrl);
rpcConnection.setMsgLevel((byte) msgLevel);
rpcConnection.setDumpFolder(dumpFolder);
// rpcConnection.setTransactionName(transactionName);
rpcConnection.setPayloadLength(payloadLength);
rpcConnection.setSeparator(ByteUtils.hexStringToByteArray(this.separator));
rpcConnection.setInnerSeparator(ByteUtils.hexStringToByteArray(this.innerSeparator));
rpcConnection.setBufferEndIndicator(ByteUtils.hexStringToByteArray(this.bufferEndIndicator));
logger.debug("Created new connection");
return rpcConnection;
}
@Override
public void disconnect(RpcConnection rpcConnection) {
try {
rpcConnection.disconnect();
logger.debug("disconnecting");
} catch (RemoteException e) {
throw (new OpenlegacyRemoteRuntimeException(e));
}
}
@Override
public void afterPropertiesSet() throws Exception {}
public void setDumpFolder(String dumpFolder) {
this.dumpFolder = dumpFolder;
}
public String getBaseUrl() {
return baseUrl;
}
public void setBaseUrl(String baseUrl) {
this.baseUrl = baseUrl;
}
public String getCodePage() {
return codePage;
}
public void setCodePage(String codePage) {
this.codePage = codePage;
}
public int getPort() {
return port;
}
public void setPort(int port) {
this.port = port;
}
public int getMsgLevel() {
return msgLevel;
}
public void setMsgLevel(int msgLevel) {
this.msgLevel = msgLevel;
}
public Boolean getAllowSelfSigned() {
return allowSelfSigned;
}
public void setAllowSelfSigned(Boolean allowSelfSigned) {
this.allowSelfSigned = allowSelfSigned;
}
public String getSsltypes() {
return ssltypes;
}
public void setSsltypes(String ssltypes) {
this.ssltypes = ssltypes;
}
public String getEncriptions() {
return encriptions;
}
public void setEncriptions(String encriptions) {
this.encriptions = encriptions;
}
public void setPayloadLength(Integer payloadLength) {
this.payloadLength = payloadLength;
}
public String getSeparator() {
return separator;
}
public void setSeparator(String separator) {
this.separator = separator;
}
public String getInnerSeparator() {
return innerSeparator;
}
public void setInnerSeparator(String innerSeparator) {
this.innerSeparator = innerSeparator;
}
public String getBufferEndIndicator() {
return bufferEndIndicator;
}
public void setBufferEndIndicator(String bufferEndIndicator) {
this.bufferEndIndicator = bufferEndIndicator;
}
}
Guillermo
2017-02-28 17:42:42,323 ERROR [localhost-startStop-1] orchestrating.DefaultEntitiesRegistryManager - No qualifying bean of type [org.openlegacy.OrchestratedRegistry] is defined
2017-02-28 17:42:42,635 INFO [localhost-startStop-1] support.RpcEntityAnnotationLoader - RPC "Deposits" was added to the RPC registry (com.banortews2.openlegacy.Deposits)
2017-02-28 17:42:42,650 INFO [localhost-startStop-1] support.RpcActionsAnnotationLoader - RPC actions for "class com.banortews2.openlegacy.Deposits" was added to the rpc registry
2017-02-28 17:42:42,650 INFO [localhost-startStop-1] support.RpcEntityAnnotationLoader - RPC "PaymentsTest" was added to the RPC registry (com.banortews2.openlegacy.PaymentsTest)
2017-02-28 17:42:42,650 INFO [localhost-startStop-1] support.RpcActionsAnnotationLoader - RPC actions for "class com.banortews2.openlegacy.PaymentsTest" was added to the rpc registry
2017-02-28 17:42:42,822 INFO [localhost-startStop-1] annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-02-28 17:42:42,870 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'serviceProxyChecker' of type [class org.openlegacy.aop.services.ServiceProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,870 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'sessionProxyChecker' of type [class org.openlegacy.aop.session.SessionProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,870 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'controllerProxyChecker' of type [class org.openlegacy.aop.controllers.ControllerProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,901 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.aop.framework.ProxyFactoryBean#0' of type [class com.sun.proxy.$Proxy62] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,901 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean '(inner bean)#eae357' of type [class org.springframework.security.access.expression.method.ExpressionBasedAnnotationAttributeFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,901 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean '(inner bean)#18b52dd' of type [class org.springframework.security.access.prepost.PrePostAnnotationSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,917 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0' of type [class org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-02-28 17:42:42,948 WARN [localhost-startStop-1] support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rpcConnection' defined in URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/providers/openlegacy-rpc-mf/3.5.0-RELEASE-BANORTE/openlegacy-rpc-mf-3.5.0-RELEASE-BANORTE.jar!/META-INF/mf-openlegacy-rpc-provider.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openlegacy.rpc.RpcConnection]: Factory method 'getConnection' threw exception; nested exception is java.lang.NullPointerException
2017-02-28 17:42:42,963 ERROR [localhost-startStop-1] context.ContextLoader - Context initialization failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rpcConnection' defined in URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/providers/openlegacy-rpc-mf/3.5.0-RELEASE-BANORTE/openlegacy-rpc-mf-3.5.0-RELEASE-BANORTE.jar!/META-INF/mf-openlegacy-rpc-provider.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openlegacy.rpc.RpcConnection]: Factory method 'getConnection' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.openlegacy.web.OpenLegacyContextLoaderListener.contextInitialized(OpenLegacyContextLoaderListener.java:59)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openlegacy.rpc.RpcConnection]: Factory method 'getConnection' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 24 more
Caused by: java.lang.NullPointerException
at org.openlegacy.providers.mfrpc.MfRpcConnectionFactory.getConnection(MfRpcConnectionFactory.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 25 more
feb 28, 2017 5:42:42 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Exception sending context initialized event to listener instance of class org.openlegacy.web.OpenLegacyContextLoaderListener
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'rpcConnection' defined in URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/providers/openlegacy-rpc-mf/3.5.0-RELEASE-BANORTE/openlegacy-rpc-mf-3.5.0-RELEASE-BANORTE.jar!/META-INF/mf-openlegacy-rpc-provider.xml]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openlegacy.rpc.RpcConnection]: Factory method 'getConnection' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:599)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateUsingFactoryMethod(AbstractAutowireCapableBeanFactory.java:1123)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1018)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:510)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:482)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:306)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:302)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:772)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:838)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:537)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.openlegacy.web.OpenLegacyContextLoaderListener.contextInitialized(OpenLegacyContextLoaderListener.java:59)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.openlegacy.rpc.RpcConnection]: Factory method 'getConnection' threw exception; nested exception is java.lang.NullPointerException
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:189)
at org.springframework.beans.factory.support.ConstructorResolver.instantiateUsingFactoryMethod(ConstructorResolver.java:588)
... 24 more
Caused by: java.lang.NullPointerException
at org.openlegacy.providers.mfrpc.MfRpcConnectionFactory.getConnection(MfRpcConnectionFactory.java:55)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:162)
... 25 more
feb 28, 2017 5:42:42 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart
feb 28, 2017 5:42:42 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/BanorteWs2] startup failed due to previous errors
feb 28, 2017 5:42:42 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Closing Spring root WebApplicationContext
feb 28, 2017 5:42:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/BanorteWs2] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
feb 28, 2017 5:42:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/BanorteWs2] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
feb 28, 2017 5:42:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/BanorteWs2] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
feb 28, 2017 5:42:42 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/BanorteWs2] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
feb 28, 2017 5:42:42 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/BanorteWs2] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@ed7c11]) and a value of type [java.util.WeakHashMap] (value [{class java.util.ArrayList=java.lang.ref.WeakReference@1b94da9, class org.openlegacy.plugins.support.holders.PluginViewsHolder=java.lang.ref.WeakReference@75e6b2, class org.openlegacy.plugins.support.SimplePlugin=java.lang.ref.WeakReference@1245b03}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
feb 28, 2017 5:42:42 PM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler ["http-bio-8080"]
Alx
<dependency>
<groupId>org.openlegacy.providers</groupId>
openlegacy-rpc-mf
<version>${openlegacy.version}</version>
</dependency>
WITH:
<dependency>
<groupId>org.openlegacy.providers</groupId>
openlegacy-altamira
<version>${openlegacy.version}</version>
</dependency>
4. Add the beans definition below to the application context
<property name="endDataMarker" value="FA"/>
<property name="startSectionMarker" value="EF"/>
<property name="endSectionMarker" value="EE"/>
<property name="filterOutCmd" value="7CE2C5C3"/>
<property name="payloadLength" value="${cics.payloadLength}" />
<property name="mFConvertorUtil" ref="mFConvertorUtil"></property>
5. Notice that cics header size are now bigger, so need to replace header in our mock data.
jorge
Add the beans definition below to the application context
<property name="endDataMarker" value="FA"/>
<property name="startSectionMarker" value="EF"/>
<property name="endSectionMarker" value="EE"/>
<property name="filterOutCmd" value="7CE2C5C3"/>
bean id="rpcInputFormatter" class="org.openlegacy.providers.mfrpc.FieldsToMFBin"
<property name="payloadLength" value="${cics.payloadLength}" />
<property name="mFConvertorUtil" ref="mFConvertorUtil"></property>
/bean
5. Notice that cics header size are now bigger, so need to replace header in our mock data.
jorge
Add the beans definition below to the application context
bean id="rpcSpliter" class="org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter"
<property name="endDataMarker" value="FA"/>
<property name="startSectionMarker" value="EF"/>
<property name="endSectionMarker" value="EE"/>
<property name="filterOutCmd" value="7CE2C5C3"/>
/bean
bean id="rpcInputFormatter" class="org.openlegacy.providers.mfrpc.FieldsToMFBin"
<property name="payloadLength" value="${cics.payloadLength}" />
<property name="mFConvertorUtil" ref="mFConvertorUtil"></property>
/bean
5. Notice that cics header size are now bigger, so need to replace header in our mock data.
jorge
2017-03-07 16:38:26,877 INFO [localhost-startStop-1] http.AuthenticationConfigBuilder - No login page configured. The default internal one will be used. Use the 'login-page' attribute to set the URL of the login page.
2017-03-07 16:38:26,877 INFO [localhost-startStop-1] http.HttpSecurityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 700, <org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>, order = 1100, Root bean: class [org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2100, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1>, order = 2300]
2017-03-07 16:38:26,893 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'cacheManager' with a different definition: replacing [Generic bean: class [org.openlegacy.cache.DummyCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/openlegacy-basic-cacheable-context.xml]] with [Generic bean: class [org.openlegacy.cache.ehcache.EhcacheCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]]
2017-03-07 16:38:26,893 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/plugin-resources/context/management-plugin-context.xml]
2017-03-07 16:38:26,908 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'sessionPropertiesProvider' with a different definition: replacing [Generic bean: class [org.openlegacy.support.SimpleSessionPropertiesProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/openlegacy-common-basic-context.xml]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [META-INF/plugin-resources/context/management-plugin-context.xml]]
2017-03-07 16:38:27,626 WARN [localhost-startStop-1] support.XmlWebApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter] for bean with name 'rpcSpliter' defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter
2017-03-07 16:38:27,626 ERROR [localhost-startStop-1] context.ContextLoader - Context initialization failed
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter] for bean with name 'rpcSpliter' defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:597)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1445)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:445)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:415)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:409)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:338)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:332)
at org.openlegacy.plugins.support.PluginProcessor.registerPluginsRegistryBean(PluginProcessor.java:54)
at org.openlegacy.plugins.support.PluginProcessor.postProcessBeanFactory(PluginProcessor.java:39)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:131)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:677)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:519)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.openlegacy.web.OpenLegacyContextLoaderListener.contextInitialized(OpenLegacyContextLoaderListener.java:59)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: java.lang.ClassNotFoundException: org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1397)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1344)
... 27 more
mar 07, 2017 4:38:27 PM org.apache.catalina.core.StandardContext listenerStart
GRAVE: Exception sending context initialized event to listener instance of class org.openlegacy.web.OpenLegacyContextLoaderListener
org.springframework.beans.factory.CannotLoadBeanClassException: Cannot find class [org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter] for bean with name 'rpcSpliter' defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]; nested exception is java.lang.ClassNotFoundException: org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1352)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.determineTargetType(AbstractAutowireCapableBeanFactory.java:628)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.predictBeanType(AbstractAutowireCapableBeanFactory.java:597)
at org.springframework.beans.factory.support.AbstractBeanFactory.isFactoryBean(AbstractBeanFactory.java:1445)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.doGetBeanNamesForType(DefaultListableBeanFactory.java:445)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:415)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanNamesForType(DefaultListableBeanFactory.java:409)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:338)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBean(DefaultListableBeanFactory.java:332)
at org.openlegacy.plugins.support.PluginProcessor.registerPluginsRegistryBean(PluginProcessor.java:54)
at org.openlegacy.plugins.support.PluginProcessor.postProcessBeanFactory(PluginProcessor.java:39)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:284)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:131)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:677)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:519)
at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:446)
at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:328)
at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
at org.openlegacy.web.OpenLegacyContextLoaderListener.contextInitialized(OpenLegacyContextLoaderListener.java:59)
at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4939)
at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1559)
at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1549)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
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)
Caused by: java.lang.ClassNotFoundException: org.openlegacy.providers.altamira.customer.banorte.BanorteSpliter
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1702)
at org.apache.catalina.loader.WebappClassLoader.loadClass(WebappClassLoader.java:1547)
at org.springframework.util.ClassUtils.forName(ClassUtils.java:250)
at org.springframework.beans.factory.support.AbstractBeanDefinition.resolveBeanClass(AbstractBeanDefinition.java:394)
at org.springframework.beans.factory.support.AbstractBeanFactory.doResolveBeanClass(AbstractBeanFactory.java:1397)
at org.springframework.beans.factory.support.AbstractBeanFactory.resolveBeanClass(AbstractBeanFactory.java:1344)
... 27 more
mar 07, 2017 4:38:27 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Error listenerStart
mar 07, 2017 4:38:27 PM org.apache.catalina.core.StandardContext startInternal
GRAVE: Context [/BanorteWs2] startup failed due to previous errors
mar 07, 2017 4:38:27 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Closing Spring root WebApplicationContext
mar 07, 2017 4:38:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/BanorteWs2] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
mar 07, 2017 4:38:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/BanorteWs2] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
mar 07, 2017 4:38:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
GRAVE: The web application [/BanorteWs2] registered the JDBC driver [org.h2.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
mar 07, 2017 4:38:27 PM org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
GRAVE: The web application [/BanorteWs2] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak.
mar 07, 2017 4:38:27 PM org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
GRAVE: The web application [/BanorteWs2] created a ThreadLocal with key of type [com.sun.xml.bind.v2.ClassFactory$1] (value [com.sun.xml.bind.v2.ClassFactory$1@d87a65]) and a value of type [java.util.WeakHashMap] (value [{class org.openlegacy.plugins.support.holders.PluginViewsHolder=java.lang.ref.WeakReference@69db1a, class java.util.ArrayList=java.lang.ref.WeakReference@fdd5ac, class org.openlegacy.plugins.support.SimplePlugin=java.lang.ref.WeakReference@1a651f0}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
mar 07, 2017 4:38:27 PM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler ["http-bio-8080"]
PEDRO SANCHEZ
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] Building BanorteWs2 1.3
[INFO] ------------------------------------------------------------------------
[INFO]
[INFO] --- maven-clean-plugin:3.0.0:clean (default-clean) @ BanorteWs2 ---
[INFO] Deleting C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target
[INFO]
[INFO] >>> tomcat7-maven-plugin:2.2:run (default-cli) > process-classes @ BanorteWs2 >>>
[INFO]
[INFO] --- aspectj-maven-plugin:1.8:compile (default) @ BanorteWs2 ---
[INFO] Showing AJC message detail for messages of types: [error, warning, fail]
[WARNING] advice defined in org.springframework.mock.staticmock.AnnotationDrivenStaticEntityMockingControl has not been applied [Xlint:adviceDidNotMatch]
C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\org\springframework\mock\staticmock\AnnotationDrivenStaticEntityMockingControl.aj:117
[INFO]
[INFO] --- aspectj-maven-plugin:1.8:test-compile (default) @ BanorteWs2 ---
[WARNING] No sources found skipping aspectJ compile
[INFO]
[INFO] --- maven-resources-plugin:2.7:resources (default-resources) @ BanorteWs2 ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 19 resources
[INFO]
[INFO] --- maven-compiler-plugin:3.3:compile (default-compile) @ BanorteWs2 ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- openlegacy-maven-plugin:3.5.0-RELEASE:oauth (oauth) @ BanorteWs2 ---
[INFO]
[INFO] <<< tomcat7-maven-plugin:2.2:run (default-cli) < process-classes @ BanorteWs2 <<<
[INFO]
[INFO] --- tomcat7-maven-plugin:2.2:run (default-cli) @ BanorteWs2 ---
[INFO] Running war on http://localhost:8080/BanorteWs2
[INFO] Creating Tomcat server configuration at C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\tomcat
[INFO] create webapp with contextPath: /BanorteWs2
mar 08, 2017 9:00:22 PM org.apache.coyote.AbstractProtocol init
INFORMACIÓN: Initializing ProtocolHandler ["http-bio-8080"]
mar 08, 2017 9:00:22 PM org.apache.catalina.core.StandardService startInternal
INFORMACIÓN: Starting service Tomcat
mar 08, 2017 9:00:22 PM org.apache.catalina.core.StandardEngine startInternal
INFORMACIÓN: Starting Servlet Engine: Apache Tomcat/7.0.47
mar 08, 2017 9:00:30 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: No Spring WebApplicationInitializer types detected on classpath
mar 08, 2017 9:00:30 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Initializing Spring root WebApplicationContext
2017-03-08 21:00:30,101 INFO [localhost-startStop-1] context.ContextLoader - Root WebApplicationContext: initialization started
2017-03-08 21:00:30,442 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin was loaded
2017-03-08 21:00:30,443 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin name: management-plugin
2017-03-08 21:00:30,443 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin version: 3.1.0-SNAPSHOT
2017-03-08 21:00:30,443 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin creator: OpenLegacy
2017-03-08 21:00:30,443 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin description: Management Plugin is responsible for managing session
2017-03-08 21:00:30,445 INFO [localhost-startStop-1] support.XmlWebApplicationContext - Refreshing Root WebApplicationContext: startup date [Wed Mar 08 21:00:30 CST 2017]; root of context hierarchy
2017-03-08 21:00:30,498 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]
2017-03-08 21:00:31,047 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/providers/openlegacy-rpc-mf/3.5.0-RELEASE-BANORTE/openlegacy-rpc-mf-3.5.0-RELEASE-BANORTE.jar!/META-INF/mf-openlegacy-rpc-provider.xml]
2017-03-08 21:00:31,088 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/openlegacy-rpc-basic-context.xml]
2017-03-08 21:00:31,116 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/openlegacy-common-basic-context.xml]
2017-03-08 21:00:31,504 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/openlegacy-api-usage-basic-context.xml]
2017-03-08 21:00:31,518 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/openlegacy-basic-cacheable-context.xml]
2017-03-08 21:00:31,536 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'serviceRegistry' with a different definition: replacing [Generic bean: class [org.openlegacy.support.SimpleServicesRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/openlegacy-rpc-basic-context.xml]] with [Generic bean: class [org.openlegacy.support.SimpleServicesRegistry]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]]
2017-03-08 21:00:31,537 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/serviceContext.xml]
2017-03-08 21:00:31,556 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/cxf/cxf.xml]
2017-03-08 21:00:31,565 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/cxf/cxf-servlet.xml]
2017-03-08 21:00:31,664 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/spring/spring-security.xml]
2017-03-08 21:00:31,719 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/spring-security-basic-context.xml]
2017-03-08 21:00:31,818 INFO [localhost-startStop-1] core.SpringSecurityCoreVersion - You are running with Spring Security Core 4.0.3.RELEASE
2017-03-08 21:00:31,822 INFO [localhost-startStop-1] config.SecurityNamespaceHandler - Spring Security 'config' module version is 4.0.3.RELEASE
2017-03-08 21:00:31,848 INFO [localhost-startStop-1] method.GlobalMethodSecurityBeanDefinitionParser - Using bean 'oauth2MethodSecurityExpressionHandler' as method ExpressionHandler implementation
2017-03-08 21:00:31,922 INFO [localhost-startStop-1] http.HttpSecurityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, <clientCredentialsTokenEndpointFilter>, order = 1501, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.authentication.AnonymousAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2000, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#0>, order = 2300]
2017-03-08 21:00:31,966 INFO [localhost-startStop-1] http.AuthenticationConfigBuilder - No login page configured. The default internal one will be used. Use the 'login-page' attribute to set the URL of the login page.
2017-03-08 21:00:31,967 INFO [localhost-startStop-1] http.HttpSecurityBeanDefinitionParser - Checking sorted filter chain: [Root bean: class [org.springframework.security.web.context.SecurityContextPersistenceFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 200, Root bean: class [org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 400, Root bean: class [org.springframework.security.web.header.HeaderWriterFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 500, Root bean: class [org.springframework.security.web.authentication.logout.LogoutFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 700, <org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter#0>, order = 1100, Root bean: class [org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1300, Root bean: class [org.springframework.security.web.authentication.www.BasicAuthenticationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1500, Root bean: class [org.springframework.security.web.savedrequest.RequestCacheAwareFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1600, Root bean: class [org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 1700, Root bean: class [org.springframework.security.web.session.SessionManagementFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2100, Root bean: class [org.springframework.security.web.access.ExceptionTranslationFilter]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null, order = 2200, <org.springframework.security.web.access.intercept.FilterSecurityInterceptor#1>, order = 2300]
2017-03-08 21:00:31,969 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'cacheManager' with a different definition: replacing [Generic bean: class [org.openlegacy.cache.DummyCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/openlegacy-basic-cacheable-context.xml]] with [Generic bean: class [org.openlegacy.cache.ehcache.EhcacheCacheManager]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in URL [file:/C:/Users/A3717151/workspace_3.5_latest_2/BanorteWs2/target/classes/META-INF/spring/applicationContext.xml]]
2017-03-08 21:00:31,969 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/plugin-resources/context/management-plugin-context.xml]
2017-03-08 21:00:31,988 INFO [localhost-startStop-1] support.DefaultListableBeanFactory - Overriding bean definition for bean 'sessionPropertiesProvider' with a different definition: replacing [Generic bean: class [org.openlegacy.support.SimpleSessionPropertiesProvider]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in class path resource [META-INF/openlegacy-common-basic-context.xml]] with [Root bean: class [org.springframework.aop.scope.ScopedProxyFactoryBean]; scope=; abstract=false; lazyInit=false; autowireMode=0; dependencyCheck=0; autowireCandidate=true; primary=false; factoryBeanName=null; factoryMethodName=null; initMethodName=null; destroyMethodName=null; defined in BeanDefinition defined in class path resource [META-INF/plugin-resources/context/management-plugin-context.xml]]
2017-03-08 21:00:32,841 INFO [localhost-startStop-1] config.PropertiesFactoryBean - Loading properties file from class path resource [application.properties]
2017-03-08 21:00:33,213 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:33,213 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:33,215 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:33,215 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:33,227 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:33,228 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:33,228 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:33,228 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:33,228 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/UnmarshalHandlerMessages.properties]
2017-03-08 21:00:33,229 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/ValidationMessages.properties]
2017-03-08 21:00:33,229 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/ValidationMessages_it_IT.properties]
2017-03-08 21:00:33,229 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/opensaml/xmltooling/1.3.2-1/xmltooling-1.3.2-1.jar!/credential-criteria-registry.properties]
2017-03-08 21:00:33,229 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/net/sf/ehcache/ehcache/2.10.1/ehcache-2.10.1.jar!/build-info.properties]
2017-03-08 21:00:33,232 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from class path resource [securedGateway.properties]
2017-03-08 21:00:33,232 WARN [localhost-startStop-1] config.PropertyOverrideConfigurer - Could not load properties from class path resource [securedGateway.properties]: class path resource [securedGateway.properties] cannot be opened because it does not exist
2017-03-08 21:00:33,232 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from class path resource [application.properties]
2017-03-08 21:00:33,233 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:33,233 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:33,233 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:33,233 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:33,319 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgma101 class, has not getter + setter pair.
2017-03-08 21:00:33,340 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmcer1 class, has not getter + setter pair.
2017-03-08 21:00:33,343 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmcom1 class, has not getter + setter pair.
2017-03-08 21:00:33,344 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmdetbd class, has not getter + setter pair.
2017-03-08 21:00:33,345 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmencbd class, has not getter + setter pair.
2017-03-08 21:00:33,350 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmpacem class, has not getter + setter pair.
2017-03-08 21:00:33,350 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgm186a class, has not getter + setter pair.
2017-03-08 21:00:33,351 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgm1866 class, has not getter + setter pair.
2017-03-08 21:00:33,352 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmmimp class, has not getter + setter pair.
2017-03-08 21:00:33,352 WARN [localhost-startStop-1] support.ServiceMethodParamStructureLoader - Field actions of com.banortews2.openlegacy.Bgmmpag class, has not getter + setter pair.
2017-03-08 21:00:33,372 ERROR [localhost-startStop-1] orchestrating.DefaultEntitiesRegistryManager - No qualifying bean of type [org.openlegacy.OrchestratedRegistry] is defined
2017-03-08 21:00:33,726 INFO [localhost-startStop-1] support.RpcEntityAnnotationLoader - RPC "Deposits" was added to the RPC registry (com.banortews2.openlegacy.Deposits)
2017-03-08 21:00:33,731 INFO [localhost-startStop-1] support.RpcActionsAnnotationLoader - RPC actions for "class com.banortews2.openlegacy.Deposits" was added to the rpc registry
2017-03-08 21:00:33,749 INFO [localhost-startStop-1] support.RpcEntityAnnotationLoader - RPC "PaymentsTest" was added to the RPC registry (com.banortews2.openlegacy.PaymentsTest)
2017-03-08 21:00:33,749 INFO [localhost-startStop-1] support.RpcActionsAnnotationLoader - RPC actions for "class com.banortews2.openlegacy.PaymentsTest" was added to the rpc registry
2017-03-08 21:00:33,953 INFO [localhost-startStop-1] annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-03-08 21:00:33,994 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'serviceProxyChecker' of type [class org.openlegacy.aop.services.ServiceProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,001 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'sessionProxyChecker' of type [class org.openlegacy.aop.session.SessionProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,013 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'controllerProxyChecker' of type [class org.openlegacy.aop.controllers.ControllerProxyChecker] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,041 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.aop.framework.ProxyFactoryBean#0' of type [class com.sun.proxy.$Proxy62] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,046 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean '(inner bean)#14dd434' of type [class org.springframework.security.access.expression.method.ExpressionBasedAnnotationAttributeFactory] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,055 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean '(inner bean)#12e8651' of type [class org.springframework.security.access.prepost.PrePostAnnotationSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,060 INFO [localhost-startStop-1] support.PostProcessorRegistrationDelegate$BeanPostProcessorChecker - Bean 'org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource#0' of type [class org.springframework.security.access.method.DelegatingMethodSecurityMetadataSource] is not eligible for getting processed by all BeanPostProcessors (for example: not eligible for auto-proxying)
2017-03-08 21:00:34,504 INFO [localhost-startStop-1] annotation.RequestMappingHandlerMapping - Mapped "{[/logoff],methods=[GET]}" onto public java.lang.String org.openlegacy.mvc.LogoffController.logoff(javax.servlet.http.HttpSession,org.springframework.ui.Model) throws java.io.IOException
2017-03-08 21:00:34,505 INFO [localhost-startStop-1] annotation.RequestMappingHandlerMapping - Mapped "{[/{entity}/online-help],methods=[GET]}" onto public java.lang.String org.openlegacy.mvc.OnlineHelpController.help(java.lang.String,org.springframework.ui.Model)
2017-03-08 21:00:34,505 INFO [localhost-startStop-1] annotation.RequestMappingHandlerMapping - Mapped "{[/reload],methods=[GET]}" onto public void org.openlegacy.mvc.ReloadContextController.reload(java.lang.String,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse)
2017-03-08 21:00:34,506 INFO [localhost-startStop-1] annotation.RequestMappingHandlerMapping - Mapped "{[/viewSource],methods=[GET]}" onto public void org.openlegacy.mvc.ViewSourceController.viewSource(java.lang.String,javax.servlet.http.HttpServletRequest,javax.servlet.http.HttpServletResponse) throws java.io.IOException
2017-03-08 21:00:35,181 WARN [localhost-startStop-1] config.ConfigurationFactory - No configuration found. Configuring ehcache from ehcache-failsafe.xml found in the classpath: jar:file:/C:/Users/A3717151/.m2/repository/net/sf/ehcache/ehcache/2.10.1/ehcache-2.10.1.jar!/ehcache-failsafe.xml
2017-03-08 21:00:35,586 INFO [localhost-startStop-1] factory.ReflectionServiceFactoryBean - Creating Service {http://soap.services.openlegacy.banortews2.com/}PaymentsTestSoapServiceImplService from class com.banortews2.openlegacy.services.soap.PaymentsTestSoapService
2017-03-08 21:00:36,474 INFO [localhost-startStop-1] endpoint.ServerImpl - Setting the server's publish address to be /paymentsTest
2017-03-08 21:00:36,507 INFO [localhost-startStop-1] factory.ReflectionServiceFactoryBean - Creating Service {http://soap.services.openlegacy.banortews2.com/}DepositsServiceSoapServiceImplService from class com.banortews2.openlegacy.services.soap.DepositsServiceSoapService
2017-03-08 21:00:36,650 INFO [localhost-startStop-1] endpoint.ServerImpl - Setting the server's publish address to be /depositsService
2017-03-08 21:00:37,117 INFO [localhost-startStop-1] annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Wed Mar 08 21:00:30 CST 2017]; root of context hierarchy
2017-03-08 21:00:37,192 INFO [localhost-startStop-1] annotation.RequestMappingHandlerAdapter - Looking for @ControllerAdvice: Root WebApplicationContext: startup date [Wed Mar 08 21:00:30 CST 2017]; root of context hierarchy
2017-03-08 21:00:37,241 INFO [localhost-startStop-1] annotation.ExceptionHandlerExceptionResolver - Detected @ExceptionHandler methods in exceprionHandlerController
2017-03-08 21:00:37,607 INFO [localhost-startStop-1] web.DefaultSecurityFilterChain - Creating filter chain: Ant [pattern='/oauth/token'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@849c86, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@780db1, org.springframework.security.web.header.HeaderWriterFilter@18717cc, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@213ae9, org.springframework.security.oauth2.provider.client.ClientCredentialsTokenEndpointFilter@e1ee87, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@672ef, org.springframework.security.web.authentication.AnonymousAuthenticationFilter@1602e54, org.springframework.security.web.access.ExceptionTranslationFilter@5db323, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@1a5f0f9]
2017-03-08 21:00:37,761 INFO [localhost-startStop-1] web.DefaultSecurityFilterChain - Creating filter chain: Ant [pattern='/management/**'], [org.springframework.security.web.context.SecurityContextPersistenceFilter@76ef8f, org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter@1c0a5d1, org.springframework.security.web.header.HeaderWriterFilter@60ab61, org.springframework.security.web.authentication.logout.LogoutFilter@b038b5, org.springframework.security.web.authentication.UsernamePasswordAuthenticationFilter@105a0fb, org.springframework.security.web.authentication.ui.DefaultLoginPageGeneratingFilter@17d71a7, org.springframework.security.web.authentication.www.BasicAuthenticationFilter@4be90a, org.springframework.security.web.savedrequest.RequestCacheAwareFilter@1950de6, org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter@12f63d7, org.springframework.security.web.session.SessionManagementFilter@137d99c, org.springframework.security.web.access.ExceptionTranslationFilter@657d89, org.springframework.security.web.access.intercept.FilterSecurityInterceptor@192aede]
2017-03-08 21:00:37,766 INFO [localhost-startStop-1] web.DefaultSecurityFilterChain - Creating filter chain: org.springframework.security.web.util.matcher.AnyRequestMatcher@1, []
2017-03-08 21:00:37,852 INFO [localhost-startStop-1] endpoint.FrameworkEndpointHandlerMapping - Mapped "{[/oauth/token],methods=[GET]}" onto public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.getAccessToken(java.security.Principal,java.util.Map<java.lang.String, java.lang.String>) throws org.springframework.web.HttpRequestMethodNotSupportedException
2017-03-08 21:00:37,852 INFO [localhost-startStop-1] endpoint.FrameworkEndpointHandlerMapping - Mapped "{[/oauth/token],methods=[POST]}" onto public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.OAuth2AccessToken> org.springframework.security.oauth2.provider.endpoint.TokenEndpoint.postAccessToken(java.security.Principal,java.util.Map<java.lang.String, java.lang.String>) throws org.springframework.web.HttpRequestMethodNotSupportedException
2017-03-08 21:00:38,127 INFO [localhost-startStop-1] context.ContextLoader - Root WebApplicationContext: initialization completed in 8026 ms
mar 08, 2017 9:00:38 PM org.apache.catalina.core.ApplicationContext log
INFORMACIÓN: Initializing Spring FrameworkServlet 'appServlet'
2017-03-08 21:00:38,164 INFO [localhost-startStop-1] web.OpenLegacyDispatcherServlet - FrameworkServlet 'appServlet': initialization started
2017-03-08 21:00:38,199 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin was loaded
2017-03-08 21:00:38,199 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin name: management-plugin
2017-03-08 21:00:38,199 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin version: 3.1.0-SNAPSHOT
2017-03-08 21:00:38,199 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin creator: OpenLegacy
2017-03-08 21:00:38,199 INFO [localhost-startStop-1] support.DefaultPluginsLoader - Plugin description: Management Plugin is responsible for managing session
2017-03-08 21:00:38,200 INFO [localhost-startStop-1] support.XmlWebApplicationContext - Refreshing WebApplicationContext for namespace 'appServlet-servlet': startup date [Wed Mar 08 21:00:38 CST 2017]; parent: Root WebApplicationContext
2017-03-08 21:00:38,201 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/openlegacy/openlegacy-impl/3.5.0-RELEASE/openlegacy-impl-3.5.0-RELEASE.jar!/META-INF/emptyContext.xml]
2017-03-08 21:00:38,214 INFO [localhost-startStop-1] xml.XmlBeanDefinitionReader - Loading XML bean definitions from class path resource [META-INF/plugin-resources/web-context/management-plugin-web-context.xml]
2017-03-08 21:00:38,430 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:38,430 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:38,430 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:38,431 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:38,433 INFO [localhost-startStop-1] annotation.AutowiredAnnotationBeanPostProcessor - JSR-330 'javax.inject.Inject' annotation found and supported for autowiring
2017-03-08 21:00:38,603 INFO [localhost-startStop-1] handler.SimpleUrlHandlerMapping - Mapped URL path [/management-plugin/**] onto handler 'org.springframework.web.servlet.resource.ResourceHttpRequestHandler#0'
2017-03-08 21:00:38,643 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/SessionsRemotingService] onto handler 'sessionsRemotingServiceExporter'
2017-03-08 21:00:38,649 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/PropertiesFilesRemotingService] onto handler 'propFilesRemotingServiceExporter'
2017-03-08 21:00:38,651 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/UsersRemotingService] onto handler 'usersRemotingServiceExporter'
2017-03-08 21:00:38,652 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/LicenseRemotingService] onto handler 'licenseRemotingServiceExporter'
2017-03-08 21:00:38,654 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ServerLogsRemotingService] onto handler 'serverLogsRemotingServiceExporter'
2017-03-08 21:00:38,658 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ApiManagementRemotingService] onto handler 'apiManagementRemotingServiceExporter'
2017-03-08 21:00:38,661 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/CacheRemotingService] onto handler 'cacheRemotingServiceExporter'
2017-03-08 21:00:38,662 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ContentFiltersRemotingService] onto handler 'contentFiltersRemotingServiceExporter'
2017-03-08 21:00:38,664 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ServicesRemotingService] onto handler 'serviceRemotingServiceExporter'
2017-03-08 21:00:38,666 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/OAuthRemotingService] onto handler 'oauthRemotingServiceExporter'
2017-03-08 21:00:38,668 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ApiUsageRemotingService] onto handler 'apiUsageRemotingServiceExporter'
2017-03-08 21:00:38,669 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/SecureGatewayRemotingService] onto handler 'secureGatewayRemotingServiceExporter'
2017-03-08 21:00:38,671 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ManagementToolsRemotingService] onto handler 'managementToolsRemotingServiceExporter'
2017-03-08 21:00:38,672 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ReloadContextRemotingService] onto handler 'reloadContextRemotingServiceExporter'
2017-03-08 21:00:38,675 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/AppSettingsRemotingService] onto handler 'appSettingsRemotingServiceExporter'
2017-03-08 21:00:38,679 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/DashboardApiRemotingService] onto handler 'dashboardApiRemotingServiceExporter'
2017-03-08 21:00:38,680 INFO [localhost-startStop-1] handler.BeanNameUrlHandlerMapping - Mapped URL path [/management/ThrottlingRemotingService] onto handler 'throttlingRemotingServiceExporter'
2017-03-08 21:00:38,739 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:38,739 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:38,739 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:38,739 INFO [localhost-startStop-1] support.PropertySourcesPlaceholderConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:38,740 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:38,740 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:38,740 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:38,740 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:38,740 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/UnmarshalHandlerMessages.properties]
2017-03-08 21:00:38,740 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/ValidationMessages.properties]
2017-03-08 21:00:38,741 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/codehaus/castor/castor-xml/1.4.0/castor-xml-1.4.0.jar!/ValidationMessages_it_IT.properties]
2017-03-08 21:00:38,741 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/org/opensaml/xmltooling/1.3.2-1/xmltooling-1.3.2-1.jar!/credential-criteria-registry.properties]
2017-03-08 21:00:38,741 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from URL [jar:file:/C:/Users/A3717151/.m2/repository/net/sf/ehcache/ehcache/2.10.1/ehcache-2.10.1.jar!/build-info.properties]
2017-03-08 21:00:38,741 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from class path resource [securedGateway.properties]
2017-03-08 21:00:38,742 WARN [localhost-startStop-1] config.PropertyOverrideConfigurer - Could not load properties from class path resource [securedGateway.properties]: class path resource [securedGateway.properties] cannot be opened because it does not exist
2017-03-08 21:00:38,742 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from class path resource [application.properties]
2017-03-08 21:00:38,742 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\application.properties]
2017-03-08 21:00:38,742 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\cics.properties]
2017-03-08 21:00:38,743 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\log4j.properties]
2017-03-08 21:00:38,743 INFO [localhost-startStop-1] config.PropertyOverrideConfigurer - Loading properties file from file [C:\Users\A3717151\workspace_3.5_latest_2\BanorteWs2\target\classes\usage.properties]
2017-03-08 21:00:38,746 INFO [localhost-startStop-1] web.OpenLegacyDispatcherServlet - FrameworkServlet 'appServlet': initialization completed in 582 ms
API classes reloading is running
mar 08, 2017 9:00:38 PM org.apache.coyote.AbstractProtocol start
INFORMACIÓN: Starting ProtocolHandler ["http-bio-8080"]
2017-03-08 21:01:11,533 INFO [http-bio-8080-exec-1] log.ServiceUsageLogger - service: DepositsService; duration: 0; sessionId: ccc: 0499314668 cod: 000 div: MXP terminal: 1001 imp: 0000000000003000; source: host
2017-03-08 21:01:11,617 INFO [http-bio-8080-exec-1] support.RpcConnectionDelegator - Opened new session
org.openlegacy.exceptions.OpenLegacyRuntimeException: Fail to connect server
at org.openlegacy.providers.mfrpc.MfRpcConnection.invoke(MfRpcConnection.java:219)
at org.openlegacy.rpc.support.RpcConnectionDelegator.invoke(RpcConnectionDelegator.java:150)
at org.openlegacy.rpc.support.DefaultRpcSession.invoke(DefaultRpcSession.java:363)
at org.openlegacy.rpc.support.DefaultRpcSession.doRpcAction(DefaultRpcSession.java:219)
at org.openlegacy.rpc.support.DefaultRpcSession$1.obtainEntity(DefaultRpcSession.java:168)
at org.openlegacy.cache.modules.CacheModule.doStuff(CacheModule.java:125)
at org.openlegacy.cache.modules.CacheModule.doStuff(CacheModule.java:114)
at org.openlegacy.rpc.support.DefaultRpcSession.doAction(DefaultRpcSession.java:158)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy79.doAction(Unknown Source)
at com.banortews2.openlegacy.services.DepositsServiceServiceImpl.getDepositsService(DepositsServiceServiceImpl.java:57)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)
at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:190)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
at org.openlegacy.services.cache.SimpleServiceCacheProcessor.invoke(SimpleServiceCacheProcessor.java:223)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.adapter.MethodBeforeAdviceInterceptor.invoke(MethodBeforeAdviceInterceptor.java:52)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)
at com.sun.proxy.$Proxy122.getDepositsService(Unknown Source)
at com.banortews2.openlegacy.services.soap.DepositsServiceSoapServiceImpl.getDepositsService(DepositsServiceSoapServiceImpl.java:37)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:180)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.performInvocation(JAXWSMethodInvoker.java:66)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96)
at org.apache.cxf.jaxws.AbstractJAXWSMethodInvoker.invoke(AbstractJAXWSMethodInvoker.java:232)
at org.apache.cxf.jaxws.JAXWSMethodInvoker.invoke(JAXWSMethodInvoker.java:85)
at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:74)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor$2.run(ServiceInvokerInterceptor.java:126)
at org.apache.cxf.workqueue.SynchronousExecutor.execute(SynchronousExecutor.java:37)
at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:131)
at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308)
at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121)
at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:251)
at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208)
at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160)
at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:180)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:293)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doPost(AbstractHTTPServlet.java:212)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:647)
at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:268)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:305)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:51)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.web.filter.RequestContextFilter.doFilterInternal(RequestContextFilter.java:99)
at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:207)
at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:176)
at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)
at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:243)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:210)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:222)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:123)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:502)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:171)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:100)
at org.apache.catalina.valves.AccessLogValve.invoke(AccessLogValve.java:953)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:118)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:408)
at org.apache.coyote.http11.AbstractHttp11Processor.process(AbstractHttp11Processor.java:1041)
at org.apache.coyote.AbstractProtocol$AbstractConnectionHandler.process(AbstractProtocol.java:603)
at org.apache.tomcat.util.net.JIoEndpoint$SocketProcessor.run(JIoEndpoint.java:310)
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)
Caused by: javax.net.ssl.SSLPeerUnverifiedException: Host name '15.150.11.30' does not match the certificate subject provided by the peer (CN=SERVICIO OpenLegacy AT 1, T=DES AT, OU=Seguridad, O=BANORTE, L=Mexico, ST=CD MEXICO, C=MX)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:465)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:395)
at org.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:353)
at org.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:134)
at org.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:353)
at org.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:380)
at org.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:236)
at org.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:184)
at org.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:88)
at org.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:110)
at org.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:184)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82)
at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:107)
at org.openlegacy.providers.mfrpc.MfRpcConnection.invoke(MfRpcConnection.java:154)
... 89 more
2017-03-08 21:01:11,908 ERROR [http-bio-8080-exec-1] log.ApiUsageLogger - entity: null; action: EXECUTE; source: error; duration: 0
2017-03-08 21:01:11,914 ERROR [http-bio-8080-exec-1] log.ServiceUsageLogger - service: DepositsService; duration: 0; sessionId: null; source: error; result: Fail to connect server
2017-03-08 21:01:11,928 WARN [http-bio-8080-exec-1] support.SimpleThreadScope - SimpleThreadScope does not support destruction callbacks. Consider using RequestScope in a web environment.
2017-03-08 21:01:11,965 WARN [http-bio-8080-exec-1] support.SimpleThreadScope - SimpleThreadScope does not support destruction callbacks. Consider using RequestScope in a web environment.
2017-03-08 21:01:12,339 INFO [http-bio-8080-exec-1] support.RpcConnectionDelegator - Disconnecting session
2017-03-08 21:01:12,339 INFO [http-bio-8080-exec-1] log.ServiceUsageLogger - service: DepositsService; duration: 419; sessionId: null; source: host
2017-03-08 21:01:12,347 INFO [http-bio-8080-exec-1] phase.PhaseInterceptorChain - Application {http://soap.services.openlegacy.banortews2.com/}DepositsServiceSoapServiceImplService#{http://soap.services.openlegacy.banortews2.com/}getDepositsService has thrown exception, unwinding now: org.openlegacy.exceptions.OpenLegacyRuntimeException: Fail to connect server
Alx
/*
* ====================================================================
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
* ====================================================================
*
* This software consists of voluntary contributions made by many
* individuals on behalf of the Apache Software Foundation. For more
* information on the Apache Software Foundation, please see
* <http://www.apache.org/>.
*
*/
package org.apache.http.conn.ssl;
import java.io.IOException;
import java.io.InputStream;
import java.net.InetSocketAddress;
import java.net.Socket;
import java.security.cert.Certificate;
import java.security.cert.X509Certificate;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.List;
import javax.net.SocketFactory;
import javax.net.ssl.HostnameVerifier;
import javax.net.ssl.SSLContext;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLPeerUnverifiedException;
import javax.net.ssl.SSLSession;
import javax.net.ssl.SSLSocket;
import javax.security.auth.x500.X500Principal;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpHost;
import org.apache.http.annotation.ThreadSafe;
import org.apache.http.conn.socket.LayeredConnectionSocketFactory;
import org.apache.http.conn.util.PublicSuffixMatcherLoader;
import org.apache.http.protocol.HttpContext;
import org.apache.http.ssl.SSLContexts;
import org.apache.http.util.Args;
import org.apache.http.util.TextUtils;
/**
* Layered socket factory for TLS/SSL connections.
* <p>
* SSLSocketFactory can be used to validate the identity of the HTTPS server against a list of
* trusted certificates and to authenticate to the HTTPS server using a private key.
* <p>
* SSLSocketFactory will enable server authentication when supplied with
* a {@link java.security.KeyStore trust-store} file containing one or several trusted certificates. The client
* secure socket will reject the connection during the SSL session handshake if the target HTTPS
* server attempts to authenticate itself with a non-trusted certificate.
* <p>
* Use JDK keytool utility to import a trusted certificate and generate a trust-store file:
* <pre>
* keytool -import -alias "my server cert" -file server.crt -keystore my.truststore
* </pre>
* <p>
* In special cases the standard trust verification process can be bypassed by using a custom
* {@link org.apache.http.conn.ssl.TrustStrategy}. This interface is primarily intended for allowing self-signed
* certificates to be accepted as trusted without having to add them to the trust-store file.
* <p>
* SSLSocketFactory will enable client authentication when supplied with
* a {@link java.security.KeyStore key-store} file containing a private key/public certificate
* pair. The client secure socket will use the private key to authenticate
* itself to the target HTTPS server during the SSL session handshake if
* requested to do so by the server.
* The target HTTPS server will in its turn verify the certificate presented
* by the client in order to establish client's authenticity.
* <p>
* Use the following sequence of actions to generate a key-store file
* </p>
* <ul>
* <li>
* <p>
* Use JDK keytool utility to generate a new key
* </p>
* <pre>keytool -genkey -v -alias "my client key" -validity 365 -keystore my.keystore</pre>
* <p>
* For simplicity use the same password for the key as that of the key-store
* </p>
* </li>
* <li>
* <p>
* Issue a certificate signing request (CSR)
* </p>
* <pre>keytool -certreq -alias "my client key" -file mycertreq.csr -keystore my.keystore</pre>
* </li>
* <li>
* <p>
* Send the certificate request to the trusted Certificate Authority for signature.
* One may choose to act as her own CA and sign the certificate request using a PKI
* tool, such as OpenSSL.
* </p>
* </li>
* <li>
* <p>
* Import the trusted CA root certificate
* </p>
* <pre>keytool -import -alias "my trusted ca" -file caroot.crt -keystore my.keystore</pre>
* </li>
* <li>
* <p>
* Import the PKCS#7 file containing the complete certificate chain
* </p>
* <pre>keytool -import -alias "my client key" -file mycert.p7 -keystore my.keystore</pre>
* </li>
* <li>
* <p>
* Verify the content of the resultant keystore file
* </p>
* <pre>keytool -list -v -keystore my.keystore</pre>
* </li>
* </ul>
*
* @since 4.3
*/
@ThreadSafe @SuppressWarnings("deprecation")
public class SSLConnectionSocketFactory implements LayeredConnectionSocketFactory {
public static final String TLS = "TLS";
public static final String SSL = "SSL";
public static final String SSLV2 = "SSLv2";
@Deprecated
public static final X509HostnameVerifier ALLOW_ALL_HOSTNAME_VERIFIER
= AllowAllHostnameVerifier.INSTANCE;
@Deprecated
public static final X509HostnameVerifier BROWSER_COMPATIBLE_HOSTNAME_VERIFIER
= BrowserCompatHostnameVerifier.INSTANCE;
@Deprecated
public static final X509HostnameVerifier STRICT_HOSTNAME_VERIFIER
= StrictHostnameVerifier.INSTANCE;
private final Log log = LogFactory.getLog(getClass());
/**
* @since 4.4
*/
public static HostnameVerifier getDefaultHostnameVerifier() {
return new DefaultHostnameVerifier(PublicSuffixMatcherLoader.getDefault());
}
/**
* Obtains default SSL socket factory with an SSL context based on the standard JSSE
* trust material ({@code cacerts} file in the security properties directory).
* System properties are not taken into consideration.
*
* @return default SSL socket factory
*/
public static SSLConnectionSocketFactory getSocketFactory() throws SSLInitializationException {
return new SSLConnectionSocketFactory(SSLContexts.createDefault(), getDefaultHostnameVerifier());
}
private static String[] split(final String s) {
if (TextUtils.isBlank(s)) {
return null;
}
return s.split(" *, *");
}
/**
* Obtains default SSL socket factory with an SSL context based on system properties
* as described in
*
* Java™ Secure Socket Extension (JSSE) Reference Guide.
*
* @return default system SSL socket factory
*/
public static SSLConnectionSocketFactory getSystemSocketFactory() throws SSLInitializationException {
return new SSLConnectionSocketFactory(
(javax.net.ssl.SSLSocketFactory) javax.net.ssl.SSLSocketFactory.getDefault(),
split(System.getProperty("https.protocols")),
split(System.getProperty("https.cipherSuites")),
getDefaultHostnameVerifier());
}
private final javax.net.ssl.SSLSocketFactory socketfactory;
private final HostnameVerifier hostnameVerifier;
private final String[] supportedProtocols;
private final String[] supportedCipherSuites;
public SSLConnectionSocketFactory(final SSLContext sslContext) {
this(sslContext, getDefaultHostnameVerifier());
}
/**
* @deprecated (4.4) Use {@link #SSLConnectionSocketFactory(javax.net.ssl.SSLContext,
* javax.net.ssl.HostnameVerifier)}
*/
@Deprecated
public SSLConnectionSocketFactory(
final SSLContext sslContext, final X509HostnameVerifier hostnameVerifier) {
this(Args.notNull(sslContext, "SSL context").getSocketFactory(),
null, null, hostnameVerifier);
}
/**
* @deprecated (4.4) Use {@link #SSLConnectionSocketFactory(javax.net.ssl.SSLContext,
* String[], String[], javax.net.ssl.HostnameVerifier)}
*/
@Deprecated
public SSLConnectionSocketFactory(
final SSLContext sslContext,
final String[] supportedProtocols,
final String[] supportedCipherSuites,
final X509HostnameVerifier hostnameVerifier) {
this(Args.notNull(sslContext, "SSL context").getSocketFactory(),
supportedProtocols, supportedCipherSuites, hostnameVerifier);
}
/**
* @deprecated (4.4) Use {@link #SSLConnectionSocketFactory(javax.net.ssl.SSLSocketFactory,
* javax.net.ssl.HostnameVerifier)}
*/
@Deprecated
public SSLConnectionSocketFactory(
final javax.net.ssl.SSLSocketFactory socketfactory,
final X509HostnameVerifier hostnameVerifier) {
this(socketfactory, null, null, hostnameVerifier);
}
/**
* @deprecated (4.4) Use {@link #SSLConnectionSocketFactory(javax.net.ssl.SSLSocketFactory,
* String[], String[], javax.net.ssl.HostnameVerifier)}
*/
@Deprecated
public SSLConnectionSocketFactory(
final javax.net.ssl.SSLSocketFactory socketfactory,
final String[] supportedProtocols,
final String[] supportedCipherSuites,
final X509HostnameVerifier hostnameVerifier) {
this(socketfactory, supportedProtocols, supportedCipherSuites, (HostnameVerifier) hostnameVerifier);
}
/**
* @since 4.4
*/
public SSLConnectionSocketFactory(
final SSLContext sslContext, final HostnameVerifier hostnameVerifier) {
this(Args.notNull(sslContext, "SSL context").getSocketFactory(),
null, null, hostnameVerifier);
}
/**
* @since 4.4
*/
public SSLConnectionSocketFactory(
final SSLContext sslContext,
final String[] supportedProtocols,
final String[] supportedCipherSuites,
final HostnameVerifier hostnameVerifier) {
this(Args.notNull(sslContext, "SSL context").getSocketFactory(),
supportedProtocols, supportedCipherSuites, hostnameVerifier);
}
/**
* @since 4.4
*/
public SSLConnectionSocketFactory(
final javax.net.ssl.SSLSocketFactory socketfactory,
final HostnameVerifier hostnameVerifier) {
this(socketfactory, null, null, hostnameVerifier);
}
/**
* @since 4.4
*/
public SSLConnectionSocketFactory(
final javax.net.ssl.SSLSocketFactory socketfactory,
final String[] supportedProtocols,
final String[] supportedCipherSuites,
final HostnameVerifier hostnameVerifier) {
this.socketfactory = Args.notNull(socketfactory, "SSL socket factory");
this.supportedProtocols = supportedProtocols;
this.supportedCipherSuites = supportedCipherSuites;
this.hostnameVerifier = hostnameVerifier != null ? hostnameVerifier : getDefaultHostnameVerifier();
}
/**
* Performs any custom initialization for a newly created SSLSocket
* (before the SSL handshake happens).
*
* The default implementation is a no-op, but could be overridden to, e.g.,
* call {@link javax.net.ssl.SSLSocket#setEnabledCipherSuites(String[])}.
* @throws IOException may be thrown if overridden
*/
protected void prepareSocket(final SSLSocket socket) throws IOException {
}
@Override
public Socket createSocket(final HttpContext context) throws IOException {
return SocketFactory.getDefault().createSocket();
}
@Override
public Socket connectSocket(
final int connectTimeout,
final Socket socket,
final HttpHost host,
final InetSocketAddress remoteAddress,
final InetSocketAddress localAddress,
final HttpContext context) throws IOException {
Args.notNull(host, "HTTP host");
Args.notNull(remoteAddress, "Remote address");
final Socket sock = socket != null ? socket : createSocket(context);
if (localAddress != null) {
sock.bind(localAddress);
}
try {
if (connectTimeout > 0 && sock.getSoTimeout() == 0) {
sock.setSoTimeout(connectTimeout);
}
if (this.log.isDebugEnabled()) {
this.log.debug("Connecting socket to " + remoteAddress + " with timeout " + connectTimeout);
}
sock.connect(remoteAddress, connectTimeout);
} catch (final IOException ex) {
try {
sock.close();
} catch (final IOException ignore) {
}
throw ex;
}
// Setup SSL layering if necessary
if (sock instanceof SSLSocket) {
final SSLSocket sslsock = (SSLSocket) sock;
this.log.debug("Starting handshake");
sslsock.startHandshake();
verifyHostname(sslsock, host.getHostName());
return sock;
} else {
return createLayeredSocket(sock, host.getHostName(), remoteAddress.getPort(), context);
}
}
@Override
public Socket createLayeredSocket(
final Socket socket,
final String target,
final int port,
final HttpContext context) throws IOException {
final SSLSocket sslsock = (SSLSocket) this.socketfactory.createSocket(
socket,
target,
port,
true);
if (supportedProtocols != null) {
sslsock.setEnabledProtocols(supportedProtocols);
} else {
// If supported protocols are not explicitly set, remove all SSL protocol versions
final String[] allProtocols = sslsock.getEnabledProtocols();
final List<String> enabledProtocols = new ArrayList<String>(allProtocols.length);
for (String protocol: allProtocols) {
if (!protocol.startsWith("SSL")) {
enabledProtocols.add(protocol);
}
}
if (!enabledProtocols.isEmpty()) {
sslsock.setEnabledProtocols(enabledProtocols.toArray(new String[enabledProtocols.size()]));
}
}
if (supportedCipherSuites != null) {
sslsock.setEnabledCipherSuites(supportedCipherSuites);
}
if (this.log.isDebugEnabled()) {
this.log.debug("Enabled protocols: " + Arrays.asList(sslsock.getEnabledProtocols()));
this.log.debug("Enabled cipher suites:" + Arrays.asList(sslsock.getEnabledCipherSuites()));
}
prepareSocket(sslsock);
this.log.debug("Starting handshake");
sslsock.startHandshake();
verifyHostname(sslsock, target);
return sslsock;
}
private void verifyHostname(final SSLSocket sslsock, final String hostname) throws IOException {
try {
SSLSession session = sslsock.getSession();
if (session == null) {
// In our experience this only happens under IBM 1.4.x when
// spurious (unrelated) certificates show up in the server'
// chain. Hopefully this will unearth the real problem:
final InputStream in = sslsock.getInputStream();
in.available();
// If ssl.getInputStream().available() didn't cause an
// exception, maybe at least now the session is available?
session = sslsock.getSession();
if (session == null) {
// If it's still null, probably a startHandshake() will
// unearth the real problem.
sslsock.startHandshake();
session = sslsock.getSession();
}
}
if (session == null) {
throw new SSLHandshakeException("SSL session not available");
}
if (this.log.isDebugEnabled()) {
this.log.debug("Secure session established");
this.log.debug(" negotiated protocol: " + session.getProtocol());
this.log.debug(" negotiated cipher suite: " + session.getCipherSuite());
try {
final Certificate[] certs = session.getPeerCertificates();
final X509Certificate x509 = (X509Certificate) certs[0];
final X500Principal peer = x509.getSubjectX500Principal();
this.log.debug(" peer principal: " + peer.toString());
final Collection<List<?>> altNames1 = x509.getSubjectAlternativeNames();
if (altNames1 != null) {
final List<String> altNames = new ArrayList<String>();
for (final List<?> aC : altNames1) {
if (!aC.isEmpty()) {
altNames.add((String) aC.get(1));
}
}
this.log.debug(" peer alternative names: " + altNames);
}
final X500Principal issuer = x509.getIssuerX500Principal();
this.log.debug(" issuer principal: " + issuer.toString());
final Collection<List<?>> altNames2 = x509.getIssuerAlternativeNames();
if (altNames2 != null) {
final List<String> altNames = new ArrayList<String>();
for (final List<?> aC : altNames2) {
if (!aC.isEmpty()) {
altNames.add((String) aC.get(1));
}
}
this.log.debug(" issuer alternative names: " + altNames);
}
} catch (Exception ignore) {
}
}
if (!this.hostnameVerifier.verify(hostname, session)) {
final Certificate[] certs = session.getPeerCertificates();
final X509Certificate x509 = (X509Certificate) certs[0];
final X500Principal x500Principal = x509.getSubjectX500Principal();
throw new SSLPeerUnverifiedException("Host name '" + hostname + "' does not match " +
"the certificate subject provided by the peer (" + x500Principal.toString() + ")");
}
// verifyHostName() didn't blowup - good!
} catch (final IOException iox) {
// close the socket before re-throwing the exception
try { sslsock.close(); } catch (final Exception x) { /*ignore*/ }
throw iox;
}
}
}
Alx
/*******************************************************************************
* Copyright (c) 2014 OpenLegacy Inc. All rights reserved. This program and the accompanying materials are made available under the terms of
* the Eclipse Public License v1.0 which accompanies this distribution, and is available at http://www.eclipse.org/legal/epl-v10.html
*
* Contributors: OpenLegacy Inc. - initial API and implementation
*******************************************************************************/
package org.openlegacy.providers.mfrpc;
import java.io.File;
import java.io.IOException;
import java.net.URI;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import java.util.Set;
import javax.xml.namespace.QName;
import net.sf.JRecord.Common.Conversion;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import org.apache.commons.lang3.StringUtils;
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
import org.apache.http.HttpResponse;
import org.apache.http.HttpStatus;
import org.apache.http.client.methods.HttpPost;
import org.apache.http.entity.ByteArrayEntity;
import org.apache.http.impl.client.CloseableHttpClient;
import org.apache.http.impl.client.HttpClients;
import org.openlegacy.exceptions.OpenLegacyProviderException;
import org.openlegacy.exceptions.OpenLegacyRuntimeException;
import org.openlegacy.rpc.RpcConnection;
import org.openlegacy.rpc.RpcField;
import org.openlegacy.rpc.RpcInvokeAction;
import org.openlegacy.rpc.RpcResult;
import org.openlegacy.rpc.RpcSnapshot;
import org.openlegacy.rpc.support.RpcOrderFieldComparator;
import org.openlegacy.rpc.support.SimpleRpcFlatField;
import org.openlegacy.rpc.support.SimpleRpcResult;
import org.openlegacy.rpc.support.SimpleRpcStructureListField;
public class MfRpcConnection implements RpcConnection {
private CloseableHttpClient httpClient;
private String url;
private InvokeActionToMFBin invokeActionToMFBin = new InvokeActionToMFBin();
private Integer sequence = 0;
private final static Log logger = LogFactory.getLog(MfRpcConnection.class);
private String codePage;
private byte msgLevel = 0;
public byte getMsgLevel() {
return msgLevel;
}
public void setMsgLevel(byte msgLevel) {
this.msgLevel = msgLevel;
}
// private String transactionName;
private Integer payloadLength;
private String dumpFolder;
private static byte version = 1;
private static byte function = 1;
private static final byte SPACE = 0x40;
private byte[] separator;
private byte[] innerSeparator;
private byte[] bufferEndIndicator;
@Override
public void disconnect() {
if (httpClient != null) {
try {
httpClient.close();
} catch (IOException e) {
logger.warn("Not able to close connection");
e.printStackTrace();
}
httpClient = null;
}
}
@Override
public boolean isConnected() {
return httpClient != null;
}
private RpcField findFieldByName(List<RpcField> fields, String partName) {
for (RpcField field : fields) {
if (field.getName().equalsIgnoreCase(partName.trim())) {
return field;
}
}
return null;
}
private void desrilizePart(RpcField field, byte[] buffer, boolean matchLength) {
if (field instanceof SimpleRpcFlatField && matchLength) {
SimpleRpcFlatField simpleField = (SimpleRpcFlatField) field;
simpleField.setLength(buffer.length);
}
desrilizePart(field, buffer);
}
private void desrilizePart(RpcField field, byte[] buffer) {
List<RpcField> tmp = new ArrayList<RpcField>();
tmp.add(field);
invokeActionToMFBin.deserialize(tmp, buffer, codePage, 0);
}
@Override
public RpcResult invoke(RpcInvokeAction rpcInvokeAction) {
try {
byte[] payload = invokeActionToMFBin.serialize(rpcInvokeAction, codePage);
byte[] buffer = new byte[18 + (payloadLength != null ? payloadLength : payload.length)];
Arrays.fill(buffer, SPACE);
buffer[0] = 0;
buffer[1] = version;
buffer[2] = msgLevel; // message level
buffer[3] = function;
String transactionName = rpcInvokeAction.getProperties().get(new QName("transactionName"));
System.arraycopy(Conversion.getBytes(transactionName, codePage), 0, buffer, 4, 4);
byte[] ebcdta = rpcInvokeAction.getRpcPath().getBytes(codePage);
System.arraycopy(ebcdta, 0, buffer, 8, ebcdta.length);
System.arraycopy(payload, 0, buffer, 18, payload.length);
HttpPost httpPost = new HttpPost(new URI(url));
if (dumpFolder != null) {
File requestFile = new File(dumpFolder, "request_" + String.valueOf(System.currentTimeMillis()) + ".bin");
FileUtils.writeByteArrayToFile(requestFile, buffer);
}
httpClient = HttpClients.custom().build();
httpPost.setEntity(new ByteArrayEntity(buffer));
HttpResponse response = httpClient.execute(httpPost);
if (response.getStatusLine().getStatusCode() != HttpStatus.SC_OK) {
if (dumpFolder != null) {
File responseFile = new File(dumpFolder, "response_" + String.valueOf(System.currentTimeMillis()) + ".bin");
FileUtils.writeByteArrayToFile(responseFile, IOUtils.toByteArray(response.getEntity().getContent()));
}
throw new OpenLegacyRuntimeException("Fail to execute on server " + response.getStatusLine().getReasonPhrase());
}
byte[] result = IOUtils.toByteArray(response.getEntity().getContent());
if (dumpFolder != null) {
File responseFile = new File(dumpFolder, "response_" + String.valueOf(System.currentTimeMillis()) + ".bin");
FileUtils.writeByteArrayToFile(responseFile, result);
}
Collections.sort(rpcInvokeAction.getFields(), new RpcOrderFieldComparator());
// split buffers by separator
List parts = ByteUtils.split(this.separator, result, false);
List<RpcField> topLevelFields = rpcInvokeAction.getFields();
// Assume the second field is the header
// desrilizePart(topLevelFields.get(1), parts.remove(0));
desrilizePart(topLevelFields.get(1), parts.remove(0), true);
String copyPrefix = rpcInvokeAction.getProperties().get(new QName("copyPrefix"));
Integer separatorOffset = Integer.parseInt(rpcInvokeAction.getProperties().get(new QName("separatorOffset")));
Map<String, byte[]> copybooksEcumulatedBuffers = new HashMap<String, byte[]>();
for (byte[] part : parts) {
String partName = copyPrefix + Conversion.getString(part, separatorOffset, separatorOffset + 5, codePage);
String[] splitTestForBadParts = StringUtils.split(Conversion.getString(part, 0, part.length, codePage), "@");
if (splitTestForBadParts.length > 1 && StringUtils.equalsIgnoreCase(splitTestForBadParts[1].substring(0, 3), "SEC")) {
// indicates part of a list, need to remove this part
continue;
}
RpcField rpcPartField = findFieldByName(topLevelFields, new String(partName));
if (rpcPartField == null) {
throw new RuntimeException("Could not find part with name " + partName);
}
byte[] copybookBuffer = AltamiraBufferUtils.formatResponseBuffer(part, this.innerSeparator, this.bufferEndIndicator);
String name = rpcPartField.getName();
if (!copybooksEcumulatedBuffers.containsKey(name)) {
copybooksEcumulatedBuffers.put(name, copybookBuffer);
} else {
byte[] currentCopybookBuffer = copybooksEcumulatedBuffers.get(name);
byte[] copybooksEcumulatedBuffer = new byte[currentCopybookBuffer.length + copybookBuffer.length];
System.arraycopy(currentCopybookBuffer, 0, copybooksEcumulatedBuffer, 0, currentCopybookBuffer.length);
System.arraycopy(copybookBuffer, 0, copybooksEcumulatedBuffer, currentCopybookBuffer.length, copybookBuffer.length);
copybooksEcumulatedBuffers.put(name, copybooksEcumulatedBuffer);
}
if (rpcPartField instanceof SimpleRpcStructureListField) {
SimpleRpcStructureListField partList = (SimpleRpcStructureListField) rpcPartField;
partList.setLength(partList.getCurrentLength() + copybookBuffer.length);
partList.getChildrens().add(partList.getItemData());
}
}
Set<Entry<String, byte[]>> copybooksBuffers = copybooksEcumulatedBuffers.entrySet();
for (Entry<String, byte[]> entry : copybooksBuffers) {
RpcField rpcPartField = findFieldByName(topLevelFields, new String(entry.getKey()));
desrilizePart(rpcPartField, entry.getValue());
}
} catch (Exception e) {
throw new OpenLegacyRuntimeException("Fail to connect server ", e);
}
SimpleRpcResult rpcResult = new SimpleRpcResult();
rpcResult.setRpcFields(rpcInvokeAction.getFields());
sequence++;
return rpcResult;
}
@Override
public void doAction(RpcInvokeAction invokeAction) {
invoke(invokeAction);
}
@Override
public void login(String user, String password) {
try {
// request.setURI(new URI(loginpath));
// httpClient.execute(request);
} catch (Exception e) {
throw (new OpenLegacyProviderException(e));
}
}
@Override
public RpcSnapshot getSnapshot() {
return null;
}
@Override
public RpcSnapshot fetchSnapshot() {
return null;
}
@Override
public Integer getSequence() {
return sequence;
}
public void setUrl(String url) {
this.url = url;
}
public void setHttpClient(CloseableHttpClient httpClient) {
this.httpClient = httpClient;
}
@Override
public Object getDelegate() {
return httpClient;
}
public String getCodePage() {
return codePage;
}
public void setCodePage(String codePage) {
this.codePage = codePage;
}
/*
* public String getTransactionName() { return transactionName; }
*
* public void setTransactionName(String transactionName) { this.transactionName = transactionName; }
*/
public Integer getPayloadLength() {
return payloadLength;
}
public void setPayloadLength(Integer payloadLength) {
this.payloadLength = payloadLength;
}
@Override
public String beginTransaction() {
// TODO Auto-generated method stub
return null;
}
@Override
public void commit() {
// TODO Auto-generated method stub
}
@Override
public void rollback() {
// TODO Auto-generated method stub
}
public void setDumpFolder(String dumpFolder) {
this.dumpFolder = dumpFolder;
}
public byte[] getSeparator() {
return separator;
}
public void setSeparator(byte[] separator) {
this.separator = separator;
}
public byte[] getInnerSeparator() {
return innerSeparator;
}
public void setInnerSeparator(byte[] innerSeparator) {
this.innerSeparator = innerSeparator;
}
public byte[] getBufferEndIndicator() {
return bufferEndIndicator;
}
public void setBufferEndIndicator(byte[] bufferEndIndicator) {
this.bufferEndIndicator = bufferEndIndicator;
}
}
Alx
Caused by: javax.net.ssl.SSLPeerUnverifiedException: Host name 'olmfpocssl' does not match the certificate subject provided by the peer (CN=ONLINE AT-DESARROLLO)
Alx

tengo un null ponter en un servicio de open legacy