Skip to content

Instantly share code, notes, and snippets.

@nyilmaz
Created December 27, 2013 08:44
Show Gist options
  • Save nyilmaz/8144277 to your computer and use it in GitHub Desktop.
Save nyilmaz/8144277 to your computer and use it in GitHub Desktop.
pattern hatasi
Caused by: ! java.lang.IllegalArgumentException: Pattern cannot be null or empty
! at org.springframework.util.Assert.hasText(Assert.java:162) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.web.util.matcher.AntPathRequestMatcher.<init>(AntPathRequestMatcher.java:94) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.web.util.matcher.AntPathRequestMatcher.<init>(AntPathRequestMatcher.java:78) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry$RequestMatchers.antMatchers(AbstractRequestMatcherRegistry.java:148) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry$RequestMatchers.antMatchers(AbstractRequestMatcherRegistry.java:161) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.AbstractRequestMatcherRegistry.antMatchers(AbstractRequestMatcherRegistry.java:77) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at match.plug.security.config.SecurityConfig.configure(SecurityConfig.java:109) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.getHttp(WebSecurityConfigurerAdapter.java:185) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.init(WebSecurityConfigurerAdapter.java:280) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter.init(WebSecurityConfigurerAdapter.java:56) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at match.plug.security.config.SecurityConfig$$EnhancerByCGLIB$$a6a7491.init(<generated>) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.init(AbstractConfiguredSecurityBuilder.java:369) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.AbstractConfiguredSecurityBuilder.doBuild(AbstractConfiguredSecurityBuilder.java:322) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.AbstractSecurityBuilder.build(AbstractSecurityBuilder.java:39) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration.springSecurityFilterChain(WebSecurityConfiguration.java:90) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$$EnhancerByCGLIB$$2d3eafe8.CGLIB$springSecurityFilterChain$0(<generated>) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$$EnhancerByCGLIB$$2d3eafe8$$FastClassByCGLIB$$e367e514.invoke(<generated>) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.cglib.proxy.MethodProxy.invokeSuper(MethodProxy.java:228) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.context.annotation.ConfigurationClassEnhancer$BeanMethodInterceptor.intercept(ConfigurationClassEnhancer.java:286) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at org.springframework.security.config.annotation.web.configuration.WebSecurityConfiguration$$EnhancerByCGLIB$$2d3eafe8.springSecurityFilterChain(<generated>) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
! at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[na:1.6.0_27]
! at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ~[na:1.6.0_27]
! at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) ~[na:1.6.0_27]
! at java.lang.reflect.Method.invoke(Method.java:597) ~[na:1.6.0_27]
! at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate(SimpleInstantiationStrategy.java:160) ~[match-composite-act-sho-web-1.0-SNAPSHOT-V2013-12-27_10-36-55.jar:na]
!... 36 common frames omitted
@marcellodesales
Copy link

How did u fix that?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment