Postby om.singh » Tue Nov 29, 2011 11:51 am
Thanks, there was incorrect entry of the security configuration - this was being carried from the previous version. Its should be as below. Earlier it was set to PERMISSION_DEFAULT
<sec:intercept-url pattern="/admin.html*" access="PERMISSION_OTHER_DEFAULT" />
<sec:intercept-url pattern="/dynamic.entity.service" access="PERMISSION_OTHER_DEFAULT" />
But now I get another exception
[artifact:mvn] [ERROR] 16:47:26 CompatibleGWTSecuredRPCServiceExporter - Problem processing call
[artifact:mvn] java.lang.RuntimeException: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.broadleafcommerce.o
penadmin.client.security.AdminUser org.broadleafcommerce.openadmin.client.service.AdminSecurityService.getAdminUser()' threw an unexpected exception:
java.lang.NullPointerException
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleExporterProcessingException(GWTRPCServiceExporter.java:384)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:353)
[artifact:mvn] at org.broadleafcommerce.openadmin.security.CompatibleGWTSecuredRPCServiceExporter.processCall(CompatibleGWTSecuredRPCServiceExporter.
java:100)
[artifact:mvn] at com.google.gwt.user.server.rpc.RemoteServiceServlet.processPost(RemoteServiceServlet.java:243)
[artifact:mvn] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteServiceServlet.java:62)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:407)
[artifact:mvn] at org.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAdapter.java:49)
[artifact:mvn] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
[artifact:mvn] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
[artifact:mvn] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
[artifact:mvn] at org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
[artifact:mvn] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[artifact:mvn] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
[artifact:mvn] at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
[artifact:mvn] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequest2011-11-29 16:47:26.993:WARN:/admin:Exception while disp
atching incoming RPC call
[artifact:mvn] com.google.gwt.user.server.rpc.UnexpectedExcepFilter.java:76)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
[artifact:mvn] at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
[artifact:mvn] at org.springframtion: Service method 'public abstract org.broadleafcommerce.openadmin.client.security.AdminUser org.broadleafcommerce
.openadmin.ework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$Cacheclient.service.AdminSecurityService.getAdminUser()' threw an unexpected exception: co
m.gwtincubator.security.exception.ApplicatidChain.doFilter(ServletHandler.java:1157)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
[artifact:mvn] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInonSecurityException: com.google.
gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.broadleafcommerce.oterceptor.java:109)
[artifact:mvn] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityIntepenadmin.client.security.Adm
inUser org.broadleafcommerce.openadmin.client.service.AdminSecurityService.getAdminUser()' threw an rceptor.java:83)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] unexpected exception: java.lang.NullPointerException
[artifact:mvn] at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:37 at org.springframework.security.web.access.ExceptionTr
anslationFilter.doFilter(ExceptionTranslationFilter.java:97)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.secur8)
[artifact:mvn] at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:361)
[artifact:mvn] at com.google.gwt.user.server.rpc.RPC.encodeReity.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuth
enticationFilter.java:119)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.securisponseForFailure(RPC.java:329)
[artifact:mvn] at org.broadleafcommerce.openadmin.security.CompatibleGWTSecuredRPCServiceExporter.processExceptty.web.servletapi.SecurityContextHolde
rAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:54)
[artifact:mvn] at org.sprion(CompatibleGWTSecuredRPCServiceExporter.java:120)
[artifact:mvn] at org.broadleafcommerce.openadmin.security.CompatibleGWTSecuredRPCServiceExporter.processCall(CompatibleGWTSecuredRPCServiceExporter.
java:112)
[artifact:mvn] at com.google.gwt.user.server.rpc.RemoteServiceServlet.pringframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(Filter
ChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFil
ter.java:187)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.socessPost(RemoteServiceServlet.java:243)
[artifact:mvn] at com.google.gwt.user.server.rpc.AbstractRemoteServiceServlet.doPost(AbstractRemoteSeecurity.web.authentication.logout.LogoutFilter.d
oFilter(LogoutFilter.java:105)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
[artifact:mvn] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
[artifact:mvn] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
[artifact:mvn] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
[artifact:mvn] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
[artifact:mvn] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
[artifact:mvn] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
[artifact:mvn] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
[artifact:mvn] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
[artifact:mvn] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
[artifact:mvn] at org.mortbay.jetty.Server.handle(Server.java:326)
[artifact:mvn] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
[artifact:mvn] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
[artifact:mvn] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
[artifact:mvn] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
[artifact:mvn] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
[artifact:mvn] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
[artifact:mvn] at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
[artifact:mvn] Caused by: com.google.gwt.user.server.rpc.UnexpectedException: Service method 'public abstract org.broadleafcommerce.openadmin.client.s
ecurity.AdminUser org.broadleafcommerce.openadmin.client.service.AdminSecurityService.getAdminUser()' threw an unexpected exception: java.lang.NullPoi
nterException
[artifact:mvn] at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:378)rviceServlet.java:62)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleRequest(GWTRPCServiceExporter.java:407)
[artifact:mvn] at o
[artifact:mvn] at com.google.gwt.user.server.rpc.RPC.encodeResponseForFailure(RPC.java:361)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceErg.springframework.web.servlet.mvc.HttpRequestHandlerAdapter.handle(HttpRequestHandlerAd
apter.java:49)
[artifact:mvn] at org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:790)
[artifact:mvn] at org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:719)
[artifact:mvn] at org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:644)
[artifact:mvn] xporter.encodeResponseForFailure(GWTRPCServiceExporter.java:223)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.handleInvocationTargetException(GWTRPCServiceExporter.java:256)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:344)
[artifact:mvn] ... 55 more
[artifact:mvn] Caused by: java.lang.NullPointerException
[artifact:mvn] at org.broadleafcommerce.openadmin.serveat org.springframework.web.servlet.FrameworkServlet.doPost(FrameworkServlet.java:560)
[artifact:mvn] at javax.servlet.http.HttpServlet.service(HttpServlet.java:727)
[artifact:mvn] at javax.servlet.http.HttpServlet.service(HttpServlet.java:820)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:511)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1166)
[artifact:mvn] at org.springframework.web.filter.HiddenHttpMethodFilter.doFilterInternal(HiddenHttpMethodFilter.java:77)
[artifact:mvn] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:76)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
[artifact:mvn] at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:113)
[artifact:mvn] at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:7r.security.remote.AdminSecurityServiceRemot
e.getAdminUser(AdminSecurityServiceRemote.java:60)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[artifact:mvn] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
[artifact:mvn] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
[artifact:mvn] at java.lang.reflect.Method.invoke(Method.java:597)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.invokeMethodOnService(GWTRPCServiceExporter.java:169)
[artifact:mvn] at org.gwtwidgets.server.spring.GWTRPCServiceExporter.processCall(GWTRPCServiceExporter.java:338)
[artifact:mvn] ... 55 more
[artifact:mvn] [ERROR] 16:47:26 CompatibleG6)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:368)
[artifact:mvn] at org.springframework.security.web.access.intercepWTSecuredRPCServiceExporter - You may have forgotten to add a 'throws ApplicationSe
curityException' declaration to your service interface.
[artifact:mvn] t.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:109)
[artifact:mvn] at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:83)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:97)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.authentication.rememberme.RememberMeAuthenticationFilter.doFilter(RememberMeAuthenticationFilter.j
ava:119)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilte
r.java:54)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFil
ter.java:187)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:105)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:79)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:380)
[artifact:mvn] at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:169)
[artifact:mvn] at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:237)
[artifact:mvn] at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:167)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157)
[artifact:mvn] at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388)
[artifact:mvn] at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216)
[artifact:mvn] at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182)
[artifact:mvn] at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765)
[artifact:mvn] at org.mortbay.jetty.webapp.WebAppContext.handle(WebAppContext.java:418)
[artifact:mvn] at org.mortbay.jetty.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:230)
[artifact:mvn] at org.mortbay.jetty.handler.HandlerCollection.handle(HandlerCollection.java:114)
[artifact:mvn] at org.mortbay.jetty.handler.HandlerWrapper.handle(HandlerWrapper.java:152)
[artifact:mvn] at org.mortbay.jetty.Server.handle(Server.java:326)
[artifact:mvn] at org.mortbay.jetty.HttpConnection.handleRequest(HttpConnection.java:542)
[artifact:mvn] at org.mortbay.jetty.HttpConnection$RequestHandler.content(HttpConnection.java:938)
[artifact:mvn] at org.mortbay.jetty.HttpParser.parseNext(HttpParser.java:755)
[artifact:mvn] at org.mortbay.jetty.HttpParser.parseAvailable(HttpParser.java:218)
[artifact:mvn] at org.mortbay.jetty.HttpConnection.handle(HttpConnection.java:404)
[artifact:mvn] at org.mortbay.io.nio.SelectChannelEndPoint.run(SelectChannelEndPoint.java:409)
[artifact:mvn] at org.mortbay.thread.QueuedThreadPool$PoolThread.run(QueuedThreadPool.java:582)
[artifact:mvn] Hibernate: select customerim0_.CUSTOMER_ID as CUSTOMER1_7_, customerim0_.CREATED_BY as CREATED2_7_, customerim0_.DATE_CREATED as DATE3_
7_, customerim0_.DATE_UPDATED as DATE4_7_, customerim0_.UPDATED_BY as UPDATED5_7_, customerim0_.CHALLENGE_ANSWER as CHALLENGE6_7_, customerim0_.CHALLE
NGE_QUESTION_ID as CHALLENGE15_7_, customerim0_.LOCALE_CODE as LOCALE16_7_, customerim0_.EMAIL_ADDRESS as EMAIL7_7_, customerim0_.FIRST_NAME as FIRST8
_7_, customerim0_.LAST_NAME as LAST9_7_, customerim0_.PASSWORD as PASSWORD7_, customerim0_.PASSWORD_CHANGE_REQUIRED as PASSWORD11_7_, customerim0_.REC
EIVE_EMAIL as RECEIVE12_7_, customerim0_.IS_REGISTERED as IS13_7_, customerim0_.USER_NAME as USER14_7_ from BLC_CUSTOMER customerim0_ where customerim
0_.USER_NAME=?
[artifact:mvn] Hibernate: select customerim0_.CUSTOMER_ID as CUSTOMER1_7_, customerim0_.CREATED_BY as CREATED2_7_, customerim0_.DATE_CREATED as DATE3_
7_, customerim0_.DATE_UPDATED as DATE4_7_, customerim0_.UPDATED_BY as UPDATED5_7_, customerim0_.CHALLENGE_ANSWER as CHALLENGE6_7_, customerim0_.CHALLE
NGE_QUESTION_ID as CHALLENGE15_7_, customerim0_.LOCALE_CODE as LOCALE16_7_, customerim0_.EMAIL_ADDRESS as EMAIL7_7_, customerim0_.FIRST_NAME as FIRST8
_7_, customerim0_.LAST_NAME as LAST9_7_, customerim0_.PASSWORD as PASSWORD7_, customerim0_.PASSWORD_CHANGE_REQUIRED as PASSWORD11_7_, customerim0_.REC
EIVE_EMAIL as RECEIVE12_7_, customerim0_.IS_REGISTERED as IS13_7_, customerim0_.USER_NAME as USER14_7_ from BLC_CUSTOMER customerim0_ where customerim
0_.USER_NAME=?