Project

General

Profile

Actions

bug #10141

closed

Exception (CCE) caused by logging setLevel in phycobank

Added by Andreas Müller about 1 year ago. Updated 12 months ago.

Status:
Closed
Priority:
Highest
Category:
cdmlib
Target version:
Start date:
Due date:
% Done:

100%

Estimated time:
Severity:
normal
Found in Version:
Tags:

Description

WHK:

Jiang et al.. 2001: A new species of Tragelomonas angelegt.
Art angelegt “Trachelomonas subplanctonica”
In-Autoren angelegt und dabei mit Curator-Rechten „nomenclautual Author“ ergänzt. (Vorher mehere Male Autoren rausgesucht und ohne zu Speichern gelöscht)
Beim Speichern folgende Meldung:

com.vaadin.data.fieldgroup.FieldGroup$CommitException: Commit failed
            at com.vaadin.data.fieldgroup.FieldGroup.commit(FieldGroup.java:509)
            at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor.save(AbstractPopupEditor.java:441)
            at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor.lambda$new$fad408e6$1(AbstractPopupEditor.java:178)
            at sun.reflect.GeneratedMethodAccessor698.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.vaadin.event.ListenerMethod.receiveEvent(ListenerMethod.java:510)
            at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:200)
            at com.vaadin.event.EventRouter.fireEvent(EventRouter.java:163)
            at com.vaadin.server.AbstractClientConnector.fireEvent(AbstractClientConnector.java:1015)
            at com.vaadin.ui.Button.fireClick(Button.java:377)
            at com.vaadin.ui.Button$1.click(Button.java:54)
            at sun.reflect.GeneratedMethodAccessor697.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:158)
            at com.vaadin.server.ServerRpcManager.applyInvocation(ServerRpcManager.java:119)
            at com.vaadin.server.communication.ServerRpcHandler.handleInvocation(ServerRpcHandler.java:437)
            at com.vaadin.server.communication.ServerRpcHandler.handleInvocations(ServerRpcHandler.java:402)
            at com.vaadin.server.communication.ServerRpcHandler.handleRpc(ServerRpcHandler.java:273)
            at com.vaadin.server.communication.UidlRequestHandler.synchronizedHandleRequest(UidlRequestHandler.java:90)
            at com.vaadin.server.SynchronizedRequestHandler.handleRequest(SynchronizedRequestHandler.java:41)
            at com.vaadin.server.VaadinService.handleRequest(VaadinService.java:1435)
            at com.vaadin.server.VaadinServlet.service(VaadinServlet.java:380)
            at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
            at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:755)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1617)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:317)
            at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.invoke(FilterSecurityInterceptor.java:127)
            at org.springframework.security.web.access.intercept.FilterSecurityInterceptor.doFilter(FilterSecurityInterceptor.java:91)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.access.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:114)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.session.SessionManagementFilter.doFilter(SessionManagementFilter.java:137)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.authentication.AnonymousAuthenticationFilter.doFilter(AnonymousAuthenticationFilter.java:111)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.servletapi.SecurityContextHolderAwareRequestFilter.doFilter(SecurityContextHolderAwareRequestFilter.java:170)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.savedrequest.RequestCacheAwareFilter.doFilter(RequestCacheAwareFilter.java:63)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.authentication.www.BasicAuthenticationFilter.doFilterInternal(BasicAuthenticationFilter.java:158)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.oauth2.provider.authentication.OAuth2AuthenticationProcessingFilter.doFilter(OAuth2AuthenticationProcessingFilter.java:182)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.authentication.logout.LogoutFilter.doFilter(LogoutFilter.java:116)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.header.HeaderWriterFilter.doFilterInternal(HeaderWriterFilter.java:66)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.context.SecurityContextPersistenceFilter.doFilter(SecurityContextPersistenceFilter.java:105)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.context.request.async.WebAsyncManagerIntegrationFilter.doFilterInternal(WebAsyncManagerIntegrationFilter.java:56)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
            at org.springframework.security.web.FilterChainProxy$VirtualFilterChain.doFilter(FilterChainProxy.java:331)
            at org.springframework.security.web.FilterChainProxy.doFilterInternal(FilterChainProxy.java:214)
            at org.springframework.security.web.FilterChainProxy.doFilter(FilterChainProxy.java:177)
            at org.springframework.web.filter.DelegatingFilterProxy.invokeDelegate(DelegatingFilterProxy.java:347)
            at org.springframework.web.filter.DelegatingFilterProxy.doFilter(DelegatingFilterProxy.java:263)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
            at eu.etaxonomy.cdm.servlet.DateHeaderFilter.doFilter(DateHeaderFilter.java:56)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1604)
            at org.springframework.web.filter.CharacterEncodingFilter.doFilterInternal(CharacterEncodingFilter.java:197)
            at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:107)
            at org.eclipse.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1596)
            at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:545)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143)
            at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:590)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
            at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235)
            at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1607)
            at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233)
            at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1297)
            at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188)
            at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:485)
            at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1577)
            at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186)
            at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1212)
            at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
            at eu.etaxonomy.cdm.server.logging.InstanceLogWrapper.handle(InstanceLogWrapper.java:48)
            at org.eclipse.jetty.server.handler.ContextHandlerCollection.handle(ContextHandlerCollection.java:221)
            at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127)
            at org.eclipse.jetty.server.Server.handle(Server.java:500)
            at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:383)
            at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:547)
            at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:375)
            at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:270)
            at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311)
            at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:103)
            at org.eclipse.jetty.io.ChannelEndPoint$2.run(ChannelEndPoint.java:117)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:336)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:313)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:171)
            at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:129)
            at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:388)
            at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:806)
            at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:938)
            at java.lang.Thread.run(Thread.java:748)
