From: Olivier G. <oli...@ca...> - 2018-01-31 08:14:06
|
Hi, Defining a custom editor view definitely works in Geonetwork 3.x. From your error it seems there are two views with the same name defined. Could you maybe show us the content of config-editor.xml? -- *camptocamp* INNOVATIVE SOLUTIONS BY OPEN SOURCE EXPERTS *Olivier Guyot* Geospatial Developer +33 4 58 48 20 28 On Wed, Jan 31, 2018 at 8:10 AM, Amaya Martínez Echeverría < ama...@tr...> wrote: > Hello again, > > > > In my previous post I sent the logs whole file but the message hasn’t been > published in this list (because of the file size). > > > > For creating a custom editor view, I copied the ‘default’ view and gave it > a custom name (declaring it in the corresponding schema strings.xml file). > Anybody knows if there exist any issue or bug in Geonetwork version 3 > related to this feature? Have you got any custom editor view working? > > Once Tomcat is restarted, the editor view panel is not working and the > following error is shown: > > > > > > *2018-01-25 09:14:51,678 ERROR [jeeves] - Error occurred within a > transaction* > > *; SystemID: > file:///C:/apache-tomcat-8.5.9/temp/0-geonetwork/WEB-INF/data/config/schema_plugins/iso19139/layout/layout.xsl; > Line#: 64; Column#: -1* > > *net.sf.saxon.trans.XPathException: A sequence of more than one item is > not allowed as the first argument of > gn-fn-metadata:isFieldFlatModeException() (<view/>, <view/>) * > > * at > net.sf.saxon.expr.Expression.typeError(Expression.java:981)* > > * at > net.sf.saxon.expr.CardinalityChecker.evaluateItem(CardinalityChecker.java:270)* > > * at > net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)* > > * at > net.sf.saxon.expr.UserFunctionCall.evaluateArguments(UserFunctionCall.java:486)* > > * at > net.sf.saxon.expr.UserFunctionCall.callFunction(UserFunctionCall.java:412)* > > * at > net.sf.saxon.expr.UserFunctionCall.iterate(UserFunctionCall.java:384)* > > * at > net.sf.saxon.expr.Expression.effectiveBooleanValue(Expression.java:421)* > > * at > net.sf.saxon.expr.BooleanExpression.effectiveBooleanValue(BooleanExpression.java:185)* > > * at > net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:679)* > > * at > net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)* > > * at > net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)* > > * at > net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:527)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)* > > * at > net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:527)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)* > > * at > net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:527)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:317)* > > * at > net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)* > > * at > net.sf.saxon.instruct.ApplyTemplates.process(ApplyTemplates.java:170)* > > * at > net.sf.saxon.instruct.DocumentInstr.evaluateItem(DocumentInstr.java:278)* > > * at > net.sf.saxon.expr.ExpressionTool.evaluate(ExpressionTool.java:296)* > > * at > net.sf.saxon.instruct.GeneralVariable.getSelectValue(GeneralVariable.java:374)* > > * at > net.sf.saxon.instruct.Instruction.assembleParams(Instruction.java:147)* > > * at > net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:291)* > > * at > net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)* > > * at > net.sf.saxon.instruct.ApplyTemplates$ApplyTemplatesPackage.processLeavingTail(ApplyTemplates.java:527)* > > * at > net.sf.saxon.instruct.CallTemplate.process(CallTemplate.java:259)* > > * at > net.sf.saxon.instruct.CallTemplate.processLeavingTail(CallTemplate.java:281)* > > * at > net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)* > > * at > net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.instruct.Instruction.process(Instruction.java:93)* > > * at > net.sf.saxon.expr.LetExpression.process(LetExpression.java:378)* > > * at > net.sf.saxon.instruct.ForEach.processLeavingTail(ForEach.java:321)* > > * at > net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)* > > * at > net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)* > > * at > net.sf.saxon.expr.LetExpression.processLeavingTail(LetExpression.java:557)* > > * at > net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)* > > * at > net.sf.saxon.instruct.ApplyTemplates.apply(ApplyTemplates.java:210)* > > * at > net.sf.saxon.instruct.ApplyTemplates.processLeavingTail(ApplyTemplates.java:174)* > > * at > net.sf.saxon.instruct.Choose.processLeavingTail(Choose.java:686)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.instruct.Block.processLeavingTail(Block.java:556)* > > * at > net.sf.saxon.instruct.Instruction.process(Instruction.java:93)* > > * at > net.sf.saxon.instruct.ElementCreator.processLeavingTail(ElementCreator.java:296)* > > * at > net.sf.saxon.instruct.Template.applyLeavingTail(Template.java:203)* > > * at > net.sf.saxon.instruct.ApplyTemplates.applyTemplates(ApplyTemplates.java:345)* > > * at > net.sf.saxon.Controller.transformDocument(Controller.java:1807)* > > * at > net.sf.saxon.Controller.transform(Controller.java:1621)* > > * at org.fao.geonet.utils.Xml.transform(Xml.java:486)* > > * at org.fao.geonet.utils.Xml.transform(Xml.java:358)* > > * at > org.fao.geonet.api.records.editing.MetadataEditingApi.buildEditorForm(MetadataEditingApi.java:698)* > > * at > org.fao.geonet.api.records.editing.MetadataEditingApi.startEditing(MetadataEditingApi.java:162)* > > * at > org.fao.geonet.api.records.editing.MetadataEditingApi$$FastClassBySpringCGLIB$$363e745.invoke(<generated>)* > > * at > org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)* > > * at > org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:720)* > > * at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)* > > * at > org.springframework.security.access.intercept.aopalliance.MethodSecurityInterceptor.invoke(MethodSecurityInterceptor.java:64)* > > * at > org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)* > > * at > org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:655)* > > * at > org.fao.geonet.api.records.editing.MetadataEditingApi$$EnhancerBySpringCGLIB$$4b483f04.startEditing(<generated>)* > > * 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.web.method.support.InvocableHandlerMethod.doInvoke(InvocableHandlerMethod.java:222)* > > * at > org.springframework.web.method.support.InvocableHandlerMethod.invokeForRequest(InvocableHandlerMethod.java:137)* > > * at > org.springframework.web.servlet.mvc.method.annotation.ServletInvocableHandlerMethod.invokeAndHandle(ServletInvocableHandlerMethod.java:110)* > > * at > org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.invokeHandlerMethod(RequestMappingHandlerAdapter.java:814)* > > * at > org.springframework.web.servlet.mvc.method.annotation.RequestMappingHandlerAdapter.handleInternal(RequestMappingHandlerAdapter.java:737)* > > * at > org.springframework.web.servlet.mvc.method.AbstractHandlerMethodAdapter.handle(AbstractHandlerMethodAdapter.java:85)* > > * at > org.springframework.web.servlet.DispatcherServlet.doDispatch(DispatcherServlet.java:959)* > > * at > jeeves.config.springutil.JeevesDispatcherServlet.access$001(JeevesDispatcherServlet.java:41)* > > * at > jeeves.config.springutil.JeevesDispatcherServlet$1.doInTransaction(JeevesDispatcherServlet.java:54)* > > * at > jeeves.config.springutil.JeevesDispatcherServlet$1.doInTransaction(JeevesDispatcherServlet.java:51)* > > * at > jeeves.transaction.TransactionManager.runInTransaction(TransactionManager.java:73)* > > * at > jeeves.config.springutil.JeevesDispatcherServlet.doDispatch(JeevesDispatcherServlet.java:48)* > > * at > org.springframework.web.servlet.DispatcherServlet.doService(DispatcherServlet.java:893)* > > * at > org.springframework.web.servlet.FrameworkServlet.processRequest(FrameworkServlet.java:969)* > > * at > org.springframework.web.servlet.FrameworkServlet.doGet(FrameworkServlet.java:860)* > > * at > javax.servlet.http.HttpServlet.service(HttpServlet.java:622)* > > * at > org.springframework.web.servlet.FrameworkServlet.service(FrameworkServlet.java:845)* > > * at > javax.servlet.http.HttpServlet.service(HttpServlet.java:729)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:230)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.apache.tomcat.websocket.server.WsFilter.doFilter(WsFilter.java:52)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.fao.geonet.monitor.webapp.WebappMetricsFilter.doFilter(WebappMetricsFilter.java:121)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.fao.geonet.monitor.webapp.MetricsRegistryInitializerFilter.doFilter(MetricsRegistryInitializerFilter.java:58)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.tuckey.web.filters.urlrewrite.RuleChain.handleRewrite(RuleChain.java:176)* > > * at > org.tuckey.web.filters.urlrewrite.RuleChain.doRules(RuleChain.java:145)* > > * at > org.tuckey.web.filters.urlrewrite.UrlRewriter.processRequest(UrlRewriter.java:92)* > > * at > org.tuckey.web.filters.urlrewrite.UrlRewriteFilter.doFilter(UrlRewriteFilter.java:381)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.geonetwork.http.SessionTimeoutCookieFilter.doFilter(SessionTimeoutCookieFilter.java:89)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:330)* > > * at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:118)* > > * at > org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:84)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:113)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:103)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:113)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:45)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.authentication.AbstractAuthenticationProcessingFilter.doFilter(AbstractAuthenticationProcessingFilter.java:199)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilter(BasicAuthenticationFilter.java:150)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > jeeves.config.springutil.PassthroughFilter.doFilter(PassthroughFilter.java:50)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > jeeves.config.springutil.MultiNodeAuthenticationFilter.doFilter(MultiNodeAuthenticationFilter.java:122)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:110)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:87)* > > * at > org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:342)* > > * at > org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:192)* > > * at > org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:160)* > > * at > org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:346)* > > * at > org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:262)* > > * at > jeeves.config.springutil.JeevesDelegatingFilterProxy.doFilter(JeevesDelegatingFilterProxy.java:104)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:121)* > > * at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)* > > * at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:192)* > > * at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:165)* > > * at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:198)* > > * at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)* > > * at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:140)* > > * at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:79)* > > * at > org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:624)* > > * at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:87)* > > * at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:349)* > > * at > org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:783)* > > * at > org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:66)* > > * at > org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:789)* > > * at org.apache.tomcat.util.net > <http://org.apache.tomcat.util.net>.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1437)* > > * at org.apache.tomcat.util.net > <http://org.apache.tomcat.util.net>.SocketProcessorBase.run(SocketProcessorBase.java:49)* > > * at > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)* > > * at > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)* > > * at > org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)* > > * at java.lang.Thread.run(Thread.java:748)* > > > > Any kind of help would be appreciate. > > > > Best regards, > > > > Amaia Martínez > > > > ------------------------------ > > AVISO SOBRE CONFIDENCIALIDAD: La información incluida en este mensaje es > CONFIDENCIAL y de uso EXCLUSIVO a su FINALIDAD. Su posterior divulgación > será responsabilidad de quien la realice > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > GeoNetwork-devel mailing list > Geo...@li... > https://lists.sourceforge.net/lists/listinfo/geonetwork-devel > GeoNetwork OpenSource is maintained at http://sourceforge.net/ > projects/geonetwork > |