Caused by: com.vaadin.data.fieldgroup.FieldGroup$CommitException: Failed to store data to backend
            at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor$SaveHandler.postCommit(AbstractPopupEditor.java:390)
            at com.vaadin.data.fieldgroup.FieldGroup.firePostCommitEvent(FieldGroup.java:625)
            at com.vaadin.data.fieldgroup.FieldGroup.commit(FieldGroup.java:501)
            ... 99 more
Caused by: java.lang.ClassCastException: org.apache.logging.slf4j.SLF4JLoggerContext cannot be cast to org.apache.logging.log4j.core.LoggerContext
            at eu.etaxonomy.cdm.common.LogUtils.setLevel(LogUtils.java:47)
            at eu.etaxonomy.cdm.common.LogUtils.setLevel(LogUtils.java:73)
            at eu.etaxonomy.cdm.common.LogUtils.logAs(LogUtils.java:145)
            at eu.etaxonomy.cdm.common.LogUtils.logAsDebug(LogUtils.java:109)
            at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor.boundPropertyIdPath(AbstractPopupEditor.java:611)
            at eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter.boundPropertyIdPath(AbstractEditorPresenter.java:171)
            at eu.etaxonomy.vaadin.mvp.AbstractEditorPresenter.boundTargetField(AbstractEditorPresenter.java:155)
            at eu.etaxonomy.cdm.vaadin.view.reference.ReferenceEditorPresenter.onEntityChangeEvent(ReferenceEditorPresenter.java:255)
            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.vaadin.spring.events.internal.MethodListenerWrapper.publish(MethodListenerWrapper.java:78)
            at org.vaadin.spring.events.internal.ListenerCollection.publish(ListenerCollection.java:167)
            at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:116)
            at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:109)
            at eu.etaxonomy.vaadin.mvp.CdmEditorPresenterBase.onEditorSaveEvent(CdmEditorPresenterBase.java:237)
            at sun.reflect.GeneratedMethodAccessor1408.invoke(Unknown Source)
            at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
            at java.lang.reflect.Method.invoke(Method.java:498)
            at org.vaadin.spring.events.internal.MethodListenerWrapper.publish(MethodListenerWrapper.java:78)
            at org.vaadin.spring.events.internal.ListenerCollection.publish(ListenerCollection.java:167)
            at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:116)
            at org.vaadin.spring.events.internal.ScopedEventBus.publish(ScopedEventBus.java:109)
            at eu.etaxonomy.vaadin.mvp.AbstractPopupEditor$SaveHandler.postCommit(AbstractPopupEditor.java:382)
            ... 101 more

===

WHK:

Der Fehler war ärgerlich, aber die unten beschriebene Aktion wurde korrekt gespeichert.
Der Record ist http://phycobank.org/103306 und fehlerfrei publiziert.


Related issues

Related to EDIT - task #10072: Upgrade fully to log4j2ClosedAndreas Müller

Actions
Related to EDIT - task #9359: Update cdmlib, taxeditor, cdmserver etc. dependenciesClosedAndreas Müller

Actions
Actions #1

Updated by Andreas Müller about 1 year ago

  • Description updated (diff)
Actions #2

Updated by Andreas Müller about 1 year ago

  • Related to task #10072: Upgrade fully to log4j2 added
  • Related to task #9359: Update cdmlib, taxeditor, cdmserver etc. dependencies added
Actions #3

Updated by Andreas Müller about 1 year ago

  • Status changed from New to Resolved
  • Assignee changed from Andreas Müller to Wolf-Henning Kusber
  • Priority changed from New to Highest
  • % Done changed from 0 to 70

This should be fixed, please review.

Actions #4

Updated by Andreas Müller about 1 year ago

Can you please review?

Actions #5

Updated by Wolf-Henning Kusber 12 months ago

  • Assignee changed from Wolf-Henning Kusber to Andreas Müller
  • % Done changed from 70 to 100

Test System (tested 05 Oct 2022):ticket can be closed.
create new in author in Vaadin: function as expecte. Bug fixed
create new journal/new book in Vaasin: function as expeced. Bug fixed

Actions #6

Updated by Andreas Müller 12 months ago

  • Status changed from Resolved to Closed
Actions

Also available in: Atom PDF